oxy-uni-ui 2.0.0 → 2.1.1

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 (124) hide show
  1. package/attributes.json +1 -1
  2. package/components/common/abstracts/variable.scss +449 -271
  3. package/components/common/util.ts +25 -0
  4. package/components/composables/useDynamicVirtualScroll.ts +80 -0
  5. package/components/composables/useVirtualScroll.ts +40 -14
  6. package/components/oxy-action-sheet/index.scss +8 -8
  7. package/components/oxy-backtop/index.scss +3 -3
  8. package/components/oxy-badge/index.scss +2 -2
  9. package/components/oxy-button/index.scss +5 -8
  10. package/components/oxy-calendar/index.scss +10 -10
  11. package/components/oxy-calendar/oxy-calendar.vue +3 -3
  12. package/components/oxy-calendar-view/monthPanel/index.scss +4 -5
  13. package/components/oxy-calendar-view/monthPanel/month-panel.vue +72 -37
  14. package/components/oxy-calendar-view/monthPanel/types.ts +43 -1
  15. package/components/oxy-calendar-view/types.ts +1 -1
  16. package/components/oxy-calendar-view/utils.ts +12 -1
  17. package/components/oxy-calendar-view/year/index.scss +1 -1
  18. package/components/oxy-calendar-view/yearPanel/index.scss +3 -3
  19. package/components/oxy-calendar-view/yearPanel/types.ts +36 -2
  20. package/components/oxy-calendar-view/yearPanel/year-panel.vue +64 -45
  21. package/components/oxy-card/index.scss +4 -4
  22. package/components/oxy-cell/index.scss +2 -2
  23. package/components/oxy-cell-group/index.scss +2 -2
  24. package/components/oxy-checkbox/index.scss +75 -220
  25. package/components/oxy-checkbox-group/index.scss +2 -2
  26. package/components/oxy-col-picker/index.scss +3 -3
  27. package/components/oxy-collapse/index.scss +1 -1
  28. package/components/oxy-collapse-item/index.scss +2 -2
  29. package/components/oxy-corner/index.scss +4 -4
  30. package/components/oxy-count-to/oxy-count-to.vue +3 -3
  31. package/components/oxy-count-to/types.ts +1 -1
  32. package/components/oxy-date-strip-item/index.scss +4 -4
  33. package/components/oxy-datetime-picker/index.scss +5 -5
  34. package/components/oxy-datetime-picker/types.ts +1 -1
  35. package/components/oxy-datetime-picker-view/types.ts +2 -2
  36. package/components/oxy-drop-menu/index.scss +3 -3
  37. package/components/oxy-drop-menu-item/index.scss +2 -2
  38. package/components/oxy-fab/index.scss +1 -5
  39. package/components/oxy-file-list/index.scss +22 -22
  40. package/components/oxy-footer/index.scss +2 -2
  41. package/components/oxy-footer/oxy-footer.vue +2 -3
  42. package/components/oxy-form-item/index.scss +0 -5
  43. package/components/oxy-grid/oxy-grid.vue +1 -1
  44. package/components/oxy-grid-item/index.scss +1 -1
  45. package/components/oxy-guidance/index.scss +15 -15
  46. package/components/oxy-img/index.scss +2 -2
  47. package/components/oxy-img-cropper/index.scss +14 -16
  48. package/components/oxy-img-lazy/index.scss +0 -1
  49. package/components/oxy-index-anchor/index.scss +5 -5
  50. package/components/oxy-index-bar/index.scss +3 -3
  51. package/components/oxy-input/index.scss +2 -2
  52. package/components/oxy-input-number/index.scss +21 -3
  53. package/components/oxy-input-number/oxy-input-number.vue +9 -1
  54. package/components/oxy-keyboard/index.scss +3 -3
  55. package/components/oxy-link/index.scss +11 -10
  56. package/components/oxy-loading/index.scss +1 -1
  57. package/components/oxy-loadmore/index.scss +1 -1
  58. package/components/oxy-long-press-menu/index.scss +2 -2
  59. package/components/oxy-message-box/index.scss +10 -10
  60. package/components/oxy-message-box/oxy-message-box.vue +4 -5
  61. package/components/oxy-message-box/types.ts +0 -5
  62. package/components/oxy-navbar/index.scss +1 -1
  63. package/components/oxy-navbar/oxy-navbar.vue +2 -3
  64. package/components/oxy-pagination/index.scss +5 -4
  65. package/components/oxy-password-input/index.scss +4 -4
  66. package/components/oxy-picker/index.scss +14 -14
  67. package/components/oxy-picker/types.ts +1 -1
  68. package/components/oxy-picker-view/index.scss +2 -2
  69. package/components/oxy-picker-view/oxy-picker-view.vue +8 -5
  70. package/components/oxy-picker-view/types.ts +2 -2
  71. package/components/oxy-popover/index.scss +8 -8
  72. package/components/oxy-popup/index.scss +4 -4
  73. package/components/oxy-progress/index.scss +3 -3
  74. package/components/oxy-radio/index.scss +26 -16
  75. package/components/oxy-radio-group/index.scss +2 -3
  76. package/components/oxy-rich-text/index.scss +20 -24
  77. package/components/oxy-rich-text/mp-html/card/card.vue +3 -3
  78. package/components/oxy-rich-text/mp-html/mp-html.d.ts +2 -0
  79. package/components/oxy-rich-text/mp-html/mp-html.vue +6 -5
  80. package/components/oxy-rich-text/mp-html/node/node.vue +25 -2
  81. package/components/oxy-rich-text/mp-html/parser.js +6 -6
  82. package/components/oxy-rich-text/oxy-rich-text.vue +31 -8
  83. package/components/oxy-search/index.scss +6 -6
  84. package/components/oxy-segmented/index.scss +14 -15
  85. package/components/oxy-select/index.scss +117 -69
  86. package/components/oxy-select/oxy-select.vue +24 -11
  87. package/components/oxy-select-picker/index.scss +2 -2
  88. package/components/oxy-sidebar-item/index.scss +22 -13
  89. package/components/oxy-skeleton/index.scss +1 -1
  90. package/components/oxy-slider/index.scss +8 -9
  91. package/components/oxy-sort-button/index.scss +3 -5
  92. package/components/oxy-splitter/index.scss +19 -0
  93. package/components/oxy-splitter/oxy-splitter.vue +409 -0
  94. package/components/oxy-splitter/types.ts +75 -0
  95. package/components/oxy-splitter-panel/index.scss +366 -0
  96. package/components/oxy-splitter-panel/oxy-splitter-panel.vue +432 -0
  97. package/components/oxy-splitter-panel/types.ts +63 -0
  98. package/components/oxy-step/index.scss +13 -13
  99. package/components/oxy-stream-render/oxy-stream-render.vue +230 -4
  100. package/components/oxy-swiper-nav/index.scss +5 -5
  101. package/components/oxy-switch/index.scss +5 -5
  102. package/components/oxy-tab/index.scss +8 -2
  103. package/components/oxy-tabbar/index.scss +5 -5
  104. package/components/oxy-tabbar/oxy-tabbar.vue +3 -3
  105. package/components/oxy-table/index.scss +5 -6
  106. package/components/oxy-table-col/index.scss +4 -5
  107. package/components/oxy-tabs/index.scss +16 -14
  108. package/components/oxy-tag/index.scss +111 -36
  109. package/components/oxy-text/index.scss +1 -1
  110. package/components/oxy-textarea/index.scss +3 -7
  111. package/components/oxy-toast/index.scss +1 -1
  112. package/components/oxy-tooltip/index.scss +1 -1
  113. package/components/oxy-tree/index.scss +35 -15
  114. package/components/oxy-tree/oxy-tree.vue +113 -2
  115. package/components/oxy-tree/types.ts +1 -0
  116. package/components/oxy-upload/index.scss +20 -20
  117. package/components/oxy-video-preview/index.scss +3 -3
  118. package/components/oxy-virtual-scroll/index.scss +2 -2
  119. package/components/oxy-voice-player/index.scss +104 -75
  120. package/components/oxy-watermark/index.scss +1 -1
  121. package/global.d.ts +2 -0
  122. package/package.json +1 -1
  123. package/tags.json +1 -1
  124. package/web-types.json +1 -1
