vxe-table 4.23.10 → 4.23.12

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 (90) hide show
  1. package/dist/all.esm.js +15972 -15853
  2. package/dist/all.esm.min.js +3 -0
  3. package/es/components.d.ts +1 -0
  4. package/es/components.js +1 -0
  5. package/es/grid/src/grid.js +1665 -1662
  6. package/es/table/src/column.js +39 -36
  7. package/es/table/src/group.js +49 -46
  8. package/es/table/src/table.js +13721 -13706
  9. package/es/toolbar/src/toolbar.js +595 -592
  10. package/es/ui/index.js +2 -1
  11. package/es/ui/src/log.js +1 -1
  12. package/lib/components.js +1 -0
  13. package/lib/grid/src/grid.js +1665 -1662
  14. package/lib/index.umd.js +15961 -15852
  15. package/lib/index.umd.min.js +3 -3
  16. package/lib/locale/ar-EG.umd.min.js +1 -0
  17. package/lib/locale/de-DE.umd.min.js +1 -0
  18. package/lib/locale/en-US.umd.min.js +1 -0
  19. package/lib/locale/es-ES.umd.min.js +1 -0
  20. package/lib/locale/fr-FR.umd.min.js +1 -0
  21. package/lib/locale/hu-HU.umd.min.js +1 -0
  22. package/lib/locale/hy-AM.umd.min.js +1 -0
  23. package/lib/locale/id-ID.umd.min.js +1 -0
  24. package/lib/locale/it-IT.umd.min.js +1 -0
  25. package/lib/locale/ja-JP.umd.min.js +1 -0
  26. package/lib/locale/ko-KR.umd.min.js +1 -0
  27. package/lib/locale/lang/ar-EG.umd.min.js +1 -0
  28. package/lib/locale/lang/de-DE.umd.min.js +1 -0
  29. package/lib/locale/lang/en-US.umd.min.js +1 -0
  30. package/lib/locale/lang/es-ES.umd.min.js +1 -0
  31. package/lib/locale/lang/fr-FR.umd.min.js +1 -0
  32. package/lib/locale/lang/hu-HU.umd.min.js +1 -0
  33. package/lib/locale/lang/hy-AM.umd.min.js +1 -0
  34. package/lib/locale/lang/id-ID.umd.min.js +1 -0
  35. package/lib/locale/lang/it-IT.umd.min.js +1 -0
  36. package/lib/locale/lang/ja-JP.umd.min.js +1 -0
  37. package/lib/locale/lang/ko-KR.umd.min.js +1 -0
  38. package/lib/locale/lang/ms-MY.umd.min.js +1 -0
  39. package/lib/locale/lang/nb-NO.umd.min.js +1 -0
  40. package/lib/locale/lang/pt-BR.umd.min.js +1 -0
  41. package/lib/locale/lang/ru-RU.umd.min.js +1 -0
  42. package/lib/locale/lang/th-TH.umd.min.js +1 -0
  43. package/lib/locale/lang/ug-CN.umd.min.js +1 -0
  44. package/lib/locale/lang/uk-UA.umd.min.js +1 -0
  45. package/lib/locale/lang/uz-UZ.umd.min.js +1 -0
  46. package/lib/locale/lang/vi-VN.umd.min.js +1 -0
  47. package/lib/locale/lang/zh-CHT.umd.min.js +1 -0
  48. package/lib/locale/lang/zh-CN.umd.min.js +1 -0
  49. package/lib/locale/lang/zh-HK.umd.min.js +1 -0
  50. package/lib/locale/lang/zh-MO.umd.min.js +1 -0
  51. package/lib/locale/lang/zh-TC.umd.min.js +1 -0
  52. package/lib/locale/lang/zh-TW.umd.min.js +1 -0
  53. package/lib/locale/ms-MY.umd.min.js +1 -0
  54. package/lib/locale/nb-NO.umd.min.js +1 -0
  55. package/lib/locale/pt-BR.umd.min.js +1 -0
  56. package/lib/locale/ru-RU.umd.min.js +1 -0
  57. package/lib/locale/th-TH.umd.min.js +1 -0
  58. package/lib/locale/ug-CN.umd.min.js +1 -0
  59. package/lib/locale/uk-UA.umd.min.js +1 -0
  60. package/lib/locale/uz-UZ.umd.min.js +1 -0
  61. package/lib/locale/vi-VN.umd.min.js +1 -0
  62. package/lib/locale/zh-CHT.umd.min.js +1 -0
  63. package/lib/locale/zh-CN.umd.min.js +1 -0
  64. package/lib/locale/zh-HK.umd.min.js +1 -0
  65. package/lib/locale/zh-MO.umd.min.js +1 -0
  66. package/lib/locale/zh-TC.umd.min.js +1 -0
  67. package/lib/locale/zh-TW.umd.min.js +1 -0
  68. package/lib/table/src/column.js +39 -36
  69. package/lib/table/src/group.js +49 -46
  70. package/lib/table/src/table.js +13721 -13706
  71. package/lib/toolbar/src/toolbar.js +595 -592
  72. package/lib/ui/index.js +2 -1
  73. package/lib/ui/src/log.js +1 -1
  74. package/package.json +9 -2
  75. package/packages/components.ts +3 -0
  76. package/packages/grid/src/grid.ts +2 -2
  77. package/packages/table/src/column.ts +2 -2
  78. package/packages/table/src/group.ts +2 -2
  79. package/packages/table/src/table.ts +55 -26
  80. package/packages/toolbar/src/toolbar.ts +2 -2
  81. package/packages/ui/index.ts +1 -0
  82. /package/dist/{iconfont.1793015256719.ttf → iconfont.1793090564415.ttf} +0 -0
  83. /package/dist/{iconfont.1793015256719.woff → iconfont.1793090564415.woff} +0 -0
  84. /package/dist/{iconfont.1793015256719.woff2 → iconfont.1793090564415.woff2} +0 -0
  85. /package/es/{iconfont.1793015256719.ttf → iconfont.1793090564415.ttf} +0 -0
  86. /package/es/{iconfont.1793015256719.woff → iconfont.1793090564415.woff} +0 -0
  87. /package/es/{iconfont.1793015256719.woff2 → iconfont.1793090564415.woff2} +0 -0
  88. /package/lib/{iconfont.1793015256719.ttf → iconfont.1793090564415.ttf} +0 -0
  89. /package/lib/{iconfont.1793015256719.woff → iconfont.1793090564415.woff} +0 -0
  90. /package/lib/{iconfont.1793015256719.woff2 → iconfont.1793090564415.woff2} +0 -0
