@panpanzhao/component-ui 1.25.820 → 1.25.825
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:
|
|
5319
|
-
|
|
5320
|
-
this.
|
|
5321
|
-
|
|
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: {
|
|
@@ -7346,6 +7356,7 @@ var upload_process_component = normalizeComponent(
|
|
|
7346
7356
|
props: {
|
|
7347
7357
|
control: String,
|
|
7348
7358
|
render: Function,
|
|
7359
|
+
class: String,
|
|
7349
7360
|
slots: {
|
|
7350
7361
|
type: Object
|
|
7351
7362
|
}
|
|
@@ -7526,8 +7537,8 @@ var form_input_default = /*#__PURE__*/__webpack_require__.n(form_input_);
|
|
|
7526
7537
|
if (this.on && this.on[eventName]) {
|
|
7527
7538
|
this.$emit.apply(this, [eventName, {
|
|
7528
7539
|
trigger: this.form,
|
|
7529
|
-
triggerConfig: this.form.formItemLayout[this.prop],
|
|
7530
7540
|
triggerForm: this.form.formModel,
|
|
7541
|
+
triggerConfig: this.form.formItemLayout[this.prop],
|
|
7531
7542
|
triggerFormConfig: this.form.formItemLayout
|
|
7532
7543
|
}].concat(arg));
|
|
7533
7544
|
}
|
|
@@ -7547,6 +7558,7 @@ var form_input_default = /*#__PURE__*/__webpack_require__.n(form_input_);
|
|
|
7547
7558
|
itemEvent.exec && (_itemEvent$exec = itemEvent.exec).call.apply(_itemEvent$exec, [this, {
|
|
7548
7559
|
trigger: this.form,
|
|
7549
7560
|
triggerForm: this.form.formModel,
|
|
7561
|
+
triggerFormConfig: this.form.formItemLayout,
|
|
7550
7562
|
triggerConfig: this.form.formItemLayout[this.prop],
|
|
7551
7563
|
targetConfig: targetConfig
|
|
7552
7564
|
}].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:
|
|
1824
|
-
|
|
1825
|
-
this.
|
|
1826
|
-
|
|
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: {
|
|
@@ -3859,6 +3869,7 @@ var upload_process_component = Object(componentNormalizer["a" /* default */])(
|
|
|
3859
3869
|
props: {
|
|
3860
3870
|
control: String,
|
|
3861
3871
|
render: Function,
|
|
3872
|
+
class: String,
|
|
3862
3873
|
slots: {
|
|
3863
3874
|
type: Object
|
|
3864
3875
|
}
|
|
@@ -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));
|