@form-create/element-ui 3.2.25 → 3.2.26
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 +22 -8
- package/dist/form-create.esm.min.js +2 -2
- package/dist/form-create.js +22 -8
- package/dist/form-create.min.js +2 -2
- package/package.json +4 -4
- package/src/core/manager.js +3 -1
package/dist/form-create.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @form-create/element-ui v3.2.
|
|
2
|
+
* @form-create/element-ui v3.2.26
|
|
3
3
|
* (c) 2018-2025 xaboy
|
|
4
4
|
* Github https://github.com/xaboy/form-create
|
|
5
5
|
* Released under the MIT License.
|
|
@@ -1453,6 +1453,7 @@ var Upload = defineComponent({
|
|
|
1453
1453
|
httpRequest: Function,
|
|
1454
1454
|
modalTitle: String,
|
|
1455
1455
|
listType: String,
|
|
1456
|
+
uploadText: String,
|
|
1456
1457
|
formCreateInject: Object,
|
|
1457
1458
|
modelValue: [Array, String, Object]
|
|
1458
1459
|
},
|
|
@@ -1547,7 +1548,7 @@ var Upload = defineComponent({
|
|
|
1547
1548
|
"type": "primary"
|
|
1548
1549
|
}, {
|
|
1549
1550
|
"default": function _default() {
|
|
1550
|
-
return [_this.formCreateInject.t('clickToUpload') || '点击上传'];
|
|
1551
|
+
return [_this.formCreateInject.t('clickToUpload') || _this.uploadText || '点击上传'];
|
|
1551
1552
|
}
|
|
1552
1553
|
}))];
|
|
1553
1554
|
}
|
|
@@ -2758,6 +2759,7 @@ function $FormCreate(FormCreate, components, directives) {
|
|
|
2758
2759
|
index: [String, Number],
|
|
2759
2760
|
api: Object,
|
|
2760
2761
|
locale: [String, Object],
|
|
2762
|
+
t: Function,
|
|
2761
2763
|
name: String,
|
|
2762
2764
|
subForm: {
|
|
2763
2765
|
type: Boolean,
|
|
@@ -7476,8 +7478,8 @@ var componentValidate = {
|
|
|
7476
7478
|
}
|
|
7477
7479
|
|
|
7478
7480
|
var method = options.method;
|
|
7479
|
-
|
|
7480
|
-
|
|
7481
|
+
|
|
7482
|
+
var validate = _objectSpread2(_objectSpread2({}, options), {}, {
|
|
7481
7483
|
validator: function validator() {
|
|
7482
7484
|
var ctx = byCtx(rule);
|
|
7483
7485
|
|
|
@@ -7493,7 +7495,10 @@ var componentValidate = {
|
|
|
7493
7495
|
}]));
|
|
7494
7496
|
}
|
|
7495
7497
|
}
|
|
7496
|
-
})
|
|
7498
|
+
});
|
|
7499
|
+
|
|
7500
|
+
delete validate.method;
|
|
7501
|
+
attr.getProp().validate = [validate];
|
|
7497
7502
|
}
|
|
7498
7503
|
},
|
|
7499
7504
|
watch: function watch() {
|
|
@@ -8333,10 +8338,17 @@ function FormCreateFactory(config) {
|
|
|
8333
8338
|
return 'zh-cn';
|
|
8334
8339
|
},
|
|
8335
8340
|
globalLanguageDriver: function globalLanguageDriver(id) {
|
|
8341
|
+
var t = this.vm.setupState.top.props.t;
|
|
8336
8342
|
var locale = this.vm.setupState.top.props.locale;
|
|
8337
8343
|
var value = undefined;
|
|
8338
8344
|
|
|
8339
|
-
if (
|
|
8345
|
+
if (t) {
|
|
8346
|
+
value = invoke(function () {
|
|
8347
|
+
return t(id);
|
|
8348
|
+
});
|
|
8349
|
+
}
|
|
8350
|
+
|
|
8351
|
+
if (value == null && locale && _typeof(locale) === 'object') {
|
|
8340
8352
|
value = deepGet(locale, id);
|
|
8341
8353
|
}
|
|
8342
8354
|
|
|
@@ -9066,6 +9078,8 @@ var manager = {
|
|
|
9066
9078
|
var _this$rule$props = this.rule.props,
|
|
9067
9079
|
inline = _this$rule$props.inline,
|
|
9068
9080
|
_col = _this$rule$props.col;
|
|
9081
|
+
var cls = rule.wrap["class"];
|
|
9082
|
+
delete rule.wrap["class"];
|
|
9069
9083
|
delete rule.wrap.title;
|
|
9070
9084
|
var item = isFalse(rule.wrap.show) ? children : this.$r(mergeProps([rule.wrap, {
|
|
9071
9085
|
props: _objectSpread2(_objectSpread2({
|
|
@@ -9075,7 +9089,7 @@ var manager = {
|
|
|
9075
9089
|
prop: ctx.id,
|
|
9076
9090
|
rules: ctx.injectValidate()
|
|
9077
9091
|
}),
|
|
9078
|
-
"class": this.$render.mergeClass(rule.className, 'fc-form-item'),
|
|
9092
|
+
"class": this.$render.mergeClass(cls || rule.className, 'fc-form-item'),
|
|
9079
9093
|
key: "".concat(uni, "fi"),
|
|
9080
9094
|
ref: ctx.wrapRef,
|
|
9081
9095
|
type: 'formItem'
|
|
@@ -9619,7 +9633,7 @@ function install(FormCreate) {
|
|
|
9619
9633
|
function elmFormCreate() {
|
|
9620
9634
|
return FormCreateFactory({
|
|
9621
9635
|
ui: 'element-ui',
|
|
9622
|
-
version: '3.2.
|
|
9636
|
+
version: '3.2.26',
|
|
9623
9637
|
manager: manager,
|
|
9624
9638
|
extendApi: extendApi,
|
|
9625
9639
|
install: install,
|