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.
Files changed (72) hide show
  1. package/dist/all.esm.js +20 -3
  2. package/dist/style.css +1 -1
  3. package/dist/style.min.css +1 -1
  4. package/es/icon/style.css +1 -1
  5. package/es/layout-aside/style.css +4 -1
  6. package/es/layout-aside/style.min.css +1 -1
  7. package/es/layout-body/style.css +4 -1
  8. package/es/layout-body/style.min.css +1 -1
  9. package/es/scrollbar/src/scrollbar.js +18 -1
  10. package/es/scrollbar/style.css +42 -3
  11. package/es/scrollbar/style.min.css +1 -1
  12. package/es/style.css +1 -1
  13. package/es/style.min.css +1 -1
  14. package/es/tabs/style.css +4 -0
  15. package/es/tabs/style.min.css +1 -1
  16. package/es/ui/index.js +1 -1
  17. package/es/ui/src/log.js +1 -1
  18. package/es/vxe-layout-aside/style.css +4 -1
  19. package/es/vxe-layout-aside/style.min.css +1 -1
  20. package/es/vxe-layout-body/style.css +4 -1
  21. package/es/vxe-layout-body/style.min.css +1 -1
  22. package/es/vxe-scrollbar/style.css +42 -3
  23. package/es/vxe-scrollbar/style.min.css +1 -1
  24. package/es/vxe-tabs/style.css +4 -0
  25. package/es/vxe-tabs/style.min.css +1 -1
  26. package/lib/icon/style/style.css +1 -1
  27. package/lib/icon/style/style.min.css +1 -1
  28. package/lib/index.umd.js +20 -4
  29. package/lib/index.umd.min.js +1 -1
  30. package/lib/layout-aside/style/style.css +4 -1
  31. package/lib/layout-aside/style/style.min.css +1 -1
  32. package/lib/layout-body/style/style.css +4 -1
  33. package/lib/layout-body/style/style.min.css +1 -1
  34. package/lib/scrollbar/src/scrollbar.js +18 -2
  35. package/lib/scrollbar/src/scrollbar.min.js +1 -1
  36. package/lib/scrollbar/style/style.css +42 -3
  37. package/lib/scrollbar/style/style.min.css +1 -1
  38. package/lib/style.css +1 -1
  39. package/lib/style.min.css +1 -1
  40. package/lib/tabs/style/style.css +4 -0
  41. package/lib/tabs/style/style.min.css +1 -1
  42. package/lib/ui/index.js +1 -1
  43. package/lib/ui/index.min.js +1 -1
  44. package/lib/ui/src/log.js +1 -1
  45. package/lib/ui/src/log.min.js +1 -1
  46. package/lib/vxe-layout-aside/style/style.css +4 -1
  47. package/lib/vxe-layout-aside/style/style.min.css +1 -1
  48. package/lib/vxe-layout-body/style/style.css +4 -1
  49. package/lib/vxe-layout-body/style/style.min.css +1 -1
  50. package/lib/vxe-scrollbar/style/style.css +42 -3
  51. package/lib/vxe-scrollbar/style/style.min.css +1 -1
  52. package/lib/vxe-tabs/style/style.css +4 -0
  53. package/lib/vxe-tabs/style/style.min.css +1 -1
  54. package/package.json +1 -1
  55. package/packages/scrollbar/src/scrollbar.ts +20 -1
  56. package/styles/components/layout-aside.scss +10 -1
  57. package/styles/components/layout-body.scss +10 -1
  58. package/styles/components/scrollbar.scss +70 -4
  59. package/styles/components/tabs.scss +4 -0
  60. package/types/components/scrollbar.d.ts +13 -0
  61. /package/es/icon/{iconfont.1791616163416.ttf → iconfont.1791769645781.ttf} +0 -0
  62. /package/es/icon/{iconfont.1791616163416.woff → iconfont.1791769645781.woff} +0 -0
  63. /package/es/icon/{iconfont.1791616163416.woff2 → iconfont.1791769645781.woff2} +0 -0
  64. /package/es/{iconfont.1791616163416.ttf → iconfont.1791769645781.ttf} +0 -0
  65. /package/es/{iconfont.1791616163416.woff → iconfont.1791769645781.woff} +0 -0
  66. /package/es/{iconfont.1791616163416.woff2 → iconfont.1791769645781.woff2} +0 -0
  67. /package/lib/icon/style/{iconfont.1791616163416.ttf → iconfont.1791769645781.ttf} +0 -0
  68. /package/lib/icon/style/{iconfont.1791616163416.woff → iconfont.1791769645781.woff} +0 -0
  69. /package/lib/icon/style/{iconfont.1791616163416.woff2 → iconfont.1791769645781.woff2} +0 -0
  70. /package/lib/{iconfont.1791616163416.ttf → iconfont.1791769645781.ttf} +0 -0
  71. /package/lib/{iconfont.1791616163416.woff → iconfont.1791769645781.woff} +0 -0
  72. /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%;
@@ -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 {
@@ -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
  */