feat: 统一 api 组件的调用方法
This commit is contained in:
@@ -23,7 +23,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
||||
label: '商品',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: getSpuSimpleList,
|
||||
api: () => getSpuSimpleList(),
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择商品',
|
||||
|
||||
@@ -113,7 +113,7 @@ export function useValueFormSchema(): VbenFormSchema[] {
|
||||
component: 'ApiSelect',
|
||||
componentProps: (values) => {
|
||||
return {
|
||||
api: getPropertySimpleList,
|
||||
api: () => getPropertySimpleList(),
|
||||
placeholder: '请选择属性',
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
@@ -153,7 +153,7 @@ export function useValueGridFormSchema(): VbenFormSchema[] {
|
||||
label: '属性项',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: getPropertySimpleList,
|
||||
api: () => getPropertySimpleList(),
|
||||
placeholder: '请选择属性项',
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
|
||||
@@ -181,7 +181,7 @@ export function useDeliveryFormSchema(): VbenFormSchema[] {
|
||||
label: '运费模板',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: getSimpleTemplateList,
|
||||
api: () => getSimpleTemplateList(),
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user