vxe-table 3.13.22 → 3.13.24
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/es/style.css +1 -1
- package/es/table/module/filter/panel.js +12 -2
- package/es/table/src/methods.js +36 -35
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +49 -41
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/module/filter/panel.js +8 -2
- package/lib/table/module/filter/panel.min.js +1 -1
- package/lib/table/src/methods.js +39 -37
- package/lib/table/src/methods.min.js +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +2 -2
- package/packages/table/module/filter/panel.ts +12 -2
- package/packages/table/src/methods.ts +42 -40
- /package/es/{iconfont.1741665630674.ttf → iconfont.1741854422584.ttf} +0 -0
- /package/es/{iconfont.1741665630674.woff → iconfont.1741854422584.woff} +0 -0
- /package/es/{iconfont.1741665630674.woff2 → iconfont.1741854422584.woff2} +0 -0
- /package/lib/{iconfont.1741665630674.ttf → iconfont.1741854422584.ttf} +0 -0
- /package/lib/{iconfont.1741665630674.woff → iconfont.1741854422584.woff} +0 -0
- /package/lib/{iconfont.1741665630674.woff2 → iconfont.1741854422584.woff2} +0 -0
package/lib/ui/index.js
CHANGED
|
@@ -13,7 +13,7 @@ Object.defineProperty(exports, "VxeUI", {
|
|
|
13
13
|
exports.version = exports.validators = exports.use = exports.t = exports.setup = exports.setTheme = exports.setLanguage = exports.setIcon = exports.setI18n = exports.setConfig = exports.saveFile = exports.renderer = exports.readFile = exports.print = exports.modal = exports.menus = exports.log = exports.interceptor = exports.globalResize = exports.globalEvents = exports.getTheme = exports.getIcon = exports.getI18n = exports.getConfig = exports.formats = exports.default = exports.config = exports.commands = exports.clipboard = exports._t = void 0;
|
|
14
14
|
var _core = require("@vxe-ui/core");
|
|
15
15
|
var _utils = require("./src/utils");
|
|
16
|
-
const version = exports.version = "3.13.
|
|
16
|
+
const version = exports.version = "3.13.24";
|
|
17
17
|
_core.VxeUI.version = version;
|
|
18
18
|
_core.VxeUI.tableVersion = version;
|
|
19
19
|
_core.VxeUI.setConfig({
|
package/lib/ui/index.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0}),exports.VXETable=void 0,Object.defineProperty(exports,"VxeUI",{enumerable:!0,get:function(){return _core.VxeUI}}),exports.version=exports.validators=exports.use=exports.t=exports.setup=exports.setTheme=exports.setLanguage=exports.setIcon=exports.setI18n=exports.setConfig=exports.saveFile=exports.renderer=exports.readFile=exports.print=exports.modal=exports.menus=exports.log=exports.interceptor=exports.globalResize=exports.globalEvents=exports.getTheme=exports.getIcon=exports.getI18n=exports.getConfig=exports.formats=exports.default=exports.config=exports.commands=exports.clipboard=exports._t=void 0;var _core=require("@vxe-ui/core"),_utils=require("./src/utils");let version=exports.version="3.13.
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.VXETable=void 0,Object.defineProperty(exports,"VxeUI",{enumerable:!0,get:function(){return _core.VxeUI}}),exports.version=exports.validators=exports.use=exports.t=exports.setup=exports.setTheme=exports.setLanguage=exports.setIcon=exports.setI18n=exports.setConfig=exports.saveFile=exports.renderer=exports.readFile=exports.print=exports.modal=exports.menus=exports.log=exports.interceptor=exports.globalResize=exports.globalEvents=exports.getTheme=exports.getIcon=exports.getI18n=exports.getConfig=exports.formats=exports.default=exports.config=exports.commands=exports.clipboard=exports._t=void 0;var _core=require("@vxe-ui/core"),_utils=require("./src/utils");let version=exports.version="3.13.24",iconPrefix=(_core.VxeUI.version=version,_core.VxeUI.tableVersion=version,_core.VxeUI.setConfig({emptyCell:" ",table:{fit:!0,showHeader:!0,animat:!0,delayHover:250,autoResize:!0,padding:!0,minHeight:144,resizeConfig:{},resizableConfig:{dragMode:"auto",showDragTip:!0,isSyncAutoHeight:!0,isSyncAutoWidth:!0,minHeight:18},radioConfig:{strict:!0},rowDragConfig:{showIcon:!0,animation:!0,showGuidesStatus:!0,showDragTip:!0},columnDragConfig:{showIcon:!0,animation:!0,showGuidesStatus:!0,showDragTip:!0},checkboxConfig:{strict:!0},tooltipConfig:{enterable:!0},validConfig:{showMessage:!0,autoClear:!0,autoPos:!0,message:"inline",msgMode:"single",theme:"beautify"},columnConfig:{maxFixedSize:4},cellConfig:{padding:!0},headerCellConfig:{height:"unset"},footerCellConfig:{height:"unset"},customConfig:{allowVisible:!0,allowResizable:!0,allowFixed:!0,allowSort:!0,showFooter:!0,placement:"top-right",modalOptions:{showMaximize:!0,mask:!0,lockView:!0,resize:!0,escClosable:!0},drawerOptions:{mask:!0,lockView:!0,escClosable:!0,resize:!0}},sortConfig:{showIcon:!0,allowClear:!0,allowBtn:!0,iconLayout:"vertical"},filterConfig:{showIcon:!0},treeConfig:{rowField:"id",parentField:"parentId",childrenField:"children",hasChildField:"hasChild",mapChildrenField:"_X_ROW_CHILD",indent:20,showIcon:!0},expandConfig:{showIcon:!0,mode:"fixed"},editConfig:{showIcon:!0,showAsterisk:!0,autoFocus:!0},importConfig:{_typeMaps:{csv:1,html:1,xml:1,txt:1}},exportConfig:{_typeMaps:{csv:1,html:1,xml:1,txt:1}},printConfig:{},mouseConfig:{extension:!0},keyboardConfig:{isEsc:!0},areaConfig:{autoClear:!0,selectCellByHeader:!0,selectCellByBody:!0,extendDirection:{top:!0,left:!0,bottom:!0,right:!0}},clipConfig:{isCopy:!0,isCut:!0,isPaste:!0},fnrConfig:{isFind:!0,isReplace:!0},virtualXConfig:{enabled:!0,gt:60,preSize:0,oSize:1},virtualYConfig:{enabled:!0,gt:100,preSize:1,oSize:2},scrollbarConfig:{}},grid:{formConfig:{enabled:!0},pagerConfig:{enabled:!0},toolbarConfig:{enabled:!0},proxyConfig:{enabled:!0,autoLoad:!0,showResponseMsg:!0,showActiveMsg:!0,props:{list:null,result:"result",total:"page.total",message:"message"}}},toolbar:{}}),"vxe-table-icon-"),setTheme=(_core.VxeUI.setIcon({TABLE_SORT_ASC:iconPrefix+"caret-up",TABLE_SORT_DESC:iconPrefix+"caret-down",TABLE_FILTER_NONE:iconPrefix+"funnel",TABLE_FILTER_MATCH:iconPrefix+"funnel",TABLE_EDIT:iconPrefix+"edit",TABLE_TITLE_PREFIX:iconPrefix+"question-circle-fill",TABLE_TITLE_SUFFIX:iconPrefix+"question-circle-fill",TABLE_TREE_LOADED:iconPrefix+"spinner roll",TABLE_TREE_OPEN:iconPrefix+"caret-right rotate90",TABLE_TREE_CLOSE:iconPrefix+"caret-right",TABLE_EXPAND_LOADED:iconPrefix+"spinner roll",TABLE_EXPAND_OPEN:iconPrefix+"arrow-right rotate90",TABLE_EXPAND_CLOSE:iconPrefix+"arrow-right",TABLE_CHECKBOX_CHECKED:iconPrefix+"checkbox-checked-fill",TABLE_CHECKBOX_UNCHECKED:iconPrefix+"checkbox-unchecked",TABLE_CHECKBOX_INDETERMINATE:iconPrefix+"checkbox-indeterminate-fill",TABLE_RADIO_CHECKED:iconPrefix+"radio-checked-fill",TABLE_RADIO_UNCHECKED:iconPrefix+"radio-unchecked",TABLE_CUSTOM_SORT:iconPrefix+"drag-handle",TABLE_MENU_OPTIONS:iconPrefix+"arrow-right",TABLE_DRAG_ROW:iconPrefix+"drag-handle",TABLE_DRAG_COLUMN:iconPrefix+"drag-handle",TABLE_DRAG_STATUS_ROW:iconPrefix+"sort",TABLE_DRAG_STATUS_SUB_ROW:iconPrefix+"add-sub",TABLE_DRAG_STATUS_COLUMN:iconPrefix+"swap",TABLE_DRAG_DISABLED:iconPrefix+"no-drop",TOOLBAR_TOOLS_REFRESH:iconPrefix+"repeat",TOOLBAR_TOOLS_REFRESH_LOADING:iconPrefix+"repeat roll",TOOLBAR_TOOLS_IMPORT:iconPrefix+"upload",TOOLBAR_TOOLS_EXPORT:iconPrefix+"download",TOOLBAR_TOOLS_PRINT:iconPrefix+"print",TOOLBAR_TOOLS_FULLSCREEN:iconPrefix+"fullscreen",TOOLBAR_TOOLS_MINIMIZE:iconPrefix+"minimize",TOOLBAR_TOOLS_CUSTOM:iconPrefix+"custom-column",TOOLBAR_TOOLS_FIXED_LEFT:iconPrefix+"fixed-left",TOOLBAR_TOOLS_FIXED_LEFT_ACTIVE:iconPrefix+"fixed-left-fill",TOOLBAR_TOOLS_FIXED_RIGHT:iconPrefix+"fixed-right",TOOLBAR_TOOLS_FIXED_RIGHT_ACTIVE:iconPrefix+"fixed-right-fill"}),exports.setTheme=_core.VxeUI.setTheme),getTheme=exports.getTheme=_core.VxeUI.getTheme,setConfig=exports.setConfig=_core.VxeUI.setConfig,getConfig=exports.getConfig=_core.VxeUI.getConfig,setIcon=exports.setIcon=_core.VxeUI.setIcon,getIcon=exports.getIcon=_core.VxeUI.getIcon,setLanguage=exports.setLanguage=_core.VxeUI.setLanguage,setI18n=exports.setI18n=_core.VxeUI.setI18n,getI18n=exports.getI18n=_core.VxeUI.getI18n,globalEvents=exports.globalEvents=_core.VxeUI.globalEvents,globalResize=exports.globalResize=_core.VxeUI.globalResize,renderer=exports.renderer=_core.VxeUI.renderer,validators=exports.validators=_core.VxeUI.validators,menus=exports.menus=_core.VxeUI.menus,formats=exports.formats=_core.VxeUI.formats,commands=exports.commands=_core.VxeUI.commands,interceptor=exports.interceptor=_core.VxeUI.interceptor,clipboard=exports.clipboard=_core.VxeUI.clipboard,log=exports.log=_core.VxeUI.log,use=exports.use=_core.VxeUI.use,setup=e=>_core.VxeUI.setConfig(e),config=(exports.setup=setup,_core.VxeUI.setup=setup,e=>_core.VxeUI.setConfig(e)),t=(exports.config=config,_core.VxeUI.config=config,(e,o)=>_core.VxeUI.getI18n(e,o)),_t=(exports.t=t,_core.VxeUI.t=t,(e,o)=>(0,_utils.getFuncText)(e,o)),VXETable=(exports._t=_t,_core.VxeUI._t=_t,exports.VXETable=_core.VxeUI),saveFile=e=>_core.VxeUI.saveFile(e),readFile=(exports.saveFile=saveFile,e=>_core.VxeUI.readFile(e)),print=(exports.readFile=readFile,e=>_core.VxeUI.print(e)),modal=(exports.print=print,exports.modal={get(e){return _core.VxeUI.modal.get(e)},close(e){return _core.VxeUI.modal.close(e)},open(e){return _core.VxeUI.modal.open(e)},alert(e,o,r){return _core.VxeUI.modal.alert(e,o,r)},confirm(e,o,r){return _core.VxeUI.modal.confirm(e,o,r)},message(e,o){return _core.VxeUI.modal.message(e,o)},notification(e,o,r){return _core.VxeUI.modal.notification(e,o,r)}});var _default=exports.default=_core.VxeUI;
|
package/lib/ui/src/log.js
CHANGED
|
@@ -8,6 +8,6 @@ var _core = require("@vxe-ui/core");
|
|
|
8
8
|
const {
|
|
9
9
|
log
|
|
10
10
|
} = _core.VxeUI;
|
|
11
|
-
const version = `table v${"3.13.
|
|
11
|
+
const version = `table v${"3.13.24"}`;
|
|
12
12
|
const warnLog = exports.warnLog = log.create('warn', version);
|
|
13
13
|
const errLog = exports.errLog = log.create('error', version);
|
package/lib/ui/src/log.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0}),exports.warnLog=exports.errLog=void 0;var _core=require("@vxe-ui/core");let log=_core.VxeUI.log,version="table v3.13.
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.warnLog=exports.errLog=void 0;var _core=require("@vxe-ui/core");let log=_core.VxeUI.log,version="table v3.13.24",warnLog=exports.warnLog=log.create("warn",version),errLog=exports.errLog=log.create("error",version);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vxe-table",
|
|
3
|
-
"version": "3.13.
|
|
3
|
+
"version": "3.13.24",
|
|
4
4
|
"description": "一个基于 vue 的 PC 端表格组件,支持增删改查、虚拟树、拖拽排序,懒加载、快捷菜单、数据校验、树形结构、打印、导入导出、自定义模板、渲染器、JSON 配置式...",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"update": "npm install --legacy-peer-deps",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"style": "lib/style.css",
|
|
29
29
|
"typings": "types/index.d.ts",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"vxe-pc-ui": "^3.4.
|
|
31
|
+
"vxe-pc-ui": "^3.4.12"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@babel/plugin-transform-modules-commonjs": "^7.25.7",
|
|
@@ -61,13 +61,23 @@ export default {
|
|
|
61
61
|
if (filterSlot) {
|
|
62
62
|
return [
|
|
63
63
|
h('div', {
|
|
64
|
-
class: 'vxe-table--filter-template'
|
|
64
|
+
class: 'vxe-table--filter-template',
|
|
65
|
+
style: maxHeight
|
|
66
|
+
? {
|
|
67
|
+
maxHeight: `${maxHeight}px`
|
|
68
|
+
}
|
|
69
|
+
: {}
|
|
65
70
|
}, $xeTable.callSlot(filterSlot, params, h))
|
|
66
71
|
]
|
|
67
72
|
} else if (rtFilter) {
|
|
68
73
|
return [
|
|
69
74
|
h('div', {
|
|
70
|
-
class: 'vxe-table--filter-template'
|
|
75
|
+
class: 'vxe-table--filter-template',
|
|
76
|
+
style: maxHeight
|
|
77
|
+
? {
|
|
78
|
+
maxHeight: `${maxHeight}px`
|
|
79
|
+
}
|
|
80
|
+
: {}
|
|
71
81
|
}, getSlotVNs(rtFilter.call($xeTable, h, filterRender, params)))
|
|
72
82
|
]
|
|
73
83
|
}
|
|
@@ -219,7 +219,7 @@ function cacheColumnMap ($xeTable: VxeTableConstructor) {
|
|
|
219
219
|
fullColumnFieldData[field] = rest
|
|
220
220
|
} else {
|
|
221
221
|
if ((storage && !type) || (columnOpts.drag && (isCrossDrag || isSelfToChildDrag))) {
|
|
222
|
-
errLog('vxe.error.reqProp', [`${column.getTitle() || type || ''} -> column.field
|
|
222
|
+
errLog('vxe.error.reqProp', [`${column.getTitle() || type || ''} -> column.field=?`])
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
225
|
if (!hasFixed && fixed) {
|
|
@@ -4086,13 +4086,25 @@ const Methods = {
|
|
|
4086
4086
|
}
|
|
4087
4087
|
},
|
|
4088
4088
|
getCustomStoreData () {
|
|
4089
|
-
const
|
|
4090
|
-
const
|
|
4091
|
-
const
|
|
4092
|
-
|
|
4093
|
-
const
|
|
4094
|
-
const
|
|
4095
|
-
const
|
|
4089
|
+
const $xeTable = this as VxeTableConstructor & VxeTablePrivateMethods
|
|
4090
|
+
const props = $xeTable
|
|
4091
|
+
const internalData = $xeTable as unknown as TableInternalData
|
|
4092
|
+
|
|
4093
|
+
const { id } = props
|
|
4094
|
+
const customOpts = $xeTable.computeCustomOpts
|
|
4095
|
+
const { collectColumn } = internalData
|
|
4096
|
+
const { storage, checkMethod } = customOpts
|
|
4097
|
+
const isAllCustom = storage === true
|
|
4098
|
+
const storageOpts: VxeTableDefines.VxeTableCustomStorageObj = isAllCustom ? {} : Object.assign({}, storage || {})
|
|
4099
|
+
const isCustomResizable = isAllCustom || storageOpts.resizable
|
|
4100
|
+
const isCustomVisible = isAllCustom || storageOpts.visible
|
|
4101
|
+
const isCustomFixed = isAllCustom || storageOpts.fixed
|
|
4102
|
+
const isCustomSort = isAllCustom || storageOpts.sort
|
|
4103
|
+
const resizableData: Record<string, number> = {}
|
|
4104
|
+
const sortData: Record<string, number> = {}
|
|
4105
|
+
const visibleData: Record<string, boolean> = {}
|
|
4106
|
+
const fixedData: Record<string, VxeColumnPropTypes.Fixed> = {}
|
|
4107
|
+
const storeData: VxeTableDefines.CustomStoreData = {
|
|
4096
4108
|
resizableData: undefined,
|
|
4097
4109
|
sortData: undefined,
|
|
4098
4110
|
visibleData: undefined,
|
|
@@ -4104,46 +4116,36 @@ const Methods = {
|
|
|
4104
4116
|
}
|
|
4105
4117
|
let hasResizable = 0
|
|
4106
4118
|
let hasSort = 0
|
|
4107
|
-
let
|
|
4119
|
+
let hasFixed = 0
|
|
4108
4120
|
let hasVisible = 0
|
|
4109
4121
|
XEUtils.eachTree(collectColumn, (column, index, items, path, parentColumn) => {
|
|
4122
|
+
const colKey = column.getKey()
|
|
4123
|
+
if (!colKey) {
|
|
4124
|
+
errLog('vxe.error.reqProp', [`${column.getTitle() || column.type || ''} -> column.field=?`])
|
|
4125
|
+
return
|
|
4126
|
+
}
|
|
4110
4127
|
// 只支持一级
|
|
4111
4128
|
if (!parentColumn) {
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
hasSort = 1
|
|
4116
|
-
sortData[colKey] = column.renderSortNumber
|
|
4117
|
-
}
|
|
4118
|
-
})
|
|
4119
|
-
if (column.fixed !== column.defaultFixed) {
|
|
4120
|
-
const colKey = column.getKey()
|
|
4121
|
-
if (colKey) {
|
|
4122
|
-
hasFixedt = 1
|
|
4123
|
-
fixedData[colKey] = column.fixed
|
|
4124
|
-
}
|
|
4129
|
+
if (isCustomSort) {
|
|
4130
|
+
hasSort = 1
|
|
4131
|
+
sortData[colKey] = column.renderSortNumber
|
|
4125
4132
|
}
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
if (colKey) {
|
|
4130
|
-
hasResizable = 1
|
|
4131
|
-
resizableData[colKey] = column.renderWidth
|
|
4133
|
+
if (isCustomFixed && column.fixed !== column.defaultFixed) {
|
|
4134
|
+
hasFixed = 1
|
|
4135
|
+
fixedData[colKey] = column.fixed
|
|
4132
4136
|
}
|
|
4133
4137
|
}
|
|
4134
|
-
if (
|
|
4138
|
+
if (isCustomResizable && column.resizeWidth) {
|
|
4139
|
+
hasResizable = 1
|
|
4140
|
+
resizableData[colKey] = column.renderWidth
|
|
4141
|
+
}
|
|
4142
|
+
if (isCustomVisible && (!checkMethod || checkMethod({ column }))) {
|
|
4135
4143
|
if (!column.visible && column.defaultVisible) {
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
hasVisible = 1
|
|
4139
|
-
visibleData[colKey] = false
|
|
4140
|
-
}
|
|
4144
|
+
hasVisible = 1
|
|
4145
|
+
visibleData[colKey] = false
|
|
4141
4146
|
} else if (column.visible && !column.defaultVisible) {
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
hasVisible = 1
|
|
4145
|
-
visibleData[colKey] = true
|
|
4146
|
-
}
|
|
4147
|
+
hasVisible = 1
|
|
4148
|
+
visibleData[colKey] = true
|
|
4147
4149
|
}
|
|
4148
4150
|
}
|
|
4149
4151
|
})
|
|
@@ -4153,7 +4155,7 @@ const Methods = {
|
|
|
4153
4155
|
if (hasSort) {
|
|
4154
4156
|
storeData.sortData = sortData
|
|
4155
4157
|
}
|
|
4156
|
-
if (
|
|
4158
|
+
if (hasFixed) {
|
|
4157
4159
|
storeData.fixedData = fixedData
|
|
4158
4160
|
}
|
|
4159
4161
|
if (hasVisible) {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|