@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.esm.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
|
*/
|
|
@@ -1762,7 +1762,7 @@ var Group = defineComponent({
|
|
|
1762
1762
|
},
|
|
1763
1763
|
expandRule: function expandRule(n) {
|
|
1764
1764
|
for (var i = 0; i < n; i++) {
|
|
1765
|
-
this.
|
|
1765
|
+
this.addRule(i);
|
|
1766
1766
|
}
|
|
1767
1767
|
}
|
|
1768
1768
|
},
|
|
@@ -3228,7 +3228,7 @@ function useRender$1(Render) {
|
|
|
3228
3228
|
_vn = _this4.display(_vn);
|
|
3229
3229
|
}
|
|
3230
3230
|
|
|
3231
|
-
cacheFlag && _this4.setCache(ctx, function () {
|
|
3231
|
+
cacheFlag && !Object.keys(children).length && _this4.setCache(ctx, function () {
|
|
3232
3232
|
return _vn;
|
|
3233
3233
|
}, parent);
|
|
3234
3234
|
return _vn;
|
|
@@ -4827,7 +4827,7 @@ function useContext(Handler) {
|
|
|
4827
4827
|
|
|
4828
4828
|
this.deferSyncValue(function () {
|
|
4829
4829
|
o && o.forEach(function (child) {
|
|
4830
|
-
if ((n || []).indexOf(child) === -1 && child && !is.String(child) && child.__fc__ && child.__fc__.parent === ctx) {
|
|
4830
|
+
if ((n || []).indexOf(child) === -1 && child && !is.String(child) && child.__fc__ && child.__fc__.parent === ctx && child.__fc__.root === o) {
|
|
4831
4831
|
_this2.rmCtx(child.__fc__);
|
|
4832
4832
|
}
|
|
4833
4833
|
});
|
|
@@ -5376,6 +5376,23 @@ extend(Manager.prototype, {
|
|
|
5376
5376
|
form: function form() {
|
|
5377
5377
|
return this.vm.refs[this.ref];
|
|
5378
5378
|
},
|
|
5379
|
+
getSlot: function getSlot(name) {
|
|
5380
|
+
var _fn = function _fn(vm) {
|
|
5381
|
+
if (vm) {
|
|
5382
|
+
var slot = vm.slots[name];
|
|
5383
|
+
|
|
5384
|
+
if (slot) {
|
|
5385
|
+
return slot;
|
|
5386
|
+
}
|
|
5387
|
+
|
|
5388
|
+
return _fn(vm.setupState.parent);
|
|
5389
|
+
}
|
|
5390
|
+
|
|
5391
|
+
return undefined;
|
|
5392
|
+
};
|
|
5393
|
+
|
|
5394
|
+
return _fn(this.vm);
|
|
5395
|
+
},
|
|
5379
5396
|
mergeOptions: function mergeOptions(args, opt) {
|
|
5380
5397
|
var _this2 = this;
|
|
5381
5398
|
|
|
@@ -5568,8 +5585,8 @@ var fetch = function fetch(fc) {
|
|
|
5568
5585
|
}
|
|
5569
5586
|
});
|
|
5570
5587
|
|
|
5571
|
-
fc.options.beforeFetch && invoke(function () {
|
|
5572
|
-
return fc.options.beforeFetch(config, {
|
|
5588
|
+
fc.$handle.options.beforeFetch && invoke(function () {
|
|
5589
|
+
return fc.$handle.options.beforeFetch(config, {
|
|
5573
5590
|
rule: rule,
|
|
5574
5591
|
api: api
|
|
5575
5592
|
});
|
|
@@ -6422,7 +6439,7 @@ var manager = {
|
|
|
6422
6439
|
}
|
|
6423
6440
|
}, isTitle ? {
|
|
6424
6441
|
label: function label() {
|
|
6425
|
-
return _this3.makeInfo(rule, uni);
|
|
6442
|
+
return _this3.makeInfo(rule, uni, ctx);
|
|
6426
6443
|
}
|
|
6427
6444
|
} : {}));
|
|
6428
6445
|
return inline === true || isFalse(_col) || isFalse(col.show) ? item : this.makeCol(rule, uni, [item]);
|
|
@@ -6432,7 +6449,7 @@ var manager = {
|
|
|
6432
6449
|
var title = rule.title;
|
|
6433
6450
|
return !(!title.title && !title["native"] || isFalse(title.show));
|
|
6434
6451
|
},
|
|
6435
|
-
makeInfo: function makeInfo(rule, uni) {
|
|
6452
|
+
makeInfo: function makeInfo(rule, uni, ctx) {
|
|
6436
6453
|
var _this4 = this;
|
|
6437
6454
|
|
|
6438
6455
|
var titleProp = _objectSpread2({}, rule.title);
|
|
@@ -6441,7 +6458,12 @@ var manager = {
|
|
|
6441
6458
|
|
|
6442
6459
|
var isTip = isTooltip(infoProp);
|
|
6443
6460
|
var form = this.options.form;
|
|
6444
|
-
var
|
|
6461
|
+
var titleSlot = this.getSlot('title');
|
|
6462
|
+
var children = [titleSlot ? titleSlot({
|
|
6463
|
+
title: titleProp.title || '',
|
|
6464
|
+
rule: ctx.rule,
|
|
6465
|
+
options: this.options
|
|
6466
|
+
}) : (titleProp.title || '') + (form.labelSuffix || form['label-suffix'] || '')];
|
|
6445
6467
|
|
|
6446
6468
|
if (!isFalse(infoProp.show) && (infoProp.info || infoProp["native"]) && !isFalse(infoProp.icon)) {
|
|
6447
6469
|
var prop = {
|
|
@@ -6920,7 +6942,7 @@ function install(FormCreate) {
|
|
|
6920
6942
|
function elmFormCreate() {
|
|
6921
6943
|
return FormCreateFactory({
|
|
6922
6944
|
ui: 'element-ui',
|
|
6923
|
-
version: '3.1.
|
|
6945
|
+
version: '3.1.28',
|
|
6924
6946
|
manager: manager,
|
|
6925
6947
|
extendApi: extendApi,
|
|
6926
6948
|
install: install,
|