vxe-table 3.10.3 → 3.10.5
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/grid/src/grid.js +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/custom/mixin.js +130 -2
- package/es/table/module/custom/panel.js +327 -338
- package/es/table/module/export/export-panel.js +2 -2
- package/es/table/src/cell.js +2 -2
- package/es/table/src/methods.js +9 -28
- package/es/table/style.css +42 -37
- package/es/table/style.min.css +1 -1
- package/es/ui/index.js +2 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +42 -37
- package/es/vxe-table/style.min.css +1 -1
- package/lib/grid/src/grid.js +1 -1
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.umd.js +375 -298
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/custom/mixin.js +176 -2
- package/lib/table/module/custom/mixin.min.js +1 -1
- package/lib/table/module/custom/panel.js +182 -255
- package/lib/table/module/custom/panel.min.js +1 -1
- package/lib/table/module/export/export-panel.js +2 -2
- package/lib/table/module/export/export-panel.min.js +1 -1
- package/lib/table/src/cell.js +2 -1
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/methods.js +9 -35
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/style/style.css +42 -37
- package/lib/table/style/style.min.css +1 -1
- package/lib/ui/index.js +2 -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/lib/vxe-table/style/style.css +42 -37
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/grid/src/grid.ts +1 -1
- package/packages/table/module/custom/mixin.ts +131 -2
- package/packages/table/module/custom/panel.ts +332 -337
- package/packages/table/module/export/export-panel.ts +2 -2
- package/packages/table/src/cell.ts +2 -2
- package/packages/table/src/methods.ts +9 -28
- package/packages/ui/index.ts +1 -0
- package/styles/components/table-module/custom.scss +21 -5
- /package/es/{iconfont.1730898131844.ttf → iconfont.1730971767552.ttf} +0 -0
- /package/es/{iconfont.1730898131844.woff → iconfont.1730971767552.woff} +0 -0
- /package/es/{iconfont.1730898131844.woff2 → iconfont.1730971767552.woff2} +0 -0
- /package/lib/{iconfont.1730898131844.ttf → iconfont.1730971767552.ttf} +0 -0
- /package/lib/{iconfont.1730898131844.woff → iconfont.1730971767552.woff} +0 -0
- /package/lib/{iconfont.1730898131844.woff2 → iconfont.1730971767552.woff2} +0 -0
|
@@ -311,7 +311,7 @@ export default {
|
|
|
311
311
|
? h('td', [
|
|
312
312
|
h('div', {
|
|
313
313
|
class: 'vxe-table-export--panel-option-row'
|
|
314
|
-
}, $xeTable.callSlot(parameterSlot, params))
|
|
314
|
+
}, $xeTable.callSlot(parameterSlot, params, h))
|
|
315
315
|
])
|
|
316
316
|
: h('td', [
|
|
317
317
|
h('div', {
|
|
@@ -437,7 +437,7 @@ export default {
|
|
|
437
437
|
return h('div', {
|
|
438
438
|
class: 'vxe-table-export--panel-footer'
|
|
439
439
|
}, footerSlot
|
|
440
|
-
? $xeTable.callSlot(footerSlot, params)
|
|
440
|
+
? $xeTable.callSlot(footerSlot, params, h)
|
|
441
441
|
: [
|
|
442
442
|
h('div', {
|
|
443
443
|
class: 'vxe-table-export--panel-btns'
|
|
@@ -51,7 +51,7 @@ function renderTitleSuffixIcon (h: CreateElement, params: any) {
|
|
|
51
51
|
function renderCellDragIcon (h: CreateElement, params: any) {
|
|
52
52
|
const { $table } = params
|
|
53
53
|
const dragOpts = $table.computeDragOpts
|
|
54
|
-
const { rowDisabledMethod } = dragOpts
|
|
54
|
+
const { rowIcon, rowDisabledMethod } = dragOpts
|
|
55
55
|
const isDisabled = rowDisabledMethod && rowDisabledMethod(params)
|
|
56
56
|
return h('span', {
|
|
57
57
|
key: 'dg',
|
|
@@ -68,7 +68,7 @@ function renderCellDragIcon (h: CreateElement, params: any) {
|
|
|
68
68
|
}
|
|
69
69
|
}, [
|
|
70
70
|
h('i', {
|
|
71
|
-
class:
|
|
71
|
+
class: rowIcon || getIcon().TABLE_DRAG_ROW
|
|
72
72
|
})
|
|
73
73
|
])
|
|
74
74
|
}
|
|
@@ -1862,31 +1862,8 @@ const Methods = {
|
|
|
1862
1862
|
* 如果已关联工具栏,则会同步更新
|
|
1863
1863
|
*/
|
|
1864
1864
|
resetColumn (options: any) {
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
const opts = Object.assign({
|
|
1868
|
-
visible: true,
|
|
1869
|
-
resizable: options === true,
|
|
1870
|
-
fixed: options === true,
|
|
1871
|
-
sort: options === true
|
|
1872
|
-
}, options)
|
|
1873
|
-
XEUtils.eachTree(collectColumn, (column) => {
|
|
1874
|
-
if (opts.resizable) {
|
|
1875
|
-
column.resizeWidth = 0
|
|
1876
|
-
}
|
|
1877
|
-
if (opts.fixed) {
|
|
1878
|
-
column.fixed = column.defaultFixed
|
|
1879
|
-
}
|
|
1880
|
-
if (opts.sort) {
|
|
1881
|
-
column.renderSortNumber = column.sortNumber
|
|
1882
|
-
}
|
|
1883
|
-
if (!checkMethod || checkMethod({ column })) {
|
|
1884
|
-
column.visible = column.defaultVisible
|
|
1885
|
-
}
|
|
1886
|
-
column.renderResizeWidth = column.renderWidth
|
|
1887
|
-
})
|
|
1888
|
-
this.saveCustomStore('reset')
|
|
1889
|
-
return this.handleCustom()
|
|
1865
|
+
warnLog('vxe.error.delFunc', ['resetColumn', 'resetCustom'])
|
|
1866
|
+
return this.resetCustom(options)
|
|
1890
1867
|
},
|
|
1891
1868
|
handleCustom () {
|
|
1892
1869
|
const { mouseConfig } = this
|
|
@@ -5319,7 +5296,9 @@ const Methods = {
|
|
|
5319
5296
|
Promise.resolve(
|
|
5320
5297
|
loadMethod({ $table: $xeTable, row })
|
|
5321
5298
|
).then((childRecords: any) => {
|
|
5322
|
-
rowRest
|
|
5299
|
+
if (rowRest) {
|
|
5300
|
+
rowRest.treeLoaded = true
|
|
5301
|
+
}
|
|
5323
5302
|
if (treeExpandLazyLoadedMaps[rowid]) {
|
|
5324
5303
|
delete treeExpandLazyLoadedMaps[rowid]
|
|
5325
5304
|
}
|
|
@@ -5345,7 +5324,9 @@ const Methods = {
|
|
|
5345
5324
|
}
|
|
5346
5325
|
}).catch(() => {
|
|
5347
5326
|
const { treeExpandLazyLoadedMaps } = this
|
|
5348
|
-
rowRest
|
|
5327
|
+
if (rowRest) {
|
|
5328
|
+
rowRest.treeLoaded = false
|
|
5329
|
+
}
|
|
5349
5330
|
if (treeExpandLazyLoadedMaps[rowid]) {
|
|
5350
5331
|
delete treeExpandLazyLoadedMaps[rowid]
|
|
5351
5332
|
}
|
|
@@ -6192,7 +6173,7 @@ const Methods = {
|
|
|
6192
6173
|
} as any
|
|
6193
6174
|
|
|
6194
6175
|
// Module methods
|
|
6195
|
-
const funcs = 'setFilter,openFilter,clearFilter,getCheckedFilters,updateFilterOptionStatus,closeMenu,setActiveCellArea,getActiveCellArea,getCellAreas,clearCellAreas,copyCellArea,cutCellArea,pasteCellArea,getCopyCellArea,getCopyCellAreas,clearCopyCellArea,setCellAreas,openFNR,openFind,openReplace,closeFNR,getSelectedCell,clearSelected,insert,insertAt,insertNextAt,remove,removeCheckboxRow,removeRadioRow,removeCurrentRow,getRecordset,getInsertRecords,getRemoveRecords,getUpdateRecords,clearEdit,clearActived,getEditRecord,getActiveRecord,isEditByRow,isActiveByRow,setEditRow,setActiveRow,setEditCell,setActiveCell,setSelectCell,clearValidate,fullValidate,validate,openExport,closeExport,openPrint,closePrint,getPrintHtml,exportData,openImport,closeImport,importData,saveFile,readFile,importByFile,print,openCustom,closeCustom'.split(',')
|
|
6176
|
+
const funcs = 'setFilter,openFilter,clearFilter,getCheckedFilters,updateFilterOptionStatus,closeMenu,setActiveCellArea,getActiveCellArea,getCellAreas,clearCellAreas,copyCellArea,cutCellArea,pasteCellArea,getCopyCellArea,getCopyCellAreas,clearCopyCellArea,setCellAreas,openFNR,openFind,openReplace,closeFNR,getSelectedCell,clearSelected,insert,insertAt,insertNextAt,remove,removeCheckboxRow,removeRadioRow,removeCurrentRow,getRecordset,getInsertRecords,getRemoveRecords,getUpdateRecords,clearEdit,clearActived,getEditRecord,getActiveRecord,isEditByRow,isActiveByRow,setEditRow,setActiveRow,setEditCell,setActiveCell,setSelectCell,clearValidate,fullValidate,validate,openExport,closeExport,openPrint,closePrint,getPrintHtml,exportData,openImport,closeImport,importData,saveFile,readFile,importByFile,print,openCustom,closeCustom,saveCustom,cancelCustom,resetCustom,toggleCustomAllCheckbox,setCustomAllCheckbox'.split(',')
|
|
6196
6177
|
|
|
6197
6178
|
funcs.forEach(name => {
|
|
6198
6179
|
Methods[name] = function (...args: any[]) {
|
package/packages/ui/index.ts
CHANGED
|
@@ -239,6 +239,7 @@ VxeUI.setIcon({
|
|
|
239
239
|
TABLE_RADIO_UNCHECKED: iconPrefix + 'radio-unchecked',
|
|
240
240
|
TABLE_CUSTOM_SORT: iconPrefix + 'drag-handle',
|
|
241
241
|
TABLE_MENU_OPTIONS: iconPrefix + 'arrow-right',
|
|
242
|
+
TABLE_DRAG_ROW: iconPrefix + 'drag-handle',
|
|
242
243
|
|
|
243
244
|
// toolbar
|
|
244
245
|
TOOLBAR_TOOLS_REFRESH: iconPrefix + 'repeat',
|
|
@@ -94,15 +94,14 @@
|
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
.vxe-table-custom--
|
|
97
|
+
.vxe-table-custom--body {
|
|
98
98
|
display: block;
|
|
99
99
|
flex-grow: 1;
|
|
100
100
|
overflow-x: hidden;
|
|
101
101
|
overflow-y: auto;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
.vxe-table-custom--
|
|
105
|
-
.vxe-table-custom--body {
|
|
104
|
+
.vxe-table-custom--panel-list {
|
|
106
105
|
list-style-type: none;
|
|
107
106
|
margin: 0;
|
|
108
107
|
padding: 0;
|
|
@@ -130,7 +129,7 @@
|
|
|
130
129
|
user-select: none;
|
|
131
130
|
}
|
|
132
131
|
|
|
133
|
-
.vxe-table-custom--
|
|
132
|
+
.vxe-table-custom--panel-list {
|
|
134
133
|
padding: 0.2em 0;
|
|
135
134
|
.vxe-table-custom--checkbox-option {
|
|
136
135
|
&:hover {
|
|
@@ -139,7 +138,8 @@
|
|
|
139
138
|
}
|
|
140
139
|
}
|
|
141
140
|
|
|
142
|
-
.vxe-table-custom--footer {
|
|
141
|
+
.vxe-table-custom--footer-buttons {
|
|
142
|
+
width: 100%;
|
|
143
143
|
display: flex;
|
|
144
144
|
flex-direction: row;
|
|
145
145
|
flex-shrink: 0;
|
|
@@ -390,3 +390,19 @@
|
|
|
390
390
|
margin-left: 5px;
|
|
391
391
|
cursor: help;
|
|
392
392
|
}
|
|
393
|
+
|
|
394
|
+
.vxe-table-custom-popup--table-col-seq {
|
|
395
|
+
width: 80px;
|
|
396
|
+
}
|
|
397
|
+
.vxe-table-custom-popup--table-col-sort {
|
|
398
|
+
width: 80px;
|
|
399
|
+
}
|
|
400
|
+
.vxe-table-custom-popup--table-col-title {
|
|
401
|
+
min-width: 120px;
|
|
402
|
+
}
|
|
403
|
+
.vxe-table-custom-popup--table-col-width {
|
|
404
|
+
width: 140px;
|
|
405
|
+
}
|
|
406
|
+
.vxe-table-custom-popup--table-col-fixed {
|
|
407
|
+
width: 200px;
|
|
408
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|