feat: 统一 api 组件的调用方法

This commit is contained in:
xingyu4j
2025-10-20 10:41:57 +08:00
parent c6ef77694e
commit 30c7727361
88 changed files with 22772 additions and 554 deletions

View File

@@ -23,7 +23,7 @@ export function useFormSchema(): VbenFormSchema[] {
label: '商品',
component: 'ApiSelect',
componentProps: {
api: getSpuSimpleList,
api: () => getSpuSimpleList(),
labelField: 'name',
valueField: 'id',
placeholder: '请选择商品',

View File

@@ -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',

View File

@@ -181,7 +181,7 @@ export function useDeliveryFormSchema(): VbenFormSchema[] {
label: '运费模板',
component: 'ApiSelect',
componentProps: {
api: getSimpleTemplateList,
api: () => getSimpleTemplateList(),
labelField: 'name',
valueField: 'id',
},