比如:{
label: '角色',
key: 'role_ids',
type: 'select',
props: {
placeholder: '请选择角色',
clearable: true,
filterable: true,
multiple: true,
options: props.roleOptions,
props: { label: 'name', value: 'id' }
}
},不支持props: { label: 'name', value: 'id' },ArtForm组件中删除代码<template v-if="item.type === 'select' && getProps(item)?.options"> <ElOption v-for="option in getProps(item).options" v-bind="option" :key="option.value" /> </template>后就正常使用了
比如:{
label: '角色',
key: 'role_ids',
type: 'select',
props: {
placeholder: '请选择角色',
clearable: true,
filterable: true,
multiple: true,
options: props.roleOptions,
props: { label: 'name', value: 'id' }
}
},不支持props: { label: 'name', value: 'id' },ArtForm组件中删除代码
<template v-if="item.type === 'select' && getProps(item)?.options"> <ElOption v-for="option in getProps(item).options" v-bind="option" :key="option.value" /> </template>后就正常使用了