mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-28 05:39:34 +08:00
chore: abnormal page adjustment
This commit is contained in:
@@ -193,18 +193,6 @@ export default defineComponent({
|
||||
const bindValue = {
|
||||
[isCheck ? 'checked' : 'value']: (props.formModel as any)[field],
|
||||
};
|
||||
// TODO先兼容antd的警告,后面官方修复后删除
|
||||
if (component === 'Select') {
|
||||
if (Reflect.has(propsData, 'options')) {
|
||||
propsData.options = propsData.options.map((item: any) => {
|
||||
return {
|
||||
key: item.value,
|
||||
...item,
|
||||
};
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
if (!renderComponentContent) {
|
||||
return <Comp {...propsData} {...on} {...bindValue} />;
|
||||
}
|
||||
|
Reference in New Issue
Block a user