@form-create/element-ui 3.2.38 → 3.2.40
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/README.md +2 -0
- package/dist/form-create.esm.js +21 -6
- package/dist/form-create.esm.min.js +2 -2
- package/dist/form-create.js +21 -6
- package/dist/form-create.min.js +2 -2
- package/package.json +5 -5
- package/src/core/manager.js +3 -2
package/dist/form-create.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @form-create/element-ui v3.2.
|
|
2
|
+
* @form-create/element-ui v3.2.40
|
|
3
3
|
* (c) 2018-2026 xaboy
|
|
4
4
|
* Github https://github.com/xaboy/form-create
|
|
5
5
|
* Released under the MIT License.
|
|
@@ -375,7 +375,7 @@
|
|
|
375
375
|
var name = this.type === 'button' ? 'ElCheckboxButton' : 'ElCheckbox';
|
|
376
376
|
var Type = vue.resolveComponent(name);
|
|
377
377
|
return vue.createVNode(vue.resolveComponent("ElCheckboxGroup"), vue.mergeProps(this.$attrs, {
|
|
378
|
-
"modelValue": this.value,
|
|
378
|
+
"modelValue": this.value === null ? undefined : this.value,
|
|
379
379
|
"onUpdate:modelValue": this.onInput,
|
|
380
380
|
"ref": "el"
|
|
381
381
|
}), _objectSpread2({
|
|
@@ -4341,6 +4341,8 @@
|
|
|
4341
4341
|
}
|
|
4342
4342
|
|
|
4343
4343
|
vn = function vn() {
|
|
4344
|
+
var _prop$col;
|
|
4345
|
+
|
|
4344
4346
|
for (var _len = arguments.length, slotValue = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4345
4347
|
slotValue[_key] = arguments[_key];
|
|
4346
4348
|
}
|
|
@@ -4403,7 +4405,7 @@
|
|
|
4403
4405
|
|
|
4404
4406
|
_vn = _this4.renderSides(_vn, ctx);
|
|
4405
4407
|
|
|
4406
|
-
if (!(!ctx.input && is.Undef(prop["native"])) && prop["native"] !== true) {
|
|
4408
|
+
if ((!(!ctx.input && is.Undef(prop["native"])) || ((_prop$col = prop.col) === null || _prop$col === void 0 ? void 0 : _prop$col.show) === true) && prop["native"] !== true) {
|
|
4407
4409
|
_this4.fc.targetFormDriver('updateWrap', ctx);
|
|
4408
4410
|
|
|
4409
4411
|
_vn = _this4.$manager.makeWrap(ctx, _vn);
|
|
@@ -4551,6 +4553,11 @@
|
|
|
4551
4553
|
|
|
4552
4554
|
_this7.onMounted(ctx, vn.el);
|
|
4553
4555
|
},
|
|
4556
|
+
vnodeBeforeUnmount: function vnodeBeforeUnmount() {
|
|
4557
|
+
_this7.$handle.effect(ctx, 'beforeUnmount');
|
|
4558
|
+
|
|
4559
|
+
_this7.$handle.targetHook(ctx, 'beforeUnmount');
|
|
4560
|
+
},
|
|
4554
4561
|
'fc.updateValue': function fcUpdateValue(data) {
|
|
4555
4562
|
_this7.$handle.onUpdateValue(ctx, data);
|
|
4556
4563
|
},
|
|
@@ -5241,6 +5248,7 @@
|
|
|
5241
5248
|
},
|
|
5242
5249
|
initProp: function initProp() {
|
|
5243
5250
|
var _this3 = this,
|
|
5251
|
+
_rule$col,
|
|
5244
5252
|
_this$refRule,
|
|
5245
5253
|
_this$refRule$__$vali;
|
|
5246
5254
|
|
|
@@ -5251,6 +5259,11 @@
|
|
|
5251
5259
|
this.prop = mergeRule({}, [rule].concat(_toConsumableArray(Object.keys(this.payload).map(function (k) {
|
|
5252
5260
|
return _this3.payload[k];
|
|
5253
5261
|
})), [this.computed]));
|
|
5262
|
+
|
|
5263
|
+
if (rule.col && ((_rule$col = rule.col) === null || _rule$col === void 0 ? void 0 : _rule$col.show) !== false) {
|
|
5264
|
+
this.prop.col.show = true;
|
|
5265
|
+
}
|
|
5266
|
+
|
|
5254
5267
|
this.prop.validate = [].concat(_toConsumableArray(((_this$refRule = this.refRule) === null || _this$refRule === void 0 ? void 0 : (_this$refRule$__$vali = _this$refRule.__$validate) === null || _this$refRule$__$vali === void 0 ? void 0 : _this$refRule$__$vali.value) || []), _toConsumableArray(this.prop.validate || []));
|
|
5255
5268
|
},
|
|
5256
5269
|
initNone: function initNone() {
|
|
@@ -9324,7 +9337,7 @@
|
|
|
9324
9337
|
var cls = rule.wrap["class"];
|
|
9325
9338
|
delete rule.wrap["class"];
|
|
9326
9339
|
delete rule.wrap.title;
|
|
9327
|
-
var item = isFalse(rule.wrap.show) ? children : this.$r(mergeProps([rule.wrap, {
|
|
9340
|
+
var item = (is.Undef(rule.wrap.show) ? !ctx.input : isFalse(rule.wrap.show)) ? children : this.$r(mergeProps([rule.wrap, {
|
|
9328
9341
|
props: _objectSpread2(_objectSpread2({
|
|
9329
9342
|
labelWidth: labelWidth === void 0 ? labelWidth : toString(labelWidth),
|
|
9330
9343
|
label: isTitle ? rule.title.title : undefined
|
|
@@ -9430,7 +9443,9 @@
|
|
|
9430
9443
|
return this.$r(_prop, children);
|
|
9431
9444
|
},
|
|
9432
9445
|
makeCol: function makeCol(rule, uni, children) {
|
|
9433
|
-
var col = rule.col;
|
|
9446
|
+
var col = _objectSpread2({}, rule.col);
|
|
9447
|
+
|
|
9448
|
+
delete col.show;
|
|
9434
9449
|
return this.$r({
|
|
9435
9450
|
"class": this.$render.mergeClass(col["class"], 'fc-form-col'),
|
|
9436
9451
|
type: 'col',
|
|
@@ -9901,7 +9916,7 @@
|
|
|
9901
9916
|
function elmFormCreate() {
|
|
9902
9917
|
return FormCreateFactory({
|
|
9903
9918
|
ui: 'element-ui',
|
|
9904
|
-
version: '3.2.
|
|
9919
|
+
version: '3.2.40',
|
|
9905
9920
|
manager: manager,
|
|
9906
9921
|
extendApi: extendApi,
|
|
9907
9922
|
install: install,
|