vxe-table 3.6.14-beta.2 → 3.6.14-beta.3
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/form/src/form-config-item.js +20 -15
- package/lib/form/src/form-config-item.min.js +1 -1
- package/lib/form/src/form-item.js +28 -15
- package/lib/form/src/form-item.min.js +1 -1
- package/lib/form/src/util.js +5 -0
- package/lib/form/src/util.min.js +1 -1
- package/lib/form/style/style.css +11 -2
- package/lib/form/style/style.min.css +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.css +1 -1
- package/lib/index.umd.js +55 -30
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/form/src/form-config-item.js +33 -16
- package/packages/form/src/form-item.js +40 -16
- package/packages/form/src/util.js +5 -0
- package/styles/form.scss +11 -2
- package/types/component.d.ts +3 -0
- package/types/form-item.d.ts +2 -0
- package/types/v-x-e-table/renderer.d.ts +10 -8
- /package/lib/icon/style/{iconfont.1684560851897.ttf → iconfont.1684812658650.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1684560851897.woff → iconfont.1684812658650.woff} +0 -0
- /package/lib/icon/style/{iconfont.1684560851897.woff2 → iconfont.1684812658650.woff2} +0 -0
- /package/lib/{iconfont.1684560851897.ttf → iconfont.1684812658650.ttf} +0 -0
- /package/lib/{iconfont.1684560851897.woff → iconfont.1684812658650.woff} +0 -0
- /package/lib/{iconfont.1684560851897.woff2 → iconfont.1684812658650.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -36842,12 +36842,17 @@ var ItemConfig = /*#__PURE__*/function () {
|
|
|
36842
36842
|
titlePrefix: item.titlePrefix,
|
|
36843
36843
|
titleSuffix: item.titleSuffix,
|
|
36844
36844
|
titleOverflow: item.titleOverflow,
|
|
36845
|
+
showTitle: item.showTitle,
|
|
36845
36846
|
resetValue: item.resetValue,
|
|
36846
36847
|
visible: item.visible,
|
|
36847
36848
|
visibleMethod: item.visibleMethod,
|
|
36848
36849
|
folding: item.folding,
|
|
36849
36850
|
collapseNode: item.collapseNode,
|
|
36850
36851
|
className: item.className,
|
|
36852
|
+
contentClassName: item.className,
|
|
36853
|
+
contentStyle: item.contentStyle,
|
|
36854
|
+
titleClassName: item.titleClassName,
|
|
36855
|
+
titleStyle: item.titleStyle,
|
|
36851
36856
|
itemRender: item.itemRender,
|
|
36852
36857
|
// 渲染属性
|
|
36853
36858
|
showError: false,
|
|
@@ -37018,6 +37023,7 @@ function renderTitle(h, _vm, item) {
|
|
|
37018
37023
|
|
|
37019
37024
|
|
|
37020
37025
|
|
|
37026
|
+
|
|
37021
37027
|
/**
|
|
37022
37028
|
* 配置式项
|
|
37023
37029
|
*/
|
|
@@ -37061,12 +37067,19 @@ var VxeFormConfigItem = {
|
|
|
37061
37067
|
errRule = item.errRule,
|
|
37062
37068
|
className = item.className,
|
|
37063
37069
|
titleOverflow = item.titleOverflow,
|
|
37064
|
-
children = item.children
|
|
37070
|
+
children = item.children,
|
|
37071
|
+
showTitle = item.showTitle,
|
|
37072
|
+
contentClassName = item.contentClassName,
|
|
37073
|
+
contentStyle = item.contentStyle,
|
|
37074
|
+
titleClassName = item.titleClassName,
|
|
37075
|
+
titleStyle = item.titleStyle;
|
|
37065
37076
|
var compConf = isEnableConf(itemRender) ? v_x_e_table.renderer.get(itemRender.name) : null;
|
|
37066
37077
|
var itemClassName = compConf ? compConf.itemClassName : '';
|
|
37067
37078
|
var itemStyle = compConf ? compConf.itemStyle : null;
|
|
37068
37079
|
var itemContentClassName = compConf ? compConf.itemContentClassName : '';
|
|
37069
37080
|
var itemContentStyle = compConf ? compConf.itemContentStyle : null;
|
|
37081
|
+
var itemTitleClassName = compConf ? compConf.itemTitleClassName : '';
|
|
37082
|
+
var itemTitleStyle = compConf ? compConf.itemTitleStyle : null;
|
|
37070
37083
|
var span = item.span || $xeform.span;
|
|
37071
37084
|
var align = item.align || $xeform.align;
|
|
37072
37085
|
var titleAlign = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(item.titleAlign) ? allTitleAlign : item.titleAlign;
|
|
@@ -37074,10 +37087,10 @@ var VxeFormConfigItem = {
|
|
|
37074
37087
|
var titleColon = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(item.titleColon) ? allTitleColon : item.titleColon;
|
|
37075
37088
|
var titleAsterisk = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(item.titleAsterisk) ? allTitleAsterisk : item.titleAsterisk;
|
|
37076
37089
|
var itemOverflow = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isUndefined(titleOverflow) || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNull(titleOverflow) ? allTitleOverflow : titleOverflow;
|
|
37077
|
-
var
|
|
37078
|
-
var
|
|
37079
|
-
var
|
|
37080
|
-
var hasEllipsis =
|
|
37090
|
+
var ovEllipsis = itemOverflow === 'ellipsis';
|
|
37091
|
+
var ovTitle = itemOverflow === 'title';
|
|
37092
|
+
var ovTooltip = itemOverflow === true || itemOverflow === 'tooltip';
|
|
37093
|
+
var hasEllipsis = ovTitle || ovTooltip || ovEllipsis;
|
|
37081
37094
|
var params = {
|
|
37082
37095
|
data: data,
|
|
37083
37096
|
field: field,
|
|
@@ -37123,7 +37136,7 @@ var VxeFormConfigItem = {
|
|
|
37123
37136
|
} else if (field) {
|
|
37124
37137
|
contentVNs = [external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(data, field))];
|
|
37125
37138
|
}
|
|
37126
|
-
var ons =
|
|
37139
|
+
var ons = ovTooltip ? {
|
|
37127
37140
|
mouseenter: function mouseenter(evnt) {
|
|
37128
37141
|
$xeform.triggerTitleTipEvent(evnt, params);
|
|
37129
37142
|
},
|
|
@@ -37142,20 +37155,18 @@ var VxeFormConfigItem = {
|
|
|
37142
37155
|
style: external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(itemStyle) ? itemStyle(params) : itemStyle
|
|
37143
37156
|
}, [h('div', {
|
|
37144
37157
|
"class": 'vxe-form--item-inner'
|
|
37145
|
-
}, [title || slots && slots.title ? h('div', {
|
|
37146
|
-
"class": ['vxe-form--item-title', titleAlign ? "align--".concat(titleAlign) :
|
|
37147
|
-
|
|
37148
|
-
}],
|
|
37149
|
-
style: titleWidth ? {
|
|
37158
|
+
}, [showTitle !== false && (title || slots && slots.title) ? h('div', {
|
|
37159
|
+
"class": ['vxe-form--item-title', titleAlign ? "align--".concat(titleAlign) : '', hasEllipsis ? 'is--ellipsis' : '', itemTitleClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(itemTitleClassName) ? itemTitleClassName(params) : itemTitleClassName : '', titleClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(titleClassName) ? titleClassName(params) : titleClassName : ''],
|
|
37160
|
+
style: Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(itemTitleStyle) ? itemTitleStyle(params) : itemTitleStyle, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(titleStyle) ? titleStyle(params) : titleStyle, titleWidth ? {
|
|
37150
37161
|
width: isNaN(titleWidth) ? titleWidth : "".concat(titleWidth, "px")
|
|
37151
|
-
} : null,
|
|
37162
|
+
} : null),
|
|
37152
37163
|
attrs: {
|
|
37153
|
-
title:
|
|
37164
|
+
title: ovTitle ? getFuncText(title) : null
|
|
37154
37165
|
},
|
|
37155
37166
|
on: ons
|
|
37156
37167
|
}, renderTitle(h, $xeform, item)) : null, h('div', {
|
|
37157
|
-
"class": ['vxe-form--item-content', align ? "align--".concat(align) : '', itemContentClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(itemContentClassName) ? itemContentClassName(params) : itemContentClassName : ''],
|
|
37158
|
-
style: external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(itemContentStyle) ? itemContentStyle(params) : itemContentStyle
|
|
37168
|
+
"class": ['vxe-form--item-content', align ? "align--".concat(align) : '', itemContentClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(itemContentClassName) ? itemContentClassName(params) : itemContentClassName : '', contentClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(contentClassName) ? contentClassName(params) : contentClassName : ''],
|
|
37169
|
+
style: Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(itemContentStyle) ? itemContentStyle(params) : itemContentStyle, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(contentStyle) ? contentStyle(params) : contentStyle)
|
|
37159
37170
|
}, contentVNs.concat([collapseNode ? h('div', {
|
|
37160
37171
|
"class": 'vxe-form--item-trigger-node',
|
|
37161
37172
|
on: {
|
|
@@ -37884,6 +37895,7 @@ var Form = Object.assign(src_form, {
|
|
|
37884
37895
|
|
|
37885
37896
|
|
|
37886
37897
|
|
|
37898
|
+
|
|
37887
37899
|
var form_item_props = {
|
|
37888
37900
|
title: String,
|
|
37889
37901
|
field: String,
|
|
@@ -37906,7 +37918,15 @@ var form_item_props = {
|
|
|
37906
37918
|
type: Boolean,
|
|
37907
37919
|
"default": null
|
|
37908
37920
|
},
|
|
37921
|
+
showTitle: {
|
|
37922
|
+
type: Boolean,
|
|
37923
|
+
"default": true
|
|
37924
|
+
},
|
|
37909
37925
|
className: [String, Function],
|
|
37926
|
+
contentClassName: [String, Function],
|
|
37927
|
+
contentStyle: [Object, Function],
|
|
37928
|
+
titleClassName: [String, Function],
|
|
37929
|
+
titleStyle: [Object, Function],
|
|
37910
37930
|
titleOverflow: {
|
|
37911
37931
|
type: [Boolean, String],
|
|
37912
37932
|
"default": null
|
|
@@ -37951,12 +37971,19 @@ var renderItem = function renderItem(h, _vm, item, slots) {
|
|
|
37951
37971
|
showError = item.showError,
|
|
37952
37972
|
errRule = item.errRule,
|
|
37953
37973
|
className = item.className,
|
|
37954
|
-
titleOverflow = item.titleOverflow
|
|
37974
|
+
titleOverflow = item.titleOverflow,
|
|
37975
|
+
showTitle = item.showTitle,
|
|
37976
|
+
contentClassName = item.contentClassName,
|
|
37977
|
+
contentStyle = item.contentStyle,
|
|
37978
|
+
titleClassName = item.titleClassName,
|
|
37979
|
+
titleStyle = item.titleStyle;
|
|
37955
37980
|
var compConf = isEnableConf(itemRender) ? v_x_e_table.renderer.get(itemRender.name) : null;
|
|
37956
37981
|
var itemClassName = compConf ? compConf.itemClassName : '';
|
|
37957
37982
|
var itemStyle = compConf ? compConf.itemStyle : null;
|
|
37958
37983
|
var itemContentClassName = compConf ? compConf.itemContentClassName : '';
|
|
37959
37984
|
var itemContentStyle = compConf ? compConf.itemContentStyle : null;
|
|
37985
|
+
var itemTitleClassName = compConf ? compConf.itemTitleClassName : '';
|
|
37986
|
+
var itemTitleStyle = compConf ? compConf.itemTitleStyle : null;
|
|
37960
37987
|
var span = item.span || _vm.span;
|
|
37961
37988
|
var align = item.align || _vm.align;
|
|
37962
37989
|
var titleAlign = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(item.titleAlign) ? allTitleAlign : item.titleAlign;
|
|
@@ -37964,10 +37991,10 @@ var renderItem = function renderItem(h, _vm, item, slots) {
|
|
|
37964
37991
|
var titleColon = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(item.titleColon) ? allTitleColon : item.titleColon;
|
|
37965
37992
|
var titleAsterisk = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(item.titleAsterisk) ? allTitleAsterisk : item.titleAsterisk;
|
|
37966
37993
|
var itemOverflow = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isUndefined(titleOverflow) || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNull(titleOverflow) ? allTitleOverflow : titleOverflow;
|
|
37967
|
-
var
|
|
37968
|
-
var
|
|
37969
|
-
var
|
|
37970
|
-
var hasEllipsis =
|
|
37994
|
+
var ovEllipsis = itemOverflow === 'ellipsis';
|
|
37995
|
+
var ovTitle = itemOverflow === 'title';
|
|
37996
|
+
var ovTooltip = itemOverflow === true || itemOverflow === 'tooltip';
|
|
37997
|
+
var hasEllipsis = ovTitle || ovTooltip || ovEllipsis;
|
|
37971
37998
|
var params = {
|
|
37972
37999
|
data: data,
|
|
37973
38000
|
field: field,
|
|
@@ -37998,7 +38025,7 @@ var renderItem = function renderItem(h, _vm, item, slots) {
|
|
|
37998
38025
|
} else if (field) {
|
|
37999
38026
|
contentVNs = ["".concat(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(data, field))];
|
|
38000
38027
|
}
|
|
38001
|
-
var ons =
|
|
38028
|
+
var ons = ovTooltip ? {
|
|
38002
38029
|
mouseenter: function mouseenter(evnt) {
|
|
38003
38030
|
_vm.triggerTitleTipEvent(evnt, params);
|
|
38004
38031
|
},
|
|
@@ -38017,20 +38044,18 @@ var renderItem = function renderItem(h, _vm, item, slots) {
|
|
|
38017
38044
|
style: external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(itemStyle) ? itemStyle(params) : itemStyle
|
|
38018
38045
|
}, [h('div', {
|
|
38019
38046
|
"class": 'vxe-form--item-inner'
|
|
38020
|
-
}, [title || slots && slots.title ? h('div', {
|
|
38021
|
-
"class": ['vxe-form--item-title', titleAlign ? "align--".concat(titleAlign) :
|
|
38022
|
-
|
|
38023
|
-
}],
|
|
38024
|
-
style: titleWidth ? {
|
|
38047
|
+
}, [showTitle !== false && (title || slots && slots.title) ? h('div', {
|
|
38048
|
+
"class": ['vxe-form--item-title', titleAlign ? "align--".concat(titleAlign) : '', hasEllipsis ? 'is--ellipsis' : '', itemTitleClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(itemTitleClassName) ? itemTitleClassName(params) : itemTitleClassName : '', titleClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(titleClassName) ? titleClassName(params) : titleClassName : ''],
|
|
38049
|
+
style: Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(itemTitleStyle) ? itemTitleStyle(params) : itemTitleStyle, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(titleStyle) ? titleStyle(params) : titleStyle, titleWidth ? {
|
|
38025
38050
|
width: isNaN(titleWidth) ? titleWidth : "".concat(titleWidth, "px")
|
|
38026
|
-
} : null,
|
|
38051
|
+
} : null),
|
|
38027
38052
|
attrs: {
|
|
38028
|
-
title:
|
|
38053
|
+
title: ovTitle ? getFuncText(title) : null
|
|
38029
38054
|
},
|
|
38030
38055
|
on: ons
|
|
38031
38056
|
}, renderTitle(h, _vm, item)) : null, h('div', {
|
|
38032
|
-
"class": ['vxe-form--item-content', align ? "align--".concat(align) : '', itemContentClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(itemContentClassName) ? itemContentClassName(params) : itemContentClassName : ''],
|
|
38033
|
-
style: external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(itemContentStyle) ? itemContentStyle(params) : itemContentStyle
|
|
38057
|
+
"class": ['vxe-form--item-content', align ? "align--".concat(align) : '', itemContentClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(itemContentClassName) ? itemContentClassName(params) : itemContentClassName : '', contentClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(contentClassName) ? contentClassName(params) : contentClassName : ''],
|
|
38058
|
+
style: Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(itemContentStyle) ? itemContentStyle(params) : itemContentStyle, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(contentStyle) ? contentStyle(params) : contentStyle)
|
|
38034
38059
|
}, contentVNs.concat([collapseNode ? h('div', {
|
|
38035
38060
|
"class": 'vxe-form--item-trigger-node',
|
|
38036
38061
|
on: {
|