vxe-table 3.9.0-rc.2 → 3.9.0-rc.21

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 (186) hide show
  1. package/es/grid/src/grid.js +120 -66
  2. package/es/locale/lang/en-US.js +2 -8
  3. package/es/locale/lang/es-ES.js +2 -1
  4. package/es/locale/lang/hu-HU.d.ts +2 -0
  5. package/es/locale/lang/hu-HU.js +497 -501
  6. package/es/locale/lang/ja-JP.js +2 -8
  7. package/es/locale/lang/ko-KR.d.ts +2 -0
  8. package/es/locale/lang/ko-KR.js +2 -8
  9. package/es/locale/lang/pt-BR.js +2 -8
  10. package/es/locale/lang/ru-RU.d.ts +2 -0
  11. package/es/locale/lang/ru-RU.js +497 -503
  12. package/es/locale/lang/uk-UA.d.ts +2 -0
  13. package/es/locale/lang/uk-UA.js +667 -0
  14. package/es/locale/lang/vi-VN.js +2 -8
  15. package/es/locale/lang/zh-CHT.d.ts +2 -0
  16. package/es/locale/lang/zh-CHT.js +667 -0
  17. package/es/locale/lang/zh-CN.js +2 -8
  18. package/es/locale/lang/zh-HK.js +2 -2
  19. package/es/locale/lang/zh-MO.js +2 -2
  20. package/es/locale/lang/zh-TC.js +2 -673
  21. package/es/locale/lang/zh-TW.js +2 -2
  22. package/es/style.css +1 -1
  23. package/es/style.min.css +1 -1
  24. package/es/table/index.js +29 -3
  25. package/es/table/module/custom/panel.js +183 -173
  26. package/es/table/module/edit/mixin.js +33 -24
  27. package/es/table/module/export/export-panel.js +32 -4
  28. package/es/table/module/export/import-panel.js +24 -5
  29. package/es/table/module/export/mixin.js +11 -11
  30. package/es/table/module/menu/mixin.js +2 -2
  31. package/es/table/module/validator/mixin.js +4 -4
  32. package/es/table/render/index.js +23 -38
  33. package/es/table/src/body.js +1 -0
  34. package/es/table/src/columnInfo.js +3 -3
  35. package/es/table/src/methods.js +48 -40
  36. package/es/table/src/props.js +65 -15
  37. package/es/table/src/table.js +161 -55
  38. package/es/table/src/util.js +3 -2
  39. package/es/table/style.css +37 -23
  40. package/es/table/style.min.css +1 -1
  41. package/es/toolbar/src/toolbar.js +21 -7
  42. package/es/ui/index.js +5 -4
  43. package/es/ui/src/log.js +1 -1
  44. package/es/ui/src/vn.js +24 -1
  45. package/es/vxe-table/style.css +37 -23
  46. package/es/vxe-table/style.min.css +1 -1
  47. package/lib/grid/src/grid.js +115 -68
  48. package/lib/grid/src/grid.min.js +1 -1
  49. package/lib/index.umd.js +632 -330
  50. package/lib/index.umd.min.js +1 -1
  51. package/lib/locale/lang/en-US.js +2 -8
  52. package/lib/locale/lang/en-US.min.js +1 -1
  53. package/lib/locale/lang/en-US.umd.js +2 -8
  54. package/lib/locale/lang/es-ES.js +2 -1
  55. package/lib/locale/lang/es-ES.min.js +1 -1
  56. package/lib/locale/lang/es-ES.umd.js +2 -1
  57. package/lib/locale/lang/hu-HU.d.ts +2 -0
  58. package/lib/locale/lang/hu-HU.js +497 -501
  59. package/lib/locale/lang/hu-HU.min.js +1 -1
  60. package/lib/locale/lang/hu-HU.umd.js +687 -0
  61. package/lib/locale/lang/ja-JP.js +2 -8
  62. package/lib/locale/lang/ja-JP.min.js +1 -1
  63. package/lib/locale/lang/ja-JP.umd.js +2 -8
  64. package/lib/locale/lang/ko-KR.d.ts +2 -0
  65. package/lib/locale/lang/ko-KR.js +2 -8
  66. package/lib/locale/lang/ko-KR.min.js +1 -1
  67. package/lib/locale/lang/ko-KR.umd.js +687 -0
  68. package/lib/locale/lang/pt-BR.js +2 -8
  69. package/lib/locale/lang/pt-BR.min.js +1 -1
  70. package/lib/locale/lang/pt-BR.umd.js +2 -8
  71. package/lib/locale/lang/ru-RU.d.ts +2 -0
  72. package/lib/locale/lang/ru-RU.js +497 -503
  73. package/lib/locale/lang/ru-RU.min.js +1 -1
  74. package/lib/locale/lang/ru-RU.umd.js +687 -0
  75. package/lib/locale/lang/uk-UA.d.ts +2 -0
  76. package/lib/locale/lang/uk-UA.js +673 -0
  77. package/lib/locale/lang/uk-UA.min.js +1 -0
  78. package/lib/locale/lang/uk-UA.umd.js +687 -0
  79. package/lib/locale/lang/vi-VN.js +2 -8
  80. package/lib/locale/lang/vi-VN.min.js +1 -1
  81. package/lib/locale/lang/zh-CHT.d.ts +2 -0
  82. package/lib/locale/lang/zh-CHT.js +673 -0
  83. package/lib/locale/lang/zh-CHT.min.js +1 -0
  84. package/lib/locale/lang/zh-CHT.umd.js +687 -0
  85. package/lib/locale/lang/zh-CN.js +2 -8
  86. package/lib/locale/lang/zh-CN.min.js +1 -1
  87. package/lib/locale/lang/zh-CN.umd.js +2 -8
  88. package/lib/locale/lang/zh-HK.js +2 -2
  89. package/lib/locale/lang/zh-HK.min.js +1 -1
  90. package/lib/locale/lang/zh-HK.umd.js +7 -677
  91. package/lib/locale/lang/zh-MO.js +2 -2
  92. package/lib/locale/lang/zh-MO.min.js +1 -1
  93. package/lib/locale/lang/zh-MO.umd.js +7 -677
  94. package/lib/locale/lang/zh-TC.js +3 -673
  95. package/lib/locale/lang/zh-TC.min.js +1 -1
  96. package/lib/locale/lang/zh-TC.umd.js +7 -677
  97. package/lib/locale/lang/zh-TW.js +2 -2
  98. package/lib/locale/lang/zh-TW.min.js +1 -1
  99. package/lib/locale/lang/zh-TW.umd.js +7 -677
  100. package/lib/style.css +1 -1
  101. package/lib/style.min.css +1 -1
  102. package/lib/table/index.js +30 -3
  103. package/lib/table/index.min.js +1 -1
  104. package/lib/table/module/custom/panel.js +12 -7
  105. package/lib/table/module/custom/panel.min.js +1 -1
  106. package/lib/table/module/edit/mixin.js +32 -23
  107. package/lib/table/module/edit/mixin.min.js +1 -1
  108. package/lib/table/module/export/export-panel.js +31 -4
  109. package/lib/table/module/export/export-panel.min.js +1 -1
  110. package/lib/table/module/export/import-panel.js +23 -5
  111. package/lib/table/module/export/import-panel.min.js +1 -1
  112. package/lib/table/module/export/mixin.js +11 -11
  113. package/lib/table/module/export/mixin.min.js +1 -1
  114. package/lib/table/module/menu/mixin.js +2 -2
  115. package/lib/table/module/menu/mixin.min.js +1 -1
  116. package/lib/table/module/validator/mixin.js +4 -4
  117. package/lib/table/module/validator/mixin.min.js +1 -1
  118. package/lib/table/render/index.js +27 -41
  119. package/lib/table/render/index.min.js +1 -1
  120. package/lib/table/src/body.js +1 -1
  121. package/lib/table/src/body.min.js +1 -1
  122. package/lib/table/src/columnInfo.js +3 -3
  123. package/lib/table/src/columnInfo.min.js +1 -1
  124. package/lib/table/src/methods.js +47 -40
  125. package/lib/table/src/methods.min.js +1 -1
  126. package/lib/table/src/props.js +7 -0
  127. package/lib/table/src/props.min.js +1 -1
  128. package/lib/table/src/table.js +147 -48
  129. package/lib/table/src/table.min.js +1 -1
  130. package/lib/table/src/util.js +3 -2
  131. package/lib/table/src/util.min.js +1 -1
  132. package/lib/table/style/style.css +37 -23
  133. package/lib/table/style/style.min.css +1 -1
  134. package/lib/toolbar/src/toolbar.js +21 -7
  135. package/lib/toolbar/src/toolbar.min.js +1 -1
  136. package/lib/ui/index.js +6 -5
  137. package/lib/ui/index.min.js +1 -1
  138. package/lib/ui/src/log.js +1 -1
  139. package/lib/ui/src/log.min.js +1 -1
  140. package/lib/ui/src/vn.js +26 -1
  141. package/lib/ui/src/vn.min.js +1 -1
  142. package/lib/vxe-table/style/style.css +37 -23
  143. package/lib/vxe-table/style/style.min.css +1 -1
  144. package/package.json +2 -2
  145. package/packages/grid/src/grid.ts +127 -65
  146. package/packages/locale/lang/en-US.ts +2 -10
  147. package/packages/locale/lang/es-ES.ts +2 -1
  148. package/packages/locale/lang/hu-HU.ts +497 -503
  149. package/packages/locale/lang/ja-JP.ts +2 -10
  150. package/packages/locale/lang/ko-KR.ts +2 -10
  151. package/packages/locale/lang/pt-BR.ts +2 -10
  152. package/packages/locale/lang/ru-RU.ts +497 -505
  153. package/packages/locale/lang/uk-UA.ts +667 -0
  154. package/packages/locale/lang/vi-VN.ts +2 -10
  155. package/packages/locale/lang/zh-CHT.ts +667 -0
  156. package/packages/locale/lang/zh-CN.ts +2 -10
  157. package/packages/locale/lang/zh-HK.ts +2 -2
  158. package/packages/locale/lang/zh-MO.ts +2 -2
  159. package/packages/locale/lang/zh-TC.ts +2 -674
  160. package/packages/locale/lang/zh-TW.ts +2 -2
  161. package/packages/table/index.ts +28 -5
  162. package/packages/table/module/custom/panel.ts +186 -175
  163. package/packages/table/module/edit/mixin.ts +32 -23
  164. package/packages/table/module/export/export-panel.ts +36 -4
  165. package/packages/table/module/export/import-panel.ts +28 -5
  166. package/packages/table/module/export/mixin.ts +11 -11
  167. package/packages/table/module/menu/mixin.ts +2 -2
  168. package/packages/table/module/validator/mixin.ts +4 -4
  169. package/packages/table/render/index.ts +26 -40
  170. package/packages/table/src/body.ts +1 -0
  171. package/packages/table/src/columnInfo.ts +3 -3
  172. package/packages/table/src/methods.ts +47 -40
  173. package/packages/table/src/props.ts +68 -15
  174. package/packages/table/src/table.ts +167 -56
  175. package/packages/table/src/util.ts +3 -2
  176. package/packages/toolbar/src/toolbar.ts +21 -7
  177. package/packages/ui/index.ts +3 -2
  178. package/packages/ui/src/vn.ts +26 -1
  179. package/styles/components/table.scss +82 -17
  180. package/types/all.d.ts +2 -2
  181. /package/es/{iconfont.1726028471123.ttf → iconfont.1727868548661.ttf} +0 -0
  182. /package/es/{iconfont.1726028471123.woff → iconfont.1727868548661.woff} +0 -0
  183. /package/es/{iconfont.1726028471123.woff2 → iconfont.1727868548661.woff2} +0 -0
  184. /package/lib/{iconfont.1726028471123.ttf → iconfont.1727868548661.ttf} +0 -0
  185. /package/lib/{iconfont.1726028471123.woff → iconfont.1727868548661.woff} +0 -0
  186. /package/lib/{iconfont.1726028471123.woff2 → iconfont.1727868548661.woff2} +0 -0
