vxe-pc-ui 3.20.10 → 3.20.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.
- package/es/icon/style.css +1 -1
- package/es/layout-body/src/layout-body.js +3 -2
- package/es/list/src/list.js +11 -2
- package/es/scrollbar/src/scrollbar.js +6 -1
- package/es/scrollbar/style.css +25 -12
- package/es/scrollbar/style.min.css +1 -1
- package/es/select/src/select.js +11 -2
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/tree/src/tree.js +11 -2
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-scrollbar/style.css +25 -12
- package/es/vxe-scrollbar/style.min.css +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +54 -23
- package/lib/index.umd.min.js +1 -1
- package/lib/layout-body/src/layout-body.js +3 -3
- package/lib/layout-body/src/layout-body.min.js +1 -1
- package/lib/list/src/list.js +11 -3
- package/lib/list/src/list.min.js +1 -1
- package/lib/scrollbar/src/scrollbar.js +9 -2
- package/lib/scrollbar/src/scrollbar.min.js +1 -1
- package/lib/scrollbar/style/style.css +25 -12
- package/lib/scrollbar/style/style.min.css +1 -1
- package/lib/select/src/select.js +11 -3
- package/lib/select/src/select.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/tree/src/tree.js +11 -3
- package/lib/tree/src/tree.min.js +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/vxe-scrollbar/style/style.css +25 -12
- package/lib/vxe-scrollbar/style/style.min.css +1 -1
- package/package.json +4 -4
- package/packages/layout-body/src/layout-body.ts +3 -2
- package/packages/list/src/list.ts +11 -2
- package/packages/scrollbar/src/scrollbar.ts +6 -1
- package/packages/select/src/select.ts +15 -6
- package/packages/tree/src/tree.ts +11 -2
- package/styles/components/scrollbar.scss +30 -12
- package/styles/theme/base.scss +4 -0
- package/types/components/card.d.ts +1 -1
- package/types/components/drawer.d.ts +1 -1
- package/types/components/gantt-module/gantt-view.d.ts +9 -0
- package/types/components/icon-picker.d.ts +1 -1
- package/types/components/layout-aside.d.ts +1 -1
- package/types/components/layout-body.d.ts +1 -1
- package/types/components/list.d.ts +1 -1
- package/types/components/menu.d.ts +10 -1
- package/types/components/modal.d.ts +1 -1
- package/types/components/scrollbar.d.ts +5 -0
- package/types/components/select.d.ts +1 -1
- package/types/components/table.d.ts +14 -0
- package/types/components/tabs.d.ts +1 -1
- package/types/components/tooltip.d.ts +1 -1
- package/types/components/tree.d.ts +1 -1
- /package/es/icon/{iconfont.1792219842866.ttf → iconfont.1792405541486.ttf} +0 -0
- /package/es/icon/{iconfont.1792219842866.woff → iconfont.1792405541486.woff} +0 -0
- /package/es/icon/{iconfont.1792219842866.woff2 → iconfont.1792405541486.woff2} +0 -0
- /package/es/{iconfont.1792219842866.ttf → iconfont.1792405541486.ttf} +0 -0
- /package/es/{iconfont.1792219842866.woff → iconfont.1792405541486.woff} +0 -0
- /package/es/{iconfont.1792219842866.woff2 → iconfont.1792405541486.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1792219842866.ttf → iconfont.1792405541486.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1792219842866.woff → iconfont.1792405541486.woff} +0 -0
- /package/lib/icon/style/{iconfont.1792219842866.woff2 → iconfont.1792405541486.woff2} +0 -0
- /package/lib/{iconfont.1792219842866.ttf → iconfont.1792405541486.ttf} +0 -0
- /package/lib/{iconfont.1792219842866.woff → iconfont.1792405541486.woff} +0 -0
- /package/lib/{iconfont.1792219842866.woff2 → iconfont.1792405541486.woff2} +0 -0
|
@@ -116,7 +116,8 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
116
116
|
const slots = $xeLayoutBody.$scopedSlots
|
|
117
117
|
const backtopId = $xeLayoutBody.backtopId
|
|
118
118
|
|
|
119
|
-
const { loading, padding, showBacktop
|
|
119
|
+
const { loading, padding, showBacktop } = props
|
|
120
|
+
const isVScrollbar = $xeLayoutBody.computeIsVScrollbar
|
|
120
121
|
const backtopOpts = $xeLayoutBody.computeBacktopOpts
|
|
121
122
|
const scrollbarProps = $xeLayoutBody.computeScrollbarProps
|
|
122
123
|
const vSize = $xeLayoutBody.computeSize
|
|
@@ -145,7 +146,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
145
146
|
'is--padding': padding
|
|
146
147
|
}]
|
|
147
148
|
}, [
|
|
148
|
-
|
|
149
|
+
isVScrollbar
|
|
149
150
|
? h(VxeScrollbarComponent, {
|
|
150
151
|
props: scrollbarProps,
|
|
151
152
|
scopedSlots: {
|
|
@@ -323,12 +323,14 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
323
323
|
const reactData = $xeList.reactData
|
|
324
324
|
|
|
325
325
|
const { yThumbHeight, xThumbWidth } = reactData
|
|
326
|
+
const scrollbarOpts = $xeList.computeScrollbarOpts as VxeListPropTypes.ScrollbarConfig
|
|
326
327
|
const scrollbarXToTop = $xeList.computeScrollbarXToTop
|
|
327
328
|
const scrollbarYToLeft = $xeList.computeScrollbarYToLeft
|
|
328
329
|
const scrollXVisible = $xeList.computeScrollXVisible
|
|
329
330
|
const scrollYVisible = $xeList.computeScrollYVisible
|
|
330
331
|
return domUtils.buildClass([
|
|
331
332
|
'vxe-scrollbar is--virtual',
|
|
333
|
+
scrollbarOpts.fluentOverlay ? 'is--fluent-overlay' : 'is--default-mode',
|
|
332
334
|
`ov-x--${scrollXVisible === false ? 'hidden' : 'visible'}`,
|
|
333
335
|
`ov-y--${scrollYVisible === false ? 'hidden' : 'visible'}`,
|
|
334
336
|
`sx-pos--${scrollbarXToTop ? 'top' : 'bottom'}`,
|
|
@@ -774,7 +776,10 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
774
776
|
const scrollLeft = scrollBodyElem.scrollLeft
|
|
775
777
|
const isX = scrollLeft !== internalData.lastScrollLeft
|
|
776
778
|
const isY = scrollTop !== internalData.lastScrollTop
|
|
777
|
-
$xeList.
|
|
779
|
+
const isVScrollbar = $xeList.computeIsVScrollbar
|
|
780
|
+
if (isVScrollbar) {
|
|
781
|
+
$xeList.updateThumbOffset()
|
|
782
|
+
}
|
|
778
783
|
internalData.lastScrollTop = scrollTop
|
|
779
784
|
internalData.lastScrollLeft = scrollLeft
|
|
780
785
|
if (reactData.scrollYLoad) {
|
|
@@ -2107,13 +2112,17 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
2107
2112
|
if (isVScrollbar) {
|
|
2108
2113
|
if (!scrollObserver) {
|
|
2109
2114
|
const el = $xeList.$refs.refElem as HTMLDivElement
|
|
2110
|
-
const
|
|
2115
|
+
const viewSpaceEl = $xeList.$refs.refVirtualSpaceElem as HTMLDivElement
|
|
2116
|
+
const viewInnerEl = $xeList.$refs.refVirtualBody as HTMLDivElement
|
|
2111
2117
|
const scrollObserver = globalResize.create(() => {
|
|
2112
2118
|
$xeList.reScrollFlag++
|
|
2113
2119
|
})
|
|
2114
2120
|
if (el) {
|
|
2115
2121
|
scrollObserver.observe(el)
|
|
2116
2122
|
}
|
|
2123
|
+
if (viewSpaceEl) {
|
|
2124
|
+
scrollObserver.observe(viewSpaceEl)
|
|
2125
|
+
}
|
|
2117
2126
|
if (viewInnerEl) {
|
|
2118
2127
|
scrollObserver.observe(viewInnerEl)
|
|
2119
2128
|
}
|
|
@@ -54,6 +54,10 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
54
54
|
type: Boolean as PropType<VxeScrollbarPropTypes.Native>,
|
|
55
55
|
default: () => getConfig().scrollbar.native
|
|
56
56
|
},
|
|
57
|
+
fluentOverlay: {
|
|
58
|
+
type: Boolean as PropType<VxeScrollbarPropTypes.FluentOverlay>,
|
|
59
|
+
default: () => getConfig().scrollbar.fluentOverlay
|
|
60
|
+
},
|
|
57
61
|
padding: {
|
|
58
62
|
type: Boolean as PropType<VxeScrollbarPropTypes.Padding>,
|
|
59
63
|
default: () => getConfig().scrollbar.padding
|
|
@@ -203,7 +207,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
203
207
|
const props = $xeScrollbar
|
|
204
208
|
const reactData = $xeScrollbar.reactData
|
|
205
209
|
|
|
206
|
-
const { native, theme, className, padding } = props
|
|
210
|
+
const { native, theme, className, padding, fluentOverlay } = props
|
|
207
211
|
const { yThumbHeight, xThumbWidth } = reactData
|
|
208
212
|
const vSize = $xeScrollbar.computeSize
|
|
209
213
|
const xToTop = ($xeScrollbar as any).computeXToTop as boolean
|
|
@@ -216,6 +220,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
216
220
|
'vxe-scrollbar',
|
|
217
221
|
vSize ? `size--${vSize}` : '',
|
|
218
222
|
theme ? `theme--${theme}` : '',
|
|
223
|
+
fluentOverlay ? 'is--fluent-overlay' : 'is--default-mode',
|
|
219
224
|
`ov-x--${xVisible === false ? 'hidden' : 'visible'}`,
|
|
220
225
|
`ov-y--${yVisible === false ? 'hidden' : 'visible'}`,
|
|
221
226
|
`sx-pos--${xToTop ? 'top' : 'bottom'}`,
|
|
@@ -591,16 +591,18 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
591
591
|
const reactData = ($xeSelect as any).reactData as SelectReactData
|
|
592
592
|
|
|
593
593
|
const { yThumbHeight, xThumbWidth } = reactData
|
|
594
|
+
const scrollbarOpts = $xeSelect.computeScrollbarOpts as VxeSelectPropTypes.ScrollbarConfig
|
|
594
595
|
const scrollbarXToTop = $xeSelect.computeScrollbarXToTop
|
|
595
596
|
const scrollbarYToLeft = $xeSelect.computeScrollbarYToLeft
|
|
596
597
|
const scrollXVisible = $xeSelect.computeScrollXVisible
|
|
597
598
|
const scrollYVisible = $xeSelect.computeScrollYVisible
|
|
598
599
|
return domUtils.buildClass([
|
|
599
600
|
'vxe-scrollbar is--virtual',
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
601
|
+
scrollbarOpts.fluentOverlay ? 'is--fluent-overlay' : 'is--default-mode',
|
|
602
|
+
`ov-x--${scrollXVisible === false ? 'hidden' : 'visible'}`,
|
|
603
|
+
`ov-y--${scrollYVisible === false ? 'hidden' : 'visible'}`,
|
|
604
|
+
`sx-pos--${scrollbarXToTop ? 'top' : 'bottom'}`,
|
|
605
|
+
`sy-pos--${scrollbarYToLeft ? 'left' : 'right'}`
|
|
604
606
|
], {
|
|
605
607
|
'overflow-y': yThumbHeight,
|
|
606
608
|
'overflow-x': xThumbWidth
|
|
@@ -1732,7 +1734,10 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
1732
1734
|
const scrollBodyElem = evnt.target as HTMLDivElement
|
|
1733
1735
|
const scrollTop = scrollBodyElem.scrollTop
|
|
1734
1736
|
const scrollLeft = scrollBodyElem.scrollLeft
|
|
1735
|
-
$xeSelect.
|
|
1737
|
+
const isVScrollbar = $xeSelect.computeIsVScrollbar
|
|
1738
|
+
if (isVScrollbar) {
|
|
1739
|
+
$xeSelect.updateThumbOffset()
|
|
1740
|
+
}
|
|
1736
1741
|
const isX = scrollLeft !== internalData.lastScrollLeft
|
|
1737
1742
|
const isY = scrollTop !== internalData.lastScrollTop
|
|
1738
1743
|
internalData.lastScrollTop = scrollTop
|
|
@@ -1834,13 +1839,17 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
1834
1839
|
if (isVScrollbar) {
|
|
1835
1840
|
if (!scrollObserver) {
|
|
1836
1841
|
const el = $xeSelect.$refs.refElem as HTMLDivElement
|
|
1837
|
-
const
|
|
1842
|
+
const viewSpaceEl = $xeSelect.$refs.refVirtualSpaceElem as HTMLDivElement
|
|
1843
|
+
const viewInnerEl = $xeSelect.$refs.refVirtualBody as HTMLDivElement
|
|
1838
1844
|
const scrollObserver = globalResize.create(() => {
|
|
1839
1845
|
$xeSelect.reScrollFlag++
|
|
1840
1846
|
})
|
|
1841
1847
|
if (el) {
|
|
1842
1848
|
scrollObserver.observe(el)
|
|
1843
1849
|
}
|
|
1850
|
+
if (viewSpaceEl) {
|
|
1851
|
+
scrollObserver.observe(viewSpaceEl)
|
|
1852
|
+
}
|
|
1844
1853
|
if (viewInnerEl) {
|
|
1845
1854
|
scrollObserver.observe(viewInnerEl)
|
|
1846
1855
|
}
|
|
@@ -1011,12 +1011,14 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
1011
1011
|
const reactData = ($xeTree as any).reactData as TreeReactData
|
|
1012
1012
|
|
|
1013
1013
|
const { yThumbHeight, xThumbWidth } = reactData
|
|
1014
|
+
const scrollbarOpts = $xeTree.computeScrollbarOpts as VxeTreePropTypes.ScrollbarConfig
|
|
1014
1015
|
const scrollbarXToTop = $xeTree.computeScrollbarXToTop
|
|
1015
1016
|
const scrollbarYToLeft = $xeTree.computeScrollbarYToLeft
|
|
1016
1017
|
const scrollXVisible = $xeTree.computeScrollXVisible
|
|
1017
1018
|
const scrollYVisible = $xeTree.computeScrollYVisible
|
|
1018
1019
|
return domUtils.buildClass([
|
|
1019
1020
|
'vxe-scrollbar is--virtual',
|
|
1021
|
+
scrollbarOpts.fluentOverlay ? 'is--fluent-overlay' : 'is--default-mode',
|
|
1020
1022
|
`ov-x--${scrollXVisible === false ? 'hidden' : 'visible'}`,
|
|
1021
1023
|
`ov-y--${scrollYVisible === false ? 'hidden' : 'visible'}`,
|
|
1022
1024
|
`sx-pos--${scrollbarXToTop ? 'top' : 'bottom'}`,
|
|
@@ -1780,7 +1782,10 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
1780
1782
|
const scrollLeft = scrollBodyElem.scrollLeft
|
|
1781
1783
|
const isX = scrollLeft !== internalData.lastScrollLeft
|
|
1782
1784
|
const isY = scrollTop !== internalData.lastScrollTop
|
|
1783
|
-
$xeTree.
|
|
1785
|
+
const isVScrollbar = $xeTree.computeIsVScrollbar
|
|
1786
|
+
if (isVScrollbar) {
|
|
1787
|
+
$xeTree.updateThumbOffset()
|
|
1788
|
+
}
|
|
1784
1789
|
internalData.lastScrollTop = scrollTop
|
|
1785
1790
|
internalData.lastScrollLeft = scrollLeft
|
|
1786
1791
|
if (reactData.scrollYLoad) {
|
|
@@ -3472,13 +3477,17 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
3472
3477
|
if (isVScrollbar) {
|
|
3473
3478
|
if (!scrollObserver) {
|
|
3474
3479
|
const el = $xeTree.$refs.refElem as HTMLDivElement
|
|
3475
|
-
const
|
|
3480
|
+
const viewSpaceEl = $xeTree.$refs.refVirtualSpaceElem as HTMLDivElement
|
|
3481
|
+
const viewInnerEl = $xeTree.$refs.refVirtualBody as HTMLDivElement
|
|
3476
3482
|
const scrollObserver = globalResize.create(() => {
|
|
3477
3483
|
$xeTree.reScrollFlag++
|
|
3478
3484
|
})
|
|
3479
3485
|
if (el) {
|
|
3480
3486
|
scrollObserver.observe(el)
|
|
3481
3487
|
}
|
|
3488
|
+
if (viewSpaceEl) {
|
|
3489
|
+
scrollObserver.observe(viewSpaceEl)
|
|
3490
|
+
}
|
|
3482
3491
|
if (viewInnerEl) {
|
|
3483
3492
|
scrollObserver.observe(viewInnerEl)
|
|
3484
3493
|
}
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
}
|
|
36
36
|
&.is--native {
|
|
37
37
|
& > .vxe-scrollbar--view::-webkit-scrollbar {
|
|
38
|
-
width: var(--vxe-ui-scrollbar-y-width);
|
|
39
|
-
height: var(--vxe-ui-scrollbar-x-height);
|
|
38
|
+
width: var(--vxe-ui-scrollbar-current-y-width);
|
|
39
|
+
height: var(--vxe-ui-scrollbar-current-x-height);
|
|
40
40
|
}
|
|
41
41
|
& > .vxe-scrollbar--view::-webkit-scrollbar-thumb {
|
|
42
42
|
border-radius: var(--vxe-ui-base-border-radius);
|
|
@@ -95,13 +95,13 @@
|
|
|
95
95
|
.vxe-scrollbar--track-x {
|
|
96
96
|
width: 100%;
|
|
97
97
|
left: 0;
|
|
98
|
-
height: var(--vxe-ui-scrollbar-x-height);
|
|
98
|
+
height: var(--vxe-ui-scrollbar-current-x-height);
|
|
99
99
|
padding: var(--vxe-ui-scrollbar-track-padding) 0;
|
|
100
100
|
}
|
|
101
101
|
.vxe-scrollbar--track-y {
|
|
102
102
|
height: 100%;
|
|
103
103
|
top: 0;
|
|
104
|
-
width: var(--vxe-ui-scrollbar-y-width);
|
|
104
|
+
width: var(--vxe-ui-scrollbar-current-y-width);
|
|
105
105
|
padding: 0 var(--vxe-ui-scrollbar-track-padding);
|
|
106
106
|
}
|
|
107
107
|
.vxe-scrollbar {
|
|
@@ -128,16 +128,16 @@
|
|
|
128
128
|
&.overflow-x {
|
|
129
129
|
&.overflow-y {
|
|
130
130
|
& > .vxe-scrollbar--track-x {
|
|
131
|
-
width: calc(100% - var(--vxe-ui-scrollbar-x-height));
|
|
131
|
+
width: calc(100% - var(--vxe-ui-scrollbar-current-x-height));
|
|
132
132
|
}
|
|
133
133
|
& > .vxe-scrollbar--track-y {
|
|
134
|
-
height: calc(100% - var(--vxe-ui-scrollbar-y-width));
|
|
134
|
+
height: calc(100% - var(--vxe-ui-scrollbar-current-y-width));
|
|
135
135
|
}
|
|
136
136
|
&.sx-pos--top {
|
|
137
137
|
&.sy-pos--left,
|
|
138
138
|
&.sy-pos--right {
|
|
139
139
|
& > .vxe-scrollbar--track-y {
|
|
140
|
-
top: var(--vxe-ui-scrollbar-x-height);
|
|
140
|
+
top: var(--vxe-ui-scrollbar-current-x-height);
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
}
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
&.sx-pos--top,
|
|
146
146
|
&.sx-pos--bottom {
|
|
147
147
|
& > .vxe-scrollbar--track-x {
|
|
148
|
-
left: var(--vxe-ui-scrollbar-y-width);
|
|
148
|
+
left: var(--vxe-ui-scrollbar-current-y-width);
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
}
|
|
@@ -153,22 +153,40 @@
|
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
+
.vxe-scrollbar {
|
|
157
|
+
&.is--fluent-overlay {
|
|
158
|
+
--vxe-ui-scrollbar-current-y-width: var(--vxe-ui-scrollbar-overlay-y-width);
|
|
159
|
+
--vxe-ui-scrollbar-current-x-height: var(--vxe-ui-scrollbar-overlay-x-height);
|
|
160
|
+
& > .vxe-scrollbar--track-x,
|
|
161
|
+
& > .vxe-scrollbar--track-y {
|
|
162
|
+
&:hover {
|
|
163
|
+
--vxe-ui-scrollbar-current-y-width: var(--vxe-ui-scrollbar-overlay-action-y-width);
|
|
164
|
+
--vxe-ui-scrollbar-current-x-height: var(--vxe-ui-scrollbar-overlay-action-x-height);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
&.is--default-mode {
|
|
169
|
+
--vxe-ui-scrollbar-current-y-width: var(--vxe-ui-scrollbar-y-width);
|
|
170
|
+
--vxe-ui-scrollbar-current-x-height: var(--vxe-ui-scrollbar-x-height);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
156
174
|
.vxe-scrollbar {
|
|
157
175
|
&.is--padding {
|
|
158
176
|
&.overflow-x {
|
|
159
177
|
&.sx-pos--top {
|
|
160
|
-
padding-top: var(--vxe-ui-scrollbar-x-height);
|
|
178
|
+
padding-top: var(--vxe-ui-scrollbar-current-x-height);
|
|
161
179
|
}
|
|
162
180
|
&.sx-pos--bottom {
|
|
163
|
-
padding-bottom: var(--vxe-ui-scrollbar-x-height);
|
|
181
|
+
padding-bottom: var(--vxe-ui-scrollbar-current-x-height);
|
|
164
182
|
}
|
|
165
183
|
}
|
|
166
184
|
&.overflow-y {
|
|
167
185
|
&.sy-pos--left {
|
|
168
|
-
padding-left: var(--vxe-ui-scrollbar-y-width);
|
|
186
|
+
padding-left: var(--vxe-ui-scrollbar-current-y-width);
|
|
169
187
|
}
|
|
170
188
|
&.sy-pos--right {
|
|
171
|
-
padding-right: var(--vxe-ui-scrollbar-y-width);
|
|
189
|
+
padding-right: var(--vxe-ui-scrollbar-current-y-width);
|
|
172
190
|
}
|
|
173
191
|
}
|
|
174
192
|
}
|
package/styles/theme/base.scss
CHANGED
|
@@ -322,6 +322,10 @@
|
|
|
322
322
|
/*scrollbar*/
|
|
323
323
|
--vxe-ui-scrollbar-y-width: 10px;
|
|
324
324
|
--vxe-ui-scrollbar-x-height: var(--vxe-ui-scrollbar-y-width);
|
|
325
|
+
--vxe-ui-scrollbar-overlay-y-width: 4px;
|
|
326
|
+
--vxe-ui-scrollbar-overlay-x-height: var(--vxe-ui-scrollbar-overlay-y-width);
|
|
327
|
+
--vxe-ui-scrollbar-overlay-action-y-width: 12px;
|
|
328
|
+
--vxe-ui-scrollbar-overlay-action-x-height: var(--vxe-ui-scrollbar-overlay-action-y-width);
|
|
325
329
|
--vxe-ui-scrollbar-track-background-color: transparent;
|
|
326
330
|
--vxe-ui-scrollbar-track-padding: 0;
|
|
327
331
|
--vxe-ui-scrollbar-thumb-border-radius: var(--vxe-ui-base-border-radius);
|
|
@@ -27,7 +27,7 @@ export namespace VxeCardPropTypes {
|
|
|
27
27
|
export type Padding = boolean
|
|
28
28
|
export type Size = VxeComponentSizeType
|
|
29
29
|
export type UseScrollbar = VxeComponentIsVScrollbar
|
|
30
|
-
export interface ScrollbarConfig extends Pick<VxeScrollbarProps, 'xConfig' | 'yConfig' | 'padding' | 'autoHide' | 'visible' | 'className' | 'viewAttrs' | 'viewClassName' | 'viewInnerClassName'> {
|
|
30
|
+
export interface ScrollbarConfig extends Pick<VxeScrollbarProps, 'xConfig' | 'yConfig' | 'padding' | 'autoHide' | 'fluentOverlay' | 'visible' | 'className' | 'viewAttrs' | 'viewClassName' | 'viewInnerClassName'> {
|
|
31
31
|
/**
|
|
32
32
|
* 滚动条宽度
|
|
33
33
|
*/
|
|
@@ -69,7 +69,7 @@ export namespace VxeDrawerPropTypes {
|
|
|
69
69
|
export type BeforeHideMethod = (params: VxeDrawerDefines.DrawerVisibleParams) => Promise<any>
|
|
70
70
|
export type Slots = VxeDrawerSlots
|
|
71
71
|
export type UseScrollbar = VxeComponentIsVScrollbar
|
|
72
|
-
export interface ScrollbarConfig extends Pick<VxeScrollbarProps, 'xConfig' | 'yConfig' | 'padding' | 'autoHide' | 'visible' | 'className' | 'viewAttrs' | 'viewClassName' | 'viewInnerClassName'> {
|
|
72
|
+
export interface ScrollbarConfig extends Pick<VxeScrollbarProps, 'xConfig' | 'yConfig' | 'padding' | 'autoHide' | 'fluentOverlay' | 'visible' | 'className' | 'viewAttrs' | 'viewClassName' | 'viewInnerClassName'> {
|
|
73
73
|
/**
|
|
74
74
|
* 滚动条宽度
|
|
75
75
|
*/
|
|
@@ -87,6 +87,9 @@ export interface GanttViewInternalData extends VxeUseInitVScrollbarInternalData
|
|
|
87
87
|
inBodyScroll?: boolean
|
|
88
88
|
inFooterScroll?: boolean
|
|
89
89
|
scrollRenderType?: '' | 'left' | 'right'
|
|
90
|
+
|
|
91
|
+
isSyncTableScrollTop?: boolean
|
|
92
|
+
|
|
90
93
|
// 同步滚动
|
|
91
94
|
lcsTimeout?: undefined | number
|
|
92
95
|
lcsRunTime?: undefined | number
|
|
@@ -132,6 +135,12 @@ export interface VxeGanttViewPrivateMethods {
|
|
|
132
135
|
* @private
|
|
133
136
|
*/
|
|
134
137
|
handleLazyRecalculate(): Promise<void>
|
|
138
|
+
/**
|
|
139
|
+
* @private
|
|
140
|
+
*/
|
|
141
|
+
handleSyncScrollTop(params: {
|
|
142
|
+
scrollTop: number
|
|
143
|
+
}): void
|
|
135
144
|
/**
|
|
136
145
|
* @private
|
|
137
146
|
*/
|
|
@@ -88,7 +88,7 @@ export namespace VxeIconPickerPropTypes {
|
|
|
88
88
|
}
|
|
89
89
|
export type Transfer = boolean
|
|
90
90
|
export type UseScrollbar = VxeComponentIsVScrollbar
|
|
91
|
-
export interface ScrollbarConfig extends Pick<VxeScrollbarProps, 'xConfig' | 'yConfig' | 'padding' | 'autoHide' | 'visible' | 'className' | 'viewAttrs' | 'viewClassName' | 'viewInnerClassName'> {
|
|
91
|
+
export interface ScrollbarConfig extends Pick<VxeScrollbarProps, 'xConfig' | 'yConfig' | 'padding' | 'autoHide' | 'fluentOverlay' | 'visible' | 'className' | 'viewAttrs' | 'viewClassName' | 'viewInnerClassName'> {
|
|
92
92
|
/**
|
|
93
93
|
* 滚动条宽度
|
|
94
94
|
*/
|
|
@@ -30,7 +30,7 @@ export namespace VxeLayoutAsidePropTypes {
|
|
|
30
30
|
animation?: boolean
|
|
31
31
|
}
|
|
32
32
|
export type UseScrollbar = VxeComponentIsVScrollbar
|
|
33
|
-
export interface ScrollbarConfig extends Pick<VxeScrollbarProps, 'xConfig' | 'yConfig' | 'padding' | 'autoHide' | 'visible' | 'className' | 'viewAttrs' | 'viewClassName' | 'viewInnerClassName'> {
|
|
33
|
+
export interface ScrollbarConfig extends Pick<VxeScrollbarProps, 'xConfig' | 'yConfig' | 'padding' | 'autoHide' | 'fluentOverlay' | 'visible' | 'className' | 'viewAttrs' | 'viewClassName' | 'viewInnerClassName'> {
|
|
34
34
|
/**
|
|
35
35
|
* 滚动条宽度
|
|
36
36
|
*/
|
|
@@ -25,7 +25,7 @@ export namespace VxeLayoutBodyPropTypes {
|
|
|
25
25
|
export type ShowBacktop = boolean
|
|
26
26
|
export interface BacktopConfig extends Omit<VxeBacktopProps, 'target'> {}
|
|
27
27
|
export type UseScrollbar = VxeComponentIsVScrollbar
|
|
28
|
-
export interface ScrollbarConfig extends Pick<VxeScrollbarProps, 'xConfig' | 'yConfig' | 'padding' | 'autoHide' | 'visible' | 'className' | 'viewAttrs' | 'viewClassName' | 'viewInnerClassName'> {
|
|
28
|
+
export interface ScrollbarConfig extends Pick<VxeScrollbarProps, 'xConfig' | 'yConfig' | 'padding' | 'autoHide' | 'fluentOverlay' | 'visible' | 'className' | 'viewAttrs' | 'viewClassName' | 'viewInnerClassName'> {
|
|
29
29
|
/**
|
|
30
30
|
* 滚动条宽度
|
|
31
31
|
*/
|
|
@@ -220,7 +220,7 @@ export namespace VxeListPropTypes {
|
|
|
220
220
|
enabled?: boolean
|
|
221
221
|
}
|
|
222
222
|
export type UseScrollbar = VxeComponentIsVScrollbar
|
|
223
|
-
export interface ScrollbarConfig extends Pick<VxeScrollbarProps, 'xConfig' | 'yConfig' | 'padding' | 'autoHide' | 'visible'> {
|
|
223
|
+
export interface ScrollbarConfig extends Pick<VxeScrollbarProps, 'xConfig' | 'yConfig' | 'padding' | 'autoHide' | 'fluentOverlay' | 'visible'> {
|
|
224
224
|
/**
|
|
225
225
|
* 滚动条宽度
|
|
226
226
|
*/
|
|
@@ -81,7 +81,16 @@ export namespace VxeMenuPropTypes {
|
|
|
81
81
|
}
|
|
82
82
|
export type AppendTo = string | HTMLElement | ((params: {}) => string | HTMLElement)
|
|
83
83
|
export type UseScrollbar = VxeComponentIsVScrollbar
|
|
84
|
-
export interface ScrollbarConfig extends VxeScrollbarProps {
|
|
84
|
+
export interface ScrollbarConfig extends Pick<VxeScrollbarProps, 'yConfig' | 'padding' | 'autoHide' | 'fluentOverlay' | 'visible' | 'className' | 'viewAttrs' | 'viewClassName' | 'viewInnerClassName'> {
|
|
85
|
+
/**
|
|
86
|
+
* 滚动条宽度
|
|
87
|
+
*/
|
|
88
|
+
width?: number | string
|
|
89
|
+
/**
|
|
90
|
+
* 滚动条高度
|
|
91
|
+
*/
|
|
92
|
+
height?: number | string
|
|
93
|
+
}
|
|
85
94
|
}
|
|
86
95
|
|
|
87
96
|
export interface VxeMenuProps {
|
|
@@ -122,7 +122,7 @@ export namespace VxeModalPropTypes {
|
|
|
122
122
|
}) => Promise<any>
|
|
123
123
|
export type Slots = VxeModalSlots
|
|
124
124
|
export type UseScrollbar = VxeComponentIsVScrollbar
|
|
125
|
-
export interface ScrollbarConfig extends Pick<VxeScrollbarProps, 'xConfig' | 'yConfig' | 'padding' | 'autoHide' | 'visible' | 'className' | 'viewAttrs' | 'viewClassName' | 'viewInnerClassName'> {
|
|
125
|
+
export interface ScrollbarConfig extends Pick<VxeScrollbarProps, 'xConfig' | 'yConfig' | 'padding' | 'autoHide' | 'fluentOverlay' | 'visible' | 'className' | 'viewAttrs' | 'viewClassName' | 'viewInnerClassName'> {
|
|
126
126
|
/**
|
|
127
127
|
* 滚动条宽度
|
|
128
128
|
*/
|
|
@@ -31,6 +31,7 @@ export namespace VxeScrollbarPropTypes {
|
|
|
31
31
|
export type Native = boolean
|
|
32
32
|
export type Padding = boolean
|
|
33
33
|
export type AutoHide = boolean
|
|
34
|
+
export type FluentOverlay = boolean
|
|
34
35
|
export type Visible = boolean
|
|
35
36
|
export interface XConfig {
|
|
36
37
|
height?: number | string
|
|
@@ -137,6 +138,10 @@ export interface VxeScrollbarProps {
|
|
|
137
138
|
* 是否自动隐藏
|
|
138
139
|
*/
|
|
139
140
|
autoHide?: VxeScrollbarPropTypes.AutoHide
|
|
141
|
+
/**
|
|
142
|
+
* 是否悬浮叠加滚动条,默认细线,鼠标悬浮上去滑块变宽
|
|
143
|
+
*/
|
|
144
|
+
fluentOverlay?: VxeScrollbarPropTypes.FluentOverlay
|
|
140
145
|
/**
|
|
141
146
|
* 是否显示
|
|
142
147
|
*/
|
|
@@ -196,7 +196,7 @@ export namespace VxeSelectPropTypes {
|
|
|
196
196
|
*/
|
|
197
197
|
export interface ScrollY extends VirtualYConfig {}
|
|
198
198
|
export type UseScrollbar = VxeComponentIsVScrollbar
|
|
199
|
-
export interface ScrollbarConfig extends Pick<VxeScrollbarProps, 'xConfig' | 'yConfig' | 'padding' | 'autoHide' | 'visible' | 'className' | 'viewAttrs' | 'viewClassName' | 'viewInnerClassName'> {
|
|
199
|
+
export interface ScrollbarConfig extends Pick<VxeScrollbarProps, 'xConfig' | 'yConfig' | 'padding' | 'autoHide' | 'fluentOverlay' | 'visible' | 'className' | 'viewAttrs' | 'viewClassName' | 'viewInnerClassName'> {
|
|
200
200
|
/**
|
|
201
201
|
* 滚动条宽度
|
|
202
202
|
*/
|
|
@@ -3009,6 +3009,10 @@ export namespace VxeTablePropTypes {
|
|
|
3009
3009
|
* 是否自动隐藏滚动条
|
|
3010
3010
|
*/
|
|
3011
3011
|
autoHide?: boolean
|
|
3012
|
+
/**
|
|
3013
|
+
* 是否悬浮叠加滚动条,默认细线,鼠标悬浮上去滑块变宽
|
|
3014
|
+
*/
|
|
3015
|
+
fluentOverlay?: boolean
|
|
3012
3016
|
/**
|
|
3013
3017
|
* 是否显示
|
|
3014
3018
|
*/
|
|
@@ -4525,6 +4529,9 @@ export interface TableInternalData<D = any> extends VxeUseInitVScrollbarInternal
|
|
|
4525
4529
|
inBodyScroll?: boolean
|
|
4526
4530
|
inFooterScroll?: boolean
|
|
4527
4531
|
scrollRenderType?: '' | 'left' | 'right'
|
|
4532
|
+
|
|
4533
|
+
isSyncGanttScrollTop?: boolean
|
|
4534
|
+
|
|
4528
4535
|
// 同步滚动
|
|
4529
4536
|
lcsTimeout?: undefined | number
|
|
4530
4537
|
lcsRunTime?: undefined | number
|
|
@@ -6111,6 +6118,13 @@ export interface TablePrivateMethods<D = any> {
|
|
|
6111
6118
|
* @private
|
|
6112
6119
|
*/
|
|
6113
6120
|
updateScrollYData(): Promise<any>
|
|
6121
|
+
/**
|
|
6122
|
+
* 内部方法
|
|
6123
|
+
* @private
|
|
6124
|
+
*/
|
|
6125
|
+
handleSyncScrollTop(params: {
|
|
6126
|
+
scrollTop: number
|
|
6127
|
+
}): void
|
|
6114
6128
|
/**
|
|
6115
6129
|
* 内部方法
|
|
6116
6130
|
* @private
|
|
@@ -107,7 +107,7 @@ export namespace VxeTabsPropTypes {
|
|
|
107
107
|
}) => boolean
|
|
108
108
|
}
|
|
109
109
|
export type UseScrollbar = VxeComponentIsVScrollbar
|
|
110
|
-
export interface ScrollbarConfig extends Pick<VxeScrollbarProps, 'xConfig' | 'yConfig' | 'padding' | 'autoHide' | 'visible' | 'className' | 'viewAttrs' | 'viewClassName' | 'viewInnerClassName'> {
|
|
110
|
+
export interface ScrollbarConfig extends Pick<VxeScrollbarProps, 'xConfig' | 'yConfig' | 'padding' | 'autoHide' | 'fluentOverlay' | 'visible' | 'className' | 'viewAttrs' | 'viewClassName' | 'viewInnerClassName'> {
|
|
111
111
|
/**
|
|
112
112
|
* 滚动条宽度
|
|
113
113
|
*/
|
|
@@ -43,7 +43,7 @@ export namespace VxeTooltipPropTypes {
|
|
|
43
43
|
export type AppendTo = string | HTMLElement | ((params: {}) => string | HTMLElement)
|
|
44
44
|
export type Transfer = boolean
|
|
45
45
|
export type UseScrollbar = VxeComponentIsVScrollbar
|
|
46
|
-
export interface ScrollbarConfig extends Pick<VxeScrollbarProps, 'xConfig' | 'yConfig' | 'padding' | 'autoHide' | 'visible' | 'className' | 'viewAttrs' | 'viewClassName' | 'viewInnerClassName'> {
|
|
46
|
+
export interface ScrollbarConfig extends Pick<VxeScrollbarProps, 'xConfig' | 'yConfig' | 'padding' | 'autoHide' | 'fluentOverlay' | 'visible' | 'className' | 'viewAttrs' | 'viewClassName' | 'viewInnerClassName'> {
|
|
47
47
|
/**
|
|
48
48
|
* 滚动条宽度
|
|
49
49
|
*/
|
|
@@ -326,7 +326,7 @@ export namespace VxeTreePropTypes {
|
|
|
326
326
|
enabled?: boolean
|
|
327
327
|
}
|
|
328
328
|
export type UseScrollbar = VxeComponentIsVScrollbar
|
|
329
|
-
export interface ScrollbarConfig extends Pick<VxeScrollbarProps, 'xConfig' | 'yConfig' | 'padding' | 'autoHide' | 'visible'> {
|
|
329
|
+
export interface ScrollbarConfig extends Pick<VxeScrollbarProps, 'xConfig' | 'yConfig' | 'padding' | 'autoHide' | 'fluentOverlay' | 'visible'> {
|
|
330
330
|
/**
|
|
331
331
|
* 滚动条宽度
|
|
332
332
|
*/
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|