Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@xm-fe/xm-pc-base

Package Overview
Dependencies
Maintainers
3
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xm-fe/xm-pc-base - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

src/xm-pc-base-config/components/useSCustomFilter/index.ts

2

package.json
{
"name": "@xm-fe/xm-pc-base",
"version": "0.0.8",
"version": "0.0.9",
"description": "2022 鲜沐pc-base",

@@ -5,0 +5,0 @@ "author": {

@@ -11,2 +11,6 @@ ## ⚡️ 简介

### 0.0.9
- bug 修复
### 0.0.8

@@ -13,0 +17,0 @@

@@ -13,3 +13,3 @@ import { ConcreteComponent } from 'vue'

/**搜索的参数,必须唯一,当有keyFormat字段时可以随便填,但也不能跟别的可以重复 */
key: string
key?: string
// 使用预选设置

@@ -45,2 +45,3 @@ preset?: any

optionsFn?: (() => DefaultOptionType[]) | (() => Promise<DefaultOptionType[]>)
keyFormat?: any
}

@@ -47,0 +48,0 @@

export * from './hooks'
export * from './utils'
// export * from './utils'
export * from './components'

@@ -4,0 +4,0 @@ import SUpload from './components/SUpload/index.vue'

@@ -26,2 +26,3 @@ import { multCascaderBase, CascaderBase, selectBaseWithSearch, selectMultBase } from './config-base'

import { searchQNet, SearchQNetReq } from '@/apis/tms/api/driver/searchQNet'
import { searchNet } from '@/apis/summerfarm-manage/api/products/search'

@@ -74,2 +75,4 @@ //#endregion enum

ExchangeCreator,
/**商品名称 */
SkuName,
}

@@ -327,3 +330,24 @@

},
[PresetFilterConf.SkuName]: {
key: 'pdId',
placeholder: '请输入商品名称',
base: remoteSelectBase,
props: {
onSearch: async (item: SCustomFilterInnerOptions, [value]: [any]) => {
if (!value) {
item.props.options = []
return
}
const params = {
pdName: value,
}
const re = await searchNet(params)
item.props.options = re.map(_ => ({
label: _.pdName,
value: _.pdId,
}))
},
},
},
//#endregion Activity
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc