@form-create/component-elm-group 2.5.22 → 2.5.25
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 +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/component.jsx +10 -5
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.25",
|
|
4
4
|
"description": "@form-create/element-ui 内置组件",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "4f13bd4d5789a2ab473523f3d1306e877279d4ee"
|
|
43
43
|
}
|
package/src/component.jsx
CHANGED
|
@@ -282,16 +282,21 @@ export default {
|
|
|
282
282
|
return <ElRow align="middle" type="flex" key={key}
|
|
283
283
|
style="border-bottom:1px dashed #DCDFE6;margin-bottom:10px;">
|
|
284
284
|
<ElCol span={button ? 20 : 24}><ElFormItem><Type
|
|
285
|
-
key={key}
|
|
285
|
+
key={key}
|
|
286
286
|
on={{
|
|
287
287
|
'update:value': (formData) => this.formData(key, formData),
|
|
288
288
|
'emit-event': (name, ...args) => this.emitEvent(name, args, index, key),
|
|
289
289
|
input: ($f) => this.add$f(index, key, $f)
|
|
290
290
|
}}
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
291
|
+
props={{
|
|
292
|
+
value: this.field ? {[this.field]: this._value(this.value[index])} : this.value[index],
|
|
293
|
+
rule,
|
|
294
|
+
option: options,
|
|
295
|
+
extendOption: true,
|
|
296
|
+
inFor: true
|
|
297
|
+
}}/></ElFormItem></ElCol>
|
|
298
|
+
{button ? <ElCol
|
|
299
|
+
props={{span: 2, pull: 1, push: 1}}>{this.makeIcon(keys.length, index, key)}</ElCol> : null}
|
|
295
300
|
</ElRow>
|
|
296
301
|
})}</div>
|
|
297
302
|
}
|