@@ -11,19 +11,19 @@
11
11
  text-align: left;
12
12
  .oxy-select__label {
13
13
  margin: auto 0;
14
- color: $-cell-title-color;
15
- margin-right: $-cell-padding;
14
+ color: $-select-label-color;
15
+ margin-right: $-select-label-gap;
16
16
  box-sizing: border-box;
17
- font-size: $-input-fs;
17
+ font-size: $-select-fs;
18
18
  }
19
19
  .oxy-select__icon {
20
20
  position: absolute;
21
21
  right: 0;
22
- font-size: $-input-icon-size;
23
- color: $-input-icon-color;
22
+ font-size: $-select-icon-size;
23
+ color: $-select-icon-color;
24
24
  }
25
25
  .oxy-select__icon-clear {
26
- color: $-input-clear-color;
26
+ color: $-select-clear-icon-color;
27
27
  }
28
28
  .oxy-select__icon-arrow {
29
29
  transition: transform .2s;
@@ -36,12 +36,12 @@
36
36
  flex: 1;
37
37
  }
38
38
  .oxy-select__wrapper {
39
- font-size: $-input-fs;
40
- color: $-input-color;
39
+ font-size: $-select-fs;
40
+ color: $-select-text-color;
41
41
  border: 1px solid $-color-border;
42
42
  box-sizing: border-box;
43
- border-radius: 8rpx;
44
- padding: 0 $-input-cell-padding;
43
+ border-radius: $-select-wrapper-radius;
44
+ padding: 0 $-select-wrapper-padding-x;
45
45
  position: relative;
46
46
  /* #ifndef APP-NVUE */
47
47
  display: flex;
@@ -50,7 +50,7 @@
50
50
  flex-direction: row;
51
51
  width: 100%;
52
52
  flex: 1;
53
- min-height: $-input-inner-height;
53
+ min-height: $-select-wrapper-min-height;
54
54
  transition: all 0.2s;
55
55
 
56
56
  &:hover:not(.is-disabled):not(.is-readonly) {
@@ -59,7 +59,7 @@
59
59
 
60
60
  &.is-focus:not(.is-disabled):not(.is-readonly) {
61
61
  border-color: $-color-theme;
62
- box-shadow: 0 0 0 4rpx rgba($-color-theme, 0.1);
62
+ box-shadow: $-select-focus-shadow;
63
63
  }
64
64
 
65
65
  &.is-disabled {
@@ -91,55 +91,71 @@
91
91
  width: 100%;
92
92
  display: flex;
93
93
  flex-wrap: wrap;
94
+ min-width: 0;
94
95
  padding: 8rpx 0;
96
+ }
95
97
 
96
- &-item {
97
- font-size: 24rpx;
98
- border-radius: 8rpx;
99
- white-space: nowrap;
100
- height: 48rpx;
101
- padding: 0 16rpx;
102
- line-height: 44rpx;
103
- box-sizing: border-box;
104
- margin: 4rpx 8rpx 4rpx 0;
105
- display: flex;
106
- max-width: 100%;
107
- align-items: center;
108
- background-color: $-color-bg;
109
- border: 1px solid $-color-border-light;
110
- color: $-color-secondary;
111
- transition: all 0.2s;
98
+ .oxy-select__tags-item {
99
+ display: inline-flex;
100
+ min-width: 0;
101
+ max-width: 100%;
102
+ margin: 8rpx 8rpx 8rpx 0;
103
+ }
112
104
 
113
- &:hover {
114
- border-color: $-color-theme;
115
- color: $-color-theme;
116
- }
105
+ :deep(.oxy-select__tags-item-tag.oxy-tag.is-round) {
106
+ display: inline-flex;
107
+ align-items: center;
108
+ box-sizing: border-box;
109
+ min-height: 56rpx;
110
+ max-width: 100%;
111
+ height: 56rpx;
112
+ padding: 0 20rpx;
113
+ background-color: $-color-bg;
114
+ border-color: $-color-border-light;
115
+ border-radius: $-select-tag-radius;
116
+ color: $-color-secondary;
117
+ font-size: $-select-tag-font-size;
118
+ line-height: 52rpx;
119
+ transition: all 0.2s;
117
120
 
118
- &-text {
119
- font-size: 24rpx;
120
- white-space: nowrap;
121
- line-height: 44rpx;
122
- overflow: hidden;
123
- text-overflow: ellipsis;
124
- }
125
- }
126
- .oxy-select__icon-error{
127
- margin-left: 8rpx;
128
- font-size: 28rpx;
129
- color: $-color-aid;
130
- cursor: pointer;
131
-
132
- &:hover {
133
- color: $-color-danger;
134
- }
121
+ &:hover {
122
+ border-color: $-color-theme;
123
+ color: $-color-theme;
135
124
  }
136
125
  }
137
126
 
127
+ :deep(.oxy-select__tags-item-tag .oxy-tag__text) {
128
+ display: inline-block;
129
+ min-width: 0;
130
+ max-width: 100%;
131
+ white-space: nowrap;
132
+ overflow: hidden;
133
+ text-overflow: ellipsis;
134
+ line-height: 1.2;
135
+ vertical-align: middle;
136
+ }
137
+
138
+ :deep(.oxy-select__tags-item-tag .oxy-tag__close) {
139
+ margin-left: 12rpx;
140
+ margin-right: 0;
141
+ height: auto;
142
+ line-height: 1;
143
+ color: $-color-aid;
144
+ }
145
+
146
+ :deep(.oxy-select__tags-item-tag .oxy-tag__close:active) {
147
+ color: $-color-danger;
148
+ }
149
+
150
+ .oxy-select__tags-item-text {
151
+ font-size: $-select-tag-font-size;
152
+ }
153
+
138
154
  .oxy-select__input {
139
155
  flex: 1;
140
156
  font-size: $-fs-content;
141
- height: 44rpx;
142
- line-height: 44rpx;
157
+ height: 52rpx;
158
+ line-height: 52rpx;
143
159
  }
144
160
 
145
161
  .oxy-select__input-plac {
@@ -173,16 +189,48 @@
173
189
  width: 100%;
174
190
  background-color: $-color-white;
175
191
  border: 1px solid $-color-border-light;
176
- border-radius: 16rpx;
177
- box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.1);
192
+ border-radius: $-select-dropdown-radius;
193
+ box-shadow: $-select-dropdown-shadow;
178
194
  z-index: 100;
179
- padding: 12rpx 0;
195
+ padding: 16rpx 0;
180
196
  overflow: hidden;
181
197
  }
182
198
 
199
+ .oxy-select__dropdown-transition {
200
+ .oxy-select__selector {
201
+ opacity: 1;
202
+ transform: translateY(0) scale(1);
203
+ will-change: transform, opacity;
204
+ transition-property: opacity, transform;
205
+ transition-duration: 0.2s;
206
+ transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
207
+ }
208
+
209
+ .oxy-select__selector__down {
210
+ transform-origin: center top;
211
+ }
212
+
213
+ .oxy-select__selector__upwards {
214
+ transform-origin: center bottom;
215
+ }
216
+
217
+ &.oxy-fade-enter,
218
+ &.oxy-fade-leave-to {
219
+ .oxy-select__selector.oxy-select__selector__down {
220
+ opacity: 0;
221
+ transform: translateY(-12rpx) scale(0.98);
222
+ }
223
+
224
+ .oxy-select__selector.oxy-select__selector__upwards {
225
+ opacity: 0;
226
+ transform: translateY(12rpx) scale(0.98);
227
+ }
228
+ }
229
+ }
230
+
183
231
  .oxy-select__selector-scroll {
184
232
  /* #ifndef APP-NVUE */
185
- max-height: 480rpx;
233
+ max-height: 400rpx;
186
234
  box-sizing: border-box;
187
235
  /* #endif */
188
236
  }
@@ -192,10 +240,10 @@
192
240
  /* #ifndef APP-NVUE */
193
241
  display: flex;
194
242
  /* #endif */
195
- min-height: 80rpx;
243
+ min-height: 72rpx;
196
244
  line-height: 1.4;
197
245
  font-size: $-fs-content;
198
- padding: 16rpx 32rpx;
246
+ padding: 16rpx 24rpx;
199
247
  box-sizing: border-box;
200
248
  transition: background-color 0.2s;
201
249
  }
@@ -213,8 +261,8 @@
213
261
 
214
262
  &.oxy-select_selector-item_active {
215
263
  color: $-color-theme;
216
- background-color: rgba($-color-theme, 0.05);
217
- font-weight: 500;
264
+ background-color: $-select-active-bg;
265
+ font-weight: $-fw-medium;
218
266
  }
219
267
  }
