File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ module.exports = {
1010 rules : {
1111 'no-console' : process . env . NODE_ENV === 'production' ? 'error' : 'off' ,
1212 'no-debugger' : process . env . NODE_ENV === 'production' ? 'error' : 'off' ,
13+ 'prefer-object-spread' : 'off' ,
1314 } ,
1415 parserOptions : {
1516 parser : 'babel-eslint' ,
Original file line number Diff line number Diff line change @@ -63,13 +63,12 @@ export default {
6363 },
6464 methods: {
6565 initialize () {
66- const configs = {
66+ const configs = Object . assign ( {
6767 element: this .$el .firstElementChild ,
6868 initialValue: this .value ,
6969 previewRender: this .previewRender ,
7070 renderingConfig: {},
71- ... this .configs ,
72- };
71+ }, this .configs );
7372
7473 // 同步 value 和 initialValue 的值
7574 if (configs .initialValue ) {
You can’t perform that action at this time.
0 commit comments