@panpanzhao/component-ui 0.0.35 → 0.0.37
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/lib/component-ui.common.js +29 -8
- package/lib/components/crud.js +14 -4
- package/lib/components/form-dialog.js +14 -4
- package/lib/components/form-drawer.js +14 -4
- package/lib/components/form-group.js +14 -4
- package/lib/components/form-input.js +12 -1
- package/lib/components/form.js +14 -4
- package/lib/components/table-operate.js +14 -4
- package/lib/index.js +1 -1
- package/package.json +1 -1
|
@@ -481,8 +481,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
481
481
|
// EXPORTS
|
|
482
482
|
__webpack_require__.d(__webpack_exports__, "API", function() { return /* binding */ API; });
|
|
483
483
|
|
|
484
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/form.vue?vue&type=template&id=
|
|
485
|
-
var
|
|
484
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/form.vue?vue&type=template&id=fccc1eea&
|
|
485
|
+
var formvue_type_template_id_fccc1eea_render = function render() {
|
|
486
486
|
var _vm = this,
|
|
487
487
|
_c = _vm._self._c
|
|
488
488
|
return _c(
|
|
@@ -549,10 +549,10 @@ var formvue_type_template_id_331ea9a7_render = function render() {
|
|
|
549
549
|
)
|
|
550
550
|
}
|
|
551
551
|
var staticRenderFns = []
|
|
552
|
-
|
|
552
|
+
formvue_type_template_id_fccc1eea_render._withStripped = true
|
|
553
553
|
|
|
554
554
|
|
|
555
|
-
// CONCATENATED MODULE: ./src/components/form/src/form.vue?vue&type=template&id=
|
|
555
|
+
// CONCATENATED MODULE: ./src/components/form/src/form.vue?vue&type=template&id=fccc1eea&
|
|
556
556
|
|
|
557
557
|
// EXTERNAL MODULE: external "element-ui/lib/form"
|
|
558
558
|
var form_ = __webpack_require__(16);
|
|
@@ -628,7 +628,8 @@ var external_lodash_ = __webpack_require__(1);
|
|
|
628
628
|
return {};
|
|
629
629
|
}
|
|
630
630
|
},
|
|
631
|
-
request: Function
|
|
631
|
+
request: Function,
|
|
632
|
+
verify: Function
|
|
632
633
|
},
|
|
633
634
|
computed: {
|
|
634
635
|
formProps: function formProps() {
|
|
@@ -719,7 +720,16 @@ var external_lodash_ = __webpack_require__(1);
|
|
|
719
720
|
},
|
|
720
721
|
methods: {
|
|
721
722
|
validate: function validate(callback) {
|
|
722
|
-
|
|
723
|
+
var _callback = null;
|
|
724
|
+
if (callback) {
|
|
725
|
+
_callback = function _callback(flag, message) {
|
|
726
|
+
callback.call(this, flag, message);
|
|
727
|
+
if (typeof this.verify === "function") {
|
|
728
|
+
this.verify.call(this, flag, message);
|
|
729
|
+
}
|
|
730
|
+
};
|
|
731
|
+
}
|
|
732
|
+
return this.$refs.form.validate(_callback);
|
|
723
733
|
},
|
|
724
734
|
validateField: function validateField(props, callback) {
|
|
725
735
|
return this.$refs.form.validateField(props, callback);
|
|
@@ -860,7 +870,7 @@ function normalizeComponent(
|
|
|
860
870
|
|
|
861
871
|
var component = normalizeComponent(
|
|
862
872
|
src_formvue_type_script_lang_js_,
|
|
863
|
-
|
|
873
|
+
formvue_type_template_id_fccc1eea_render,
|
|
864
874
|
staticRenderFns,
|
|
865
875
|
false,
|
|
866
876
|
null,
|
|
@@ -2258,13 +2268,24 @@ var date_picker_default = /*#__PURE__*/__webpack_require__.n(date_picker_);
|
|
|
2258
2268
|
elDatePicker: date_picker_default.a
|
|
2259
2269
|
},
|
|
2260
2270
|
props: {
|
|
2271
|
+
value: {
|
|
2272
|
+
type: [String, Number, Array]
|
|
2273
|
+
},
|
|
2261
2274
|
startProp: String,
|
|
2262
2275
|
endProp: String
|
|
2263
2276
|
},
|
|
2277
|
+
watch: {
|
|
2278
|
+
value: function value(val) {
|
|
2279
|
+
if (["monthrange", "daterange", "datetimerange"].indexOf(this.$attrs.type) > -1 && this.startProp && this.endProp && this._form && !val) {
|
|
2280
|
+
this._form.formModel[this.startProp] = null;
|
|
2281
|
+
this._form.formModel[this.endProp] = null;
|
|
2282
|
+
}
|
|
2283
|
+
}
|
|
2284
|
+
},
|
|
2264
2285
|
computed: {
|
|
2265
2286
|
attrs: function attrs() {
|
|
2266
2287
|
//值处理
|
|
2267
|
-
var _value = this
|
|
2288
|
+
var _value = this.value;
|
|
2268
2289
|
if (["monthrange", "daterange", "datetimerange"].indexOf(this.$attrs.type) > -1 && this.startProp && this.endProp && this._form && !_value) {
|
|
2269
2290
|
var startPropValue = this._form.formModel[this.startProp];
|
|
2270
2291
|
var endPropValue = this._form.formModel[this.endProp];
|
package/lib/components/crud.js
CHANGED
|
@@ -215,7 +215,7 @@ module.exports = require("@panpanzhao/component-ui/lib/utils/formula");
|
|
|
215
215
|
// ESM COMPAT FLAG
|
|
216
216
|
__webpack_require__.r(__webpack_exports__);
|
|
217
217
|
|
|
218
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/form.vue?vue&type=template&id=
|
|
218
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/form.vue?vue&type=template&id=fccc1eea&
|
|
219
219
|
var render = function render() {
|
|
220
220
|
var _vm = this,
|
|
221
221
|
_c = _vm._self._c
|
|
@@ -286,7 +286,7 @@ var staticRenderFns = []
|
|
|
286
286
|
render._withStripped = true
|
|
287
287
|
|
|
288
288
|
|
|
289
|
-
// CONCATENATED MODULE: ./src/components/form/src/form.vue?vue&type=template&id=
|
|
289
|
+
// CONCATENATED MODULE: ./src/components/form/src/form.vue?vue&type=template&id=fccc1eea&
|
|
290
290
|
|
|
291
291
|
// EXTERNAL MODULE: external "element-ui/lib/form"
|
|
292
292
|
var form_ = __webpack_require__(13);
|
|
@@ -362,7 +362,8 @@ var external_lodash_ = __webpack_require__(2);
|
|
|
362
362
|
return {};
|
|
363
363
|
}
|
|
364
364
|
},
|
|
365
|
-
request: Function
|
|
365
|
+
request: Function,
|
|
366
|
+
verify: Function
|
|
366
367
|
},
|
|
367
368
|
computed: {
|
|
368
369
|
formProps: function formProps() {
|
|
@@ -453,7 +454,16 @@ var external_lodash_ = __webpack_require__(2);
|
|
|
453
454
|
},
|
|
454
455
|
methods: {
|
|
455
456
|
validate: function validate(callback) {
|
|
456
|
-
|
|
457
|
+
var _callback = null;
|
|
458
|
+
if (callback) {
|
|
459
|
+
_callback = function _callback(flag, message) {
|
|
460
|
+
callback.call(this, flag, message);
|
|
461
|
+
if (typeof this.verify === "function") {
|
|
462
|
+
this.verify.call(this, flag, message);
|
|
463
|
+
}
|
|
464
|
+
};
|
|
465
|
+
}
|
|
466
|
+
return this.$refs.form.validate(_callback);
|
|
457
467
|
},
|
|
458
468
|
validateField: function validateField(props, callback) {
|
|
459
469
|
return this.$refs.form.validateField(props, callback);
|
|
@@ -215,7 +215,7 @@ module.exports = require("@panpanzhao/component-ui/lib/utils/formula");
|
|
|
215
215
|
// ESM COMPAT FLAG
|
|
216
216
|
__webpack_require__.r(__webpack_exports__);
|
|
217
217
|
|
|
218
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/form.vue?vue&type=template&id=
|
|
218
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/form.vue?vue&type=template&id=fccc1eea&
|
|
219
219
|
var render = function render() {
|
|
220
220
|
var _vm = this,
|
|
221
221
|
_c = _vm._self._c
|
|
@@ -286,7 +286,7 @@ var staticRenderFns = []
|
|
|
286
286
|
render._withStripped = true
|
|
287
287
|
|
|
288
288
|
|
|
289
|
-
// CONCATENATED MODULE: ./src/components/form/src/form.vue?vue&type=template&id=
|
|
289
|
+
// CONCATENATED MODULE: ./src/components/form/src/form.vue?vue&type=template&id=fccc1eea&
|
|
290
290
|
|
|
291
291
|
// EXTERNAL MODULE: external "element-ui/lib/form"
|
|
292
292
|
var form_ = __webpack_require__(13);
|
|
@@ -362,7 +362,8 @@ var external_lodash_ = __webpack_require__(2);
|
|
|
362
362
|
return {};
|
|
363
363
|
}
|
|
364
364
|
},
|
|
365
|
-
request: Function
|
|
365
|
+
request: Function,
|
|
366
|
+
verify: Function
|
|
366
367
|
},
|
|
367
368
|
computed: {
|
|
368
369
|
formProps: function formProps() {
|
|
@@ -453,7 +454,16 @@ var external_lodash_ = __webpack_require__(2);
|
|
|
453
454
|
},
|
|
454
455
|
methods: {
|
|
455
456
|
validate: function validate(callback) {
|
|
456
|
-
|
|
457
|
+
var _callback = null;
|
|
458
|
+
if (callback) {
|
|
459
|
+
_callback = function _callback(flag, message) {
|
|
460
|
+
callback.call(this, flag, message);
|
|
461
|
+
if (typeof this.verify === "function") {
|
|
462
|
+
this.verify.call(this, flag, message);
|
|
463
|
+
}
|
|
464
|
+
};
|
|
465
|
+
}
|
|
466
|
+
return this.$refs.form.validate(_callback);
|
|
457
467
|
},
|
|
458
468
|
validateField: function validateField(props, callback) {
|
|
459
469
|
return this.$refs.form.validateField(props, callback);
|
|
@@ -616,7 +616,7 @@ module.exports = require("@panpanzhao/component-ui/lib/components/drawer");
|
|
|
616
616
|
// ESM COMPAT FLAG
|
|
617
617
|
__webpack_require__.r(__webpack_exports__);
|
|
618
618
|
|
|
619
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/form.vue?vue&type=template&id=
|
|
619
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/form.vue?vue&type=template&id=fccc1eea&
|
|
620
620
|
var render = function render() {
|
|
621
621
|
var _vm = this,
|
|
622
622
|
_c = _vm._self._c
|
|
@@ -687,7 +687,7 @@ var staticRenderFns = []
|
|
|
687
687
|
render._withStripped = true
|
|
688
688
|
|
|
689
689
|
|
|
690
|
-
// CONCATENATED MODULE: ./src/components/form/src/form.vue?vue&type=template&id=
|
|
690
|
+
// CONCATENATED MODULE: ./src/components/form/src/form.vue?vue&type=template&id=fccc1eea&
|
|
691
691
|
|
|
692
692
|
// EXTERNAL MODULE: external "element-ui/lib/form"
|
|
693
693
|
var form_ = __webpack_require__(13);
|
|
@@ -763,7 +763,8 @@ var external_lodash_ = __webpack_require__(2);
|
|
|
763
763
|
return {};
|
|
764
764
|
}
|
|
765
765
|
},
|
|
766
|
-
request: Function
|
|
766
|
+
request: Function,
|
|
767
|
+
verify: Function
|
|
767
768
|
},
|
|
768
769
|
computed: {
|
|
769
770
|
formProps: function formProps() {
|
|
@@ -854,7 +855,16 @@ var external_lodash_ = __webpack_require__(2);
|
|
|
854
855
|
},
|
|
855
856
|
methods: {
|
|
856
857
|
validate: function validate(callback) {
|
|
857
|
-
|
|
858
|
+
var _callback = null;
|
|
859
|
+
if (callback) {
|
|
860
|
+
_callback = function _callback(flag, message) {
|
|
861
|
+
callback.call(this, flag, message);
|
|
862
|
+
if (typeof this.verify === "function") {
|
|
863
|
+
this.verify.call(this, flag, message);
|
|
864
|
+
}
|
|
865
|
+
};
|
|
866
|
+
}
|
|
867
|
+
return this.$refs.form.validate(_callback);
|
|
858
868
|
},
|
|
859
869
|
validateField: function validateField(props, callback) {
|
|
860
870
|
return this.$refs.form.validateField(props, callback);
|
|
@@ -215,7 +215,7 @@ module.exports = require("@panpanzhao/component-ui/lib/utils/formula");
|
|
|
215
215
|
// ESM COMPAT FLAG
|
|
216
216
|
__webpack_require__.r(__webpack_exports__);
|
|
217
217
|
|
|
218
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/form.vue?vue&type=template&id=
|
|
218
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/form.vue?vue&type=template&id=fccc1eea&
|
|
219
219
|
var render = function render() {
|
|
220
220
|
var _vm = this,
|
|
221
221
|
_c = _vm._self._c
|
|
@@ -286,7 +286,7 @@ var staticRenderFns = []
|
|
|
286
286
|
render._withStripped = true
|
|
287
287
|
|
|
288
288
|
|
|
289
|
-
// CONCATENATED MODULE: ./src/components/form/src/form.vue?vue&type=template&id=
|
|
289
|
+
// CONCATENATED MODULE: ./src/components/form/src/form.vue?vue&type=template&id=fccc1eea&
|
|
290
290
|
|
|
291
291
|
// EXTERNAL MODULE: external "element-ui/lib/form"
|
|
292
292
|
var form_ = __webpack_require__(13);
|
|
@@ -362,7 +362,8 @@ var external_lodash_ = __webpack_require__(2);
|
|
|
362
362
|
return {};
|
|
363
363
|
}
|
|
364
364
|
},
|
|
365
|
-
request: Function
|
|
365
|
+
request: Function,
|
|
366
|
+
verify: Function
|
|
366
367
|
},
|
|
367
368
|
computed: {
|
|
368
369
|
formProps: function formProps() {
|
|
@@ -453,7 +454,16 @@ var external_lodash_ = __webpack_require__(2);
|
|
|
453
454
|
},
|
|
454
455
|
methods: {
|
|
455
456
|
validate: function validate(callback) {
|
|
456
|
-
|
|
457
|
+
var _callback = null;
|
|
458
|
+
if (callback) {
|
|
459
|
+
_callback = function _callback(flag, message) {
|
|
460
|
+
callback.call(this, flag, message);
|
|
461
|
+
if (typeof this.verify === "function") {
|
|
462
|
+
this.verify.call(this, flag, message);
|
|
463
|
+
}
|
|
464
|
+
};
|
|
465
|
+
}
|
|
466
|
+
return this.$refs.form.validate(_callback);
|
|
457
467
|
},
|
|
458
468
|
validateField: function validateField(props, callback) {
|
|
459
469
|
return this.$refs.form.validateField(props, callback);
|
|
@@ -1762,13 +1762,24 @@ var date_picker_default = /*#__PURE__*/__webpack_require__.n(date_picker_);
|
|
|
1762
1762
|
elDatePicker: date_picker_default.a
|
|
1763
1763
|
},
|
|
1764
1764
|
props: {
|
|
1765
|
+
value: {
|
|
1766
|
+
type: [String, Number, Array]
|
|
1767
|
+
},
|
|
1765
1768
|
startProp: String,
|
|
1766
1769
|
endProp: String
|
|
1767
1770
|
},
|
|
1771
|
+
watch: {
|
|
1772
|
+
value: function value(val) {
|
|
1773
|
+
if (["monthrange", "daterange", "datetimerange"].indexOf(this.$attrs.type) > -1 && this.startProp && this.endProp && this._form && !val) {
|
|
1774
|
+
this._form.formModel[this.startProp] = null;
|
|
1775
|
+
this._form.formModel[this.endProp] = null;
|
|
1776
|
+
}
|
|
1777
|
+
}
|
|
1778
|
+
},
|
|
1768
1779
|
computed: {
|
|
1769
1780
|
attrs: function attrs() {
|
|
1770
1781
|
//值处理
|
|
1771
|
-
var _value = this
|
|
1782
|
+
var _value = this.value;
|
|
1772
1783
|
if (["monthrange", "daterange", "datetimerange"].indexOf(this.$attrs.type) > -1 && this.startProp && this.endProp && this._form && !_value) {
|
|
1773
1784
|
var startPropValue = this._form.formModel[this.startProp];
|
|
1774
1785
|
var endPropValue = this._form.formModel[this.endProp];
|
package/lib/components/form.js
CHANGED
|
@@ -210,7 +210,7 @@ module.exports = require("@panpanzhao/component-ui/lib/utils/formula");
|
|
|
210
210
|
// ESM COMPAT FLAG
|
|
211
211
|
__webpack_require__.r(__webpack_exports__);
|
|
212
212
|
|
|
213
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/form.vue?vue&type=template&id=
|
|
213
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/form.vue?vue&type=template&id=fccc1eea&
|
|
214
214
|
var render = function render() {
|
|
215
215
|
var _vm = this,
|
|
216
216
|
_c = _vm._self._c
|
|
@@ -281,7 +281,7 @@ var staticRenderFns = []
|
|
|
281
281
|
render._withStripped = true
|
|
282
282
|
|
|
283
283
|
|
|
284
|
-
// CONCATENATED MODULE: ./src/components/form/src/form.vue?vue&type=template&id=
|
|
284
|
+
// CONCATENATED MODULE: ./src/components/form/src/form.vue?vue&type=template&id=fccc1eea&
|
|
285
285
|
|
|
286
286
|
// EXTERNAL MODULE: external "element-ui/lib/form"
|
|
287
287
|
var form_ = __webpack_require__(13);
|
|
@@ -357,7 +357,8 @@ var external_lodash_ = __webpack_require__(2);
|
|
|
357
357
|
return {};
|
|
358
358
|
}
|
|
359
359
|
},
|
|
360
|
-
request: Function
|
|
360
|
+
request: Function,
|
|
361
|
+
verify: Function
|
|
361
362
|
},
|
|
362
363
|
computed: {
|
|
363
364
|
formProps: function formProps() {
|
|
@@ -448,7 +449,16 @@ var external_lodash_ = __webpack_require__(2);
|
|
|
448
449
|
},
|
|
449
450
|
methods: {
|
|
450
451
|
validate: function validate(callback) {
|
|
451
|
-
|
|
452
|
+
var _callback = null;
|
|
453
|
+
if (callback) {
|
|
454
|
+
_callback = function _callback(flag, message) {
|
|
455
|
+
callback.call(this, flag, message);
|
|
456
|
+
if (typeof this.verify === "function") {
|
|
457
|
+
this.verify.call(this, flag, message);
|
|
458
|
+
}
|
|
459
|
+
};
|
|
460
|
+
}
|
|
461
|
+
return this.$refs.form.validate(_callback);
|
|
452
462
|
},
|
|
453
463
|
validateField: function validateField(props, callback) {
|
|
454
464
|
return this.$refs.form.validateField(props, callback);
|
|
@@ -215,7 +215,7 @@ module.exports = require("@panpanzhao/component-ui/lib/utils/formula");
|
|
|
215
215
|
// ESM COMPAT FLAG
|
|
216
216
|
__webpack_require__.r(__webpack_exports__);
|
|
217
217
|
|
|
218
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/form.vue?vue&type=template&id=
|
|
218
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/form.vue?vue&type=template&id=fccc1eea&
|
|
219
219
|
var render = function render() {
|
|
220
220
|
var _vm = this,
|
|
221
221
|
_c = _vm._self._c
|
|
@@ -286,7 +286,7 @@ var staticRenderFns = []
|
|
|
286
286
|
render._withStripped = true
|
|
287
287
|
|
|
288
288
|
|
|
289
|
-
// CONCATENATED MODULE: ./src/components/form/src/form.vue?vue&type=template&id=
|
|
289
|
+
// CONCATENATED MODULE: ./src/components/form/src/form.vue?vue&type=template&id=fccc1eea&
|
|
290
290
|
|
|
291
291
|
// EXTERNAL MODULE: external "element-ui/lib/form"
|
|
292
292
|
var form_ = __webpack_require__(13);
|
|
@@ -362,7 +362,8 @@ var external_lodash_ = __webpack_require__(2);
|
|
|
362
362
|
return {};
|
|
363
363
|
}
|
|
364
364
|
},
|
|
365
|
-
request: Function
|
|
365
|
+
request: Function,
|
|
366
|
+
verify: Function
|
|
366
367
|
},
|
|
367
368
|
computed: {
|
|
368
369
|
formProps: function formProps() {
|
|
@@ -453,7 +454,16 @@ var external_lodash_ = __webpack_require__(2);
|
|
|
453
454
|
},
|
|
454
455
|
methods: {
|
|
455
456
|
validate: function validate(callback) {
|
|
456
|
-
|
|
457
|
+
var _callback = null;
|
|
458
|
+
if (callback) {
|
|
459
|
+
_callback = function _callback(flag, message) {
|
|
460
|
+
callback.call(this, flag, message);
|
|
461
|
+
if (typeof this.verify === "function") {
|
|
462
|
+
this.verify.call(this, flag, message);
|
|
463
|
+
}
|
|
464
|
+
};
|
|
465
|
+
}
|
|
466
|
+
return this.$refs.form.validate(_callback);
|
|
457
467
|
},
|
|
458
468
|
validateField: function validateField(props, callback) {
|
|
459
469
|
return this.$refs.form.validateField(props, callback);
|