luocong2016
2023-02-27 ed8cffb2a186c9436a3aeeee755190116d43cc99
fix: 组件属性优先默认 (#2581)

1个文件已修改
12 ■■■■■ 已修改文件
src/components/Form/src/components/FormItem.vue 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/Form/src/components/FormItem.vue
@@ -80,10 +80,14 @@
          componentProps = componentProps({ schema, tableAction, formModel, formActionType }) ?? {};
        }
        if (schema.component === 'Divider') {
          componentProps = Object.assign({ type: 'horizontal' }, componentProps, {
            orientation: 'left',
            plain: true,
          });
          componentProps = Object.assign(
            { type: 'horizontal' },
            {
              orientation: 'left',
              plain: true,
            },
            componentProps,
          );
        }
        return componentProps as Recordable;
      });