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