vxe-table 3.10.4 → 3.10.6
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/methods.js +25 -38
- package/es/table/style.css +42 -37
- package/es/table/style.min.css +1 -1
- package/es/ui/index.js +1 -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 +387 -306
- 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/methods.js +24 -44
- 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 +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/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/methods.ts +24 -37
- package/styles/components/table-module/custom.scss +21 -5
- /package/es/{iconfont.1730945625063.ttf → iconfont.1730978752470.ttf} +0 -0
- /package/es/{iconfont.1730945625063.woff → iconfont.1730978752470.woff} +0 -0
- /package/es/{iconfont.1730945625063.woff2 → iconfont.1730978752470.woff2} +0 -0
- /package/lib/{iconfont.1730945625063.ttf → iconfont.1730978752470.ttf} +0 -0
- /package/lib/{iconfont.1730945625063.woff → iconfont.1730978752470.woff} +0 -0
- /package/lib/{iconfont.1730945625063.woff2 → iconfont.1730978752470.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'
|
|
@@ -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
|
|
@@ -5049,10 +5026,14 @@ const Methods = {
|
|
|
5049
5026
|
rowExpandLazyLoadedMaps[rowid] = row
|
|
5050
5027
|
loadMethod({ $table: $xeTable, row, rowIndex: this.getRowIndex(row), $rowIndex: this.getVMRowIndex(row) }).then(() => {
|
|
5051
5028
|
const { rowExpandedMaps } = this
|
|
5052
|
-
rowRest
|
|
5029
|
+
if (rowRest) {
|
|
5030
|
+
rowRest.expandLoaded = true
|
|
5031
|
+
}
|
|
5053
5032
|
rowExpandedMaps[rowid] = row
|
|
5054
5033
|
}).catch(() => {
|
|
5055
|
-
rowRest
|
|
5034
|
+
if (rowRest) {
|
|
5035
|
+
rowRest.expandLoaded = false
|
|
5036
|
+
}
|
|
5056
5037
|
}).finally(() => {
|
|
5057
5038
|
const { rowExpandLazyLoadedMaps } = this
|
|
5058
5039
|
if (rowExpandLazyLoadedMaps[rowid]) {
|
|
@@ -5319,7 +5300,9 @@ const Methods = {
|
|
|
5319
5300
|
Promise.resolve(
|
|
5320
5301
|
loadMethod({ $table: $xeTable, row })
|
|
5321
5302
|
).then((childRecords: any) => {
|
|
5322
|
-
rowRest
|
|
5303
|
+
if (rowRest) {
|
|
5304
|
+
rowRest.treeLoaded = true
|
|
5305
|
+
}
|
|
5323
5306
|
if (treeExpandLazyLoadedMaps[rowid]) {
|
|
5324
5307
|
delete treeExpandLazyLoadedMaps[rowid]
|
|
5325
5308
|
}
|
|
@@ -5345,7 +5328,9 @@ const Methods = {
|
|
|
5345
5328
|
}
|
|
5346
5329
|
}).catch(() => {
|
|
5347
5330
|
const { treeExpandLazyLoadedMaps } = this
|
|
5348
|
-
rowRest
|
|
5331
|
+
if (rowRest) {
|
|
5332
|
+
rowRest.treeLoaded = false
|
|
5333
|
+
}
|
|
5349
5334
|
if (treeExpandLazyLoadedMaps[rowid]) {
|
|
5350
5335
|
delete treeExpandLazyLoadedMaps[rowid]
|
|
5351
5336
|
}
|
|
@@ -5408,13 +5393,15 @@ const Methods = {
|
|
|
5408
5393
|
const rowid = getRowid(this, row)
|
|
5409
5394
|
if (!treeTempExpandedMaps[rowid]) {
|
|
5410
5395
|
const rowRest = fullAllDataRowIdData[rowid]
|
|
5411
|
-
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5396
|
+
if (rowRest) {
|
|
5397
|
+
const isLoad = lazy && row[hasChildField] && !rowRest.treeLoaded && !treeExpandLazyLoadedMaps[rowid]
|
|
5398
|
+
// 是否使用懒加载
|
|
5399
|
+
if (isLoad) {
|
|
5400
|
+
result.push(this.handleAsyncTreeExpandChilds(row))
|
|
5401
|
+
} else {
|
|
5402
|
+
if (row[childrenField] && row[childrenField].length) {
|
|
5403
|
+
treeTempExpandedMaps[rowid] = row
|
|
5404
|
+
}
|
|
5418
5405
|
}
|
|
5419
5406
|
}
|
|
5420
5407
|
}
|
|
@@ -6192,7 +6179,7 @@ const Methods = {
|
|
|
6192
6179
|
} as any
|
|
6193
6180
|
|
|
6194
6181
|
// 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(',')
|
|
6182
|
+
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
6183
|
|
|
6197
6184
|
funcs.forEach(name => {
|
|
6198
6185
|
Methods[name] = function (...args: any[]) {
|
|
@@ -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
|