Browse Source

fix: 组件属性优先默认 (#2581)

pull/2589/head
luocong2016 4 years ago
committed by GitHub
parent
commit
ed8cffb2a1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      src/components/Form/src/components/FormItem.vue

12
src/components/Form/src/components/FormItem.vue

@ -80,10 +80,14 @@
componentProps = componentProps({ schema, tableAction, formModel, formActionType }) ?? {}; componentProps = componentProps({ schema, tableAction, formModel, formActionType }) ?? {};
} }
if (schema.component === 'Divider') { if (schema.component === 'Divider') {
componentProps = Object.assign({ type: 'horizontal' }, componentProps, { componentProps = Object.assign(
orientation: 'left', { type: 'horizontal' },
plain: true, {
}); orientation: 'left',
plain: true,
},
componentProps,
);
} }
return componentProps as Recordable; return componentProps as Recordable;
}); });

Loading…
Cancel
Save