bkui-vue 2.0.1-beta.40 → 2.0.1-beta.42

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 (62) hide show
  1. package/dist/index.cjs.js +63 -63
  2. package/dist/index.esm.js +16459 -16370
  3. package/dist/index.umd.js +63 -63
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/checkbox/index.js +2 -1
  7. package/lib/index.js +1 -1
  8. package/lib/scrollbar/{scrollbar.css → css/scrollbar.css} +90 -75
  9. package/lib/scrollbar/css/scrollbar.less +139 -0
  10. package/lib/scrollbar/{scrollbar.variable.css → css/scrollbar.variable.css} +89 -74
  11. package/lib/scrollbar/handlers/click-rail.d.ts +2 -0
  12. package/lib/scrollbar/handlers/drag-thumb.d.ts +1 -0
  13. package/lib/scrollbar/handlers/keyboard.d.ts +2 -0
  14. package/lib/scrollbar/handlers/mouse-wheel.d.ts +2 -0
  15. package/lib/scrollbar/handlers/touch.d.ts +4 -0
  16. package/lib/scrollbar/helper/class-names.d.ts +21 -0
  17. package/lib/scrollbar/helper/css.d.ts +3 -0
  18. package/lib/scrollbar/helper/dom.d.ts +4 -0
  19. package/lib/scrollbar/helper/event-manager.d.ts +20 -0
  20. package/lib/scrollbar/helper/util.d.ts +11 -0
  21. package/lib/scrollbar/index.d.ts +133 -13
  22. package/lib/scrollbar/index.js +1331 -18489
  23. package/lib/scrollbar/process-scroll-diff.d.ts +1 -0
  24. package/lib/scrollbar/update-geometry.d.ts +8 -0
  25. package/lib/search-select/index.d.ts +12 -6
  26. package/lib/search-select/index.js +33 -10
  27. package/lib/search-select/input.d.ts +2 -1
  28. package/lib/search-select/search-select.d.ts +4 -2
  29. package/lib/search-select/selected.d.ts +4 -2
  30. package/lib/styles/index.d.ts +1 -0
  31. package/lib/table/components/table-cell.d.ts +11 -0
  32. package/lib/table/hooks/use-columns.d.ts +4 -1
  33. package/lib/table/hooks/use-layout.d.ts +1 -0
  34. package/lib/table/hooks/use-settings.d.ts +2 -2
  35. package/lib/table/index.d.ts +23 -0
  36. package/lib/table/index.js +233 -77
  37. package/lib/table/props.d.ts +9 -1
  38. package/lib/table/table.css +126 -109
  39. package/lib/table/table.d.ts +11 -0
  40. package/lib/table/table.less +49 -30
  41. package/lib/table/table.variable.css +126 -109
  42. package/lib/table/utils.d.ts +15 -15
  43. package/lib/table-column/index.js +8 -0
  44. package/lib/tree/index.d.ts +3 -3
  45. package/lib/tree/tree.css +90 -83
  46. package/lib/tree/tree.d.ts +1 -1
  47. package/lib/tree/tree.variable.css +90 -83
  48. package/lib/virtual-render/index.d.ts +0 -23
  49. package/lib/virtual-render/index.js +54 -106
  50. package/lib/virtual-render/props.d.ts +0 -6
  51. package/lib/virtual-render/use-scrollbar.d.ts +3 -17
  52. package/lib/virtual-render/virtual-render.css +89 -82
  53. package/lib/virtual-render/virtual-render.d.ts +0 -11
  54. package/lib/virtual-render/virtual-render.less +2 -11
  55. package/lib/virtual-render/virtual-render.variable.css +89 -82
  56. package/package.json +1 -1
  57. package/lib/scrollbar/scrollbar-core/can-use-dom.d.ts +0 -2
  58. package/lib/scrollbar/scrollbar-core/helpers.d.ts +0 -5
  59. package/lib/scrollbar/scrollbar-core/index.d.ts +0 -242
  60. package/lib/scrollbar/scrollbar-core/mouse-wheel.d.ts +0 -5
  61. package/lib/scrollbar/scrollbar-core/scrollbar-width.d.ts +0 -1
  62. package/lib/scrollbar/scrollbar.less +0 -119
