@xm-fe/xm-pc-base
Advanced tools
Comparing version 0.0.8 to 0.0.9
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unpublished package
Supply chain riskPackage version was not found on the registry. It may exist on a different registry and need to be configured to pull from that registry.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unpublished package
Supply chain riskPackage version was not found on the registry. It may exist on a different registry and need to be configured to pull from that registry.
Found 1 instance in 1 package
67599
39
960
40