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.
Files changed (69) hide show
  1. package/es/icon/style.css +1 -1
  2. package/es/layout-aside/style.css +4 -1
  3. package/es/layout-aside/style.min.css +1 -1
  4. package/es/layout-body/style.css +4 -1
  5. package/es/layout-body/style.min.css +1 -1
  6. package/es/scrollbar/src/scrollbar.js +20 -1
  7. package/es/scrollbar/style.css +42 -3
  8. package/es/scrollbar/style.min.css +1 -1
  9. package/es/style.css +1 -1
  10. package/es/style.min.css +1 -1
  11. package/es/tabs/style.css +4 -0
  12. package/es/tabs/style.min.css +1 -1
  13. package/es/ui/index.js +1 -1
  14. package/es/ui/src/log.js +1 -1
  15. package/es/vxe-layout-aside/style.css +4 -1
  16. package/es/vxe-layout-aside/style.min.css +1 -1
  17. package/es/vxe-layout-body/style.css +4 -1
  18. package/es/vxe-layout-body/style.min.css +1 -1
  19. package/es/vxe-scrollbar/style.css +42 -3
  20. package/es/vxe-scrollbar/style.min.css +1 -1
  21. package/es/vxe-tabs/style.css +4 -0
  22. package/es/vxe-tabs/style.min.css +1 -1
  23. package/lib/icon/style/style.css +1 -1
  24. package/lib/icon/style/style.min.css +1 -1
  25. package/lib/index.umd.js +24 -4
  26. package/lib/index.umd.min.js +1 -1
  27. package/lib/layout-aside/style/style.css +4 -1
  28. package/lib/layout-aside/style/style.min.css +1 -1
  29. package/lib/layout-body/style/style.css +4 -1
  30. package/lib/layout-body/style/style.min.css +1 -1
  31. package/lib/scrollbar/src/scrollbar.js +22 -2
  32. package/lib/scrollbar/src/scrollbar.min.js +1 -1
  33. package/lib/scrollbar/style/style.css +42 -3
  34. package/lib/scrollbar/style/style.min.css +1 -1
  35. package/lib/style.css +1 -1
  36. package/lib/style.min.css +1 -1
  37. package/lib/tabs/style/style.css +4 -0
  38. package/lib/tabs/style/style.min.css +1 -1
  39. package/lib/ui/index.js +1 -1
  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-layout-aside/style/style.css +4 -1
  44. package/lib/vxe-layout-aside/style/style.min.css +1 -1
  45. package/lib/vxe-layout-body/style/style.css +4 -1
  46. package/lib/vxe-layout-body/style/style.min.css +1 -1
  47. package/lib/vxe-scrollbar/style/style.css +42 -3
  48. package/lib/vxe-scrollbar/style/style.min.css +1 -1
  49. package/lib/vxe-tabs/style/style.css +4 -0
  50. package/lib/vxe-tabs/style/style.min.css +1 -1
  51. package/package.json +1 -1
  52. package/packages/scrollbar/src/scrollbar.ts +22 -1
  53. package/styles/components/layout-aside.scss +10 -1
  54. package/styles/components/layout-body.scss +10 -1
  55. package/styles/components/scrollbar.scss +70 -4
  56. package/styles/components/tabs.scss +4 -0
  57. package/types/components/scrollbar.d.ts +13 -0
  58. /package/es/icon/{iconfont.1791616159757.ttf → iconfont.1791769634184.ttf} +0 -0
  59. /package/es/icon/{iconfont.1791616159757.woff → iconfont.1791769634184.woff} +0 -0
  60. /package/es/icon/{iconfont.1791616159757.woff2 → iconfont.1791769634184.woff2} +0 -0
  61. /package/es/{iconfont.1791616159757.ttf → iconfont.1791769634184.ttf} +0 -0
  62. /package/es/{iconfont.1791616159757.woff → iconfont.1791769634184.woff} +0 -0
  63. /package/es/{iconfont.1791616159757.woff2 → iconfont.1791769634184.woff2} +0 -0
  64. /package/lib/icon/style/{iconfont.1791616159757.ttf → iconfont.1791769634184.ttf} +0 -0
  65. /package/lib/icon/style/{iconfont.1791616159757.woff → iconfont.1791769634184.woff} +0 -0
  66. /package/lib/icon/style/{iconfont.1791616159757.woff2 → iconfont.1791769634184.woff2} +0 -0
  67. /package/lib/{iconfont.1791616159757.ttf → iconfont.1791769634184.ttf} +0 -0
  68. /package/lib/{iconfont.1791616159757.woff → iconfont.1791769634184.woff} +0 -0
  69. /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%;
@@ -732,6 +732,10 @@ $scrollbarOffsetSize: 20px;
732
732
  }
733
733
  }
734
734
 
735
+ .vxe-tabs-slots {
736
+ display: none;
737
+ }
738
+
735
739
  .vxe-tabs {
736
740
  @include getTabsSizeStyle(var(--vxe-ui-font-size-default), var(--vxe-ui-tabs-header-height-default));
737
741
  &.size--medium {
@@ -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
  */