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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.15.90",
3
+ "version": "1.15.91",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -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)) {
@@ -54,6 +54,7 @@
54
54
  </div>
55
55
  <x-form
56
56
  ref="xForm"
57
+ @x-form-item-emit-func="emitFunc"
57
58
  @toggleAdvanced="toggleAdvanced"
58
59
  @onSubmit="onSearchSubmit">
59
60
  <slot name="formBtnExpand"></slot>