feat: add default placeholder
for ApiSelect
(#5078)
This commit is contained in:
@@ -85,6 +85,7 @@ async function initComponentAdapter() {
|
||||
return h(
|
||||
ApiSelect,
|
||||
{
|
||||
placeholder: $t('ui.placeholder.select'),
|
||||
...props,
|
||||
...attrs,
|
||||
component: Select,
|
||||
@@ -99,6 +100,7 @@ async function initComponentAdapter() {
|
||||
return h(
|
||||
ApiSelect,
|
||||
{
|
||||
placeholder: $t('ui.placeholder.select'),
|
||||
...props,
|
||||
...attrs,
|
||||
component: TreeSelect,
|
||||
|
@@ -55,7 +55,6 @@ const [BaseForm, baseFormApi] = useVbenForm({
|
||||
},
|
||||
// 菜单接口
|
||||
api: getAllMenusApi,
|
||||
placeholder: '请选择',
|
||||
},
|
||||
// 字段名
|
||||
fieldName: 'api',
|
||||
@@ -71,7 +70,6 @@ const [BaseForm, baseFormApi] = useVbenForm({
|
||||
childrenField: 'children',
|
||||
// 菜单接口转options格式
|
||||
labelField: 'name',
|
||||
placeholder: '请选择',
|
||||
valueField: 'path',
|
||||
},
|
||||
// 字段名
|
||||
|
Reference in New Issue
Block a user