@@ -3,7 +3,32 @@ import XEUtils from 'xe-utils'
3
3
  import type { VxeComponentSlotType } from '../../../types'
4
4
 
5
5
  export function getOnName (type: string) {
6
- return 'on' + type.substring(0, 1).toLocaleUpperCase() + type.substring(1)
6
+ return type
7
+ }
8
+
9
+ export function getModelEvent (renderOpts: any) {
10
+ switch (renderOpts.name) {
11
+ case 'input':
12
+ case 'textarea':
13
+ return 'input'
14
+ case 'select':
15
+ return 'change'
16
+ }
17
+ return 'modelValue'
18
+ }
19
+
20
+ export function getChangeEvent (renderOpts: any) {
21
+ switch (renderOpts.name) {
22
+ case 'input':
23
+ case 'textarea':
24
+ case 'VxeInput':
25
+ case 'VxeNumberInput':
26
+ case 'VxeTextarea':
27
+ case '$input':
28
+ case '$textarea':
29
+ return 'input'
30
+ }
31
+ return 'change'
7
32
  }
8
33
 
9
34
  export function getSlotVNs (vns: VxeComponentSlotType | VxeComponentSlotType[]) {
@@ -130,6 +130,26 @@
130
130
  }
131
131
  }
132
132
  }