@@ -139,43 +139,46 @@ const columnProps = {
139
139
  // 额外的参数
140
140
  params: Object
141
141
  };
142
- var column_default = defineVxeComponent({
143
- name: "VxeColumn",
144
- props: columnProps,
145
- setup(props, { slots }) {
146
- const refElem = ref();
147
- const $xeTable = inject("$xeTable", null);
148
- const $xeColgroup = inject("$xeColgroup", null);
149
- if (!$xeTable) {
150
- return () => createCommentVNode();
151
- }
152
- const columnConfig = Cell.createColumn($xeTable, props);
153
- columnConfig.slots = slots;
154
- const renderVN = () => {
155
- return h("div", {
156
- ref: refElem
157
- });
158
- };
159
- const $xeColumn = {
160
- columnConfig,
161
- renderVN
162
- };
163
- watchColumn($xeTable, props, columnConfig);
164
- onMounted(() => {
165
- const elem = refElem.value;
166
- if (elem) {
167
- assembleColumn($xeTable, elem, columnConfig, $xeColgroup);
142
+ var column_default = (
143
+ /* define-vxe-component start */
144
+ defineVxeComponent({
145
+ name: "VxeColumn",
146
+ props: columnProps,
147
+ setup(props, { slots }) {
148
+ const refElem = ref();
149
+ const $xeTable = inject("$xeTable", null);
150
+ const $xeColgroup = inject("$xeColgroup", null);
151
+ if (!$xeTable) {
152
+ return () => createCommentVNode();
168
153
  }
169
- });
170
- onUnmounted(() => {
171
- destroyColumn($xeTable, columnConfig);
172
- });
173
- provide("$xeColumn", $xeColumn);
174
- provide("$xeGrid", null);
175
- provide("$xeGantt", null);
176
- return renderVN;
177
- }
178
- });
154
+ const columnConfig = Cell.createColumn($xeTable, props);
155
+ columnConfig.slots = slots;
156
+ const renderVN = () => {
157
+ return h("div", {
158
+ ref: refElem
159
+ });
160
+ };
161
+ const $xeColumn = {
162
+ columnConfig,
163
+ renderVN
164
+ };
165
+ watchColumn($xeTable, props, columnConfig);
166
+ onMounted(() => {
167
+ const elem = refElem.value;
168
+ if (elem) {
169
+ assembleColumn($xeTable, elem, columnConfig, $xeColgroup);
170
+ }
171
+ });
172
+ onUnmounted(() => {
173
+ destroyColumn($xeTable, columnConfig);
174
+ });
175
+ provide("$xeColumn", $xeColumn);
176
+ provide("$xeGrid", null);
177
+ provide("$xeGantt", null);
178
+ return renderVN;
179
+ }
180
+ })
181
+ );
179
182
  export {
180
183
  columnProps,
181
184
  column_default as default
@@ -3,53 +3,56 @@ import { defineVxeComponent } from "../../ui/src/comp";
3
3
  import { columnProps } from "./column";
4
4
  import { watchColumn, assembleColumn, destroyColumn } from "./util";
5
5
  import Cell from "./cell";
6
- var group_default = defineVxeComponent({
7
- name: "VxeColgroup",
8
- props: columnProps,
9
- setup(props, { slots }) {
10
- const refElem = ref();
11
- const $xeTable = inject("$xeTable", null);
12
- const $xeParentColgroup = inject("$xeColgroup", null);
13
- if (!$xeTable) {
14
- return () => createCommentVNode();
15
- }
16
- const columnConfig = Cell.createColumn($xeTable, props);
17
- const columnSlots = {};
18
- if (slots.header) {
19
- columnSlots.header = slots.header;
20
- }
21
- if (slots.title) {
22
- columnSlots.title = slots.title;
23
- }
24
- columnConfig.slots = columnSlots;
25
- columnConfig.children = [];
26
- watchColumn($xeTable, props, columnConfig);
27
- onMounted(() => {
28
- const elem = refElem.value;
29
- if (elem) {
30
- assembleColumn($xeTable, elem, columnConfig, $xeParentColgroup);
6
+ var group_default = (
7
+ /* define-vxe-component start */
8
+ defineVxeComponent({
9
+ name: "VxeColgroup",
10
+ props: columnProps,
11
+ setup(props, { slots }) {
12
+ const refElem = ref();
13
+ const $xeTable = inject("$xeTable", null);
14
+ const $xeParentColgroup = inject("$xeColgroup", null);
15
+ if (!$xeTable) {
16
+ return () => createCommentVNode();
31
17
  }
32
- });
33
- onUnmounted(() => {
34
- destroyColumn($xeTable, columnConfig);
35
- });
36
- const renderVN = () => {
37
- const defaultSlot = slots.default;
38
- return h(
39
- "div",
40
- {
41
- ref: refElem
42
- },
43
- defaultSlot ? defaultSlot() : []
44
- );
45
- };
46
- const $xeColgroup = { columnConfig };
47
- provide("$xeColgroup", $xeColgroup);
48
- provide("$xeGrid", null);
49
- provide("$xeGantt", null);
50
- return renderVN;
51
- }
52
- });
18
+ const columnConfig = Cell.createColumn($xeTable, props);
19
+ const columnSlots = {};
20
+ if (slots.header) {
21
+ columnSlots.header = slots.header;
22
+ }
23
+ if (slots.title) {
24
+ columnSlots.title = slots.title;
25
+ }
26
+ columnConfig.slots = columnSlots;
27
+ columnConfig.children = [];
28
+ watchColumn($xeTable, props, columnConfig);
29
+ onMounted(() => {
30
+ const elem = refElem.value;
31
+ if (elem) {
32
+ assembleColumn($xeTable, elem, columnConfig, $xeParentColgroup);
33
+ }
34
+ });
35
+ onUnmounted(() => {
36
+ destroyColumn($xeTable, columnConfig);
37
+ });
38
+ const renderVN = () => {
39
+ const defaultSlot = slots.default;
40
+ return h(
41
+ "div",
42
+ {
43
+ ref: refElem
44
+ },
45
+ defaultSlot ? defaultSlot() : []
46
+ );
47
+ };
48
+ const $xeColgroup = { columnConfig };
49
+ provide("$xeColgroup", $xeColgroup);
50
+ provide("$xeGrid", null);
51
+ provide("$xeGantt", null);
52
+ return renderVN;
53
+ }
54
+ })
55
+ );
53
56
  export {
54
57
  group_default as default
55
58
  };