vxe-table 3.10.4 → 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.
Files changed (48) hide show
  1. package/es/grid/src/grid.js +1 -1
  2. package/es/style.css +1 -1
  3. package/es/style.min.css +1 -1
  4. package/es/table/module/custom/mixin.js +130 -2
  5. package/es/table/module/custom/panel.js +327 -338
  6. package/es/table/module/export/export-panel.js +2 -2
  7. package/es/table/src/methods.js +9 -28
  8. package/es/table/style.css +42 -37
  9. package/es/table/style.min.css +1 -1
  10. package/es/ui/index.js +1 -1
  11. package/es/ui/src/log.js +1 -1
  12. package/es/vxe-table/style.css +42 -37
  13. package/es/vxe-table/style.min.css +1 -1
  14. package/lib/grid/src/grid.js +1 -1
  15. package/lib/grid/src/grid.min.js +1 -1
  16. package/lib/index.umd.js +372 -297
  17. package/lib/index.umd.min.js +1 -1
  18. package/lib/style.css +1 -1
  19. package/lib/style.min.css +1 -1
  20. package/lib/table/module/custom/mixin.js +176 -2
  21. package/lib/table/module/custom/mixin.min.js +1 -1
  22. package/lib/table/module/custom/panel.js +182 -255
  23. package/lib/table/module/custom/panel.min.js +1 -1
  24. package/lib/table/module/export/export-panel.js +2 -2
  25. package/lib/table/module/export/export-panel.min.js +1 -1
  26. package/lib/table/src/methods.js +9 -35
  27. package/lib/table/src/methods.min.js +1 -1
  28. package/lib/table/style/style.css +42 -37
  29. package/lib/table/style/style.min.css +1 -1
  30. package/lib/ui/index.js +1 -1
  31. package/lib/ui/index.min.js +1 -1
  32. package/lib/ui/src/log.js +1 -1
  33. package/lib/ui/src/log.min.js +1 -1
  34. package/lib/vxe-table/style/style.css +42 -37
  35. package/lib/vxe-table/style/style.min.css +1 -1
  36. package/package.json +2 -2
  37. package/packages/grid/src/grid.ts +1 -1
  38. package/packages/table/module/custom/mixin.ts +131 -2
  39. package/packages/table/module/custom/panel.ts +332 -337
  40. package/packages/table/module/export/export-panel.ts +2 -2
  41. package/packages/table/src/methods.ts +9 -28
  42. package/styles/components/table-module/custom.scss +21 -5
  43. /package/es/{iconfont.1730945625063.ttf → iconfont.1730971767552.ttf} +0 -0
  44. /package/es/{iconfont.1730945625063.woff → iconfont.1730971767552.woff} +0 -0
  45. /package/es/{iconfont.1730945625063.woff2 → iconfont.1730971767552.woff2} +0 -0
  46. /package/lib/{iconfont.1730945625063.ttf → iconfont.1730971767552.ttf} +0 -0
  47. /package/lib/{iconfont.1730945625063.woff → iconfont.1730971767552.woff} +0 -0
  48. /package/lib/{iconfont.1730945625063.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'
@@ -1862,31 +1862,8 @@ const Methods = {
1862
1862
  * 如果已关联工具栏,则会同步更新
1863
1863
  */
1864
1864
  resetColumn (options: any) {
1865
- const { collectColumn, customOpts } = this
1866
- const { checkMethod } = customOpts
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.treeLoaded = true
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.treeLoaded = false
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[]) {
@@ -94,15 +94,14 @@
94
94
  }
95
95
  }
96
96
 
97
- .vxe-table-custom--list-wrapper {
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--header,
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--body {
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
+ }