220
268
 
@@ -233,7 +281,7 @@
233
281
  font-size: $-fs-secondary;
234
282
 
235
283
  &-icon {
236
- margin-right: 16rpx;
284
+ margin-right: $-spacing-16;
237
285
  animation: rotate 1s linear infinite;
238
286
  }
239
287
  }
@@ -256,10 +304,10 @@
256
304
  }
257
305
 
258
306
  .oxy-select__selector-arrow {
259
- filter: drop-shadow(0 4rpx 24rpx rgba(0, 0, 0, 0.03));
307
+ filter: $-select-dropdown-filter-shadow;
260
308
 
261
309
  left: 10%;
262
- margin-right: 6rpx;
310
+ margin-right: 8rpx;
263
311
  border-top-width: 0;
264
312
  border-bottom-color: $-color-border-light;
265
313
  }
@@ -274,8 +322,8 @@
274
322
 
275
323
  .oxy-select__input-text {
276
324
  width: 100%;
277
- font-size: $-input-fs;
278
- color: $-input-color;
325
+ font-size: $-select-fs;
326
+ color: $-select-text-color;
279
327
  outline: none;
280
328
  border: none;
281
329
  background: none;
@@ -287,11 +335,11 @@
287
335
  .oxy-select__input-selector {
288
336
  position: absolute;
289
337
  z-index: 1;
290
- left: 20rpx;
338
+ left: 0;
291
339
  right: 60rpx;
292
340
  width: auto;
293
341
  &::-webkit-input-placeholder {
294
- color: $-input-placeholder-color;
342
+ color: $-select-placeholder-color;
295
343
  }
296
344
  }
297
345
 
@@ -301,12 +349,12 @@
301
349
  margin-left: 8rpx;
302
350
  flex: 1;
303
351
  &::-webkit-input-placeholder {
304
- color: $-input-placeholder-color;
352
+ color: $-select-placeholder-color;
305
353
  }
306
354
  }
