@form-create/component-elm-group 2.5.32 → 2.5.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/component.jsx +3 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@form-create/component-elm-group",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.35",
|
|
4
4
|
"description": "@form-create/element-ui 内置组件",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"author": "xaboy",
|
|
31
31
|
"license": "MIT",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@form-create/utils": "^2.5.
|
|
33
|
+
"@form-create/utils": "^2.5.35"
|
|
34
34
|
},
|
|
35
35
|
"bugs": {
|
|
36
36
|
"url": "https://github.com/xaboy/form-create/issues"
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "1cea842d9380bbc9f3bc01470e7e17f5a952dffb"
|
|
43
43
|
}
|
package/src/component.jsx
CHANGED
|
@@ -129,6 +129,7 @@ export default {
|
|
|
129
129
|
for (let i = len; i < 0; i++) {
|
|
130
130
|
this.addRule(n.length + i);
|
|
131
131
|
}
|
|
132
|
+
this.sort = Object.keys(this.cacheRule);
|
|
132
133
|
for (let i = 0; i < total; i++) {
|
|
133
134
|
this.setValue(keys[i], n[i]);
|
|
134
135
|
}
|
|
@@ -137,13 +138,11 @@ export default {
|
|
|
137
138
|
for (let i = 0; i < len; i++) {
|
|
138
139
|
this.removeRule(keys[total - i - 1]);
|
|
139
140
|
}
|
|
141
|
+
this.sort = Object.keys(this.cacheRule);
|
|
140
142
|
}
|
|
141
143
|
n.forEach((val, i) => {
|
|
142
144
|
this.setValue(keys[i], n[i]);
|
|
143
145
|
});
|
|
144
|
-
if (o.length && !n.length) {
|
|
145
|
-
this.input([]);
|
|
146
|
-
}
|
|
147
146
|
}
|
|
148
147
|
}
|
|
149
148
|
},
|
|
@@ -181,7 +180,7 @@ export default {
|
|
|
181
180
|
return;
|
|
182
181
|
}
|
|
183
182
|
this.cache(key, value);
|
|
184
|
-
$f.coverValue(value || {});
|
|
183
|
+
$f && $f.coverValue(value || {});
|
|
185
184
|
},
|
|
186
185
|
addRule(i, emit) {
|
|
187
186
|
const rule = this.formCreateInject.form.copyRules(this.formRule);
|