feat: add default placeholder for ApiSelect (#5078)

This commit is contained in:
Netfan
2024-12-09 14:03:46 +08:00
committed by GitHub
parent d085736bac
commit 018ddc75c6
7 changed files with 8 additions and 6 deletions

View File

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

View File

@@ -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',
},
// 字段名