vxe-table 4.6.2 → 4.6.4

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 (78) hide show
  1. package/es/custom/src/hook.js +2 -1
  2. package/es/icon/style.css +1 -1
  3. package/es/locale/lang/en-US.js +200 -86
  4. package/es/locale/lang/es-ES.js +200 -86
  5. package/es/locale/lang/ja-JP.js +200 -86
  6. package/es/locale/lang/zh-CN.js +200 -86
  7. package/es/locale/lang/zh-TC.js +200 -86
  8. package/es/style.css +1 -1
  9. package/es/style.min.css +1 -1
  10. package/es/table/src/emits.js +1 -0
  11. package/es/table/src/table.js +9 -4
  12. package/es/toolbar/src/toolbar.js +4 -4
  13. package/es/tools/log.js +1 -1
  14. package/es/v-x-e-table/index.js +1 -1
  15. package/lib/custom/src/hook.js +2 -0
  16. package/lib/custom/src/hook.min.js +1 -1
  17. package/lib/icon/style/style.css +1 -1
  18. package/lib/icon/style/style.min.css +1 -1
  19. package/lib/index.umd.js +218 -97
  20. package/lib/index.umd.min.js +1 -1
  21. package/lib/locale/lang/en-US.js +200 -86
  22. package/lib/locale/lang/en-US.min.js +1 -1
  23. package/lib/locale/lang/en-US.umd.js +200 -86
  24. package/lib/locale/lang/es-ES.js +200 -86
  25. package/lib/locale/lang/es-ES.min.js +1 -1
  26. package/lib/locale/lang/es-ES.umd.js +200 -86
  27. package/lib/locale/lang/ja-JP.js +200 -86
  28. package/lib/locale/lang/ja-JP.min.js +1 -1
  29. package/lib/locale/lang/ja-JP.umd.js +200 -86
  30. package/lib/locale/lang/zh-CN.js +200 -86
  31. package/lib/locale/lang/zh-CN.min.js +1 -1
  32. package/lib/locale/lang/zh-CN.umd.js +200 -86
  33. package/lib/locale/lang/zh-HK.min.js +1 -1
  34. package/lib/locale/lang/zh-HK.umd.js +200 -86
  35. package/lib/locale/lang/zh-MO.min.js +1 -1
  36. package/lib/locale/lang/zh-MO.umd.js +200 -86
  37. package/lib/locale/lang/zh-TC.js +200 -86
  38. package/lib/locale/lang/zh-TC.min.js +1 -1
  39. package/lib/locale/lang/zh-TC.umd.js +200 -86
  40. package/lib/locale/lang/zh-TW.min.js +1 -1
  41. package/lib/locale/lang/zh-TW.umd.js +200 -86
  42. package/lib/style.css +1 -1
  43. package/lib/style.min.css +1 -1
  44. package/lib/table/src/emits.js +1 -1
  45. package/lib/table/src/emits.min.js +1 -1
  46. package/lib/table/src/table.js +9 -4
  47. package/lib/table/src/table.min.js +1 -1
  48. package/lib/toolbar/src/toolbar.js +4 -4
  49. package/lib/toolbar/src/toolbar.min.js +1 -1
  50. package/lib/tools/log.js +1 -1
  51. package/lib/tools/log.min.js +1 -1
  52. package/lib/v-x-e-table/index.js +1 -1
  53. package/lib/v-x-e-table/index.min.js +1 -1
  54. package/package.json +1 -1
  55. package/packages/custom/src/hook.ts +2 -1
  56. package/packages/locale/lang/en-US.ts +202 -86
  57. package/packages/locale/lang/es-ES.ts +202 -86
  58. package/packages/locale/lang/ja-JP.ts +202 -86
  59. package/packages/locale/lang/zh-CN.ts +202 -86
  60. package/packages/locale/lang/zh-TC.ts +202 -86
  61. package/packages/table/src/emits.ts +1 -0
  62. package/packages/table/src/table.ts +9 -4
  63. package/packages/toolbar/src/toolbar.ts +4 -4
  64. package/types/plugins/extend-cell-area.d.ts +16 -0
  65. package/types/table.d.ts +17 -0
  66. package/types/tooltip.d.ts +1 -1
  67. /package/es/icon/style/{iconfont.1713849212016.ttf → iconfont.1714027257286.ttf} +0 -0
  68. /package/es/icon/style/{iconfont.1713849212016.woff → iconfont.1714027257286.woff} +0 -0
  69. /package/es/icon/style/{iconfont.1713849212016.woff2 → iconfont.1714027257286.woff2} +0 -0
  70. /package/es/{iconfont.1713849212016.ttf → iconfont.1714027257286.ttf} +0 -0
  71. /package/es/{iconfont.1713849212016.woff → iconfont.1714027257286.woff} +0 -0
  72. /package/es/{iconfont.1713849212016.woff2 → iconfont.1714027257286.woff2} +0 -0
  73. /package/lib/icon/style/{iconfont.1713849212016.ttf → iconfont.1714027257286.ttf} +0 -0
  74. /package/lib/icon/style/{iconfont.1713849212016.woff → iconfont.1714027257286.woff} +0 -0
  75. /package/lib/icon/style/{iconfont.1713849212016.woff2 → iconfont.1714027257286.woff2} +0 -0
  76. /package/lib/{iconfont.1713849212016.ttf → iconfont.1714027257286.ttf} +0 -0
  77. /package/lib/{iconfont.1713849212016.woff → iconfont.1714027257286.woff} +0 -0
  78. /package/lib/{iconfont.1713849212016.woff2 → iconfont.1714027257286.woff2} +0 -0
