Skip to content

Commit

Permalink
fix(element): fix form props pass bug (#2253)
Browse files Browse the repository at this point in the history
  • Loading branch information
muuyao committed Sep 29, 2021
1 parent bfd832a commit 7185977
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/element/docs/demos/guide/form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
:required="true"
/>
</SchemaField>
<FormButtonGroup>
<FormButtonGroup alignFormItem>
<Submit>提交</Submit>
</FormButtonGroup>
</Form>
Expand Down
5 changes: 3 additions & 2 deletions packages/element/src/array-items/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ const ArrayItemsInner = observer(
'div',
{
class: [prefixCls],
attrs,
on: {
change: () => {},
},
Expand All @@ -154,7 +153,9 @@ const ArrayItemsItem = defineComponent<IArrayItemsItemProps>({
'div',
{
class: [`${prefixCls}-${props.type || 'card'}`],
attrs,
attrs: {
...attrs,
},
on: {
change: () => {},
},
Expand Down
4 changes: 3 additions & 1 deletion packages/element/src/form/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ export const Form = defineComponent<FormProps>({
h(
FormLayout,
{
attrs,
attrs: {
...attrs,
},
},
{
default: () => [
Expand Down

0 comments on commit 7185977

Please sign in to comment.