feat:简化 ApiSelect 的 api 写法~
This commit is contained in:
@@ -38,7 +38,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
||||
label: '文章分类',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleArticleCategoryList(),
|
||||
api: getSimpleArticleCategoryList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择文章分类',
|
||||
@@ -144,7 +144,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
||||
label: '文章分类',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
api: () => getSimpleArticleCategoryList(),
|
||||
api: getSimpleArticleCategoryList,
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
placeholder: '请选择文章分类',
|
||||
|
||||
Reference in New Issue
Block a user