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 = {
10
10
rules : {
11
11
'no-console' : process . env . NODE_ENV === 'production' ? 'error' : 'off' ,
12
12
'no-debugger' : process . env . NODE_ENV === 'production' ? 'error' : 'off' ,
13
+ 'prefer-object-spread' : 'off' ,
13
14
} ,
14
15
parserOptions : {
15
16
parser : 'babel-eslint' ,
Original file line number Diff line number Diff line change @@ -63,13 +63,12 @@ export default {
63
63
},
64
64
methods: {
65
65
initialize () {
66
- const configs = {
66
+ const configs = Object . assign ( {
67
67
element: this .$el .firstElementChild ,
68
68
initialValue: this .value ,
69
69
previewRender: this .previewRender ,
70
70
renderingConfig: {},
71
- ... this .configs ,
72
- };
71
+ }, this .configs );
73
72
74
73
// 同步 value 和 initialValue 的值
75
74
if (configs .initialValue ) {
You can’t perform that action at this time.
0 commit comments