@@ -535,111 +535,118 @@
535
535
  .bk-F-scroll-y::-webkit-scrollbar-thumb {
536
536
  border-radius: 4px;
537
537
  }
538
- .bk-scrollbar-wrapper {
539
- position: relative;
540
- overflow: hidden;
538
+ .bk-scrollbar {
539
+ overflow: hidden !important;
540
+ overflow-anchor: none;
541
+ touch-action: auto;
542
+ /*
543
+ * Scrollbar rail styles
544
+ */
545
+ /*
546
+ * Scrollbar thumb styles
547
+ */
548
+ }
549
+ .bk-scrollbar.bk--active-x > .bk__rail-x,
550
+ .bk-scrollbar.bk--active-y > .bk__rail-y {
551
+ display: block;
541
552
  }
542
- .bk-scrollbar-wrapper .bk-scrollbar-content-el {
543
- display: inline-flex;
544
- flex-direction: column;
545
- width: 100%;
553
+ .bk-scrollbar .bk__rail-x:hover,
554
+ .bk-scrollbar .bk__rail-y:hover,
555
+ .bk-scrollbar .bk__rail-x:focus,
556
+ .bk-scrollbar .bk__rail-y:focus,
557
+ .bk-scrollbar .bk__rail-x.bk--clicking,
558
+ .bk-scrollbar .bk__rail-y.bk--clicking {
559
+ background-color: #f0f1f5;
546
560
  }
547
- .bk-scrollbar-wrapper .bk-scrollbar-track {
548
- z-index: 1;
561
+ .bk-scrollbar .bk__rail-x {
562
+ display: none;
563
+ opacity: 0;
564
+ transition: background-color 0.2s linear, opacity 0.2s linear;
565
+ height: 10px;
566
+ bottom: 0px;
549
567
  position: absolute;
550
- right: 0;
551
- bottom: 0;
552
- pointer-events: none;
553
- overflow: hidden;
554
- }
555
- .bk-scrollbar-wrapper .bk-scrollbar-track.track-small.bk-scrollbar-vertical {
556
- width: 6px;
557
- }
558
- .bk-scrollbar-wrapper .bk-scrollbar-track.track-small.bk-scrollbar-vertical.bk-scrollbar-hover {
559
- width: 8px;
560
568
  }
561
- .bk-scrollbar-wrapper .bk-scrollbar-track.track-small.bk-scrollbar-horizontal {
562
- height: 6px;
563
- }
564
- .bk-scrollbar-wrapper .bk-scrollbar-track.track-small.bk-scrollbar-horizontal.bk-scrollbar-hover {
569
+ .bk-scrollbar .bk__rail-x.bk-size-small {
565
570
  height: 8px;
566
571
  }
567
- .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-hover {
568
- background-color: #f0f1f5;
569
- cursor: pointer;
572
+ .bk-scrollbar .bk__rail-x.bk-size-small .bk__thumb-x {
573
+ height: 6px;
570
574
  }
571
- .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-hover .bk-scrollbar::before {
572
- background-color: #979ba5;
575
+ .bk-scrollbar .bk__rail-y {
576
+ display: none;
577
+ opacity: 0;
578
+ transition: background-color 0.2s linear, opacity 0.2s linear;
579
+ width: 10px;
580
+ right: 0px;
581
+ position: absolute;
582
+ margin-right: 2px;
573
583
  }
574
- .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-vertical {
575
- top: 0;
584
+ .bk-scrollbar .bk__rail-y.bk-size-small {
576
585
  width: 8px;
577
- transform: translate(var(--scroll-offset-x), var(--scroll-offset-y));
578
586
  }
579
- .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-vertical.bk-scrollbar-hover {
580
- width: 10px;
587
+ .bk-scrollbar .bk__rail-y.bk-size-small .bk__thumb-y {
588
+ width: 6px;
581
589
  }
582
- .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-horizontal {
583
- left: 0;
590
+ .bk-scrollbar:hover > .bk__rail-x,
591
+ .bk-scrollbar:hover > .bk__rail-y,
592
+ .bk-scrollbar.bk--focus > .bk__rail-x,
593
+ .bk-scrollbar.bk--focus > .bk__rail-y,
594
+ .bk-scrollbar.bk--scrolling-x > .bk__rail-x,
595
+ .bk-scrollbar.bk--scrolling-y > .bk__rail-y {
596
+ opacity: 0.9;
597
+ }
598
+ .bk-scrollbar .bk__thumb-x {
599
+ background-color: #dcdee5;
600
+ border-radius: 8px;
601
+ transition: background-color 0.2s linear, height 0.2s ease-in-out;
584
602
  height: 8px;
585
- transform: translate(var(--scroll-offset-x), var(--scroll-offset-y));
603
+ bottom: 0px;
604
+ position: absolute;
586
605
  }
587
- .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-horizontal.bk-scrollbar-hover {
606
+ .bk-scrollbar .bk__thumb-y {
607
+ background-color: #dcdee5;
608
+ border-radius: 8px;
609
+ transition: background-color 0.2s linear, width 0.2s ease-in-out;
610
+ width: 8px;
611
+ right: 0px;
612
+ position: absolute;
613
+ }
614
+ .bk-scrollbar .bk__rail-x:hover > .bk__thumb-x,
615
+ .bk-scrollbar .bk__rail-x:focus > .bk__thumb-x,
616
+ .bk-scrollbar .bk__rail-x.bk--clicking .bk__thumb-x {
617
+ background-color: #979ba5;
588
618
  height: 10px;
589
619
  }
590
- .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-horizontal.bk-scrollbar {
591
- right: auto;
592
- left: 0;
593
- top: 0;
594
- bottom: 0;
595
- min-height: 0;
596
- min-width: 8px;
597
- width: auto;
620
+ .bk-scrollbar .bk__rail-y:hover > .bk__thumb-y,
621
+ .bk-scrollbar .bk__rail-y:focus > .bk__thumb-y,
622
+ .bk-scrollbar .bk__rail-y.bk--clicking .bk__thumb-y {
623
+ background-color: #979ba5;
624
+ width: 10px;
598
625
  }
599
- .bk-scrollbar-wrapper .bk-scrollbar-dragging {
600
- pointer-events: none;
601
- -webkit-touch-callout: none;
602
- -webkit-user-select: none;
603
- -khtml-user-select: none;
604
- -moz-user-select: none;
605
- -ms-user-select: none;
606
- user-select: none;
626
+ .bk-scrollbar .bk-size-small > .bk__thumb-x,
627
+ .bk-scrollbar .bk-size-small > .bk__thumb-x,
628
+ .bk-scrollbar .bk-size-small.bk--clicking .bk__thumb-x {
629
+ height: 8px;
607
630
  }
608
- .bk-scrollbar-wrapper .bk-scrollbar {
609
- position: absolute;
610
- left: 0;
611
- right: 0;
612
- top: 0;
613
- bottom: 0;
631
+ .bk-scrollbar .bk-size-small:hover > .bk__thumb-y,
632
+ .bk-scrollbar .bk-size-small:focus > .bk__thumb-y,
633
+ .bk-scrollbar .bk-size-small.bk--clicking .bk__thumb-y {
634
+ width: 8px;
614
635
  }
615
- .bk-scrollbar-wrapper .bk-scrollbar::before {
616
- position: absolute;
617
- content: '';
618
- background: #dcdee5;
619
- border-radius: 6px;
620
- left: 0;
621
- right: 0;
622
- top: 0;
623
- bottom: 0;
624
- opacity: 0;
625
- transition: opacity 0.2s 0.9s linear;
636
+ /* MS supports */
637
+ @supports (-ms-overflow-style: none) {
638
+ .bk-scrollbar {
639
+ overflow: auto !important;
640
+ }
626
641
  }
627
- .bk-scrollbar-wrapper .bk-scrollbar.bk-scrollbar-visible::before {
628
- opacity: 0.9;
629
- transition-delay: 0s;
630
- transition-duration: 0s;
642
+ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
643
+ .bk-scrollbar {
644
+ overflow: auto !important;
645
+ }
631
646
  }
632
647
  .bk-virtual-render {
633
648
  position: relative;
634
649
  }
635
- .bk-virtual-render .bk-virtual-content {
636
- position: absolute;
637
- top: 0;
638
- bottom: 0;
639
- left: 0;
640
- width: 100%;
641
- height: 100%;
642
- }
643
650
  .bk-virtual-render .bk-virtual-section {
644
651
  width: 1px;
645
652
  background: transparent;
@@ -1641,7 +1648,7 @@
1641
1648
  overflow: hidden;
1642
1649
  }
1643
1650
  .bk-table .bk-table-body .prepend-row {
1644
- transform: translate3d(var(--translate-x), 0, 0);
1651
+ transform: translate(var(--translate-x), 0);
1645
1652
  }
1646
1653
  .bk-table .bk-table-body .resize-column {
1647
1654
  position: absolute;
@@ -1650,7 +1657,7 @@
1650
1657
  left: 0;
1651
1658
  width: 1px;
1652
1659
  background-color: #3785ff;
1653
- transform: translate3d(var(--drag-offset-x), var(--translate-y), 0);
1660
+ transform: translate(var(--drag-offset-x), var(--translate-y));
1654
1661
  }
1655
1662
  .bk-table .bk-table-body-content.bk-stripe table tbody tr:nth-child(even) td {
1656
1663
  background-color: var(--table-strip-color);
@@ -1819,23 +1826,29 @@
1819
1826
  font-weight: 400;
1820
1827
  background-color: var(--background-color);
1821
1828
  }
1822
- .bk-table .bk-table-head table thead th.col-resize-hover::after,
1823
- .bk-table .bk-table-body table thead th.col-resize-hover::after {
1829
+ .bk-table .bk-table-head table thead th.col-pointer-hover.poiner-right::after,
1830
+ .bk-table .bk-table-body table thead th.col-pointer-hover.poiner-right::after {
1831
+ content: '';
1824
1832
  position: absolute;
1825
1833
  top: 0;
1826
- right: 0;
1827
1834
  bottom: 0;
1828
- z-index: 1;
1829
- width: 6px;
1830
- pointer-events: none;
1835
+ right: 0;
1836
+ width: 3px;
1831
1837
  background-color: #3785ff;
1832
- content: '';
1833
- transform: translateX(50%);
1834
- cursor: col-resize;
1838
+ transform: translateX(1px);
1839
+ pointer-events: none;
1835
1840
  }
1836
- .bk-table .bk-table-head table thead th.col-resize-hover .cell,
1837
- .bk-table .bk-table-body table thead th.col-resize-hover .cell {
1838
- cursor: col-resize;
1841
+ .bk-table .bk-table-head table thead th.col-pointer-hover.poiner-left::after,
1842
+ .bk-table .bk-table-body table thead th.col-pointer-hover.poiner-left::after {
1843
+ content: '';
1844
+ position: absolute;
1845
+ top: 0;
1846
+ bottom: 0;
1847
+ left: 0;
1848
+ width: 3px;
1849
+ transform: translateX(-1px);
1850
+ background-color: #3785ff;
1851
+ pointer-events: none;
1839
1852
  }
1840
1853
  .bk-table .bk-table-head table thead th .cell,
1841
1854
  .bk-table .bk-table-body table thead th .cell {
@@ -1844,17 +1857,21 @@
1844
1857
  height: calc(var(--row-height) - 2px);
1845
1858
  color: var(--table-head-font-color);
1846
1859
  }
1847
- .bk-table .bk-table-head table thead th.active,
1848
- .bk-table .bk-table-body table thead th.active,
1849
- .bk-table .bk-table-head table thead th:hover,
1850
- .bk-table .bk-table-body table thead th:hover {
1851
- cursor: pointer;
1852
- background: var(--table-row-active-bg-color);
1860
+ .bk-table .bk-table-head table thead th .cell.cell-resize,
1861
+ .bk-table .bk-table-body table thead th .cell.cell-resize {
1862
+ cursor: col-resize;
1853
1863
  }
1854
1864
  .bk-table .bk-table-head table thead th.column_fixed,
1855
1865
  .bk-table .bk-table-body table thead th.column_fixed {
1856
1866
  transform: translateX(var(--translate-x));
1857
1867
  }
1868
+ .bk-table .bk-table-head table:not(.col-resize-hover) thead th.active,
1869
+ .bk-table .bk-table-body table:not(.col-resize-hover) thead th.active,
1870
+ .bk-table .bk-table-head table:not(.col-resize-hover) thead th:hover,
1871
+ .bk-table .bk-table-body table:not(.col-resize-hover) thead th:hover {
1872
+ cursor: pointer;
1873
+ background: var(--table-row-active-bg-color);
1874
+ }
1858
1875
  .bk-table .bk-table-head table tbody tr td,
1859
1876
  .bk-table .bk-table-body table tbody tr td {
1860
1877
  background-color: #fff;
@@ -1894,6 +1911,7 @@
1894
1911
  overflow: hidden;
1895
1912
  background-color: var(--background-color);
1896
1913
  height: var(--row-height);
1914
+ min-height: var(--row-height);
1897
1915
  }
1898
1916
  .bk-table .bk-table-head.has-group .is-head-group {
1899
1917
  border-bottom: 1px solid var(--table-border-color);
@@ -1912,16 +1930,14 @@
1912
1930
  z-index: 1;
1913
1931
  width: 6px;
1914
1932
  background-color: #3785ff;
1915
- transform: translate3d(var(--drag-offset-h-x), 0, 0);
1916
- }
1917
- .bk-table .bk-table-head .col-resize-drag:hover {
1918
- cursor: ew-resize !important;
1933
+ transform: translate(var(--drag-offset-h-x), 0);
1934
+ pointer-events: none;
1919
1935
  }
1920
1936
  .bk-table .bk-table-head .bk-table-fixed {
1921
- transform: translate3d(0, 0, 0);
1937
+ transform: translate(0, 0);
1922
1938
  }
1923
1939
  .bk-table .bk-table-head thead {
1924
- transform: translate3d(var(--translate-x-1), 0, 0);
1940
+ transform: translate(var(--translate-x-1), 0);
1925
1941
  }
1926
1942
  .bk-table .bk-table-head .table-head-settings {
1927
1943
  position: absolute;
@@ -1948,6 +1964,7 @@
1948
1964
  display: flex;
1949
1965
  width: 100%;
1950
1966
  height: var(--footer-height);
1967
+ min-height: var(--footer-height);
1951
1968
  align-items: center;
1952
1969
  padding: 0 16px 0 22px;
1953
1970
  }
@@ -2018,7 +2035,7 @@
2018
2035
  bottom: 0;
2019
2036
  left: 0;
2020
2037
  pointer-events: none;
2021
- transform: translate3d(var(--translate-x), var(--translate-y), 0);
2038
+ transform: translate(var(--translate-x), var(--translate-y));
2022
2039
  }
2023
2040
  .bk-table .bk-table-fixed .column_fixed_right {
2024
2041
  box-shadow: var(--shadow-right);
@@ -1,4 +1,4 @@
1
- import { Column, GroupColumn, ISortPropShape, TablePropTypes } from './props';
1
+ import { Column, GroupColumn, ISortPropShape, ISortShape, TablePropTypes } from './props';
2
2
  /**
3
3
  * 解析Prop值 | 可能为多种类型 & 函数返回的场景
4
4
  * @param prop 当前Prop
@@ -80,24 +80,24 @@ export declare const resolveHeadConfig: (props: TablePropTypes) => {
80
80
  * @param index 当前行Index
81
81
  * @returns
82
82
  */
83
- export declare const getRowText: (row: any, key: string, format?: (() => boolean | number | string)[] | string[]) => any;
83
+ export declare const getRowText: (row: Record<string, unknown>, key: string, format?: (() => boolean | number | string)[] | string[]) => any;
84
84
  /**
85
85
  * 获取当前行指定列的值
86
86
  * @param row 当前行
87
87
  * @param key 指定列名
88
88
  * @returns
89
89
  */
90
- export declare const getRowValue: (row: any, key: string) => any;
90
+ export declare const getRowValue: (row: Record<string, unknown>, key: string) => unknown;
91
91
  /**
92
92
  * 格式化prop配置为标准数组格式
93
93
  * @param prop prop对象值
94
94
  * @param args 如果是function参数
95
95
  * @returns
96
96
  */
97
- export declare const formatPropAsArray: (prop: (() => any) | object | string, args: any[]) => any;
97
+ export declare const formatPropAsArray: (prop: (() => unknown) | object | string, args: unknown[]) => any;
98
98
  export declare const isRenderScrollBottomLoading: (props: TablePropTypes) => boolean;
99
- export declare const getRowKey: (item: any, props: TablePropTypes, index: number) => any;
100
- export declare const getRowKeyNull: (item: any, props: TablePropTypes, index: number) => unknown;
99
+ export declare const getRowKey: (item: Record<string, unknown>, props: TablePropTypes, index: number) => any;
100
+ export declare const getRowKeyNull: (item: Record<string, unknown>, props: TablePropTypes, index: number) => unknown;
101
101
  export declare const hasRootScrollY: (root: any, querySelector: string, offsetHeight?: number) => boolean;
102
102
  export declare const getColumnClass: (column: Column, colIndex?: number, uuid?: string) => {
103
103
  column_fixed: boolean;
@@ -106,30 +106,30 @@ export declare const getColumnClass: (column: Column, colIndex?: number, uuid?:
106
106
  };
107
107
  export declare const getElementTextWidth: (element: HTMLElement, text?: string) => any;
108
108
  export declare const isColumnHidden: (settingFields: any, column: any, checked: any) => boolean;
109
- export declare const resolveColumnSpan: (column: Column, colIndex: number, row: any, rowIndex: number, key: string) => any;
110
- export declare const resolveCellSpan: (column: Column, colIndex: number, row: any, rowIndex: number) => {
109
+ export declare const resolveColumnSpan: (column: Column, colIndex: number, row: Record<string, unknown>, rowIndex: number, key: string) => any;
110
+ export declare const resolveCellSpan: (column: Column, colIndex: number, row: Record<string, unknown>, rowIndex: number) => {
111
111
  colspan: any;
112
112
  rowspan: any;
113
113
  };
114
- export declare const skipThisColumn: (columns: Column[], colIndex: number, row: any, rowIndex: number) => number | false;
115
- export declare const getSortFn: (column: any, sortType: any, format?: any[]) => ((_a: any, _b: any) => boolean) | ((_a: any, _b: any, index0: any, index1: any) => number);
114
+ export declare const skipThisColumn: (columns: Column[], colIndex: number, row: Record<string, unknown>, rowIndex: number) => number | false;
115
+ export declare const getSortFn: (column: any, sortType: any, format?: any[]) => ((_a: any, _b: any) => boolean) | ((a: Record<string, unknown>, b: Record<string, unknown>, index0: number, index1: number) => number);
116
116
  export declare const getNextSortType: (sortType: string) => string;
117
117
  export declare const resolveSort: (sort: ISortPropShape, column: any, format?: any[]) => ({
118
- sortFn: ((_a: any, _b: any) => boolean) | ((_a: any, _b: any, index0: any, index1: any) => number);
119
- } & import("./props").ISortShape) | {
120
- sortFn?: (...args: any[]) => boolean;
118
+ sortFn: ((_a: any, _b: any) => boolean) | ((a: Record<string, unknown>, b: Record<string, unknown>, index0: number, index1: number) => number);
119
+ } & ISortShape) | {
120
+ sortFn?: (...args: any[]) => number;
121
121
  sortScope?: import("./props").SortScope;
122
122
  value: string;
123
123
  };
124
124
  export declare const isRowSelectEnable: (props: any, { row, index, isCheckAll }: {
125
- row: any;
125
+ row: Record<string, unknown>;
126
126
  index?: number;
127
127
  isCheckAll?: boolean;
128
128
  }) => any;
129
129
  export declare const getRowId: (row: any, defVal: any, props: any) => any;
130
130
  export declare const resolveColumnSortProp: (col: Column, props: TablePropTypes) => {
131
131
  type: string;
132
- fn: ((...args: any[]) => boolean) | ((((_a: any, _b: any) => boolean) | ((_a: any, _b: any, index0: any, index1: any) => number)) & ((...args: any[]) => boolean));
132
+ fn: ((...args: any[]) => number) | ((((_a: any, _b: any) => boolean) | ((a: Record<string, unknown>, b: Record<string, unknown>, index0: number, index1: number) => number)) & ((...args: any[]) => number));
133
133
  scope: import("./props").SortScope;
134
134
  active: boolean;
135
135
  enabled: boolean;
@@ -17636,6 +17636,9 @@ var IColSortBehavior;
17636
17636
  */
17637
17637
  IColSortBehavior["interdependent"] = "interdependent";
17638
17638
  })(IColSortBehavior || (IColSortBehavior = {}));
17639
+ // export enum BkScrollBehavior {
17640
+ // AUTO = 'auto',
17641
+ // };
17639
17642
  var tableProps = {
17640
17643
  /**
17641
17644
  * 渲染列表
@@ -17851,6 +17854,10 @@ var tableProps = {
17851
17854
  * 是否监表格尺寸变化而响应式重新计算渲染
17852
17855
  */
17853
17856
  observerResize: shared_namespaceObject.PropTypes.bool.def(true),
17857
+ /**
17858
+ * 是否使用IntersectionObserver监听表格Cell进如有可视区域再渲染
17859
+ */
17860
+ intersectionObserver: shared_namespaceObject.PropTypes.bool.def(false),
17854
17861
  // 对齐方式
17855
17862
  align: TableAlign,
17856
17863
  headerAlign: TableAlign,
@@ -17885,6 +17892,7 @@ var tableProps = {
17885
17892
  * 启用Scrollbar
17886
17893
  */
17887
17894
  scrollbar: shared_namespaceObject.PropTypes.bool.def(true),
17895
+ // scrollbehavior: toType<`${ScrollBehavior}`>('ScrollBehavior', {
17888
17896
  /**
17889
17897
  * 固定在底部的配置项
17890
17898
  */
@@ -295,6 +295,7 @@ declare const BkTree: {
295
295
  children: string;
296
296
  lineHeight: number;
297
297
  offsetLeft: number;
298
+ intersectionObserver: boolean | import("./props").IIntersectionObserver;
298
299
  nodeKey: string;
299
300
  indent: number;
300
301
  levelLine: any;
@@ -312,7 +313,6 @@ declare const BkTree: {
312
313
  nodeContentAction: any;
313
314
  keepSlotData: boolean;
314
315
  checkStrictly: boolean;
315
- intersectionObserver: boolean | import("./props").IIntersectionObserver;
316
316
  }, true, {}, {}, {
317
317
  P: {};
318
318
  B: {};
@@ -468,6 +468,7 @@ declare const BkTree: {
468
468
  children: string;
469
469
  lineHeight: number;
470
470
  offsetLeft: number;
471
+ intersectionObserver: boolean | import("./props").IIntersectionObserver;
471
472
  nodeKey: string;
472
473
  indent: number;
473
474
  levelLine: any;
@@ -485,7 +486,6 @@ declare const BkTree: {
485
486
  nodeContentAction: any;
486
487
  keepSlotData: boolean;
487
488
  checkStrictly: boolean;
488
- intersectionObserver: boolean | import("./props").IIntersectionObserver;
489
489
  }>;
490
490
  __isFragment?: never;
491
491
  __isTeleport?: never;
@@ -649,6 +649,7 @@ declare const BkTree: {
649
649
  children: string;
650
650
  lineHeight: number;
651
651
  offsetLeft: number;
652
+ intersectionObserver: boolean | import("./props").IIntersectionObserver;
652
653
  nodeKey: string;
653
654
  indent: number;
654
655
  levelLine: any;
@@ -666,6 +667,5 @@ declare const BkTree: {
666
667
  nodeContentAction: any;
667
668
  keepSlotData: boolean;
668
669
  checkStrictly: boolean;
669
- intersectionObserver: boolean | import("./props").IIntersectionObserver;
670
670
  }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>;
671
671
  export default BkTree;