mali-ui-plus 1.1.44 → 1.1.45
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/mali-ui-plus.common.js +65 -46
- package/lib/mali-ui-plus.umd.js +65 -46
- package/lib/mali-ui-plus.umd.min.js +1 -1
- package/package.json +1 -1
|
@@ -40616,24 +40616,20 @@ const MlInputvue_type_script_lang_ts_setup_true_hoisted_1 = {
|
|
|
40616
40616
|
emit
|
|
40617
40617
|
}) {
|
|
40618
40618
|
const props = __props;
|
|
40619
|
-
const $xeform = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeform', null);
|
|
40620
|
-
const $xeformiteminfo = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeformiteminfo', null);
|
|
40621
40619
|
const mlForm = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('mlForm', null);
|
|
40620
|
+
const itemConfig = mlForm ? mlForm.getFormItemConfig() : null;
|
|
40622
40621
|
const inpVal = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)('');
|
|
40623
40622
|
const isReadonly = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
40624
|
-
if (props.readonly
|
|
40625
|
-
return
|
|
40623
|
+
if (xe_utils_default().isBoolean(props.readonly)) {
|
|
40624
|
+
return props.readonly;
|
|
40626
40625
|
}
|
|
40627
|
-
return props.readonly;
|
|
40626
|
+
return mlForm ? mlForm.props.readonly : false;
|
|
40628
40627
|
});
|
|
40629
40628
|
const changeEvent = evnt => {
|
|
40630
40629
|
const value = inpVal.value || '';
|
|
40631
40630
|
// 自动更新校验状态
|
|
40632
|
-
if (
|
|
40633
|
-
|
|
40634
|
-
if (mlForm) {
|
|
40635
|
-
mlForm.changeItemValue($xeformiteminfo.itemConfig.field);
|
|
40636
|
-
}
|
|
40631
|
+
if (mlForm && itemConfig) {
|
|
40632
|
+
mlForm.triggerItemChangeEvent(new Event('change'), itemConfig.field, value);
|
|
40637
40633
|
}
|
|
40638
40634
|
emit('update:modelValue', value);
|
|
40639
40635
|
emit('change', {});
|
|
@@ -41025,10 +41021,10 @@ const MlTextarea_exports_ = MlTextareavue_type_script_lang_ts_setup_true;
|
|
|
41025
41021
|
return props.modelValue;
|
|
41026
41022
|
});
|
|
41027
41023
|
const isReadonly = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
41028
|
-
if (props.readonly
|
|
41029
|
-
return
|
|
41024
|
+
if (xe_utils_default().isBoolean(props.readonly)) {
|
|
41025
|
+
return props.readonly;
|
|
41030
41026
|
}
|
|
41031
|
-
return props.readonly;
|
|
41027
|
+
return mlForm ? mlForm.props.readonly : false;
|
|
41032
41028
|
});
|
|
41033
41029
|
const optOptions = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
41034
41030
|
return Object.assign({}, props.optionProps);
|
|
@@ -41994,17 +41990,16 @@ const MlAmountInputvue_type_script_lang_ts_setup_true_hoisted_2 = {
|
|
|
41994
41990
|
emit
|
|
41995
41991
|
}) {
|
|
41996
41992
|
const props = __props;
|
|
41997
|
-
const $xeform = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeform', null);
|
|
41998
|
-
const $xeformiteminfo = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeformiteminfo', null);
|
|
41999
41993
|
const mlForm = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('mlForm', null);
|
|
41994
|
+
const itemConfig = mlForm ? mlForm.getFormItemConfig() : null;
|
|
42000
41995
|
const showTip = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(false);
|
|
42001
41996
|
const inpVal = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)('');
|
|
42002
41997
|
let isModelUpdate = false;
|
|
42003
41998
|
const isReadonly = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
42004
|
-
if (props.readonly
|
|
42005
|
-
return
|
|
41999
|
+
if (xe_utils_default().isBoolean(props.readonly)) {
|
|
42000
|
+
return props.readonly;
|
|
42006
42001
|
}
|
|
42007
|
-
return props.readonly;
|
|
42002
|
+
return mlForm ? mlForm.props.readonly : false;
|
|
42008
42003
|
});
|
|
42009
42004
|
const amountUnit = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
42010
42005
|
if (props.unit && xe_utils_default().isString(props.unit)) {
|
|
@@ -42110,10 +42105,8 @@ const MlAmountInputvue_type_script_lang_ts_setup_true_hoisted_2 = {
|
|
|
42110
42105
|
}
|
|
42111
42106
|
}
|
|
42112
42107
|
// 自动更新校验状态
|
|
42113
|
-
if (
|
|
42114
|
-
|
|
42115
|
-
mlForm.changeItemValue($xeformiteminfo.itemConfig.field);
|
|
42116
|
-
}
|
|
42108
|
+
if (mlForm && itemConfig) {
|
|
42109
|
+
mlForm.triggerItemChangeEvent(new Event('change'), itemConfig.field, value);
|
|
42117
42110
|
}
|
|
42118
42111
|
isModelUpdate = props.modelValue !== value;
|
|
42119
42112
|
emit('update:modelValue', value);
|
|
@@ -42299,15 +42292,14 @@ const MlNumberInputvue_type_script_lang_ts_setup_true_hoisted_2 = {
|
|
|
42299
42292
|
emit
|
|
42300
42293
|
}) {
|
|
42301
42294
|
const props = __props;
|
|
42302
|
-
const $xeform = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeform', null);
|
|
42303
|
-
const $xeformiteminfo = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeformiteminfo', null);
|
|
42304
42295
|
const mlForm = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('mlForm', null);
|
|
42296
|
+
const itemConfig = mlForm ? mlForm.getFormItemConfig() : null;
|
|
42305
42297
|
const inpVal = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)('');
|
|
42306
42298
|
const isReadonly = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
42307
|
-
if (props.readonly
|
|
42308
|
-
return
|
|
42299
|
+
if (xe_utils_default().isBoolean(props.readonly)) {
|
|
42300
|
+
return props.readonly;
|
|
42309
42301
|
}
|
|
42310
|
-
return props.readonly;
|
|
42302
|
+
return mlForm ? mlForm.props.readonly : false;
|
|
42311
42303
|
});
|
|
42312
42304
|
const minNum = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
42313
42305
|
if (xe_utils_default().isNumber(props.min) || props.min) {
|
|
@@ -42374,11 +42366,8 @@ const MlNumberInputvue_type_script_lang_ts_setup_true_hoisted_2 = {
|
|
|
42374
42366
|
}
|
|
42375
42367
|
}
|
|
42376
42368
|
// 自动更新校验状态
|
|
42377
|
-
if (
|
|
42378
|
-
|
|
42379
|
-
if (mlForm) {
|
|
42380
|
-
mlForm.changeItemValue($xeformiteminfo.itemConfig.field);
|
|
42381
|
-
}
|
|
42369
|
+
if (mlForm && itemConfig) {
|
|
42370
|
+
mlForm.triggerItemChangeEvent(new Event('change'), itemConfig.field, value);
|
|
42382
42371
|
}
|
|
42383
42372
|
emit('update:modelValue', value);
|
|
42384
42373
|
emit('change', {
|
|
@@ -54288,9 +54277,10 @@ const MlProvincesPickervue_type_script_lang_ts_setup_true_hoisted_1 = {
|
|
|
54288
54277
|
value: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(optValueField)
|
|
54289
54278
|
},
|
|
54290
54279
|
placeholder: __props.placeholder,
|
|
54280
|
+
clearable: __props.clearable,
|
|
54291
54281
|
class: "ml-provinces-picker",
|
|
54292
54282
|
onChange: changeEvent
|
|
54293
|
-
}, null, 8, ["modelValue", "options", "optionProps", "placeholder"]));
|
|
54283
|
+
}, null, 8, ["modelValue", "options", "optionProps", "placeholder", "clearable"]));
|
|
54294
54284
|
};
|
|
54295
54285
|
}
|
|
54296
54286
|
}));
|
|
@@ -54595,11 +54585,23 @@ const MaliNotify = {
|
|
|
54595
54585
|
const collapseEvent = params => {
|
|
54596
54586
|
emit('collapse', params);
|
|
54597
54587
|
};
|
|
54588
|
+
const triggerItemChangeEvent = (evnt, field, value) => {
|
|
54589
|
+
if (xForm.value) {
|
|
54590
|
+
xForm.value.triggerItemEvent(evnt || new Event('change'), field, value);
|
|
54591
|
+
if (props.reserveStorage) {
|
|
54592
|
+
updateStoreData(field);
|
|
54593
|
+
}
|
|
54594
|
+
}
|
|
54595
|
+
};
|
|
54598
54596
|
const changeItemValue = field => {
|
|
54599
54597
|
if (props.reserveStorage) {
|
|
54600
54598
|
updateStoreData(field);
|
|
54601
54599
|
}
|
|
54602
54600
|
};
|
|
54601
|
+
const getFormItemConfig = () => {
|
|
54602
|
+
const xeformiteminfo = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeformiteminfo', null);
|
|
54603
|
+
return xeformiteminfo ? xeformiteminfo.itemConfig : null;
|
|
54604
|
+
};
|
|
54603
54605
|
const mlForm = {
|
|
54604
54606
|
props,
|
|
54605
54607
|
reset,
|
|
@@ -54609,7 +54611,9 @@ const MaliNotify = {
|
|
|
54609
54611
|
clearValidate,
|
|
54610
54612
|
getJsonData,
|
|
54611
54613
|
clearStore,
|
|
54612
|
-
|
|
54614
|
+
getFormItemConfig,
|
|
54615
|
+
changeItemValue,
|
|
54616
|
+
triggerItemChangeEvent
|
|
54613
54617
|
};
|
|
54614
54618
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('mlForm', mlForm);
|
|
54615
54619
|
expose(mlForm);
|
|
@@ -57492,9 +57496,8 @@ const _hoisted_21 = ["src"];
|
|
|
57492
57496
|
emit
|
|
57493
57497
|
}) {
|
|
57494
57498
|
const props = __props;
|
|
57495
|
-
const $xeform = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeform', null);
|
|
57496
|
-
const $xeformiteminfo = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeformiteminfo', null);
|
|
57497
57499
|
const mlForm = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('mlForm', null);
|
|
57500
|
+
const itemConfig = mlForm ? mlForm.getFormItemConfig() : null;
|
|
57498
57501
|
const loading = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(false);
|
|
57499
57502
|
const downloadLoading = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(false);
|
|
57500
57503
|
const previewVisible = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(false);
|
|
@@ -57531,10 +57534,10 @@ const _hoisted_21 = ["src"];
|
|
|
57531
57534
|
return fileList.value.length >= 1;
|
|
57532
57535
|
});
|
|
57533
57536
|
const isReadonly = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
57534
|
-
if (props.readonly
|
|
57535
|
-
return
|
|
57537
|
+
if (xe_utils_default().isBoolean(props.readonly)) {
|
|
57538
|
+
return props.readonly;
|
|
57536
57539
|
}
|
|
57537
|
-
return props.readonly;
|
|
57540
|
+
return mlForm ? mlForm.props.readonly : false;
|
|
57538
57541
|
});
|
|
57539
57542
|
const isDisabled = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
57540
57543
|
return props.disabled;
|
|
@@ -57623,11 +57626,8 @@ const _hoisted_21 = ["src"];
|
|
|
57623
57626
|
value = rest[0] || null;
|
|
57624
57627
|
}
|
|
57625
57628
|
// 自动更新校验状态
|
|
57626
|
-
if (
|
|
57627
|
-
|
|
57628
|
-
if (mlForm) {
|
|
57629
|
-
mlForm.changeItemValue($xeformiteminfo.itemConfig.field);
|
|
57630
|
-
}
|
|
57629
|
+
if (mlForm && itemConfig) {
|
|
57630
|
+
mlForm.triggerItemChangeEvent(new Event('change'), itemConfig.field, value);
|
|
57631
57631
|
}
|
|
57632
57632
|
emit('update:modelValue', value);
|
|
57633
57633
|
emit('change', {
|
|
@@ -60480,7 +60480,7 @@ VXETable.renderer.mixin({
|
|
|
60480
60480
|
}
|
|
60481
60481
|
},
|
|
60482
60482
|
/**
|
|
60483
|
-
*
|
|
60483
|
+
* 查看-多行文本
|
|
60484
60484
|
*/
|
|
60485
60485
|
MlTextarea: {
|
|
60486
60486
|
renderDefault(renderOpts, params) {
|
|
@@ -60497,6 +60497,14 @@ VXETable.renderer.mixin({
|
|
|
60497
60497
|
}, props), null);
|
|
60498
60498
|
}
|
|
60499
60499
|
},
|
|
60500
|
+
/**
|
|
60501
|
+
* 查看-富文本
|
|
60502
|
+
*/
|
|
60503
|
+
MlEditor: {
|
|
60504
|
+
renderDefault() {
|
|
60505
|
+
return '不支持该控件';
|
|
60506
|
+
}
|
|
60507
|
+
},
|
|
60500
60508
|
/**
|
|
60501
60509
|
* 省市区选择
|
|
60502
60510
|
*/
|
|
@@ -60590,6 +60598,17 @@ VXETable.renderer.mixin({
|
|
|
60590
60598
|
}), null);
|
|
60591
60599
|
}
|
|
60592
60600
|
},
|
|
60601
|
+
/**
|
|
60602
|
+
* 查看-富文本
|
|
60603
|
+
*/
|
|
60604
|
+
MlEditor: {
|
|
60605
|
+
renderEdit() {
|
|
60606
|
+
return '不支持该控件';
|
|
60607
|
+
},
|
|
60608
|
+
renderCell() {
|
|
60609
|
+
return '不支持该控件';
|
|
60610
|
+
}
|
|
60611
|
+
},
|
|
60593
60612
|
/**
|
|
60594
60613
|
* 编辑-金额输入
|
|
60595
60614
|
*/
|
|
@@ -62587,7 +62606,7 @@ function index_config(options) {
|
|
|
62587
62606
|
return config_0;
|
|
62588
62607
|
}
|
|
62589
62608
|
const MaliUI = {
|
|
62590
|
-
version: "1.1.
|
|
62609
|
+
version: "1.1.44",
|
|
62591
62610
|
install: index_install,
|
|
62592
62611
|
config: index_config,
|
|
62593
62612
|
renderer: {
|
package/lib/mali-ui-plus.umd.js
CHANGED
|
@@ -40626,24 +40626,20 @@ const MlInputvue_type_script_lang_ts_setup_true_hoisted_1 = {
|
|
|
40626
40626
|
emit
|
|
40627
40627
|
}) {
|
|
40628
40628
|
const props = __props;
|
|
40629
|
-
const $xeform = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeform', null);
|
|
40630
|
-
const $xeformiteminfo = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeformiteminfo', null);
|
|
40631
40629
|
const mlForm = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('mlForm', null);
|
|
40630
|
+
const itemConfig = mlForm ? mlForm.getFormItemConfig() : null;
|
|
40632
40631
|
const inpVal = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)('');
|
|
40633
40632
|
const isReadonly = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
40634
|
-
if (props.readonly
|
|
40635
|
-
return
|
|
40633
|
+
if (xe_utils_default().isBoolean(props.readonly)) {
|
|
40634
|
+
return props.readonly;
|
|
40636
40635
|
}
|
|
40637
|
-
return props.readonly;
|
|
40636
|
+
return mlForm ? mlForm.props.readonly : false;
|
|
40638
40637
|
});
|
|
40639
40638
|
const changeEvent = evnt => {
|
|
40640
40639
|
const value = inpVal.value || '';
|
|
40641
40640
|
// 自动更新校验状态
|
|
40642
|
-
if (
|
|
40643
|
-
|
|
40644
|
-
if (mlForm) {
|
|
40645
|
-
mlForm.changeItemValue($xeformiteminfo.itemConfig.field);
|
|
40646
|
-
}
|
|
40641
|
+
if (mlForm && itemConfig) {
|
|
40642
|
+
mlForm.triggerItemChangeEvent(new Event('change'), itemConfig.field, value);
|
|
40647
40643
|
}
|
|
40648
40644
|
emit('update:modelValue', value);
|
|
40649
40645
|
emit('change', {});
|
|
@@ -41035,10 +41031,10 @@ const MlTextarea_exports_ = MlTextareavue_type_script_lang_ts_setup_true;
|
|
|
41035
41031
|
return props.modelValue;
|
|
41036
41032
|
});
|
|
41037
41033
|
const isReadonly = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
41038
|
-
if (props.readonly
|
|
41039
|
-
return
|
|
41034
|
+
if (xe_utils_default().isBoolean(props.readonly)) {
|
|
41035
|
+
return props.readonly;
|
|
41040
41036
|
}
|
|
41041
|
-
return props.readonly;
|
|
41037
|
+
return mlForm ? mlForm.props.readonly : false;
|
|
41042
41038
|
});
|
|
41043
41039
|
const optOptions = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
41044
41040
|
return Object.assign({}, props.optionProps);
|
|
@@ -42004,17 +42000,16 @@ const MlAmountInputvue_type_script_lang_ts_setup_true_hoisted_2 = {
|
|
|
42004
42000
|
emit
|
|
42005
42001
|
}) {
|
|
42006
42002
|
const props = __props;
|
|
42007
|
-
const $xeform = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeform', null);
|
|
42008
|
-
const $xeformiteminfo = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeformiteminfo', null);
|
|
42009
42003
|
const mlForm = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('mlForm', null);
|
|
42004
|
+
const itemConfig = mlForm ? mlForm.getFormItemConfig() : null;
|
|
42010
42005
|
const showTip = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(false);
|
|
42011
42006
|
const inpVal = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)('');
|
|
42012
42007
|
let isModelUpdate = false;
|
|
42013
42008
|
const isReadonly = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
42014
|
-
if (props.readonly
|
|
42015
|
-
return
|
|
42009
|
+
if (xe_utils_default().isBoolean(props.readonly)) {
|
|
42010
|
+
return props.readonly;
|
|
42016
42011
|
}
|
|
42017
|
-
return props.readonly;
|
|
42012
|
+
return mlForm ? mlForm.props.readonly : false;
|
|
42018
42013
|
});
|
|
42019
42014
|
const amountUnit = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
42020
42015
|
if (props.unit && xe_utils_default().isString(props.unit)) {
|
|
@@ -42120,10 +42115,8 @@ const MlAmountInputvue_type_script_lang_ts_setup_true_hoisted_2 = {
|
|
|
42120
42115
|
}
|
|
42121
42116
|
}
|
|
42122
42117
|
// 自动更新校验状态
|
|
42123
|
-
if (
|
|
42124
|
-
|
|
42125
|
-
mlForm.changeItemValue($xeformiteminfo.itemConfig.field);
|
|
42126
|
-
}
|
|
42118
|
+
if (mlForm && itemConfig) {
|
|
42119
|
+
mlForm.triggerItemChangeEvent(new Event('change'), itemConfig.field, value);
|
|
42127
42120
|
}
|
|
42128
42121
|
isModelUpdate = props.modelValue !== value;
|
|
42129
42122
|
emit('update:modelValue', value);
|
|
@@ -42309,15 +42302,14 @@ const MlNumberInputvue_type_script_lang_ts_setup_true_hoisted_2 = {
|
|
|
42309
42302
|
emit
|
|
42310
42303
|
}) {
|
|
42311
42304
|
const props = __props;
|
|
42312
|
-
const $xeform = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeform', null);
|
|
42313
|
-
const $xeformiteminfo = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeformiteminfo', null);
|
|
42314
42305
|
const mlForm = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('mlForm', null);
|
|
42306
|
+
const itemConfig = mlForm ? mlForm.getFormItemConfig() : null;
|
|
42315
42307
|
const inpVal = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)('');
|
|
42316
42308
|
const isReadonly = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
42317
|
-
if (props.readonly
|
|
42318
|
-
return
|
|
42309
|
+
if (xe_utils_default().isBoolean(props.readonly)) {
|
|
42310
|
+
return props.readonly;
|
|
42319
42311
|
}
|
|
42320
|
-
return props.readonly;
|
|
42312
|
+
return mlForm ? mlForm.props.readonly : false;
|
|
42321
42313
|
});
|
|
42322
42314
|
const minNum = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
42323
42315
|
if (xe_utils_default().isNumber(props.min) || props.min) {
|
|
@@ -42384,11 +42376,8 @@ const MlNumberInputvue_type_script_lang_ts_setup_true_hoisted_2 = {
|
|
|
42384
42376
|
}
|
|
42385
42377
|
}
|
|
42386
42378
|
// 自动更新校验状态
|
|
42387
|
-
if (
|
|
42388
|
-
|
|
42389
|
-
if (mlForm) {
|
|
42390
|
-
mlForm.changeItemValue($xeformiteminfo.itemConfig.field);
|
|
42391
|
-
}
|
|
42379
|
+
if (mlForm && itemConfig) {
|
|
42380
|
+
mlForm.triggerItemChangeEvent(new Event('change'), itemConfig.field, value);
|
|
42392
42381
|
}
|
|
42393
42382
|
emit('update:modelValue', value);
|
|
42394
42383
|
emit('change', {
|
|
@@ -54298,9 +54287,10 @@ const MlProvincesPickervue_type_script_lang_ts_setup_true_hoisted_1 = {
|
|
|
54298
54287
|
value: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(optValueField)
|
|
54299
54288
|
},
|
|
54300
54289
|
placeholder: __props.placeholder,
|
|
54290
|
+
clearable: __props.clearable,
|
|
54301
54291
|
class: "ml-provinces-picker",
|
|
54302
54292
|
onChange: changeEvent
|
|
54303
|
-
}, null, 8, ["modelValue", "options", "optionProps", "placeholder"]));
|
|
54293
|
+
}, null, 8, ["modelValue", "options", "optionProps", "placeholder", "clearable"]));
|
|
54304
54294
|
};
|
|
54305
54295
|
}
|
|
54306
54296
|
}));
|
|
@@ -54605,11 +54595,23 @@ const MaliNotify = {
|
|
|
54605
54595
|
const collapseEvent = params => {
|
|
54606
54596
|
emit('collapse', params);
|
|
54607
54597
|
};
|
|
54598
|
+
const triggerItemChangeEvent = (evnt, field, value) => {
|
|
54599
|
+
if (xForm.value) {
|
|
54600
|
+
xForm.value.triggerItemEvent(evnt || new Event('change'), field, value);
|
|
54601
|
+
if (props.reserveStorage) {
|
|
54602
|
+
updateStoreData(field);
|
|
54603
|
+
}
|
|
54604
|
+
}
|
|
54605
|
+
};
|
|
54608
54606
|
const changeItemValue = field => {
|
|
54609
54607
|
if (props.reserveStorage) {
|
|
54610
54608
|
updateStoreData(field);
|
|
54611
54609
|
}
|
|
54612
54610
|
};
|
|
54611
|
+
const getFormItemConfig = () => {
|
|
54612
|
+
const xeformiteminfo = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeformiteminfo', null);
|
|
54613
|
+
return xeformiteminfo ? xeformiteminfo.itemConfig : null;
|
|
54614
|
+
};
|
|
54613
54615
|
const mlForm = {
|
|
54614
54616
|
props,
|
|
54615
54617
|
reset,
|
|
@@ -54619,7 +54621,9 @@ const MaliNotify = {
|
|
|
54619
54621
|
clearValidate,
|
|
54620
54622
|
getJsonData,
|
|
54621
54623
|
clearStore,
|
|
54622
|
-
|
|
54624
|
+
getFormItemConfig,
|
|
54625
|
+
changeItemValue,
|
|
54626
|
+
triggerItemChangeEvent
|
|
54623
54627
|
};
|
|
54624
54628
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('mlForm', mlForm);
|
|
54625
54629
|
expose(mlForm);
|
|
@@ -57502,9 +57506,8 @@ const _hoisted_21 = ["src"];
|
|
|
57502
57506
|
emit
|
|
57503
57507
|
}) {
|
|
57504
57508
|
const props = __props;
|
|
57505
|
-
const $xeform = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeform', null);
|
|
57506
|
-
const $xeformiteminfo = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeformiteminfo', null);
|
|
57507
57509
|
const mlForm = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('mlForm', null);
|
|
57510
|
+
const itemConfig = mlForm ? mlForm.getFormItemConfig() : null;
|
|
57508
57511
|
const loading = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(false);
|
|
57509
57512
|
const downloadLoading = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(false);
|
|
57510
57513
|
const previewVisible = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(false);
|
|
@@ -57541,10 +57544,10 @@ const _hoisted_21 = ["src"];
|
|
|
57541
57544
|
return fileList.value.length >= 1;
|
|
57542
57545
|
});
|
|
57543
57546
|
const isReadonly = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
57544
|
-
if (props.readonly
|
|
57545
|
-
return
|
|
57547
|
+
if (xe_utils_default().isBoolean(props.readonly)) {
|
|
57548
|
+
return props.readonly;
|
|
57546
57549
|
}
|
|
57547
|
-
return props.readonly;
|
|
57550
|
+
return mlForm ? mlForm.props.readonly : false;
|
|
57548
57551
|
});
|
|
57549
57552
|
const isDisabled = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
57550
57553
|
return props.disabled;
|
|
@@ -57633,11 +57636,8 @@ const _hoisted_21 = ["src"];
|
|
|
57633
57636
|
value = rest[0] || null;
|
|
57634
57637
|
}
|
|
57635
57638
|
// 自动更新校验状态
|
|
57636
|
-
if (
|
|
57637
|
-
|
|
57638
|
-
if (mlForm) {
|
|
57639
|
-
mlForm.changeItemValue($xeformiteminfo.itemConfig.field);
|
|
57640
|
-
}
|
|
57639
|
+
if (mlForm && itemConfig) {
|
|
57640
|
+
mlForm.triggerItemChangeEvent(new Event('change'), itemConfig.field, value);
|
|
57641
57641
|
}
|
|
57642
57642
|
emit('update:modelValue', value);
|
|
57643
57643
|
emit('change', {
|
|
@@ -60490,7 +60490,7 @@ VXETable.renderer.mixin({
|
|
|
60490
60490
|
}
|
|
60491
60491
|
},
|
|
60492
60492
|
/**
|
|
60493
|
-
*
|
|
60493
|
+
* 查看-多行文本
|
|
60494
60494
|
*/
|
|
60495
60495
|
MlTextarea: {
|
|
60496
60496
|
renderDefault(renderOpts, params) {
|
|
@@ -60507,6 +60507,14 @@ VXETable.renderer.mixin({
|
|
|
60507
60507
|
}, props), null);
|
|
60508
60508
|
}
|
|
60509
60509
|
},
|
|
60510
|
+
/**
|
|
60511
|
+
* 查看-富文本
|
|
60512
|
+
*/
|
|
60513
|
+
MlEditor: {
|
|
60514
|
+
renderDefault() {
|
|
60515
|
+
return '不支持该控件';
|
|
60516
|
+
}
|
|
60517
|
+
},
|
|
60510
60518
|
/**
|
|
60511
60519
|
* 省市区选择
|
|
60512
60520
|
*/
|
|
@@ -60600,6 +60608,17 @@ VXETable.renderer.mixin({
|
|
|
60600
60608
|
}), null);
|
|
60601
60609
|
}
|
|
60602
60610
|
},
|
|
60611
|
+
/**
|
|
60612
|
+
* 查看-富文本
|
|
60613
|
+
*/
|
|
60614
|
+
MlEditor: {
|
|
60615
|
+
renderEdit() {
|
|
60616
|
+
return '不支持该控件';
|
|
60617
|
+
},
|
|
60618
|
+
renderCell() {
|
|
60619
|
+
return '不支持该控件';
|
|
60620
|
+
}
|
|
60621
|
+
},
|
|
60603
60622
|
/**
|
|
60604
60623
|
* 编辑-金额输入
|
|
60605
60624
|
*/
|
|
@@ -62597,7 +62616,7 @@ function index_config(options) {
|
|
|
62597
62616
|
return config_0;
|
|
62598
62617
|
}
|
|
62599
62618
|
const MaliUI = {
|
|
62600
|
-
version: "1.1.
|
|
62619
|
+
version: "1.1.44",
|
|
62601
62620
|
install: index_install,
|
|
62602
62621
|
config: index_config,
|
|
62603
62622
|
renderer: {
|