mali-ui-plus 1.0.79 → 1.0.81
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 +66 -34
- package/lib/mali-ui-plus.css +1 -1
- package/lib/mali-ui-plus.umd.js +66 -34
- package/lib/mali-ui-plus.umd.min.js +8 -8
- package/package.json +2 -2
- package/style/all.scss +1 -0
- package/style/vxe-table.scss +1 -0
|
@@ -36655,12 +36655,17 @@ var ItemInfo = /** @class */function () {
|
|
|
36655
36655
|
titlePrefix: item.titlePrefix,
|
|
36656
36656
|
titleSuffix: item.titleSuffix,
|
|
36657
36657
|
titleOverflow: item.titleOverflow,
|
|
36658
|
+
showTitle: item.showTitle,
|
|
36658
36659
|
resetValue: item.resetValue,
|
|
36659
36660
|
visibleMethod: item.visibleMethod,
|
|
36660
36661
|
visible: item.visible,
|
|
36661
36662
|
folding: item.folding,
|
|
36662
36663
|
collapseNode: item.collapseNode,
|
|
36663
36664
|
className: item.className,
|
|
36665
|
+
contentClassName: item.contentClassName,
|
|
36666
|
+
contentStyle: item.contentStyle,
|
|
36667
|
+
titleClassName: item.titleClassName,
|
|
36668
|
+
titleStyle: item.titleStyle,
|
|
36664
36669
|
itemRender: item.itemRender,
|
|
36665
36670
|
// 渲染属性
|
|
36666
36671
|
showError: false,
|
|
@@ -36897,12 +36902,19 @@ var VxeFormConfigItem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineC
|
|
|
36897
36902
|
errRule = item.errRule,
|
|
36898
36903
|
className = item.className,
|
|
36899
36904
|
titleOverflow = item.titleOverflow,
|
|
36900
|
-
children = item.children
|
|
36905
|
+
children = item.children,
|
|
36906
|
+
showTitle = item.showTitle,
|
|
36907
|
+
contentClassName = item.contentClassName,
|
|
36908
|
+
contentStyle = item.contentStyle,
|
|
36909
|
+
titleClassName = item.titleClassName,
|
|
36910
|
+
titleStyle = item.titleStyle;
|
|
36901
36911
|
var compConf = isEnableConf(itemRender) ? VXETable.renderer.get(itemRender.name) : null;
|
|
36902
36912
|
var itemClassName = compConf ? compConf.itemClassName : '';
|
|
36903
36913
|
var itemStyle = compConf ? compConf.itemStyle : null;
|
|
36904
36914
|
var itemContentClassName = compConf ? compConf.itemContentClassName : '';
|
|
36905
36915
|
var itemContentStyle = compConf ? compConf.itemContentStyle : null;
|
|
36916
|
+
var itemTitleClassName = compConf ? compConf.itemTitleClassName : '';
|
|
36917
|
+
var itemTitleStyle = compConf ? compConf.itemTitleStyle : null;
|
|
36906
36918
|
var defaultSlot = slots ? slots.default : null;
|
|
36907
36919
|
var titleSlot = slots ? slots.title : null;
|
|
36908
36920
|
var span = item.span || allSpan;
|
|
@@ -36912,10 +36924,10 @@ var VxeFormConfigItem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineC
|
|
|
36912
36924
|
var titleColon = xe_utils_default().eqNull(item.titleColon) ? allTitleColon : item.titleColon;
|
|
36913
36925
|
var titleAsterisk = xe_utils_default().eqNull(item.titleAsterisk) ? allTitleAsterisk : item.titleAsterisk;
|
|
36914
36926
|
var itemOverflow = xe_utils_default().isUndefined(titleOverflow) || xe_utils_default().isNull(titleOverflow) ? allTitleOverflow : titleOverflow;
|
|
36915
|
-
var
|
|
36916
|
-
var
|
|
36917
|
-
var
|
|
36918
|
-
var hasEllipsis =
|
|
36927
|
+
var ovEllipsis = itemOverflow === 'ellipsis';
|
|
36928
|
+
var ovTitle = itemOverflow === 'title';
|
|
36929
|
+
var ovTooltip = itemOverflow === true || itemOverflow === 'tooltip';
|
|
36930
|
+
var hasEllipsis = ovTitle || ovTooltip || ovEllipsis;
|
|
36919
36931
|
var params = {
|
|
36920
36932
|
data: data,
|
|
36921
36933
|
field: field,
|
|
@@ -36975,7 +36987,7 @@ var VxeFormConfigItem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineC
|
|
|
36975
36987
|
} : null
|
|
36976
36988
|
}, errRule.content));
|
|
36977
36989
|
}
|
|
36978
|
-
var ons =
|
|
36990
|
+
var ons = ovTooltip ? {
|
|
36979
36991
|
onMouseenter: function (evnt) {
|
|
36980
36992
|
$xeform.triggerTitleTipEvent(evnt, params);
|
|
36981
36993
|
},
|
|
@@ -36994,17 +37006,15 @@ var VxeFormConfigItem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineC
|
|
|
36994
37006
|
style: xe_utils_default().isFunction(itemStyle) ? itemStyle(params) : itemStyle
|
|
36995
37007
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
36996
37008
|
class: 'vxe-form--item-inner'
|
|
36997
|
-
}, [title || titleSlot ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', form_config_item_assign({
|
|
36998
|
-
class: ['vxe-form--item-title', titleAlign ? "align--".concat(titleAlign) :
|
|
36999
|
-
|
|
37000
|
-
}],
|
|
37001
|
-
style: titleWidth ? {
|
|
37009
|
+
}, [showTitle !== false && (title || titleSlot) ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', form_config_item_assign({
|
|
37010
|
+
class: ['vxe-form--item-title', titleAlign ? "align--".concat(titleAlign) : '', hasEllipsis ? 'is--ellipsis' : '', itemTitleClassName ? xe_utils_default().isFunction(itemTitleClassName) ? itemTitleClassName(params) : itemTitleClassName : '', titleClassName ? xe_utils_default().isFunction(titleClassName) ? titleClassName(params) : titleClassName : ''],
|
|
37011
|
+
style: Object.assign({}, xe_utils_default().isFunction(itemTitleStyle) ? itemTitleStyle(params) : itemTitleStyle, xe_utils_default().isFunction(titleStyle) ? titleStyle(params) : titleStyle, titleWidth ? {
|
|
37002
37012
|
width: isNaN(titleWidth) ? titleWidth : "".concat(titleWidth, "px")
|
|
37003
|
-
} : null,
|
|
37004
|
-
title:
|
|
37013
|
+
} : null),
|
|
37014
|
+
title: ovTitle ? getFuncText(title) : null
|
|
37005
37015
|
}, ons), renderTitle($xeform, item)) : null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
37006
|
-
class: ['vxe-form--item-content', align ? "align--".concat(align) : '', itemContentClassName ? xe_utils_default().isFunction(itemContentClassName) ? itemContentClassName(params) : itemContentClassName : ''],
|
|
37007
|
-
style: xe_utils_default().isFunction(itemContentStyle) ? itemContentStyle(params) : itemContentStyle
|
|
37016
|
+
class: ['vxe-form--item-content', align ? "align--".concat(align) : '', itemContentClassName ? xe_utils_default().isFunction(itemContentClassName) ? itemContentClassName(params) : itemContentClassName : '', contentClassName ? xe_utils_default().isFunction(contentClassName) ? contentClassName(params) : contentClassName : ''],
|
|
37017
|
+
style: Object.assign({}, xe_utils_default().isFunction(itemContentStyle) ? itemContentStyle(params) : itemContentStyle, xe_utils_default().isFunction(contentStyle) ? contentStyle(params) : contentStyle)
|
|
37008
37018
|
}, contentVNs)])]);
|
|
37009
37019
|
};
|
|
37010
37020
|
var $xeformconfigitem = {
|
|
@@ -37785,7 +37795,15 @@ var formItemProps = {
|
|
|
37785
37795
|
type: Boolean,
|
|
37786
37796
|
default: null
|
|
37787
37797
|
},
|
|
37798
|
+
showTitle: {
|
|
37799
|
+
type: Boolean,
|
|
37800
|
+
default: true
|
|
37801
|
+
},
|
|
37788
37802
|
className: [String, Function],
|
|
37803
|
+
contentClassName: [String, Function],
|
|
37804
|
+
contentStyle: [Object, Function],
|
|
37805
|
+
titleClassName: [String, Function],
|
|
37806
|
+
titleStyle: [Object, Function],
|
|
37789
37807
|
titleOverflow: {
|
|
37790
37808
|
type: [Boolean, String],
|
|
37791
37809
|
default: null
|
|
@@ -37853,12 +37871,19 @@ var formItemProps = {
|
|
|
37853
37871
|
showError = item.showError,
|
|
37854
37872
|
errRule = item.errRule,
|
|
37855
37873
|
className = item.className,
|
|
37856
|
-
titleOverflow = item.titleOverflow
|
|
37874
|
+
titleOverflow = item.titleOverflow,
|
|
37875
|
+
showTitle = item.showTitle,
|
|
37876
|
+
contentClassName = item.contentClassName,
|
|
37877
|
+
contentStyle = item.contentStyle,
|
|
37878
|
+
titleClassName = item.titleClassName,
|
|
37879
|
+
titleStyle = item.titleStyle;
|
|
37857
37880
|
var compConf = isEnableConf(itemRender) ? VXETable.renderer.get(itemRender.name) : null;
|
|
37858
37881
|
var itemClassName = compConf ? compConf.itemClassName : '';
|
|
37859
37882
|
var itemStyle = compConf ? compConf.itemStyle : null;
|
|
37860
37883
|
var itemContentClassName = compConf ? compConf.itemContentClassName : '';
|
|
37861
37884
|
var itemContentStyle = compConf ? compConf.itemContentStyle : null;
|
|
37885
|
+
var itemTitleClassName = compConf ? compConf.itemTitleClassName : '';
|
|
37886
|
+
var itemTitleStyle = compConf ? compConf.itemTitleStyle : null;
|
|
37862
37887
|
var defaultSlot = slots ? slots.default : null;
|
|
37863
37888
|
var titleSlot = slots ? slots.title : null;
|
|
37864
37889
|
var span = item.span || props.span;
|
|
@@ -37868,10 +37893,10 @@ var formItemProps = {
|
|
|
37868
37893
|
var titleColon = xe_utils_default().eqNull(item.titleColon) ? allTitleColon : item.titleColon;
|
|
37869
37894
|
var titleAsterisk = xe_utils_default().eqNull(item.titleAsterisk) ? allTitleAsterisk : item.titleAsterisk;
|
|
37870
37895
|
var itemOverflow = xe_utils_default().isUndefined(titleOverflow) || xe_utils_default().isNull(titleOverflow) ? allTitleOverflow : titleOverflow;
|
|
37871
|
-
var
|
|
37872
|
-
var
|
|
37873
|
-
var
|
|
37874
|
-
var hasEllipsis =
|
|
37896
|
+
var ovEllipsis = itemOverflow === 'ellipsis';
|
|
37897
|
+
var ovTitle = itemOverflow === 'title';
|
|
37898
|
+
var ovTooltip = itemOverflow === true || itemOverflow === 'tooltip';
|
|
37899
|
+
var hasEllipsis = ovTitle || ovTooltip || ovEllipsis;
|
|
37875
37900
|
var params = {
|
|
37876
37901
|
data: data,
|
|
37877
37902
|
field: field,
|
|
@@ -37918,7 +37943,7 @@ var formItemProps = {
|
|
|
37918
37943
|
} : null
|
|
37919
37944
|
}, errRule.message));
|
|
37920
37945
|
}
|
|
37921
|
-
var ons =
|
|
37946
|
+
var ons = ovTooltip ? {
|
|
37922
37947
|
onMouseenter: function (evnt) {
|
|
37923
37948
|
$xeform.triggerTitleTipEvent(evnt, params);
|
|
37924
37949
|
},
|
|
@@ -37938,17 +37963,15 @@ var formItemProps = {
|
|
|
37938
37963
|
style: xe_utils_default().isFunction(itemStyle) ? itemStyle(params) : itemStyle
|
|
37939
37964
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
37940
37965
|
class: 'vxe-form--item-inner'
|
|
37941
|
-
}, [title || titleSlot ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', form_item_assign({
|
|
37942
|
-
class: ['vxe-form--item-title', titleAlign ? "align--".concat(titleAlign) :
|
|
37943
|
-
|
|
37944
|
-
}],
|
|
37945
|
-
style: titleWidth ? {
|
|
37966
|
+
}, [showTitle !== false && (title || titleSlot) ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', form_item_assign({
|
|
37967
|
+
class: ['vxe-form--item-title', titleAlign ? "align--".concat(titleAlign) : '', hasEllipsis ? 'is--ellipsis' : '', itemTitleClassName ? xe_utils_default().isFunction(itemTitleClassName) ? itemTitleClassName(params) : itemTitleClassName : '', titleClassName ? xe_utils_default().isFunction(titleClassName) ? titleClassName(params) : titleClassName : ''],
|
|
37968
|
+
style: Object.assign({}, xe_utils_default().isFunction(itemTitleStyle) ? itemTitleStyle(params) : itemTitleStyle, xe_utils_default().isFunction(titleStyle) ? titleStyle(params) : titleStyle, titleWidth ? {
|
|
37946
37969
|
width: isNaN(titleWidth) ? titleWidth : "".concat(titleWidth, "px")
|
|
37947
|
-
} : null,
|
|
37948
|
-
title:
|
|
37970
|
+
} : null),
|
|
37971
|
+
title: ovTitle ? getFuncText(title) : null
|
|
37949
37972
|
}, ons), renderTitle($xeform, item)) : null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
37950
|
-
class: ['vxe-form--item-content', align ? "align--".concat(align) : '', itemContentClassName ? xe_utils_default().isFunction(itemContentClassName) ? itemContentClassName(params) : itemContentClassName : ''],
|
|
37951
|
-
style: xe_utils_default().isFunction(itemContentStyle) ? itemContentStyle(params) : itemContentStyle
|
|
37973
|
+
class: ['vxe-form--item-content', align ? "align--".concat(align) : '', itemContentClassName ? xe_utils_default().isFunction(itemContentClassName) ? itemContentClassName(params) : itemContentClassName : '', contentClassName ? xe_utils_default().isFunction(contentClassName) ? contentClassName(params) : contentClassName : ''],
|
|
37974
|
+
style: Object.assign({}, xe_utils_default().isFunction(itemContentStyle) ? itemContentStyle(params) : itemContentStyle, xe_utils_default().isFunction(contentStyle) ? contentStyle(params) : contentStyle)
|
|
37952
37975
|
}, contentVNs)])]);
|
|
37953
37976
|
};
|
|
37954
37977
|
var renderVN = function () {
|
|
@@ -70662,12 +70685,22 @@ const MlModal_exports_ = MlModalvue_type_script_lang_ts_setup_true;
|
|
|
70662
70685
|
modelValue: [Number, String],
|
|
70663
70686
|
type: String
|
|
70664
70687
|
},
|
|
70665
|
-
emits: ["update:modelValue", "edit", "change"],
|
|
70688
|
+
emits: ["update:modelValue", "edit", "click", "change"],
|
|
70666
70689
|
setup(__props, {
|
|
70667
70690
|
emit
|
|
70668
70691
|
}) {
|
|
70669
70692
|
const props = __props;
|
|
70670
70693
|
const activeKey = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(props.modelValue);
|
|
70694
|
+
const clickEvent = pane => {
|
|
70695
|
+
const tab = {
|
|
70696
|
+
name: pane.props.name,
|
|
70697
|
+
label: pane.props.label
|
|
70698
|
+
};
|
|
70699
|
+
emit('click', {
|
|
70700
|
+
tab,
|
|
70701
|
+
active: pane.active
|
|
70702
|
+
});
|
|
70703
|
+
};
|
|
70671
70704
|
const changeEvent = () => {
|
|
70672
70705
|
emit('update:modelValue', activeKey.value);
|
|
70673
70706
|
emit('change', {});
|
|
@@ -70687,6 +70720,7 @@ const MlModal_exports_ = MlModalvue_type_script_lang_ts_setup_true;
|
|
|
70687
70720
|
modelValue: activeKey.value,
|
|
70688
70721
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => activeKey.value = $event),
|
|
70689
70722
|
type: __props.type,
|
|
70723
|
+
onTabClick: clickEvent,
|
|
70690
70724
|
onTabChange: changeEvent,
|
|
70691
70725
|
onEdit: editEvent
|
|
70692
70726
|
}, {
|
|
@@ -73109,8 +73143,6 @@ VXETable.setup({
|
|
|
73109
73143
|
|
|
73110
73144
|
|
|
73111
73145
|
|
|
73112
|
-
|
|
73113
|
-
|
|
73114
73146
|
// import MlPasswordInput from './components/ml-input/MlPasswordInput.vue'
|
|
73115
73147
|
// import MlAutoInput from './components/ml-input/MlAutoInput.vue'
|
|
73116
73148
|
|
|
@@ -73301,7 +73333,7 @@ function index_config(options) {
|
|
|
73301
73333
|
return config_0;
|
|
73302
73334
|
}
|
|
73303
73335
|
const MaliUI = {
|
|
73304
|
-
version: "1.0.
|
|
73336
|
+
version: "1.0.80",
|
|
73305
73337
|
install: index_install,
|
|
73306
73338
|
config: index_config,
|
|
73307
73339
|
renderer: index_esm.renderer,
|