vue2-client 1.15.90 → 1.15.91
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/package.json
CHANGED
@@ -18,6 +18,7 @@
|
|
18
18
|
:get-data-params="getDataParams"
|
19
19
|
:env="env"
|
20
20
|
:setForm="setForm"
|
21
|
+
@x-form-item-emit-func="emitFunc"
|
21
22
|
@mounted="onItemMounted"
|
22
23
|
/>
|
23
24
|
<x-form-item
|
@@ -31,6 +32,7 @@
|
|
31
32
|
:get-data-params="getDataParams"
|
32
33
|
:env="env"
|
33
34
|
:setForm="setForm"
|
35
|
+
@x-form-item-emit-func="emitFunc"
|
34
36
|
@mounted="onItemMounted"
|
35
37
|
/>
|
36
38
|
<a-col style="margin-left: auto">
|
@@ -371,6 +373,10 @@ export default {
|
|
371
373
|
resetForm () {
|
372
374
|
this.$refs.form.resetFields()
|
373
375
|
},
|
376
|
+
emitFunc (func, data, value) {
|
377
|
+
this.$emit(func, data, value)
|
378
|
+
this.$emit('x-form-item-emit-func', func, data, value)
|
379
|
+
},
|
374
380
|
onSubmit () {
|
375
381
|
this.$refs.form.validate(valid => {
|
376
382
|
for (const key of Object.keys(this.form)) {
|