oxy-uni-ui 2.0.0 → 2.1.0
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/attributes.json +1 -1
- package/components/common/abstracts/variable.scss +338 -194
- package/components/composables/useVirtualScroll.ts +40 -14
- package/components/oxy-action-sheet/index.scss +3 -3
- package/components/oxy-backtop/index.scss +2 -2
- package/components/oxy-button/index.scss +2 -2
- package/components/oxy-calendar/index.scss +9 -9
- package/components/oxy-calendar-view/monthPanel/index.scss +4 -5
- package/components/oxy-calendar-view/year/index.scss +1 -1
- package/components/oxy-calendar-view/yearPanel/index.scss +3 -3
- package/components/oxy-cell/index.scss +1 -1
- package/components/oxy-checkbox/index.scss +9 -9
- package/components/oxy-checkbox-group/index.scss +2 -2
- package/components/oxy-col-picker/index.scss +3 -3
- package/components/oxy-corner/index.scss +1 -1
- package/components/oxy-datetime-picker/index.scss +5 -5
- package/components/oxy-drop-menu/index.scss +3 -3
- package/components/oxy-drop-menu-item/index.scss +2 -2
- package/components/oxy-file-list/index.scss +20 -20
- package/components/oxy-guidance/index.scss +13 -13
- package/components/oxy-img-cropper/index.scss +14 -14
- package/components/oxy-index-anchor/index.scss +2 -2
- package/components/oxy-index-bar/index.scss +3 -3
- package/components/oxy-input/index.scss +1 -1
- package/components/oxy-keyboard/index.scss +2 -2
- package/components/oxy-long-press-menu/index.scss +2 -2
- package/components/oxy-message-box/index.scss +7 -7
- package/components/oxy-message-box/oxy-message-box.vue +4 -5
- package/components/oxy-message-box/types.ts +0 -5
- package/components/oxy-pagination/index.scss +5 -4
- package/components/oxy-picker/index.scss +14 -14
- package/components/oxy-picker-view/index.scss +2 -2
- package/components/oxy-popover/index.scss +8 -8
- package/components/oxy-popup/index.scss +4 -4
- package/components/oxy-progress/index.scss +1 -1
- package/components/oxy-radio/index.scss +20 -14
- package/components/oxy-radio-group/index.scss +2 -2
- package/components/oxy-rich-text/index.scss +18 -18
- package/components/oxy-rich-text/mp-html/card/card.vue +3 -3
- package/components/oxy-rich-text/mp-html/mp-html.vue +4 -4
- package/components/oxy-rich-text/mp-html/node/node.vue +2 -2
- package/components/oxy-rich-text/oxy-rich-text.vue +8 -8
- package/components/oxy-search/index.scss +5 -5
- package/components/oxy-segmented/index.scss +13 -10
- package/components/oxy-select/index.scss +116 -68
- package/components/oxy-select/oxy-select.vue +24 -11
- package/components/oxy-select-picker/index.scss +2 -2
- package/components/oxy-sidebar-item/index.scss +2 -2
- package/components/oxy-skeleton/index.scss +1 -1
- package/components/oxy-slider/index.scss +4 -4
- package/components/oxy-splitter/index.scss +19 -0
- package/components/oxy-splitter/oxy-splitter.vue +409 -0
- package/components/oxy-splitter/types.ts +75 -0
- package/components/oxy-splitter-panel/index.scss +366 -0
- package/components/oxy-splitter-panel/oxy-splitter-panel.vue +432 -0
- package/components/oxy-splitter-panel/types.ts +63 -0
- package/components/oxy-step/index.scss +5 -5
- package/components/oxy-stream-render/oxy-stream-render.vue +230 -4
- package/components/oxy-swiper-nav/index.scss +3 -3
- package/components/oxy-switch/index.scss +2 -2
- package/components/oxy-tabbar/index.scss +2 -2
- package/components/oxy-table/index.scss +5 -5
- package/components/oxy-table-col/index.scss +3 -3
- package/components/oxy-tabs/index.scss +14 -12
- package/components/oxy-tag/index.scss +111 -36
- package/components/oxy-textarea/index.scss +3 -3
- package/components/oxy-tooltip/index.scss +1 -1
- package/components/oxy-tree/index.scss +4 -4
- package/components/oxy-upload/index.scss +17 -17
- package/components/oxy-virtual-scroll/index.scss +1 -1
- package/components/oxy-voice-player/index.scss +68 -39
- package/global.d.ts +2 -0
- package/package.json +1 -1
- package/tags.json +1 -1
- package/web-types.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
@import "./../common/abstracts/variable.scss";
|
|
3
3
|
|
|
4
4
|
@include b(img-cropper) {
|
|
5
|
-
background:
|
|
5
|
+
background: $-img-cropper-bg;
|
|
6
6
|
position: fixed;
|
|
7
7
|
top: 0;
|
|
8
8
|
left: 0;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
// 裁剪框包裹器
|
|
14
14
|
@include e(wrapper) {
|
|
15
15
|
position: relative;
|
|
16
|
-
background:
|
|
16
|
+
background: $-img-cropper-wrapper-bg;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
@include e(cut) {
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
.oxy-img-cropper__cut--left,
|
|
31
31
|
.oxy-img-cropper__cut--right {
|
|
32
32
|
// 拖动中背景蒙层为0 拖动结束为0.85
|
|
33
|
-
background-color:
|
|
33
|
+
background-color: $-img-cropper-mask-bg;
|
|
34
34
|
transition: background 0.2s;
|
|
35
35
|
|
|
36
36
|
@include when(hightlight) {
|
|
37
|
-
background-color:
|
|
37
|
+
background-color: transparent;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
// 节选框的窗体最外部边缘线
|
|
56
56
|
&::before {
|
|
57
57
|
content: "";
|
|
58
|
-
border: 1px solid
|
|
58
|
+
border: 1px solid $-img-cropper-border-color;
|
|
59
59
|
width: calc(200% - 1px);
|
|
60
60
|
height: calc(200% - 1px);
|
|
61
61
|
position: absolute;
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
position: absolute;
|
|
78
78
|
width: $border-size;
|
|
79
79
|
height: 40rpx;
|
|
80
|
-
background-color:
|
|
80
|
+
background-color: $-img-cropper-border-color;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
&::after {
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
position: absolute;
|
|
86
86
|
width: 40rpx;
|
|
87
87
|
height: $border-size;
|
|
88
|
-
background-color:
|
|
88
|
+
background-color: $-img-cropper-border-color;
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
display: inline-block;
|
|
145
145
|
width: 66.66%;
|
|
146
146
|
height: 200%;
|
|
147
|
-
border: 1px solid
|
|
147
|
+
border: 1px solid $-img-cropper-border-color;
|
|
148
148
|
border-top: none;
|
|
149
149
|
border-bottom: none;
|
|
150
150
|
transform: scale(0.5) translate(0, -50%);
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
display: inline-block;
|
|
162
162
|
width: 200%;
|
|
163
163
|
height: 66.66%;
|
|
164
|
-
border: 1px solid
|
|
164
|
+
border: 1px solid $-img-cropper-border-color;
|
|
165
165
|
border-left: none;
|
|
166
166
|
border-right: none;
|
|
167
167
|
transform: scale(0.5) translate(-50%, 0);
|
|
@@ -183,7 +183,7 @@
|
|
|
183
183
|
|
|
184
184
|
@include e(canvas) {
|
|
185
185
|
position: fixed;
|
|
186
|
-
background:
|
|
186
|
+
background: $-img-cropper-canvas-bg;
|
|
187
187
|
width: 300rpx;
|
|
188
188
|
height: 300rpx;
|
|
189
189
|
z-index: 10;
|
|
@@ -209,8 +209,8 @@
|
|
|
209
209
|
|
|
210
210
|
.is-cancel {
|
|
211
211
|
display: inline-block;
|
|
212
|
-
color:
|
|
213
|
-
font-size:
|
|
212
|
+
color: $-img-cropper-icon-color;
|
|
213
|
+
font-size: $-img-cropper-action-fs;
|
|
214
214
|
}
|
|
215
215
|
|
|
216
216
|
.is-confirm {
|
|
@@ -218,8 +218,8 @@
|
|
|
218
218
|
right: 0;
|
|
219
219
|
// height: 32px;
|
|
220
220
|
width: 112rpx;
|
|
221
|
-
border-radius:
|
|
222
|
-
font-size:
|
|
221
|
+
border-radius: $-img-cropper-action-radius;
|
|
222
|
+
font-size: $-img-cropper-action-fs;
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
225
|
}
|
|
@@ -22,15 +22,15 @@
|
|
|
22
22
|
@include e(sidebar) {
|
|
23
23
|
position: absolute;
|
|
24
24
|
top: 50%;
|
|
25
|
-
right:
|
|
25
|
+
right: 12rpx;
|
|
26
26
|
transform: translateY(-50%);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
@include e(index) {
|
|
30
|
-
font-size:
|
|
30
|
+
font-size: $-index-bar-index-font-size;
|
|
31
31
|
font-weight: $-fw-medium;
|
|
32
32
|
color: $-color-title;
|
|
33
|
-
padding:
|
|
33
|
+
padding: 12rpx 16rpx;
|
|
34
34
|
|
|
35
35
|
@include when(active) {
|
|
36
36
|
color: $-color-theme;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
user-select: none;
|
|
19
19
|
|
|
20
20
|
@include m(with-title) {
|
|
21
|
-
border-radius:
|
|
21
|
+
border-radius: $-keyboard-panel-radius $-keyboard-panel-radius 0 0;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
@include e(header) {
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
flex-wrap: wrap;
|
|
69
69
|
|
|
70
70
|
.oxy-key-wrapper {
|
|
71
|
-
--oxy-keyboard-key-font-size:
|
|
71
|
+
--oxy-keyboard-key-font-size: #{$-keyboard-car-key-font-size};
|
|
72
72
|
flex-basis: 10%;
|
|
73
73
|
|
|
74
74
|
@include m(wider) {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
width: 100%;
|
|
17
17
|
|
|
18
18
|
@include when(active) {
|
|
19
|
-
background-color:
|
|
19
|
+
background-color: $-long-press-menu-active-bg; /* 长按时的高亮背景 */
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
top: 24rpx;
|
|
56
56
|
bottom: 24rpx;
|
|
57
57
|
width: 1px;
|
|
58
|
-
background-color:
|
|
58
|
+
background-color: $-long-press-menu-divider-color;
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
padding: $-message-box-padding;
|
|
40
40
|
|
|
41
41
|
@include when(no-title) {
|
|
42
|
-
padding:
|
|
42
|
+
padding: 56rpx 48rpx 0rpx;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
text-align: center;
|
|
48
48
|
font-size: $-message-box-title-fs;
|
|
49
49
|
color: $-message-box-title-color;
|
|
50
|
-
line-height:
|
|
50
|
+
line-height: 48rpx;
|
|
51
51
|
font-weight: 500;
|
|
52
|
-
padding-top:
|
|
53
|
-
padding-bottom:
|
|
52
|
+
padding-top: 16rpx;
|
|
53
|
+
padding-bottom: 24rpx;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
@include e(content) {
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
font-size: $-message-box-content-fs;
|
|
60
60
|
text-align: center;
|
|
61
61
|
overflow: auto;
|
|
62
|
-
line-height:
|
|
62
|
+
line-height: 48rpx;
|
|
63
63
|
|
|
64
64
|
&::-webkit-scrollbar {
|
|
65
65
|
width: $-message-box-content-scrollbar-width;
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
@include e(input-error) {
|
|
76
|
-
min-height:
|
|
77
|
-
margin-top:
|
|
76
|
+
min-height: 40rpx;
|
|
77
|
+
margin-top: 8rpx;
|
|
78
78
|
color: $-message-box-input-error-color;
|
|
79
79
|
text-align: left;
|
|
80
80
|
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
v-model="messageState.show"
|
|
6
6
|
:close-on-click-modal="messageState.closeOnClickModal"
|
|
7
7
|
:lazy-render="messageState.lazyRender"
|
|
8
|
-
:max-width="
|
|
8
|
+
:max-width="popupWidth"
|
|
9
9
|
custom-class="oxy-message-box"
|
|
10
10
|
@click-modal="toggleModal('modal')"
|
|
11
11
|
:z-index="messageState.zIndex"
|
|
12
12
|
:duration="200"
|
|
13
13
|
:root-portal="rootPortal"
|
|
14
14
|
>
|
|
15
|
-
<view :class="rootClass"
|
|
15
|
+
<view :class="rootClass">
|
|
16
16
|
<view :class="bodyClass">
|
|
17
17
|
<view v-if="messageState.title" class="oxy-message-box__title">
|
|
18
18
|
{{ messageState.title }}
|
|
@@ -79,9 +79,8 @@ const bodyClass = computed(() => {
|
|
|
79
79
|
return `oxy-message-box__body ${!messageState.title ? 'is-no-title' : ''} ${messageState.type === 'prompt' ? 'is-prompt' : ''}`
|
|
80
80
|
})
|
|
81
81
|
|
|
82
|
-
const
|
|
83
|
-
|
|
84
|
-
return `width:${width};`
|
|
82
|
+
const popupWidth = computed(() => {
|
|
83
|
+
return resolveSizeWithScreenWidth(messageState.width || props.width, { defaultUnit: 'rpx' })
|
|
85
84
|
})
|
|
86
85
|
|
|
87
86
|
const messageOptionKey = getMessageDefaultOptionKey(props.selector)
|
|
@@ -134,11 +134,6 @@ export const messageBoxProps = {
|
|
|
134
134
|
* @default '80%'
|
|
135
135
|
*/
|
|
136
136
|
width: makeStringProp('80%'),
|
|
137
|
-
/**
|
|
138
|
-
* 弹层最大宽度,支持 `rpx`、`px`、`%` 等单位;
|
|
139
|
-
* `%` 在弹层打开时按屏幕宽度换算为 `rpx`
|
|
140
|
-
*/
|
|
141
|
-
popupMaxWidth: makeStringProp('1200rpx'),
|
|
142
137
|
/**
|
|
143
138
|
* 是否从页面中脱离出来,用于解决各种 fixed 失效问题 (H5: teleport, APP: renderjs, 小程序: root-portal)
|
|
144
139
|
*/
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
@include b(pager) {
|
|
14
14
|
user-select: none;
|
|
15
|
-
background-color:
|
|
15
|
+
background-color: $-pagination-bg;
|
|
16
16
|
|
|
17
17
|
@include edeep(icon) {
|
|
18
18
|
font-size: $-pagination-icon-size;
|
|
@@ -32,11 +32,12 @@
|
|
|
32
32
|
}
|
|
33
33
|
@include edeep(nav) {
|
|
34
34
|
min-width: $-pagination-nav-width;
|
|
35
|
+
font-size: $-pagination-nav-fs;
|
|
35
36
|
@include m(active){
|
|
36
|
-
color:
|
|
37
|
+
color: $-pagination-nav-active-color;
|
|
37
38
|
}
|
|
38
39
|
@include m(disabled){
|
|
39
|
-
color:
|
|
40
|
+
color: $-pagination-nav-disabled-color;
|
|
40
41
|
}
|
|
41
42
|
}
|
|
42
43
|
@include e(size){
|
|
@@ -54,4 +55,4 @@
|
|
|
54
55
|
@include e(current){
|
|
55
56
|
color: $-pagination-nav-current-color;
|
|
56
57
|
}
|
|
57
|
-
}
|
|
58
|
+
}
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
|
|
28
28
|
@include b(picker) {
|
|
29
29
|
@include edeep(popup) {
|
|
30
|
-
border-radius:
|
|
30
|
+
border-radius: $-action-sheet-radius $-action-sheet-radius 0 0;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
@include edeep(cell) {
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
font-size: $-picker-toolbar-fs;
|
|
92
92
|
color: $-picker-toolbar-finish-color;
|
|
93
93
|
background: transparent;
|
|
94
|
-
padding: 48rpx
|
|
94
|
+
padding: 48rpx 32rpx 32rpx 32rpx;
|
|
95
95
|
|
|
96
96
|
@include m(cancel) {
|
|
97
97
|
color: $-picker-toolbar-cancel-color;
|
|
@@ -109,23 +109,23 @@
|
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
@include e(search) {
|
|
112
|
-
padding: 0 32rpx
|
|
113
|
-
background:
|
|
112
|
+
padding: 0 32rpx 28rpx 32rpx;
|
|
113
|
+
background: $-picker-search-bg;
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
@include e(search-input) {
|
|
117
117
|
display: flex;
|
|
118
118
|
align-items: center;
|
|
119
|
-
height:
|
|
119
|
+
height: 80rpx;
|
|
120
120
|
padding: 0 24rpx;
|
|
121
|
-
background:
|
|
122
|
-
border-radius:
|
|
121
|
+
background: $-picker-column-select-bg;
|
|
122
|
+
border-radius: $-picker-search-radius;
|
|
123
123
|
|
|
124
124
|
input {
|
|
125
125
|
flex: 1;
|
|
126
126
|
height: 100%;
|
|
127
|
-
margin-left:
|
|
128
|
-
font-size:
|
|
127
|
+
margin-left: 20rpx;
|
|
128
|
+
font-size: $-fs-content;
|
|
129
129
|
background: transparent;
|
|
130
130
|
border: none;
|
|
131
131
|
outline: none;
|
|
@@ -133,8 +133,8 @@
|
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
@include e(search-icon) {
|
|
136
|
-
font-size:
|
|
137
|
-
color:
|
|
136
|
+
font-size: $-picker-search-icon-size;
|
|
137
|
+
color: $-picker-search-icon-color;
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
@include e(search-clear) {
|
|
@@ -143,11 +143,11 @@
|
|
|
143
143
|
justify-content: center;
|
|
144
144
|
width: 32rpx;
|
|
145
145
|
height: 32rpx;
|
|
146
|
-
margin-left:
|
|
146
|
+
margin-left: 12rpx;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
@include e(search-clear-icon) {
|
|
150
|
-
font-size:
|
|
151
|
-
color:
|
|
150
|
+
font-size: $-picker-search-icon-size;
|
|
151
|
+
color: $-picker-search-icon-color;
|
|
152
152
|
}
|
|
153
153
|
}
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
@include b(picker-view) {
|
|
28
28
|
position: relative;
|
|
29
|
-
padding:
|
|
29
|
+
padding: 24rpx 0;
|
|
30
30
|
|
|
31
31
|
@include e(columns) {
|
|
32
32
|
position: relative;
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
@include edeep(roller) {
|
|
67
|
-
background:
|
|
67
|
+
background: $-picker-column-select-bg;
|
|
68
68
|
z-index: 0;
|
|
69
69
|
|
|
70
70
|
&::before,
|
|
@@ -5,17 +5,17 @@
|
|
|
5
5
|
@include b(popover) {
|
|
6
6
|
|
|
7
7
|
@include e(pos) {
|
|
8
|
-
background:
|
|
8
|
+
background: $-popover-dark-bg;
|
|
9
9
|
color: $-dark-color;
|
|
10
|
-
box-shadow:
|
|
10
|
+
box-shadow: $-popover-dark-box-shadow;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
@include e(menu) {
|
|
14
|
-
background:
|
|
14
|
+
background: $-popover-dark-bg;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
@include e(inner) {
|
|
18
|
-
background-color:
|
|
18
|
+
background-color: $-popover-dark-bg;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
@include e(menu-inner) {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
@include halfPixelBorder("top", 0, $-dark-border-color);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
@include squareArrow($-popover-arrow-size,
|
|
26
|
+
@include squareArrow($-popover-arrow-size, $-popover-dark-bg, $-popover-z-index - 1, $-popover-arrow-box-shadow);
|
|
27
27
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
|
|
35
35
|
@include edeep(icon) {
|
|
36
36
|
vertical-align: middle;
|
|
37
|
-
font-size:
|
|
38
|
-
margin-right:
|
|
37
|
+
font-size: $-popover-trigger-icon-size;
|
|
38
|
+
margin-right: 12rpx;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
@include e(menu-inner) {
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
@include edeep(close-icon) {
|
|
107
|
-
font-size:
|
|
107
|
+
font-size: calc(2 * #{$-tooltip-close-size});
|
|
108
108
|
position: absolute;
|
|
109
109
|
right: -16rpx;
|
|
110
110
|
top: -20rpx;
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
position: fixed;
|
|
22
22
|
max-height: 100%;
|
|
23
23
|
overflow-y: auto;
|
|
24
|
-
background:
|
|
24
|
+
background: $-popup-bg;
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
@include b(popup) {
|
|
31
31
|
@include edeep(close) {
|
|
32
32
|
position: absolute;
|
|
33
|
-
top:
|
|
34
|
-
right:
|
|
33
|
+
top: 24rpx;
|
|
34
|
+
right: 24rpx;
|
|
35
35
|
color: $-popup-close-color;
|
|
36
36
|
font-size: $-popup-close-size;
|
|
37
37
|
transform: rotate(-45deg);
|
|
@@ -81,4 +81,4 @@
|
|
|
81
81
|
bottom: 0;
|
|
82
82
|
left: 0;
|
|
83
83
|
}
|
|
84
|
-
}
|
|
84
|
+
}
|
|
@@ -32,25 +32,25 @@
|
|
|
32
32
|
|
|
33
33
|
@include when(button) {
|
|
34
34
|
.oxy-radio__label {
|
|
35
|
-
border-color:
|
|
36
|
-
background:
|
|
35
|
+
border-color: $-color-gray-5;
|
|
36
|
+
background: $-dark-border-color;
|
|
37
37
|
color: $-dark-color-gray;
|
|
38
38
|
}
|
|
39
39
|
@include when(checked) {
|
|
40
40
|
.oxy-radio__label {
|
|
41
|
-
border-color:
|
|
42
|
-
background:
|
|
43
|
-
color:
|
|
41
|
+
border-color: $-color-gray-5;
|
|
42
|
+
background: $-dark-border-color;
|
|
43
|
+
color: $-color-gray-5;
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
@include when(dot) {
|
|
49
49
|
.oxy-radio__shape {
|
|
50
|
-
border-color:
|
|
51
|
-
background:
|
|
50
|
+
border-color: $-color-gray-5;
|
|
51
|
+
background: $-dark-border-color;
|
|
52
52
|
&::before {
|
|
53
|
-
background-color:
|
|
53
|
+
background-color: $-color-gray-5;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
}
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
vertical-align: top;
|
|
93
93
|
font-size: $-radio-label-fs;
|
|
94
94
|
color: $-radio-label-color;
|
|
95
|
-
line-height:
|
|
95
|
+
line-height: 48rpx;
|
|
96
96
|
word-break: break-all;
|
|
97
97
|
}
|
|
98
98
|
@include when(checked) {
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
left: calc(50% - #{$-radio-dot-size / 2});
|
|
125
125
|
top: calc(50% - #{$-radio-dot-size / 2});
|
|
126
126
|
border-radius: 50%;
|
|
127
|
-
background-color:
|
|
127
|
+
background-color: $-color-white;
|
|
128
128
|
transform: scale(0);
|
|
129
129
|
transition: transform .2s ease-in;
|
|
130
130
|
}
|
|
@@ -145,17 +145,23 @@
|
|
|
145
145
|
@include when(button) {
|
|
146
146
|
display: inline-block;
|
|
147
147
|
margin-top: 0;
|
|
148
|
-
margin-right:
|
|
148
|
+
margin-right: 24rpx;
|
|
149
149
|
|
|
150
150
|
.oxy-radio__shape {
|
|
151
151
|
display: none;
|
|
152
152
|
}
|
|
153
153
|
.oxy-radio__label {
|
|
154
|
+
display: inline-flex;
|
|
155
|
+
align-items: center;
|
|
156
|
+
justify-content: center;
|
|
154
157
|
height: $-radio-button-height;
|
|
155
158
|
min-width: $-radio-button-min-width;
|
|
156
159
|
max-width: $-radio-button-max-width;
|
|
157
|
-
padding:
|
|
160
|
+
padding: 16rpx 32rpx;
|
|
158
161
|
margin-right: 0;
|
|
162
|
+
line-height: 1.2;
|
|
163
|
+
text-align: center;
|
|
164
|
+
vertical-align: middle;
|
|
159
165
|
border-radius: $-radio-button-radius;
|
|
160
166
|
background-color: $-radio-button-bg;
|
|
161
167
|
font-size: $-radio-button-fs;
|
|
@@ -257,11 +263,11 @@
|
|
|
257
263
|
|
|
258
264
|
// 以下内容用于解决父子组件样式隔离的问题 —— START
|
|
259
265
|
@include when(cell-radio) {
|
|
260
|
-
padding:
|
|
266
|
+
padding: 32rpx 32rpx;
|
|
261
267
|
margin: 0;
|
|
262
268
|
|
|
263
269
|
@include when(large) {
|
|
264
|
-
padding:
|
|
270
|
+
padding: 32rpx 32rpx;
|
|
265
271
|
}
|
|
266
272
|
}
|
|
267
273
|
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
background-color: $-radio-bg;
|
|
12
12
|
font-size: 0;
|
|
13
13
|
|
|
14
|
-
//
|
|
14
|
+
// 顶部与两侧留白适当放大,避免按钮组在16px基准字号下过于紧凑
|
|
15
15
|
@include when(button) {
|
|
16
16
|
width: 100%;
|
|
17
17
|
height: 100%;
|
|
18
|
-
padding:
|
|
18
|
+
padding: 24rpx 32rpx 40rpx 32rpx;
|
|
19
19
|
box-sizing: border-box;
|
|
20
20
|
overflow: hidden;
|
|
21
21
|
height: auto;
|