vxe-table 3.17.7 → 3.17.8

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 (47) hide show
  1. package/es/grid/src/grid.js +47 -29
  2. package/es/style.css +1 -1
  3. package/es/table/module/export/mixin.js +3 -1
  4. package/es/table/src/methods.js +109 -42
  5. package/es/table/src/props.js +1 -1
  6. package/es/table/src/table.js +7 -1
  7. package/es/table/src/util.js +0 -4
  8. package/es/toolbar/src/toolbar.js +2 -2
  9. package/es/ui/index.js +13 -4
  10. package/es/ui/src/log.js +1 -1
  11. package/lib/grid/src/grid.js +49 -26
  12. package/lib/grid/src/grid.min.js +1 -1
  13. package/lib/index.umd.js +13411 -13299
  14. package/lib/index.umd.min.js +1 -1
  15. package/lib/style.css +1 -1
  16. package/lib/table/module/export/mixin.js +5 -1
  17. package/lib/table/module/export/mixin.min.js +1 -1
  18. package/lib/table/src/methods.js +114 -43
  19. package/lib/table/src/methods.min.js +1 -1
  20. package/lib/table/src/props.js +2 -2
  21. package/lib/table/src/props.min.js +1 -1
  22. package/lib/table/src/table.js +8 -2
  23. package/lib/table/src/table.min.js +1 -1
  24. package/lib/table/src/util.js +0 -4
  25. package/lib/table/src/util.min.js +1 -1
  26. package/lib/toolbar/src/toolbar.js +2 -0
  27. package/lib/toolbar/src/toolbar.min.js +1 -1
  28. package/lib/ui/index.js +12 -3
  29. package/lib/ui/index.min.js +1 -1
  30. package/lib/ui/src/log.js +1 -1
  31. package/lib/ui/src/log.min.js +1 -1
  32. package/package.json +1 -1
  33. package/packages/grid/src/grid.ts +49 -30
  34. package/packages/table/module/export/mixin.ts +5 -3
  35. package/packages/table/src/methods.ts +118 -46
  36. package/packages/table/src/props.ts +1 -1
  37. package/packages/table/src/table.ts +7 -1
  38. package/packages/table/src/util.ts +0 -4
  39. package/packages/toolbar/src/toolbar.ts +2 -2
  40. package/packages/ui/index.ts +12 -2
  41. package/packages/ui/src/dom.ts +1 -1
  42. /package/es/{iconfont.1754614978390.ttf → iconfont.1754905462391.ttf} +0 -0
  43. /package/es/{iconfont.1754614978390.woff → iconfont.1754905462391.woff} +0 -0
  44. /package/es/{iconfont.1754614978390.woff2 → iconfont.1754905462391.woff2} +0 -0
  45. /package/lib/{iconfont.1754614978390.ttf → iconfont.1754905462391.ttf} +0 -0
  46. /package/lib/{iconfont.1754614978390.woff → iconfont.1754905462391.woff} +0 -0
  47. /package/lib/{iconfont.1754614978390.woff2 → iconfont.1754905462391.woff2} +0 -0
@@ -5,7 +5,7 @@ import type { VxeTablePropTypes } from '../../../types'
5
5
 
6
6
  const { getConfig } = VxeUI
7
7
 
8
- export default {
8
+ export const tableProps = {
9
9
  /** 基本属性 */
10
10
  id: [String, Function] as PropType<VxeTablePropTypes.ID>,
11
11
  // 数据
@@ -8,7 +8,7 @@ import methods from './methods'
8
8
  import TableBodyComponent from './body'
9
9
  import TableHeaderComponent from './header'
10
10
  import TableFooterComponent from './footer'
11
- import tableProps from './props'
11
+ import { tableProps } from './props'
12
12
  import { getSlotVNs } from '../../ui/src/vn'
13
13
  import { warnLog, errLog } from '../../ui/src/log'
14
14
  import TableCustomPanelComponent from '../module/custom/panel'
@@ -522,6 +522,12 @@ export default {
522
522
  scrollbarHeight: 0,
523
523
  // 行高
524
524
  rowHeight: 0,
525
+ // 表头高度
526
+ tHeaderHeight: 0,
527
+ // 表体高度
528
+ tBodyHeight: 0,
529
+ // 表尾高度
530
+ tFooterHeight: 0,
525
531
  // 表格父容器的高度
526
532
  parentHeight: 0,
527
533
  // 是否使用分组表头
@@ -36,10 +36,6 @@ export function createInternalData (): TableInternalData {
36
36
  tableWidth: 0,
37
37
  // 表格高度
38
38
  tableHeight: 0,
39
- // 表头高度
40
- headerHeight: 0,
41
- // 表尾高度
42
- footerHeight: 0,
43
39
  customHeight: 0,
44
40
  customMinHeight: 0,
45
41
  customMaxHeight: 0,
@@ -367,7 +367,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
367
367
  $xeGrid.triggerToolbarBtnEvent(item, $event)
368
368
  } else {
369
369
  const gCommandOpts = commands.get(code)
370
- const params = { code, button: item, $table: $table!, $grid: $xeGrid, $event }
370
+ const params = { code, button: item, $table: $table as VxeTableConstructor, $grid: $xeGrid, $gantt: null, $event }
371
371
  if (gCommandOpts) {
372
372
  const tCommandMethod = gCommandOpts.tableCommandMethod || gCommandOpts.commandMethod
373
373
  if (tCommandMethod) {
@@ -396,7 +396,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
396
396
  $xeGrid.triggerToolbarTolEvent(item, $event)
397
397
  } else {
398
398
  const gCommandOpts = commands.get(code)
399
- const params = { code, button: null, tool: item, $table: $table!, $grid: $xeGrid, $event }
399
+ const params = { code, button: null, tool: item, $table: $table as VxeTableConstructor, $grid: $xeGrid, $gantt: null, $event }
400
400
  if (gCommandOpts) {
401
401
  const tCommandMethod = gCommandOpts.tableCommandMethod || gCommandOpts.commandMethod
402
402
  if (tCommandMethod) {
@@ -235,7 +235,15 @@ VxeUI.setConfig({
235
235
  },
236
236
  scrollbarConfig: {
237
237
  // width: 14,
238
- // height: 14
238
+ // height: 14,
239
+ x: {
240
+ // position: 'bottom',
241
+ visible: true
242
+ },
243
+ y: {
244
+ // position: 'right',
245
+ visible: true
246
+ }
239
247
  }
240
248
  },
241
249
  // export: {
@@ -288,7 +296,9 @@ VxeUI.setConfig({
288
296
  // types: ['csv', 'html', 'xml', 'txt']
289
297
  // },
290
298
  // buttons: []
291
- }
299
+ },
300
+
301
+ gantt: {}
292
302
  })
293
303
 
294
304
  const iconPrefix = 'vxe-table-icon-'
@@ -100,7 +100,7 @@ export function getDomNode () {
100
100
  }
101
101
  }
102
102
 
103
- export function getOffsetHeight (elem: HTMLElement) {
103
+ export function getOffsetHeight (elem?: HTMLElement) {
104
104
  return elem ? elem.offsetHeight : 0
105
105
  }
106
106