133
+ .vxe-body--column {
134
+ &.col--height {
135
+ &.col--active {
136
+ & > .vxe-cell {
137
+ height: 100%;
138
+ }
139
+ }
140
+ & > .vxe-cell {
141
+ & > .vxe-textarea,
142
+ & > .vxe-default-textarea {
143
+ height: 100%;
144
+ }
145
+ }
146
+ }
147
+ .vxe-cell--label {
148
+ &.is--textarea {
149
+ white-space: pre-line;
150
+ }
151
+ }
152
+ }
133
153
 
134
154
  .vxe-table--checkbox-range,
135
155
  .vxe-table--cell-main-area,
@@ -456,12 +476,12 @@
456
476
  // vertical-align: middle;
457
477
  // }
458
478
  .vxe-cell--required-icon {
459
- margin-right: 0.1em;
479
+ padding-right: 0.1em;
460
480
  }
461
481
  .vxe-cell--edit-icon,
462
482
  .vxe-cell-title-prefix-icon,
463
483
  .vxe-cell-title-suffix-icon {
464
- margin-right: 0.2em;
484
+ padding: 0.2em;
465
485
  }
466
486
  .vxe-cell-title-prefix-icon,
467
487
  .vxe-cell-title-suffix-icon {
@@ -512,12 +532,12 @@
512
532
  font-family: var(--vxe-ui-font-family);
513
533
  direction: ltr;
514
534
  .vxe-table--body-wrapper {
515
- table {
535
+ & > table {
516
536
  background-color: var(--vxe-ui-layout-background-color);
517
537
  }
518
538
  }
519
539
  .vxe-table--footer-wrapper {
520
- table {
540
+ & > table {
521
541
  background-color: var(--vxe-ui-table-footer-background-color);
522
542
  }
523
543
  }
@@ -678,15 +698,25 @@
678
698
  }
679
699
  }
680
700
  }