307
355
 
308
356
  .oxy-select__input-placeholder {
309
- color: $-input-placeholder-color;
357
+ color: $-select-placeholder-color;
310
358
  }
311
359
 
312
360
  .oxy-select--mask {
@@ -322,7 +370,7 @@
322
370
  .oxy-select__wrapper {
323
371
  border: 0;
324
372
  padding: 0;
325
- min-height: $-input-cell-height;
373
+ min-height: $-select-no-border-min-height;
326
374
  &.is-focus:not(.is-disabled):not(.is-readonly) {
327
375
  box-shadow: none;
328
376
  }
@@ -7,15 +7,27 @@
7
7
  <view :class="['oxy-select__wrapper', { 'is-disabled': disabled, 'is-readonly': readonly, 'is-focus': showSelector }]">
8
8
  <view class="oxy-select__input-box" @click="toggleSelector">
9
9
  <view class="oxy-select__tags" v-if="multiple && currentList.length > 0">
10
- <view class="oxy-select__tags-item" v-for="item in displayTags" :key="item[valueKey]">
11
- <span class="oxy-select__tags-item-text">{{ formatItemName(item) }}</span>
12
- <view v-if="!disabled && !readonly" @click.stop="delItem(item)">
13
- <oxy-icon custom-class="oxy-select__icon-error" name="close" />
14
- </view>
15
- </view>
16
- <view v-if="currentList.length > collapseTagsNum && collapseTags" class="oxy-select__tags-item">
17
- <span class="oxy-select__tags-item-text">+{{ currentList.length - collapseTagsNum }}</span>
18
- </view>
10
+ <oxy-tag
11
+ v-for="item in displayTags"
12
+ :key="item[valueKey]"
13
+ custom-class="oxy-select__tags-item-tag"
14
+ class="oxy-select__tags-item"
15
+ plain
16
+ round
17
+ :closable="!disabled && !readonly"
18
+ @close="delItem(item)"
19
+ >
20
+ <text class="oxy-select__tags-item-text">{{ formatItemName(item) }}</text>
21
+ </oxy-tag>
22
+ <oxy-tag
23
+ v-if="currentList.length > collapseTagsNum && collapseTags"
24
+ custom-class="oxy-select__tags-item-tag"
25
+ class="oxy-select__tags-item"
26
+ plain
27
+ round
28
+ >
29
+ <text class="oxy-select__tags-item-text">+{{ currentList.length - collapseTagsNum }}</text>
30
+ </oxy-tag>
19
31
  <input
20
32
  v-if="filterable && !disabled && !readonly"
21
33
  @input="inputChange"
@@ -25,7 +37,7 @@
25
37
  v-model="filterInput"
26
38
  />
27
39
  </view>
28
- <view v-else-if="current && current.length > 0 && !showSelector" class="oxy-select__input-text">
40
+ <view v-else-if="current && current.length > 0 && (!showSelector || !filterable)" class="oxy-select__input-text">
29
41
  {{ current }}
30
42
  </view>
31
43
  <input
@@ -52,7 +64,7 @@
52
64
  name="arrow-down"
53
65
  />
54
66
  </view>
55
- <oxy-transition :show="showSelector" name="fade" :duration="duration" :lazy-render="false">
67
+ <oxy-transition custom-class="oxy-select__dropdown-transition" :show="showSelector" name="fade" :duration="duration" :lazy-render="false">
56
68
  <view class="oxy-select--mask" @click="toggleSelector" />
57
69
  <view class="oxy-select__selector" :class="isDown ? 'oxy-select__selector__down' : 'oxy-select__selector__upwards'">
58
70
  <view class="oxy-select__selector-arrow"></view>
@@ -103,6 +115,7 @@ import { objToStyle } from '../common/util'
103
115
  import { useWindowResize, type WindowResizeResult } from '../composables/useWindowResize'
104
116
  import { selectProps, type SelectProps } from './types'
105
117
  import OxyTransition from '../oxy-transition/oxy-transition.vue'
118
+ import OxyTag from '../oxy-tag/oxy-tag.vue'
106
119
 
107
120
  type SelectOption = Record<string, any>
108
121
  type SelectModelValue = SelectProps['modelValue']
@@ -77,7 +77,7 @@
77
77
  line-height: 144rpx;
78
78
  }
79
79
  @include e(wrapper) {
80
- padding: 0 20rpx;
80
+ padding: 0 24rpx;
81
81
  position: relative;
82
82
  max-height: 712rpx;
83
83
  box-sizing: border-box;
@@ -97,6 +97,6 @@
97
97
  }
98
98
 
99
99
  @include e(footer) {
100
- padding: 48rpx 30rpx;
100
+ padding: 52rpx 32rpx;
101
101
  }
102
102
  }
