Skip to content
This repository was archived by the owner on Dec 1, 2023. It is now read-only.

Commit 7b7f703

Browse files
author
Steffan
committed
use assign to copy field ref
1 parent 3876fee commit 7b7f703

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/fields.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ export default function (Vue) {
8484
each(config, (field, name) => {
8585

8686
if (!isString(field.name) && !arr) {
87-
field.name = name;
87+
field = assign({name}, field);
8888
}
8989

9090
if (!isString(field.type)) {
91-
field.type = 'text';
91+
field = assign({type: 'text'}, field);
9292
}
9393

9494
if (isString(field.name)) {

0 commit comments

Comments
 (0)