701
+ &.is--padding {
702
+ .vxe-body--column {
703
+ &:not(.col--ellipsis) {
704
+ padding: var(--vxe-ui-table-column-padding-default);
705
+ }
706
+ }
707
+ }
708
+ .vxe-header--column,
709
+ .vxe-footer--column {
710
+ &:not(.col--ellipsis) {
711
+ padding: var(--vxe-ui-table-column-padding-default);
712
+ }
713
+ }
681
714
  .vxe-header--column,
682
715
  .vxe-body--column,
683
716
  .vxe-footer--column {
684
717
  position: relative;
685
718
  line-height: var(--vxe-ui-table-row-line-height);
686
719
  text-align: left;
687
- &:not(.col--ellipsis) {
688
- padding: var(--vxe-ui-table-column-padding-default);
689
- }
690
720
  &.col--current {
691
721
  background-color: var(--vxe-ui-table-column-current-background-color);
692
722
  // .vxe-tree--btn-wrapper {
@@ -731,6 +761,27 @@
731
761
  .vxe-table--footer-wrapper {
732
762
  border-top: var(--vxe-ui-table-border-width) solid var(--vxe-ui-table-border-color);
733
763
  }
764
+ // &.border--default,
765
+ // &.border--full,
766
+ // &.border--inner,
767
+ // &.border--outer {
768
+ // .vxe-body--row {
769
+ // &:last-child {
770
+ // & > .vxe-body--column {
771
+ // & > .vxe-cell {
772
+ // border-bottom: 1px solid transparent;
773
+ // }
774
+ // }
775
+ // }
776
+ // }
777
+ // .vxe-body--column {
778
+ // &:first-child {
779
+ // & > .vxe-cell {
780
+ // border-left: 1px solid transparent;
781
+ // }
782
+ // }
783
+ // }
784
+ // }
734
785
  &.border--default,
735
786
  &.border--full,
736
787
  &.border--outer {
@@ -883,11 +934,16 @@
883
934
  }
884
935
  }
885
936
  }