@@ -231,6 +231,7 @@ export namespace VxeTableProDefines {
231
231
 
232
232
  export interface CellAreaCopyParams<D = VxeTableDataRow> {
233
233
  status: boolean
234
+ invalid: boolean
234
235
  targetAreas: VxeTableProDefines.CellAreaParams<D>[]
235
236
  cellValues: string[][]
236
237
  }
@@ -238,6 +239,7 @@ export namespace VxeTableProDefines {
238
239
 
239
240
  export interface CellAreaCutParams<D = VxeTableDataRow> {
240
241
  status: boolean
242
+ invalid: boolean
241
243
  targetAreas: VxeTableProDefines.CellAreaParams<D>[]
242
244
  cellValues: string[][]
243
245
  }
@@ -245,6 +247,7 @@ export namespace VxeTableProDefines {
245
247
 
246
248
  export interface CellAreaPasteParams<D = VxeTableDataRow> {
247
249
  status: boolean
250
+ invalid: boolean
248
251
  targetAreas: VxeTableProDefines.CellAreaParams<D>[]
249
252
  }
250
253
  export interface CellAreaPasteEventParams<D = VxeTableDataRow> extends EventParams<D>, CellAreaPasteParams<D> { }
@@ -268,6 +271,12 @@ export namespace VxeTableProDefines {
268
271
  }
269
272
  export interface HeaderCellAreaSelectionEventParams<D = VxeTableDataRow> extends EventParams<D>, HeaderCellAreaSelectionParams<D> { }
270
273
 
274
+ export interface CellAreaSelectionInvalidParams<D = VxeTableDataRow> {
275
+ row: D
276
+ column: VxeTableDefines.ColumnInfo<D>
277
+ }
278
+ export interface CellAreaSelectionInvalidEventParams<D = VxeTableDataRow> extends EventParams<D>, CellAreaSelectionInvalidParams<D> { }
279
+
271
280
  export interface CellAreaSelectionStartParams<D = VxeTableDataRow> {
272
281
  row: D
273
282
  _rowIndex: number
@@ -372,6 +381,7 @@ export type VxeTableProEmits = [
372
381
  'cell-area-merge',
373
382
  'clear-cell-area-merge',
374
383
  'header-cell-area-selection',
384
+ 'cell-area-selection-invalid',
375
385
  'cell-area-selection-start',
376
386
  'cell-area-selection-drag',
377
387
  'cell-area-selection-end',
@@ -400,6 +410,7 @@ declare module '../table' {
400
410
  onCellAreaMerge?: VxeTableEvents.CellAreaMerge<D>
401
411
  onClearCellAreaMerge?: VxeTableEvents.ClearCellAreaMerge<D>
402
412
  onHeaderCellAreaSelection?: VxeTableEvents.HeaderCellAreaSelection<D>
413
+ onCellAreaSelectionInvalid?: VxeTableEvents.CellAreaSelectionInvalid<D>
403
414
  onCellAreaSelectionStart?: VxeTableEvents.CellAreaSelectionStart<D>
404
415
  onCellAreaSelectionDrag?: VxeTableEvents.CellAreaSelectionDrag<D>
405
416
  onCellAreaSelectionEnd?: VxeTableEvents.CellAreaSelectionEnd<D>
@@ -444,6 +455,7 @@ declare module '../table' {
444
455
  cellAreaMerge?: VxeTableEvents.CellAreaMerge<D>
445
456
  clearCellAreaMerge?: VxeTableEvents.ClearCellAreaMerge<D>
446
457
  headerCellAreaSelection?: VxeTableEvents.HeaderCellAreaSelection<D>
458
+ cellAreaSelectionInvalidtart?: VxeTableEvents.CellAreaSelectionInvalid<D>
447
459
  cellAreaSelectionStart?: VxeTableEvents.CellAreaSelectionStart<D>
448
460
  cellAreaSelectionDrag?: VxeTableEvents.CellAreaSelectionDrag<D>
449
461
  cellAreaSelectionEnd?: VxeTableEvents.CellAreaSelectionEnd<D>
@@ -470,6 +482,7 @@ declare module '../table' {
470
482
  export type CellAreaMerge<D = any> = (params: VxeTableProDefines.CellAreaMergeEventParams<D>) => void
471
483
  export type ClearCellAreaMerge<D = any> = (params: VxeTableProDefines.ClearCellAreaMergeEventParams<D>) => void
472
484
  export type HeaderCellAreaSelection<D = any> = (params: VxeTableProDefines.HeaderCellAreaSelectionEventParams<D>) => void
485
+ export type CellAreaSelectionInvalid<D = any> = (params: VxeTableProDefines.CellAreaSelectionInvalidEventParams<D>) => void
473
486
  export type CellAreaSelectionStart<D = any> = (params: VxeTableProDefines.CellAreaSelectionStartEventParams<D>) => void
474
487
  export type CellAreaSelectionDrag<D = any> = (params: VxeTableProDefines.CellAreaSelectionDragEventParams<D>) => void
475
488
  export type CellAreaSelectionEnd<D = any> = (params: VxeTableProDefines.CellAreaSelectionEndEventParams<D>) => void
@@ -499,6 +512,7 @@ declare module '../grid' {
499
512
  onCellAreaMerge?: VxeGridEvents.CellAreaMerge<D>
500
513
  onClearCellAreaMerge?: VxeGridEvents.ClearCellAreaMerge<D>
501
514
  onHeaderCellAreaSelection?: VxeGridEvents.HeaderCellAreaSelection<D>
515
+ onCellAreaSelectionInvalid?: VxeGridEvents.CellAreaSelectionInvalid<D>
502
516
  onCellAreaSelectionStart?: VxeGridEvents.CellAreaSelectionStart<D>
503
517
  onCellAreaSelectionDrag?: VxeGridEvents.CellAreaSelectionDrag<D>
504
518
  onCellAreaSelectionEnd?: VxeGridEvents.CellAreaSelectionEnd<D>
@@ -543,6 +557,7 @@ declare module '../grid' {
543
557
  cellAreaMerge?: VxeGridEvents.CellAreaMerge<D>
544
558
  clearCellAreaMerge?: VxeGridEvents.ClearCellAreaMerge<D>
545
559
  headerCellAreaSelection?: VxeGridEvents.HeaderCellAreaSelection<D>
560
+ cellAreaSelectionInvalid?: VxeGridEvents.CellAreaSelectionInvalid<D>
546
561
  cellAreaSelectionStart?: VxeGridEvents.CellAreaSelectionStart<D>
547
562
  cellAreaSelectionDrag?: VxeGridEvents.CellAreaSelectionDrag<D>
548
563
  cellAreaSelectionEnd?: VxeGridEvents.CellAreaSelectionEnd<D>
@@ -569,6 +584,7 @@ declare module '../grid' {
569
584
  export type CellAreaMerge<D = any> = (params: VxeTableProDefines.CellAreaMergeParams<D>) => void
570
585
  export type ClearCellAreaMerge<D = any> = (params: VxeTableProDefines.ClearCellAreaMergeParams<D>) => void
571
586
  export type HeaderCellAreaSelection<D = any> = (params: VxeTableProDefines.HeaderCellAreaSelectionParams<D>) => void
587
+ export type CellAreaSelectionInvalid<D = any> = (params: VxeTableProDefines.CellAreaSelectionInvalidEventParams<D>) => void
572
588
  export type CellAreaSelectionStart<D = any> = (params: VxeTableProDefines.CellAreaSelectionStartEventParams<D>) => void
573
589
  export type CellAreaSelectionDrag<D = any> = (params: VxeTableProDefines.CellAreaSelectionDragEventParams<D>) => void
574
590
  export type CellAreaSelectionEnd<D = any> = (params: VxeTableProDefines.CellAreaSelectionEndEventParams<D>) => void
package/types/table.d.ts CHANGED
@@ -887,6 +887,7 @@ export interface TableReactData<D = VxeTableDataRow> {
887
887
  filter: boolean
888
888
  import: boolean
889
889
  export: boolean
890
+ custom: boolean
890
891
  },
891
892
  // 自定义列相关的信息
892
893
  customStore: VxeTableCustomStoreObj,
@@ -1866,6 +1867,14 @@ export namespace VxeTablePropTypes {
1866
1867
  * 只对 mouse-config.area 启用后有效,启用多区域选取功能
1867
1868
  */
1868
1869
  multiple?: boolean
1870
+ /**
1871
+ * 用于指定哪些列允许被选取
1872
+ */
1873
+ includeFields?: string[]
1874
+ /**
1875
+ * 用于排除指定列允许不允许被选取
1876
+ */
1877
+ excludeFields?: string[]
1869
1878
  /**
1870
1879
  * 只对 mouse-config.area 启用后有效,点击列头是否选取当前列的所有单元格
1871
1880
  */
@@ -2021,6 +2030,14 @@ export namespace VxeTablePropTypes {
2021
2030
  * 是否启用列自增,当粘贴的列数超出表格时自动插入新列(需要注意自增的列自字段是否定义,否则将无法响应)
2022
2031
  */
2023
2032
  isColumnIncrement?: boolean
2033
+ /**
2034
+ * 用于指定哪些列允许被复制粘贴
2035
+ */
2036
+ includeFields?: string[]
2037
+ /**
2038
+ * 用于排除指定列允许不允许被复制粘贴
2039
+ */
2040
+ excludeFields?: string[]
2024
2041
  /**
2025
2042
  * 重写单元格复制取值的方法,将单元格复制到剪贴板
2026
2043
  */
@@ -102,7 +102,7 @@ export type VxeTooltipEmits = [
102
102
  ]
103
103
 
104
104
  export namespace VxeTooltipDefines {
105
- interface TooltipEventParams extends VxeEvent {
105
+ export interface TooltipEventParams extends VxeEvent {
106
106
  $tooltip: VxeTooltipConstructor
107
107
  }
108
108
  }