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 }) ?? {};
}
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;
});

Loading…
Cancel
Save