vxe-pc-ui 4.19.4 → 4.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/dist/all.esm.js +20 -3
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- 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 +18 -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 +20 -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 +18 -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 +20 -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.1791616163416.ttf → iconfont.1791769645781.ttf} +0 -0
- /package/es/icon/{iconfont.1791616163416.woff → iconfont.1791769645781.woff} +0 -0
- /package/es/icon/{iconfont.1791616163416.woff2 → iconfont.1791769645781.woff2} +0 -0
- /package/es/{iconfont.1791616163416.ttf → iconfont.1791769645781.ttf} +0 -0
- /package/es/{iconfont.1791616163416.woff → iconfont.1791769645781.woff} +0 -0
- /package/es/{iconfont.1791616163416.woff2 → iconfont.1791769645781.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1791616163416.ttf → iconfont.1791769645781.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1791616163416.woff → iconfont.1791769645781.woff} +0 -0
- /package/lib/icon/style/{iconfont.1791616163416.woff2 → iconfont.1791769645781.woff2} +0 -0
- /package/lib/{iconfont.1791616163416.ttf → iconfont.1791769645781.ttf} +0 -0
- /package/lib/{iconfont.1791616163416.woff → iconfont.1791769645781.woff} +0 -0
- /package/lib/{iconfont.1791616163416.woff2 → iconfont.1791769645781.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%;
|
|
@@ -33,6 +33,7 @@ export namespace VxeScrollbarPropTypes {
|
|
|
33
33
|
export type MaxHeight = number | string
|
|
34
34
|
export type Loading = boolean
|
|
35
35
|
export type Native = boolean
|
|
36
|
+
export type Padding = boolean
|
|
36
37
|
export interface XConfig {
|
|
37
38
|
height?: number | string
|
|
38
39
|
// showArrows?: boolean
|
|
@@ -40,6 +41,10 @@ export namespace VxeScrollbarPropTypes {
|
|
|
40
41
|
* 是否自动隐藏滚动条
|
|
41
42
|
*/
|
|
42
43
|
autoHide?: boolean
|
|
44
|
+
/**
|
|
45
|
+
* 滚动条显示位置
|
|
46
|
+
*/
|
|
47
|
+
position?: 'top' | 'bottom' | ''
|
|
43
48
|
visible?: 'auto' | 'hidden' | 'visible' | ''
|
|
44
49
|
/**
|
|
45
50
|
* 滚动到边界触发的阈值会触发 scroll-boundary 事件
|
|
@@ -53,6 +58,10 @@ export namespace VxeScrollbarPropTypes {
|
|
|
53
58
|
* 是否自动隐藏滚动条
|
|
54
59
|
*/
|
|
55
60
|
autoHide?: boolean
|
|
61
|
+
/**
|
|
62
|
+
* 滚动条显示位置
|
|
63
|
+
*/
|
|
64
|
+
position?: 'left' | 'right' | ''
|
|
56
65
|
visible?: 'auto' | 'hidden' | 'visible' | ''
|
|
57
66
|
/**
|
|
58
67
|
* 滚动到边界触发的阈值会触发 scroll-boundary 事件
|
|
@@ -104,6 +113,10 @@ export interface VxeScrollbarProps {
|
|
|
104
113
|
* 是否使用原生滚动条
|
|
105
114
|
*/
|
|
106
115
|
native?: VxeScrollbarPropTypes.Native
|
|
116
|
+
/**
|
|
117
|
+
* 滚动条是否需要边距
|
|
118
|
+
*/
|
|
119
|
+
padding?: VxeScrollbarPropTypes.Padding
|
|
107
120
|
/**
|
|
108
121
|
* 纵向滚动条宽度
|
|
109
122
|
*/
|
|
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
|