Преглед на файлове

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

luocong2016 преди 2 години
родител
ревизия
ed8cffb2a1
променени са 1 файла, в които са добавени 8 реда и са изтрити 4 реда
  1. 8 4
      src/components/Form/src/components/FormItem.vue

+ 8 - 4
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;
       });