@form-create/element-ui 3.1.26 → 3.1.28
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/dist/form-create.esm.js +33 -11
- package/dist/form-create.esm.min.js +3 -3
- package/dist/form-create.js +33 -11
- package/dist/form-create.min.js +3 -3
- package/package.json +4 -4
- package/src/core/manager.js +4 -3
package/dist/form-create.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @form-create/element-ui v3.1.
|
|
3
|
-
* (c) 2018-
|
|
2
|
+
* @form-create/element-ui v3.1.28
|
|
3
|
+
* (c) 2018-2024 xaboy
|
|
4
4
|
* Github https://github.com/xaboy/form-create
|
|
5
5
|
* Released under the MIT License.
|
|
6
6
|
*/
|
|
@@ -1766,7 +1766,7 @@
|
|
|
1766
1766
|
},
|
|
1767
1767
|
expandRule: function expandRule(n) {
|
|
1768
1768
|
for (var i = 0; i < n; i++) {
|
|
1769
|
-
this.
|
|
1769
|
+
this.addRule(i);
|
|
1770
1770
|
}
|
|
1771
1771
|
}
|
|
1772
1772
|
},
|
|
@@ -3232,7 +3232,7 @@
|
|
|
3232
3232
|
_vn = _this4.display(_vn);
|
|
3233
3233
|
}
|
|
3234
3234
|
|
|
3235
|
-
cacheFlag && _this4.setCache(ctx, function () {
|
|
3235
|
+
cacheFlag && !Object.keys(children).length && _this4.setCache(ctx, function () {
|
|
3236
3236
|
return _vn;
|
|
3237
3237
|
}, parent);
|
|
3238
3238
|
return _vn;
|
|
@@ -4831,7 +4831,7 @@
|
|
|
4831
4831
|
|
|
4832
4832
|
this.deferSyncValue(function () {
|
|
4833
4833
|
o && o.forEach(function (child) {
|
|
4834
|
-
if ((n || []).indexOf(child) === -1 && child && !is.String(child) && child.__fc__ && child.__fc__.parent === ctx) {
|
|
4834
|
+
if ((n || []).indexOf(child) === -1 && child && !is.String(child) && child.__fc__ && child.__fc__.parent === ctx && child.__fc__.root === o) {
|
|
4835
4835
|
_this2.rmCtx(child.__fc__);
|
|
4836
4836
|
}
|
|
4837
4837
|
});
|
|
@@ -5380,6 +5380,23 @@
|
|
|
5380
5380
|
form: function form() {
|
|
5381
5381
|
return this.vm.refs[this.ref];
|
|
5382
5382
|
},
|
|
5383
|
+
getSlot: function getSlot(name) {
|
|
5384
|
+
var _fn = function _fn(vm) {
|
|
5385
|
+
if (vm) {
|
|
5386
|
+
var slot = vm.slots[name];
|
|
5387
|
+
|
|
5388
|
+
if (slot) {
|
|
5389
|
+
return slot;
|
|
5390
|
+
}
|
|
5391
|
+
|
|
5392
|
+
return _fn(vm.setupState.parent);
|
|
5393
|
+
}
|
|
5394
|
+
|
|
5395
|
+
return undefined;
|
|
5396
|
+
};
|
|
5397
|
+
|
|
5398
|
+
return _fn(this.vm);
|
|
5399
|
+
},
|
|
5383
5400
|
mergeOptions: function mergeOptions(args, opt) {
|
|
5384
5401
|
var _this2 = this;
|
|
5385
5402
|
|
|
@@ -5572,8 +5589,8 @@
|
|
|
5572
5589
|
}
|
|
5573
5590
|
});
|
|
5574
5591
|
|
|
5575
|
-
fc.options.beforeFetch && invoke(function () {
|
|
5576
|
-
return fc.options.beforeFetch(config, {
|
|
5592
|
+
fc.$handle.options.beforeFetch && invoke(function () {
|
|
5593
|
+
return fc.$handle.options.beforeFetch(config, {
|
|
5577
5594
|
rule: rule,
|
|
5578
5595
|
api: api
|
|
5579
5596
|
});
|
|
@@ -6426,7 +6443,7 @@
|
|
|
6426
6443
|
}
|
|
6427
6444
|
}, isTitle ? {
|
|
6428
6445
|
label: function label() {
|
|
6429
|
-
return _this3.makeInfo(rule, uni);
|
|
6446
|
+
return _this3.makeInfo(rule, uni, ctx);
|
|
6430
6447
|
}
|
|
6431
6448
|
} : {}));
|
|
6432
6449
|
return inline === true || isFalse(_col) || isFalse(col.show) ? item : this.makeCol(rule, uni, [item]);
|
|
@@ -6436,7 +6453,7 @@
|
|
|
6436
6453
|
var title = rule.title;
|
|
6437
6454
|
return !(!title.title && !title["native"] || isFalse(title.show));
|
|
6438
6455
|
},
|
|
6439
|
-
makeInfo: function makeInfo(rule, uni) {
|
|
6456
|
+
makeInfo: function makeInfo(rule, uni, ctx) {
|
|
6440
6457
|
var _this4 = this;
|
|
6441
6458
|
|
|
6442
6459
|
var titleProp = _objectSpread2({}, rule.title);
|
|
@@ -6445,7 +6462,12 @@
|
|
|
6445
6462
|
|
|
6446
6463
|
var isTip = isTooltip(infoProp);
|
|
6447
6464
|
var form = this.options.form;
|
|
6448
|
-
var
|
|
6465
|
+
var titleSlot = this.getSlot('title');
|
|
6466
|
+
var children = [titleSlot ? titleSlot({
|
|
6467
|
+
title: titleProp.title || '',
|
|
6468
|
+
rule: ctx.rule,
|
|
6469
|
+
options: this.options
|
|
6470
|
+
}) : (titleProp.title || '') + (form.labelSuffix || form['label-suffix'] || '')];
|
|
6449
6471
|
|
|
6450
6472
|
if (!isFalse(infoProp.show) && (infoProp.info || infoProp["native"]) && !isFalse(infoProp.icon)) {
|
|
6451
6473
|
var prop = {
|
|
@@ -6924,7 +6946,7 @@
|
|
|
6924
6946
|
function elmFormCreate() {
|
|
6925
6947
|
return FormCreateFactory({
|
|
6926
6948
|
ui: 'element-ui',
|
|
6927
|
-
version: '3.1.
|
|
6949
|
+
version: '3.1.28',
|
|
6928
6950
|
manager: manager,
|
|
6929
6951
|
extendApi: extendApi,
|
|
6930
6952
|
install: install,
|