@panpanzhao/component-ui 1.25.818 → 1.25.822

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.
@@ -5315,11 +5315,21 @@ var date_picker_default = /*#__PURE__*/__webpack_require__.n(date_picker_);
5315
5315
  endProp: String
5316
5316
  },
5317
5317
  watch: {
5318
- value: function value(val) {
5319
- if (["monthrange", "daterange", "datetimerange"].indexOf(this.$attrs.type) > -1 && this.startProp && this.endProp && this._form && !val) {
5320
- this._form.formModel[this.startProp] = null;
5321
- this._form.formModel[this.endProp] = null;
5322
- }
5318
+ value: {
5319
+ handler: function handler(val) {
5320
+ if (["monthrange", "daterange", "datetimerange"].indexOf(this.$attrs.type) > -1 && this.startProp && this.endProp && this._form) {
5321
+ if (!val) {
5322
+ this._form.formModel[this.startProp] = null;
5323
+ this._form.formModel[this.endProp] = null;
5324
+ return false;
5325
+ }
5326
+ if ((val == null ? void 0 : val.length) === 2) {
5327
+ this._form.formModel[this.startProp] = val[0];
5328
+ this._form.formModel[this.endProp] = val[1];
5329
+ }
5330
+ }
5331
+ },
5332
+ immediate: true
5323
5333
  }
5324
5334
  },
5325
5335
  computed: {
@@ -7526,8 +7536,8 @@ var form_input_default = /*#__PURE__*/__webpack_require__.n(form_input_);
7526
7536
  if (this.on && this.on[eventName]) {
7527
7537
  this.$emit.apply(this, [eventName, {
7528
7538
  trigger: this.form,
7529
- triggerConfig: this.form.formItemLayout[this.prop],
7530
7539
  triggerForm: this.form.formModel,
7540
+ triggerConfig: this.form.formItemLayout[this.prop],
7531
7541
  triggerFormConfig: this.form.formItemLayout
7532
7542
  }].concat(arg));
7533
7543
  }
@@ -7547,6 +7557,7 @@ var form_input_default = /*#__PURE__*/__webpack_require__.n(form_input_);
7547
7557
  itemEvent.exec && (_itemEvent$exec = itemEvent.exec).call.apply(_itemEvent$exec, [this, {
7548
7558
  trigger: this.form,
7549
7559
  triggerForm: this.form.formModel,
7560
+ triggerFormConfig: this.form.formItemLayout,
7550
7561
  triggerConfig: this.form.formItemLayout[this.prop],
7551
7562
  targetConfig: targetConfig
7552
7563
  }].concat(arg));
@@ -1820,11 +1820,21 @@ var date_picker_default = /*#__PURE__*/__webpack_require__.n(date_picker_);
1820
1820
  endProp: String
1821
1821
  },
1822
1822
  watch: {
1823
- value: function value(val) {
1824
- if (["monthrange", "daterange", "datetimerange"].indexOf(this.$attrs.type) > -1 && this.startProp && this.endProp && this._form && !val) {
1825
- this._form.formModel[this.startProp] = null;
1826
- this._form.formModel[this.endProp] = null;
1827
- }
1823
+ value: {
1824
+ handler: function handler(val) {
1825
+ if (["monthrange", "daterange", "datetimerange"].indexOf(this.$attrs.type) > -1 && this.startProp && this.endProp && this._form) {
1826
+ if (!val) {
1827
+ this._form.formModel[this.startProp] = null;
1828
+ this._form.formModel[this.endProp] = null;
1829
+ return false;
1830
+ }
1831
+ if ((val == null ? void 0 : val.length) === 2) {
1832
+ this._form.formModel[this.startProp] = val[0];
1833
+ this._form.formModel[this.endProp] = val[1];
1834
+ }
1835
+ }
1836
+ },
1837
+ immediate: true
1828
1838
  }
1829
1839
  },
1830
1840
  computed: {
@@ -268,8 +268,8 @@ var external_lodash_ = __webpack_require__(2);
268
268
  if (this.on && this.on[eventName]) {
269
269
  this.$emit.apply(this, [eventName, {
270
270
  trigger: this.form,
271
- triggerConfig: this.form.formItemLayout[this.prop],
272
271
  triggerForm: this.form.formModel,
272
+ triggerConfig: this.form.formItemLayout[this.prop],
273
273
  triggerFormConfig: this.form.formItemLayout
274
274
  }].concat(arg));
275
275
  }
@@ -289,6 +289,7 @@ var external_lodash_ = __webpack_require__(2);
289
289
  itemEvent.exec && (_itemEvent$exec = itemEvent.exec).call.apply(_itemEvent$exec, [this, {
290
290
  trigger: this.form,
291
291
  triggerForm: this.form.formModel,
292
+ triggerFormConfig: this.form.formItemLayout,
292
293
  triggerConfig: this.form.formItemLayout[this.prop],
293
294
  targetConfig: targetConfig
294
295
  }].concat(arg));