vxe-table 4.23.0-beta.0 → 4.23.0-beta.2

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 (58) hide show
  1. package/README.md +2 -2
  2. package/dist/all.esm.js +540 -103
  3. package/dist/style.css +1 -1
  4. package/dist/style.min.css +1 -1
  5. package/es/index.css +1 -1
  6. package/es/index.min.css +1 -1
  7. package/es/locale/lang/fr-FR.js +29 -29
  8. package/es/style.css +1 -1
  9. package/es/style.min.css +1 -1
  10. package/es/table/src/props.js +9 -1
  11. package/es/table/src/scrollbar.js +54 -0
  12. package/es/table/src/table.js +458 -89
  13. package/es/table/src/util.js +11 -2
  14. package/es/table/style.css +30 -0
  15. package/es/table/style.min.css +1 -1
  16. package/es/ui/index.js +9 -11
  17. package/es/ui/src/log.js +1 -1
  18. package/es/vxe-table/style.css +30 -0
  19. package/es/vxe-table/style.min.css +1 -1
  20. package/lib/index.css +1 -1
  21. package/lib/index.min.css +1 -1
  22. package/lib/index.umd.js +118 -38
  23. package/lib/index.umd.min.js +1 -1
  24. package/lib/locale/lang/fr-FR.js +29 -29
  25. package/lib/locale/lang/fr-FR.min.js +1 -1
  26. package/lib/locale/lang/fr-FR.umd.js +29 -29
  27. package/lib/style.css +1 -1
  28. package/lib/style.min.css +1 -1
  29. package/lib/table/src/props.js +9 -1
  30. package/lib/table/src/props.min.js +1 -1
  31. package/lib/table/src/scrollbar.js +63 -0
  32. package/lib/table/src/scrollbar.min.js +1 -0
  33. package/lib/table/src/table.js +33 -23
  34. package/lib/table/src/table.min.js +1 -1
  35. package/lib/table/src/util.js +11 -2
  36. package/lib/table/src/util.min.js +1 -1
  37. package/lib/table/style/style.css +30 -0
  38. package/lib/table/style/style.min.css +1 -1
  39. package/lib/ui/index.js +9 -11
  40. package/lib/ui/index.min.js +1 -1
  41. package/lib/ui/src/log.js +1 -1
  42. package/lib/ui/src/log.min.js +1 -1
  43. package/lib/vxe-table/style/style.css +30 -0
  44. package/lib/vxe-table/style/style.min.css +1 -1
  45. package/package.json +2 -2
  46. package/packages/locale/lang/fr-FR.ts +903 -903
  47. package/packages/table/src/props.ts +9 -1
  48. package/packages/table/src/scrollbar.ts +57 -0
  49. package/packages/table/src/table.ts +494 -91
  50. package/packages/table/src/util.ts +15 -2
  51. package/packages/ui/index.ts +8 -10
  52. package/styles/components/table.scss +65 -0
  53. /package/es/{iconfont.1791880428511.ttf → iconfont.1792035024476.ttf} +0 -0
  54. /package/es/{iconfont.1791880428511.woff → iconfont.1792035024476.woff} +0 -0
  55. /package/es/{iconfont.1791880428511.woff2 → iconfont.1792035024476.woff2} +0 -0
  56. /package/lib/{iconfont.1791880428511.ttf → iconfont.1792035024476.ttf} +0 -0
  57. /package/lib/{iconfont.1791880428511.woff → iconfont.1792035024476.woff} +0 -0
  58. /package/lib/{iconfont.1791880428511.woff2 → iconfont.1792035024476.woff2} +0 -0
