Skip to content

Commit cff9283

Browse files
committed
20190902
1 parent a2c20b9 commit cff9283

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

src/components/EditableCell/cell.vue

+5-8
Original file line numberDiff line numberDiff line change
@@ -96,18 +96,15 @@
9696
decorator: {
9797
get() {
9898
if (this.decoratorOptions) {
99-
const newOptions = {
99+
const itemDecorator = ['formName', {
100100
initialValue: this.value,
101101
...this.decoratorOptions,
102-
};
103-
const itemDecorator = ['formName'];
104-
itemDecorator.push(newOptions);
102+
}];
105103
return itemDecorator;
106104
}
107-
const itemDecorator = ['formName'];
108-
const options = {};
109-
options.initialValue = this.value;
110-
itemDecorator.push(options);
105+
const itemDecorator = ['formName', {
106+
initialValue: this.value,
107+
}];
111108
return itemDecorator;
112109
},
113110
set(value) {

0 commit comments

Comments
 (0)