@@ -17,7 +17,7 @@
17
17
 
18
18
  @include m(disabled) {
19
19
  color: $-dark-color-gray;
20
-
20
+
21
21
  &:active {
22
22
  background-color: $-dark-background2;
23
23
  }
@@ -39,26 +39,35 @@
39
39
  box-sizing: border-box;
40
40
  white-space: wrap;
41
41
  line-height: $-sidebar-item-line-height;
42
+ transition: background-color $-sidebar-transition-duration $-sidebar-transition-timing-function,
43
+ border-radius $-sidebar-transition-duration $-sidebar-transition-timing-function;
42
44
 
43
45
  &:active {
44
46
  background-color: $-sidebar-hover-bg;
45
47
  }
46
48
 
49
+ &::before {
50
+ position: absolute;
51
+ top: 50%;
52
+ left: 0;
53
+ width: $-sidebar-active-border-width;
54
+ height: $-sidebar-active-border-height;
55
+ background: $-sidebar-active-color;
56
+ transform: translateY(-50%) scaleY(0.5);
57
+ transform-origin: center;
58
+ opacity: 0;
59
+ content: '';
60
+ border-radius: $-sidebar-active-border-width;
61
+ transition: all $-sidebar-transition-duration $-sidebar-transition-timing-function;
62
+ }
63
+
47
64
  @include m(active) {
48
- font-weight: 600;
49
65
  background: $-sidebar-active-bg;
50
66
  color: $-sidebar-active-color;
51
67
 
52
68
  &::before {
53
- position: absolute;
54
- top: 50%;
55
- left: 0;
56
- width: $-sidebar-active-border-width;
57
- height: $-sidebar-active-border-height;
58
- background: $-sidebar-active-color;
59
- transform: translateY(-50%);
60
- content: '';
61
- border-radius: $-sidebar-active-border-width;
69
+ transform: translateY(-50%) scaleY(1);
70
+ opacity: 1;
62
71
  }
63
72
 
64
73
  &:active {
@@ -91,7 +100,7 @@
91
100
 
92
101
  @include edeep(icon) {
93
102
  font-size: $-sidebar-icon-size;
94
- margin-right: 4rpx;
103
+ margin-right: 8rpx;
95
104
  }
96
105
 
97
- }
106
+ }
@@ -63,7 +63,7 @@
63
63
  content: ' ';
64
64
  position: absolute;
65
65
  animation: oxy-skeleton-gradient 1.5s linear 2s infinite;
66
- background: linear-gradient(90deg, rgba(255, 255, 255, 0), $-skeleton-animation-gradient, rgba(255, 255, 255, 0));
66
+ background: linear-gradient(90deg, transparent, $-skeleton-animation-gradient, transparent);
67
67
  inset: 0;
68
68
  }
