vxe-pc-ui 3.19.4 → 3.19.6
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-aside/style.css +4 -1
- package/es/layout-aside/style.min.css +1 -1
- package/es/layout-body/style.css +4 -1
- package/es/layout-body/style.min.css +1 -1
- package/es/scrollbar/src/scrollbar.js +20 -1
- package/es/scrollbar/style.css +42 -3
- package/es/scrollbar/style.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/tabs/style.css +4 -0
- package/es/tabs/style.min.css +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-layout-aside/style.css +4 -1
- package/es/vxe-layout-aside/style.min.css +1 -1
- package/es/vxe-layout-body/style.css +4 -1
- package/es/vxe-layout-body/style.min.css +1 -1
- package/es/vxe-scrollbar/style.css +42 -3
- package/es/vxe-scrollbar/style.min.css +1 -1
- package/es/vxe-tabs/style.css +4 -0
- package/es/vxe-tabs/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 +24 -4
- package/lib/index.umd.min.js +1 -1
- package/lib/layout-aside/style/style.css +4 -1
- package/lib/layout-aside/style/style.min.css +1 -1
- package/lib/layout-body/style/style.css +4 -1
- package/lib/layout-body/style/style.min.css +1 -1
- package/lib/scrollbar/src/scrollbar.js +22 -2
- package/lib/scrollbar/src/scrollbar.min.js +1 -1
- package/lib/scrollbar/style/style.css +42 -3
- package/lib/scrollbar/style/style.min.css +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/tabs/style/style.css +4 -0
- package/lib/tabs/style/style.min.css +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-layout-aside/style/style.css +4 -1
- package/lib/vxe-layout-aside/style/style.min.css +1 -1
- package/lib/vxe-layout-body/style/style.css +4 -1
- package/lib/vxe-layout-body/style/style.min.css +1 -1
- package/lib/vxe-scrollbar/style/style.css +42 -3
- package/lib/vxe-scrollbar/style/style.min.css +1 -1
- package/lib/vxe-tabs/style/style.css +4 -0
- package/lib/vxe-tabs/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/scrollbar/src/scrollbar.ts +22 -1
- package/styles/components/layout-aside.scss +10 -1
- package/styles/components/layout-body.scss +10 -1
- package/styles/components/scrollbar.scss +70 -4
- package/styles/components/tabs.scss +4 -0
- package/types/components/scrollbar.d.ts +13 -0
- /package/es/icon/{iconfont.1791616159757.ttf → iconfont.1791769634184.ttf} +0 -0
- /package/es/icon/{iconfont.1791616159757.woff → iconfont.1791769634184.woff} +0 -0
- /package/es/icon/{iconfont.1791616159757.woff2 → iconfont.1791769634184.woff2} +0 -0
- /package/es/{iconfont.1791616159757.ttf → iconfont.1791769634184.ttf} +0 -0
- /package/es/{iconfont.1791616159757.woff → iconfont.1791769634184.woff} +0 -0
- /package/es/{iconfont.1791616159757.woff2 → iconfont.1791769634184.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1791616159757.ttf → iconfont.1791769634184.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1791616159757.woff → iconfont.1791769634184.woff} +0 -0
- /package/lib/icon/style/{iconfont.1791616159757.woff2 → iconfont.1791769634184.woff2} +0 -0
- /package/lib/{iconfont.1791616159757.ttf → iconfont.1791769634184.ttf} +0 -0
- /package/lib/{iconfont.1791616159757.woff → iconfont.1791769634184.woff} +0 -0
- /package/lib/{iconfont.1791616159757.woff2 → iconfont.1791769634184.woff2} +0 -0
|
@@ -77,8 +77,12 @@
|
|
|
77
77
|
user-select: none;
|
|
78
78
|
}
|
|
79
79
|
.vxe-scrollbar {
|
|
80
|
+
&.overflow-x {
|
|
81
|
+
& > .vxe-scrollbar--track-x {
|
|
82
|
+
display: block;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
80
85
|
&.overflow-y {
|
|
81
|
-
& > .vxe-scrollbar--track-x,
|
|
82
86
|
& > .vxe-scrollbar--track-y {
|
|
83
87
|
display: block;
|
|
84
88
|
}
|
|
@@ -87,19 +91,81 @@
|
|
|
87
91
|
|
|
88
92
|
.vxe-scrollbar--track-x {
|
|
89
93
|
width: 100%;
|
|
90
|
-
bottom: 0;
|
|
91
94
|
left: 0;
|
|
92
95
|
height: var(--vxe-ui-scrollbar-x-height);
|
|
93
96
|
padding: var(--vxe-ui-scrollbar-track-padding) 0;
|
|
94
97
|
}
|
|
95
|
-
|
|
96
98
|
.vxe-scrollbar--track-y {
|
|
97
99
|
height: 100%;
|
|
98
|
-
right: 0;
|
|
99
100
|
top: 0;
|
|
100
101
|
width: var(--vxe-ui-scrollbar-y-width);
|
|
101
102
|
padding: 0 var(--vxe-ui-scrollbar-track-padding);
|
|
102
103
|
}
|
|
104
|
+
.vxe-scrollbar {
|
|
105
|
+
&.sx-pos--top {
|
|
106
|
+
& > .vxe-scrollbar--track-x {
|
|
107
|
+
top: 0;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
&.sx-pos--bottom {
|
|
111
|
+
& > .vxe-scrollbar--track-x {
|
|
112
|
+
bottom: 0;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
&.sy-pos--left {
|
|
116
|
+
& > .vxe-scrollbar--track-y {
|
|
117
|
+
left: 0;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
&.sy-pos--right {
|
|
121
|
+
& > .vxe-scrollbar--track-y {
|
|
122
|
+
right: 0;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
&.overflow-x {
|
|
126
|
+
&.overflow-y {
|
|
127
|
+
& > .vxe-scrollbar--track-x {
|
|
128
|
+
width: calc(100% - var(--vxe-ui-scrollbar-x-height));
|
|
129
|
+
}
|
|
130
|
+
& > .vxe-scrollbar--track-y {
|
|
131
|
+
height: calc(100% - var(--vxe-ui-scrollbar-y-width));
|
|
132
|
+
}
|
|
133
|
+
&.sx-pos--top {
|
|
134
|
+
&.sy-pos--left,
|
|
135
|
+
&.sy-pos--right {
|
|
136
|
+
& > .vxe-scrollbar--track-y {
|
|
137
|
+
top: var(--vxe-ui-scrollbar-x-height);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
&.sy-pos--left {
|
|
142
|
+
&.sx-pos--top,
|
|
143
|
+
&.sx-pos--bottom {
|
|
144
|
+
& > .vxe-scrollbar--track-x {
|
|
145
|
+
left: var(--vxe-ui-scrollbar-y-width);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.vxe-scrollbar {
|
|
154
|
+
&.is--padding {
|
|
155
|
+
&.sx-pos--top {
|
|
156
|
+
padding-top: var(--vxe-ui-scrollbar-x-height);
|
|
157
|
+
}
|
|
158
|
+
&.sx-pos--bottom {
|
|
159
|
+
padding-bottom: var(--vxe-ui-scrollbar-x-height);
|
|
160
|
+
}
|
|
161
|
+
&.sy-pos--left {
|
|
162
|
+
padding-left: var(--vxe-ui-scrollbar-y-width);
|
|
163
|
+
}
|
|
164
|
+
&.sy-pos--right {
|
|
165
|
+
padding-right: var(--vxe-ui-scrollbar-y-width);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
103
169
|
|
|
104
170
|
.vxe-scrollbar--thumb-y {
|
|
105
171
|
width: 100%;
|
|
@@ -27,6 +27,7 @@ export namespace VxeScrollbarPropTypes {
|
|
|
27
27
|
export type MaxHeight = number | string
|
|
28
28
|
export type Loading = boolean
|
|
29
29
|
export type Native = boolean
|
|
30
|
+
export type Padding = boolean
|
|
30
31
|
export interface XConfig {
|
|
31
32
|
height?: number | string
|
|
32
33
|
// showArrows?: boolean
|
|
@@ -34,6 +35,10 @@ export namespace VxeScrollbarPropTypes {
|
|
|
34
35
|
* 是否自动隐藏滚动条
|
|
35
36
|
*/
|
|
36
37
|
autoHide?: boolean
|
|
38
|
+
/**
|
|
39
|
+
* 滚动条显示位置
|
|
40
|
+
*/
|
|
41
|
+
position?: 'top' | 'bottom' | ''
|
|
37
42
|
visible?: 'auto' | 'hidden' | 'visible' | ''
|
|
38
43
|
/**
|
|
39
44
|
* 滚动到边界触发的阈值会触发 scroll-boundary 事件
|
|
@@ -47,6 +52,10 @@ export namespace VxeScrollbarPropTypes {
|
|
|
47
52
|
* 是否自动隐藏滚动条
|
|
48
53
|
*/
|
|
49
54
|
autoHide?: boolean
|
|
55
|
+
/**
|
|
56
|
+
* 滚动条显示位置
|
|
57
|
+
*/
|
|
58
|
+
position?: 'left' | 'right' | ''
|
|
50
59
|
visible?: 'auto' | 'hidden' | 'visible' | ''
|
|
51
60
|
/**
|
|
52
61
|
* 滚动到边界触发的阈值会触发 scroll-boundary 事件
|
|
@@ -98,6 +107,10 @@ export interface VxeScrollbarProps {
|
|
|
98
107
|
* 是否使用原生滚动条
|
|
99
108
|
*/
|
|
100
109
|
native?: VxeScrollbarPropTypes.Native
|
|
110
|
+
/**
|
|
111
|
+
* 滚动条是否需要边距
|
|
112
|
+
*/
|
|
113
|
+
padding?: VxeScrollbarPropTypes.Padding
|
|
101
114
|
/**
|
|
102
115
|
* 纵向滚动条宽度
|
|
103
116
|
*/
|
|
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
|