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
@@ -1,102 +1,45 @@
1
- @import './../common/abstracts/_mixin.scss';
2
- @import './../common/abstracts/variable.scss';
3
-
1
+ @import '../common/abstracts/variable.scss';
2
+ @import '../common/abstracts/_mixin.scss';
4
3
  .oxy-theme-dark {
5
4
  @include b(checkbox) {
6
5
  @include e(shape) {
7
- background: transparent;
8
- border-color: $-checkbox-border-color;
9
- color: $-checkbox-check-color;
6
+ background-color: $-dark-background;
7
+ border-color: $-color-gray-6;
10
8
  }
11
-
12
- @include e(label) {
9
+ @include e(txt) {
13
10
  color: $-dark-color;
14
11
  }
15
-
16
- @include when(disabled) {
17
- .oxy-checkbox__shape {
18
- border-color: $-dark-color-gray;
19
- background: $-dark-background4;
20
- }
21
-
22
- .oxy-checkbox__label {
23
- color: $-dark-color-gray;
24
- }
25
-
26
- :deep(.oxy-checkbox__check) {
27
- color: $-dark-color-gray;
28
- }
29
-
30
- @include when(checked) {
31
- .oxy-checkbox__shape {
32
- color: $-dark-color-gray;
33
- }
34
-
35
- .oxy-checkbox__label {
36
- color: $-dark-color-gray;
37
- }
38
- }
39
-
40
- @include when(button) {
41
- .oxy-checkbox__label {
42
- border-color: #c8c9cc;
43
- background: #3a3a3c;
44
- color: $-dark-color-gray;
45
- }
46
-
47
- @include when(checked) {
48
- .oxy-checkbox__label {
49
- border-color: #c8c9cc;
50
- background: #3a3a3c;
51
- color: #c8c9cc;
52
- }
53
- }
54
- }
55
- }
56
-
57
- @include when(button) {
58
- .oxy-checkbox__label {
59
- background-color: $-dark-background;
60
- }
61
-
62
- @include when(checked) {
63
- .oxy-checkbox__label {
64
- background-color: $-dark-background2;
65
- }
66
- }
12
+ @include e(label) {
13
+ color: $-dark-color3;
67
14
  }
68
15
  }
69
16
  }
70
-
71
17
  @include b(checkbox) {
72
18
  display: block;
73
19
  margin-bottom: $-checkbox-margin;
74
- font-size: 0;
75
20
  -webkit-tap-highlight-color: transparent;
76
21
  // line-height: 1.2;
77
-
78
22
  @include when(last-child) {
79
23
  margin-bottom: 0;
80
24
  }
81
-
82
25
  @include e(shape) {
83
26
  position: relative;
84
- display: inline-block;
27
+ display: inline-flex;
28
+ align-items: center;
29
+ justify-content: center;
85
30
  width: $-checkbox-size;
86
31
  height: $-checkbox-size;
87
32
  border: 4rpx solid $-checkbox-border-color;
88
- border-radius: 50%;
33
+ border-radius: $-radius-circle;
89
34
  color: $-checkbox-check-color;
90
35
  background: $-checkbox-bg;
91
36
  vertical-align: middle;
92
37
  transition: background 0.2s;
93
38
  box-sizing: border-box;
94
-
95
39
  @include when(square) {
96
40
  border-radius: $-checkbox-square-radius;
97
41
  }
98
42
  }
99
-
100
43
  @include e(input) {
101
44
  position: absolute;
102
45
  width: 0;
@@ -104,21 +47,22 @@
104
47
  margin: 0;
105
48
  opacity: 0;
106
49
  }
107
-
50
+ @include edeep(check, indeterminate) {
51
+ font-size: $-checkbox-icon-size;
52
+ }
108
53
  @include edeep(btn-check) {
109
54
  display: inline-block;
110
55
  font-size: $-checkbox-icon-size;
111
56
  margin-right: 8rpx;
112
57
  vertical-align: middle;
58
+ color: currentColor;
113
59
  }
114
-
115
60
  @include e(txt) {
116
61
  display: inline-block;
117
62
  vertical-align: middle;
118
- line-height: 40rpx;
63
+ line-height: $-lh-base;
119
64
  @include lineEllipsis;
120
65
  }
121
-
122
66
  @include e(label) {
123
67
  position: relative;
124
68
  display: inline-block;
@@ -127,189 +71,100 @@
127
71
  font-size: $-checkbox-label-fs;
128
72
  color: $-checkbox-label-color;
129
73
  }
130
-
131
- @include edeep(check) {
132
- color: $-checkbox-check-color;
133
- font-size: $-checkbox-icon-size;
134
- opacity: 0;
135
- transition: opacity 0.2s;
136
- }
137
-
138
- @include edeep(indeterminate) {
139
- color: $-checkbox-check-color;
140
- font-size: $-checkbox-icon-size;
141
- opacity: 0;
142
- transition: opacity 0.2s;
143
- }
144
-
145
- @include when(indeterminate) {
146
- .oxy-checkbox__shape {
147
- color: $-checkbox-checked-color;
148
- background: currentColor;
149
- border-color: currentColor;
150
- }
151
-
152
- :deep(.oxy-checkbox__indeterminate) {
153
- opacity: 1;
154
- position: absolute;
155
- left: 50%;
156
- top: 50%;
157
- transform: translate(-50%, -50%);
158
- }
159
- :deep(.oxy-checkbox__check) {
160
- display: none;
161
- }
162
- }
163
-
164
- @include when(checked) {
165
- .oxy-checkbox__shape {
166
- display: inline-block;
167
- color: $-checkbox-checked-color;
168
- background: currentColor;
169
- border-color: currentColor;
170
- }
171
-
172
- :deep(.oxy-checkbox__check) {
173
- opacity: 1;
174
- position: absolute;
175
- left: 50%;
176
- top: 50%;
177
- transform: translate(-50%, -50%);
178
- }
179
-
180
- :deep(.oxy-checkbox__indeterminate) {
181
- display: none;
74
+ @include e(icon) {
75
+ background: $-color-white;
76
+ border-radius: $-checkbox-square-radius;
77
+ @include when(icon-checked) {
78
+ background: $-checkbox-checked-color;
79
+ border-color: $-checkbox-checked-color;
182
80
  }
183
81
  }
184
-
185
-
186
82
  @include when(button) {
187
83
  display: inline-block;
84
+ width: 33.3333%;
188
85
  margin-bottom: 0;
189
- margin-right: $-checkbox-margin;
190
- vertical-align: top;
191
- font-size: $-checkbox-button-font-size;
192
-
193
- @include when(last-child) {
194
- margin-right: 0;
195
- }
196
-
197
- .oxy-checkbox__shape {
198
- width: 0;
199
- height: 0;
200
- overflow: hidden;
201
- opacity: 0;
202
- border: none;
203
- }
204
-
205
86
  .oxy-checkbox__label {
206
- display: inline-flex;
207
- flex-direction: row;
208
- justify-content: center;
87
+ display: flex;
209
88
  align-items: center;
210
- min-width: $-checkbox-button-min-width;
89
+ justify-content: center;
211
90
  height: $-checkbox-button-height;
212
- font-size: $-checkbox-button-font-size;
213
- margin-left: 0;
214
- padding: 10rpx 30rpx;
91
+ min-width: $-checkbox-button-min-width;
92
+ padding: 16rpx 32rpx;
215
93
  border: 1px solid $-checkbox-button-border;
216
- background-color: $-checkbox-button-bg;
217
- border-radius: $-checkbox-button-radius;
218
- transition: color 0.2s, border 0.2s;
219
94
  box-sizing: border-box;
95
+ border-radius: $-checkbox-button-radius;
96
+ background: $-checkbox-button-bg;
97
+ transition: background 0.2s;
220
98
  }
221
-
222
- @include when(checked) {
99
+ @include when(disabled) {
223
100
  .oxy-checkbox__label {
224
- color: $-checkbox-checked-color;
225
- background-color: $-checkbox-bg;
226
- border-color: $-checkbox-checked-color;
227
- border-color: currentColor;
101
+ border-color: $-checkbox-button-disabled-border;
102
+ color: $-checkbox-disabled-label-color;
228
103
  }
229
104
  }
230
- }
231
-
232
- @include when(inline) {
233
- display: inline-block;
234
- margin-bottom: 0;
235
- margin-right: $-checkbox-margin;
236
-
237
- @include when(last-child) {
238
- margin-right: 0;
239
- }
240
- }
241
-
242
- @include when(disabled) {
243
- .oxy-checkbox__shape {
244
- border-color: $-checkbox-border-color;
245
- background: $-checkbox-disabled-check-bg;
246
- }
247
-
248
- .oxy-checkbox__label {
249
- color: $-checkbox-disabled-label-color;
250
- }
251
-
252
105
  @include when(checked) {
253
- .oxy-checkbox__shape {
254
- color: $-checkbox-disabled-check-color;
255
- }
256
-
257
106
  .oxy-checkbox__label {
258
- color: $-checkbox-disabled-label-color;
107
+ border-color: $-checkbox-checked-color;
108
+ background: $-color-white;
109
+ color: $-checkbox-checked-color;
259
110
  }
260
111
  }
261
-
262
- @include when(button) {
263
- .oxy-checkbox__label {
264
- background: $-checkbox-disabled-color;
265
- border-color: $-checkbox-button-border;
266
- color: $-checkbox-disabled-label-color;
267
- }
268
-
269
- @include when(checked) {
112
+ @include when(checked) {
113
+ @include when(disabled) {
270
114
  .oxy-checkbox__label {
271
- border-color: $-checkbox-button-disabled-border;
115
+ border-color: $-checkbox-disabled-check-bg;
116
+ background: $-checkbox-disabled-check-bg;
117
+ color: $-checkbox-disabled-check-color;
272
118
  }
273
119
  }
274
120
  }
275
121
  }
276
-
277
- // 以下内容用于解决父子组件样式隔离的问题 —— START
278
122
  @include when(cell-box) {
279
- padding: 26rpx 30rpx;
280
- margin: 0;
281
-
282
- @include when(large) {
283
- padding: 28rpx 30rpx;
284
- }
285
- }
286
-
287
- @include when(button-box) {
288
- display: inline-flex;
123
+ display: inline-block;
124
+ padding: 32rpx 32rpx;
289
125
  width: 33.3333%;
290
- padding: 24rpx 24rpx 0 0;
291
126
  box-sizing: border-box;
292
-
293
- .oxy-checkbox__label {
294
- width: 100%;
295
- }
296
-
297
- &:last-child::after {
298
- content: '';
299
- display: table;
300
- clear: both;
127
+ font-size: 0;
128
+ @include when(checked) {
129
+ color: $-checkbox-checked-color;
301
130
  }
302
131
  }
303
-
304
132
  @include when(large) {
305
133
  .oxy-checkbox__shape {
306
134
  width: $-checkbox-large-size;
307
135
  height: $-checkbox-large-size;
308
- font-size: $-checkbox-large-size;
309
136
  }
310
-
311
137
  .oxy-checkbox__label {
312
138
  font-size: $-checkbox-large-label-fs;
313
139
  }
140
+ @include edeep(check, indeterminate, btn-check) {
141
+ font-size: $-checkbox-large-icon-size;
142
+ }
143
+ }
144
+ @include when(checked) {
145
+ .oxy-checkbox__shape {
146
+ background-color: $-checkbox-checked-color;
147
+ border-color: $-checkbox-checked-color;
148
+ }
149
+ .oxy-checkbox__icon {
150
+ background: $-checkbox-checked-color;
151
+ border-color: $-checkbox-checked-color;
152
+ }
153
+ }
154
+ @include when(indeterminate) {
155
+ .oxy-checkbox__shape {
156
+ background-color: $-checkbox-checked-color;
157
+ border-color: $-checkbox-checked-color;
158
+ }
159
+ }
160
+ @include when(disabled) {
161
+ .oxy-checkbox__shape {
162
+ border-color: $-checkbox-disabled-check-bg;
163
+ background: $-checkbox-disabled-color;
164
+ color: $-checkbox-disabled-check-color;
165
+ }
166
+ .oxy-checkbox__label {
167
+ color: $-checkbox-disabled-label-color;
168
+ }
314
169
  }
315
170
  }
@@ -9,10 +9,10 @@
9
9
  @include b(checkbox-group) {
10
10
  background-color: $-checkbox-bg;
11
11
 
12
- // 上下40rpx 左右30rpx 内部间隔24rpx
12
+ // 顶部与两侧留白适当放大,避免按钮组在16px基准字号下过于紧凑
13
13
  @include when(button) {
14
14
  width: 100%;
15
- padding: 16rpx 6rpx 40rpx 30rpx;
15
+ padding: 24rpx 32rpx 40rpx 32rpx;
16
16
  box-sizing: border-box;
17
17
  overflow: hidden;
18
18
  height: auto;
@@ -95,7 +95,7 @@
95
95
 
96
96
  @include e(selected-line) {
97
97
  position: absolute;
98
- bottom: 10rpx;
98
+ bottom: 12rpx;
99
99
  width: $-col-picker-line-width;
100
100
  left: 0;
101
101
  height: $-col-picker-line-height;
@@ -141,13 +141,13 @@
141
141
  }
142
142
 
143
143
  @include e(list-item-tip) {
144
- margin-top: 4rpx;
144
+ margin-top: 8rpx;
145
145
  font-size: $-col-picker-list-fs-tip;
146
146
  color: $-col-picker-list-color-tip;
147
147
  }
148
148
 
149
149
  @include e(confirm) {
150
- padding: 24rpx 50rpx 28rpx;
150
+ padding: 28rpx 52rpx 32rpx;
151
151
  }
152
152
 
153
153
  @include edeep(checked) {
@@ -31,7 +31,7 @@
31
31
  @include e(more) {
32
32
  display: inline-block;
33
33
  font-size: $-collapse-retract-fs;
34
- margin-top: 16rpx;
34
+ margin-top: $-spacing-16;
35
35
  color: $-collapse-more-color;
36
36
  user-select: none;
37
37
  }
@@ -59,7 +59,7 @@
59
59
  display: block;
60
60
  font-size: $-collapse-arrow-size;
61
61
  color: $-collapse-arrow-color;
62
- transition: transform 0.3s;
62
+ transition: transform $-transition-duration-slow;
63
63
 
64
64
  @include when(retract) {
65
65
  transform: rotate(-180deg);
@@ -76,7 +76,7 @@
76
76
  color: $-collapse-body-color;
77
77
  font-size: $-collapse-body-fs;
78
78
  padding: $-collapse-body-padding;
79
- line-height: 1.43;
79
+ line-height: $-line-height-loose;
80
80
  }
81
81
 
82
82
  @include when(disabled) {
@@ -160,7 +160,7 @@
160
160
  border-bottom-left-radius: 0;
161
161
  border-bottom-right-radius: 64rpx;
162
162
  padding-left: 0;
163
- padding-right: 24rpx;
163
+ padding-right: $-spacing-24;
164
164
  }
165
165
  }
166
166
  &.is-bottom-left{
@@ -177,7 +177,7 @@
177
177
  border-bottom-left-radius: 0;
178
178
  border-top-right-radius: 64rpx;
179
179
  padding-left: 0;
180
- padding-right: 24rpx;
180
+ padding-right: $-spacing-24;
181
181
  > span{
182
182
  transform: none;
183
183
  }
@@ -240,14 +240,14 @@
240
240
  bottom: 0;
241
241
  width: 32rpx;
242
242
  height: 64rpx;
243
- background-color: #ffffff;
243
+ background-color: $-color-white;
244
244
  transform: skewX(30deg);
245
245
  }
246
246
  .oxy-corner__text {
247
247
  right: 0;
248
248
  top: 0;
249
249
  transform: none;
250
- padding-left: 24rpx;
250
+ padding-left: $-spacing-24;
251
251
  box-sizing: border-box;
252
252
  font-size: $-corner-embedded-font-size;
253
253
  font-weight: $-corner-embedded-font-weight;
@@ -2,15 +2,15 @@
2
2
  <view :class="rootClass">
3
3
  <!-- 前缀插槽 -->
4
4
  <slot name="prefix">
5
- <oxy-text :type="props.type" :color="props.color" :size="`${props.fontSize * 1.4}rpx`" :text="props.prefix"></oxy-text>
5
+ <oxy-text :type="props.type" :color="props.color" :size="`${props.fontSize * 0.7}rpx`" :text="props.prefix"></oxy-text>
6
6
  </slot>
7
7
  <!-- 默认文本插槽 -->
8
8
  <slot>
9
- <oxy-text :type="props.type" :color="props.color" :size="`${props.fontSize * 2}rpx`" :text="timeText"></oxy-text>
9
+ <oxy-text :type="props.type" :color="props.color" :size="`${props.fontSize}rpx`" :text="timeText"></oxy-text>
10
10
  </slot>
11
11
  <!-- 后缀插槽 -->
12
12
  <slot name="suffix">
13
- <oxy-text :type="props.type" :color="props.color" :size="`${props.fontSize * 1.4}rpx`" :text="props.suffix"></oxy-text>
13
+ <oxy-text :type="props.type" :color="props.color" :size="`${props.fontSize * 0.7}rpx`" :text="props.suffix"></oxy-text>
14
14
  </slot>
15
15
  </view>
16
16
  </template>
@@ -6,7 +6,7 @@ export const countToProps = {
6
6
  ...baseProps,
7
7
 
8
8
  // 字体大小
9
- fontSize: makeNumberProp(16),
9
+ fontSize: makeNumberProp(32),
10
10
 
11
11
  // 文本颜色
12
12
  color: makeStringProp(''),
@@ -27,13 +27,13 @@
27
27
  display: flex;
28
28
  flex-direction: column;
29
29
  margin: 0 4rpx;
30
- transition-duration: 300ms;
30
+ transition-duration: $-transition-duration-slow;
31
31
  transition-property: background-color, color;
32
32
  transition-timing-function: linear;
33
33
 
34
34
  &-prefix,&-day,&-suffix {
35
35
  text-align: center;
36
- transition-duration: 200ms;
36
+ transition-duration: $-transition-duration-base;
37
37
  transition-property: color;
38
38
  transition-timing-function: linear;
39
39
  }
@@ -69,7 +69,7 @@
69
69
  &-day {
70
70
  font-size: $-date-strip-font-size;
71
71
  color: $-date-strip-color;
72
- font-weight: bold;
72
+ font-weight: $-fw-bold;
73
73
  }
74
74
  &-info {
75
75
  display: flex;
@@ -82,7 +82,7 @@
82
82
  background-color: $-date-strip-active-color;
83
83
  }
84
84
  &--active-text {
85
- color: white;
85
+ color: $-color-white;
86
86
  &-none {
87
87
  color: $-date-strip-active-color;
88
88
  }
@@ -85,7 +85,7 @@
85
85
  }
86
86
 
87
87
  @include edeep(popup) {
88
- border-radius: 32rpx 32rpx 0 0;
88
+ border-radius: $-action-sheet-radius $-action-sheet-radius 0 0;
89
89
  }
90
90
 
91
91
  @include e(wraper) {
@@ -110,7 +110,7 @@
110
110
  font-size: $-picker-toolbar-fs;
111
111
  color: $-picker-toolbar-finish-color;
112
112
  background: transparent;
113
- padding: 48rpx 30rpx 28rpx 30rpx;
113
+ padding: 48rpx 32rpx 32rpx 32rpx;
114
114
 
115
115
  @include m(cancel) {
116
116
  color: $-picker-toolbar-cancel-color;
@@ -135,7 +135,7 @@
135
135
  display: inline-block;
136
136
  color: $-picker-region-color;
137
137
  text-align: center;
138
- padding: 28rpx 0;
138
+ padding: 32rpx 0;
139
139
  font-size: $-picker-region-fs;
140
140
  line-height: 32rpx;
141
141
  transition: all 0.15s ease-out;
@@ -147,8 +147,8 @@
147
147
  }
148
148
 
149
149
  @include e(region-time) {
150
- font-size: 32rpx;
151
- margin-top: 4rpx;
150
+ font-size: $-picker-region-time-fs;
151
+ margin-top: 8rpx;
152
152
  }
153
153
 
154
154
  @include e(hidden) {
@@ -76,7 +76,7 @@ export const datetimePickerProps = {
76
76
  /**
77
77
  * picker内部滚筒高
78
78
  */
79
- columnsHeight: makeNumberProp(217),
79
+ columnsHeight: makeNumberProp(434),
80
80
  /**
81
81
  * 选项的key
82
82
  */
@@ -20,11 +20,11 @@ export const datetimePickerViewProps = {
20
20
  /**
21
21
  * picker内部滚筒高
22
22
  */
23
- columnsHeight: makeNumberProp(217),
23
+ columnsHeight: makeNumberProp(434),
24
24
  /**
25
25
  * picker item的高度
26
26
  */
27
- itemHeight: makeNumberProp(35),
27
+ itemHeight: makeNumberProp(70),
28
28
  /**
29
29
  * 选项的key
30
30
  */
@@ -26,7 +26,7 @@
26
26
  @include e(list) {
27
27
  display: flex;
28
28
  text-align: center;
29
- background-color: #fff;
29
+ background-color: $-drop-menu-bg;
30
30
  }
31
31
 
32
32
  @include e(item) {
@@ -85,6 +85,6 @@
85
85
 
86
86
  @include edeep(arrow) {
87
87
  font-size: $-drop-menu-arrow-fs;
88
- margin-left: 4rpx;
88
+ margin-left: 8rpx;
89
89
  }
90
- }
90
+ }
@@ -60,7 +60,7 @@
60
60
  position: fixed;
61
61
  left: 0;
62
62
  right: 0;
63
- background: rgba(0, 0, 0, 0.7);
63
+ background: $-drop-menu-modal-bg;
64
64
  height: 100%;
65
65
  }
66
- }
66
+ }
@@ -1,10 +1,6 @@
1
1
  @import "../common/abstracts/variable";
2
2
  @import "../common/abstracts/mixin";
3
3
 
4
- .oxy-theme-dark {
5
- @include b(fab) {}
6
- }
7
-
8
4
  @include b(fab) {
9
5
  position: fixed;
10
6
  z-index: 99;
@@ -60,7 +56,7 @@
60
56
 
61
57
  // 动画
62
58
  @include e(transition-enter-active, transition-leave-active) {
63
- transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
59
+ transition: $-transition-duration-slow $-transition-timing-function-base !important;
64
60
  }
65
61
 
66
62