69
69
  }
@@ -9,7 +9,7 @@
9
9
 
10
10
  @include e(label) {
11
11
  color: $-dark-color;
12
- background-color: rgba($color: $-dark-background2, $alpha: 0.5);
12
+ background-color: $-slider-dark-label-bg;
13
13
  }
14
14
 
15
15
  @include m(disabled) {
@@ -34,12 +34,11 @@
34
34
  @include e(label) {
35
35
  text-align: center;
36
36
  width: calc($-slider-handle-radius * 2);
37
- line-height: calc($-slider-handle-radius * 2);
38
37
  font-size: $-slider-fs;
39
- line-height: 1.2;
38
+ line-height: $-line-height-base;
40
39
  color: $-slider-color;
41
- background-color: rgba($color: #fff, $alpha: 0.5);
42
- border-radius: 100%;
40
+ background-color: $-slider-label-bg;
41
+ border-radius: $-radius-circle;
43
42
  position: absolute;
44
43
  bottom: calc($-slider-handle-radius * 2 + 16rpx);
45
44
  }
@@ -47,7 +46,7 @@
47
46
  flex: 1;
48
47
  position: relative;
49
48
  border-radius: calc($-slider-axie-height / 2);
50
- background-color: #e5e5e5;
49
+ background-color: $-slider-axie-bg;
51
50
  margin: calc($-slider-handle-radius - $-slider-axie-height / 2) 0;
52
51
  }
53
52
  @include e(bar) {
@@ -76,10 +75,10 @@
76
75
  height: calc($-slider-handle-radius * 2);
77
76
  width: calc($-slider-handle-radius * 2);
78
77
  background: $-slider-handle-bg;
79
- border-radius: 100%;
80
- border: 1px solid $-slider-axie-bg;
78
+ border-radius: $-radius-circle;
79
+ border: #{$-border-width-base} solid $-slider-axie-bg;
81
80
  box-sizing: border-box;
82
- box-shadow: 0 4rpx 8rpx 0 rgba($color: #9b9b9b, $alpha: 0.5);
81
+ box-shadow: 0 4rpx 8rpx 0 $-slider-button-shadow-color;
83
82
  }
84
83
  @include e(label-min) {
85
84
  margin-right: calc($-slider-handle-radius * 2);
@@ -64,9 +64,7 @@
64
64
  min-width: 28rpx;
65
65
  margin-left: 4rpx;
66
66
  vertical-align: middle;
67
- line-height: 1.1;
68
-
69
- @include when(active) {
67
+ line-height: $-line-height-tight;
70
68
 
71
69
  :deep(.oxy-sort-button__icon-up),
72
70
  :deep(.oxy-sort-button__icon-down) {
@@ -77,13 +75,13 @@
77
75
 
78
76
  @include edeep(icon-up) {
79
77
  display: block !important;
80
- line-height: 1.1;
78
+ line-height: $-line-height-tight;
81
79
  transform: scale(calc((10 / 14))) translate(0, 14rpx);
82
80
  }
83
81
 
84
82
  @include edeep(icon-down) {
85
83
  display: block !important;
86
- line-height: 1.1;
84
+ line-height: $-line-height-tight;
87
85
  transform: scale(calc((10 / 14))) translate(0, -14rpx);
88
86
  }
89
87
  }
@@ -0,0 +1,19 @@
1
+ @import './../common/abstracts/_mixin.scss';
2
+ @import './../common/abstracts/variable.scss';
3
+
4
+ @include b(splitter) {
5
+ position: relative;
6
+ display: flex;
7
+ width: 100%;
8
+ height: 100%;
9
+ overflow: hidden;
10
+ box-sizing: border-box;
11
+
12
+ @include m(horizontal) {
13
+ flex-direction: row;
14
+ }
15
+
16
+ @include m(vertical) {
17
+ flex-direction: column;
18
+ }
19
+ }