937
+
938
+ &.is--padding {
939
+ .vxe-cell {
940
+ padding-left: var(--vxe-ui-table-cell-padding-left);
941
+ padding-right: var(--vxe-ui-table-cell-padding-right);
942
+ }
943
+ }
886
944
  .vxe-cell {
887
945
  white-space: pre-line;
888
946
  word-break: break-all;
889
- padding-left: var(--vxe-ui-table-cell-padding-left);
890
- padding-right: var(--vxe-ui-table-cell-padding-right);
891
947
  }
892
948
 
893
949
  // 单元格占位符
@@ -1146,6 +1202,7 @@
1146
1202
  }
1147
1203
  }
1148
1204
 
1205
+
1149
1206
  /*溢出列*/
1150
1207
  .vxe-header--column,
1151
1208
  .vxe-body--column,
@@ -1159,8 +1216,10 @@
1159
1216
  white-space: nowrap;
1160
1217
  }
1161
1218
  }
1162
- & > .vxe-cell {
1163
- max-height: var(--vxe-ui-table-row-height-default);
1219
+ &:not(.col--height) {
1220
+ & > .vxe-cell {
1221
+ max-height: var(--vxe-ui-table-row-height-default);
1222
+ }
1164
1223
  }
1165
1224
  }
1166
1225
  }
@@ -1170,8 +1229,10 @@
1170
1229
  .vxe-footer--column {
1171
1230
  &.col--ellipsis {
1172
1231
  @extend %MediumColumnHeight;
1173
- & > .vxe-cell {
1174
- max-height: var(--vxe-ui-table-row-height-medium);
1232
+ &:not(.col--height) {
1233
+ & > .vxe-cell {
1234
+ max-height: var(--vxe-ui-table-row-height-medium);
1235
+ }
1175
1236
  }
1176
1237
  }
1177
1238
  }
@@ -1188,8 +1249,10 @@
1188
1249
  .vxe-footer--column {
1189
1250
  &.col--ellipsis {
1190
1251
  @extend %SmallColumnHeight;
1191
- & > .vxe-cell {
1192
- max-height: var(--vxe-ui-table-row-height-small);
1252
+ &:not(.col--height) {
1253
+ & > .vxe-cell {
1254
+ max-height: var(--vxe-ui-table-row-height-small);
1255
+ }
1193
1256
  }
1194
1257
  }
1195
1258
  }
@@ -1206,8 +1269,10 @@
1206
1269
  .vxe-footer--column {
1207
1270
  &.col--ellipsis {
1208
1271
  @extend %MiniColumnHeight;
1209
- & > .vxe-cell {
1210
- max-height: var(--vxe-ui-table-row-height-mini);
1272
+ &:not(.col--height) {
1273
+ & > .vxe-cell {
1274
+ max-height: var(--vxe-ui-table-row-height-mini);
1275
+ }
1211
1276
  }
1212
1277
  }
1213
1278
  }
package/types/all.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { App } from 'vue'
1
+ import { VueConstructor } from 'vue'
2
2
  import { VxeUIExport, VxeGlobalConfig } from 'vxe-pc-ui'
3
3
 
4
4
  declare global {
@@ -22,7 +22,7 @@ export const VXETable: VxeUIExport
22
22
  */
23
23
  export type VXETableCore = VxeUIExport
24
24
 
25
- export function install (app: App, options?: VxeGlobalConfig): void
25
+ export function install (app: VueConstructor, options?: VxeGlobalConfig): void
26
26
 
27
27
  // Vxe core
28
28
  export * from 'vxe-pc-ui/types/ui'