Skip to content

Commit

Permalink
fix(element): add rollup external to fix element package size (#1766)
Browse files Browse the repository at this point in the history
  • Loading branch information
muuyao authored Jul 12, 2021
1 parent 2cfd53b commit 8104dbf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
11 changes: 3 additions & 8 deletions packages/element/src/submit/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { merge } from 'lodash'
import { h, useForm } from '@formily/vue'
import { observer } from '@formily/reactive-vue'
import { defineComponent } from 'vue-demi'
Expand All @@ -21,13 +20,9 @@ export const Submit = observer(
ElButton,
{
attrs: {
...merge(
{
nativeType: listeners?.submit ? 'button' : 'submit',
type: 'primary',
},
attrs
),
nativeType: listeners?.submit ? 'button' : 'submit',
type: 'primary',
...attrs,
loading:
attrs.loading !== undefined ? attrs.loading : form?.submitting,
},
Expand Down
1 change: 1 addition & 0 deletions scripts/rollup.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const presets = () => {
react: 'React',
moment: 'moment',
'react-is': 'ReactIs',
'element-ui': 'Element',
'@alifd/next': 'Next',
'mobx-react-lite': 'mobxReactLite',
'react-dom': 'ReactDOM',
Expand Down

0 comments on commit 8104dbf

Please sign in to comment.