@@ -47,9 +47,17 @@ export function createInternalData (): TableInternalData {
47
47
  currentRow: null,
48
48
  currentCol: null,
49
49
 
50
- // 最后滚动位置
51
- lastScrollLeft: 0,
50
+ // resizeObserver: undefined,
51
+
52
+ // 滚动条
53
+ // scrollObserver: undefined,
54
+ // isThumbDrag: false,
55
+ thumbDragOffset: 0,
56
+ yThumbTop: 0,
57
+ xThumbLeft: 0,
52
58
  lastScrollTop: 0,
59
+ lastScrollLeft: 0,
60
+
53
61
  // 单选框属性,已选中保留的行
54
62
  radioReserveRow: null,
55
63
  // 复选框属性,已选中保留的行集合
@@ -199,6 +207,11 @@ export function createReactData (): TableReactData {
199
207
  scrollbarWidth: 0,
200
208
  // 横向滚动条的高度
201
209
  scrollbarHeight: 0,
210
+
211
+ // 滚动条
212
+ yThumbHeight: 0,
213
+ xThumbWidth: 0,
214
+
202
215
  // 行高
203
216
  rowHeight: 0,
204
217
  // 表格父容器的高度
@@ -269,16 +269,14 @@ VxeUI.setConfig({
269
269
  oSize: 0
270
270
  },
271
271
  scrollbarConfig: {
272
- // width: 14,
273
- // height: 14,
274
- x: {
275
- // position: 'bottom',
276
- visible: true
277
- },
278
- y: {
279
- // position: 'right',
280
- visible: true
281
- }
272
+ // xConfig: {
273
+ // // position: 'bottom',
274
+ // // visible: true
275
+ // },
276
+ // yConfig: {
277
+ // // position: 'right',
278
+ // // visible: true
279
+ // }
282
280
  },
283
281
  undoRedoHistoryConfig: {
284
282
  stackSize: 50
@@ -2718,3 +2718,68 @@ div.vxe-table--tooltip-wrapper {
2718
2718
  outline: 0;
2719
2719
  }
2720
2720
  }
2721
+
2722
+ // 滚动条
2723
+ .vxe-table--layout-wrapper {
2724
+ &.is--virtual-scrollbar {
2725
+ &.ov-padding {
2726
+ &.overflow-x {
2727
+ &.sx-pos--top {
2728
+ & > .vxe-table--viewport-wrapper {
2729
+ padding-top: var(--vxe-ui-scrollbar-x-height);
2730
+ }
2731
+ }
2732
+ &.sx-pos--bottom {
2733
+ & > .vxe-table--viewport-wrapper {
2734
+ padding-bottom: var(--vxe-ui-scrollbar-x-height);
2735
+ }
2736
+ }
2737
+ }
2738
+ &.overflow-y {
2739
+ &.sy-pos--left {
2740
+ & > .vxe-table--viewport-wrapper {
2741
+ padding-left: var(--vxe-ui-scrollbar-y-width);
2742
+ }
2743
+ }
2744
+ &.sy-pos--right {
2745
+ & > .vxe-table--viewport-wrapper {
2746
+ padding-right: var(--vxe-ui-scrollbar-y-width);
2747
+ }
2748
+ }
2749
+ }
2750
+ }
2751
+ &.ov-x--auto-hide {
2752
+ &:hover {
2753
+ & > .vxe-scrollbar {
2754
+ & > .vxe-scrollbar--track-x {
2755
+ opacity: 1;
2756
+ }
2757
+ }
2758
+ }
2759
+ & > .vxe-scrollbar {
2760
+ & > .vxe-scrollbar--track-x {
2761
+ opacity: 0;
2762
+ @include baseMixin.createAnimationTransition(opacity, 0.8s);
2763
+ }
2764
+ }
2765
+ }
2766
+ &.ov-y--auto-hide {
2767
+ &:hover {
2768
+ & > .vxe-scrollbar {
2769
+ & > .vxe-scrollbar--track-y {
2770
+ opacity: 1;
2771
+ }
2772
+ }
2773
+ }
2774
+ & > .vxe-scrollbar {
2775
+ & > .vxe-scrollbar--track-y {
2776
+ opacity: 0;
2777
+ @include baseMixin.createAnimationTransition(opacity, 0.8s);
2778
+ }
2779
+ }
2780
+ }
2781
+ }
2782
+ & > .vxe-scrollbar {
2783
+ position: unset;
2784
+ }
2785
+ }