@tarojs/components-react 4.1.7-beta.3 → 4.1.7-beta.4
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/dist/components/image/index.js +1 -1
- package/dist/components/image/index.js.map +1 -1
- package/dist/components/image/style/{index.css.js → index.scss.js} +1 -1
- package/dist/components/image/style/index.scss.js.map +1 -0
- package/dist/components/pull-down-refresh/index.js +1 -1
- package/dist/components/pull-down-refresh/index.js.map +1 -1
- package/dist/components/{scroll-view/style/index.css.js → pull-down-refresh/style/index.scss.js} +1 -1
- package/dist/components/pull-down-refresh/style/index.scss.js.map +1 -0
- package/dist/components/scroll-view/index.js +1 -1
- package/dist/components/scroll-view/index.js.map +1 -1
- package/dist/components/{pull-down-refresh/style/index.css.js → scroll-view/style/index.scss.js} +1 -1
- package/dist/components/scroll-view/style/index.scss.js.map +1 -0
- package/dist/components/swiper/index.js +1 -1
- package/dist/components/swiper/index.js.map +1 -1
- package/dist/components/swiper/style/{index.css.js → index.scss.js} +1 -1
- package/dist/components/swiper/style/index.scss.js.map +1 -0
- package/dist/components/text/index.js +1 -1
- package/dist/components/text/index.js.map +1 -1
- package/dist/components/text/style/index.scss.js +4 -0
- package/dist/components/text/style/index.scss.js.map +1 -0
- package/dist/original/components/button/index.js +1 -1
- package/dist/original/components/button/style/index.scss +353 -0
- package/dist/original/components/icon/index.js +1 -1
- package/dist/original/components/icon/style/index.scss +304 -0
- package/dist/original/components/image/index.js +1 -1
- package/dist/original/components/image/index.js.map +1 -1
- package/dist/original/components/image/style/index.scss +90 -0
- package/dist/original/components/input/index.js +1 -1
- package/dist/original/components/input/style/index.scss +71 -0
- package/dist/original/components/picker/index.js +1 -1
- package/dist/original/components/picker/style/index.scss +297 -0
- package/dist/original/components/pull-down-refresh/index.js +1 -1
- package/dist/original/components/pull-down-refresh/index.js.map +1 -1
- package/dist/original/components/pull-down-refresh/style/index.scss +53 -0
- package/dist/original/components/scroll-view/index.js +1 -1
- package/dist/original/components/scroll-view/index.js.map +1 -1
- package/dist/original/components/scroll-view/style/index.scss +22 -0
- package/dist/original/components/swiper/index.js +1 -1
- package/dist/original/components/swiper/index.js.map +1 -1
- package/dist/original/components/swiper/style/index.scss +9 -0
- package/dist/original/components/text/index.js +1 -1
- package/dist/original/components/text/index.js.map +1 -1
- package/dist/original/components/text/style/index.scss +13 -0
- package/dist/original/node_modules/.pnpm/rollup-plugin-styles@4.0.0_rollup@4.39.0/node_modules/rollup-plugin-styles/dist/runtime/inject-css.js +24 -0
- package/dist/original/node_modules/.pnpm/rollup-plugin-styles@4.0.0_rollup@4.39.0/node_modules/rollup-plugin-styles/dist/runtime/inject-css.js.map +1 -0
- package/dist/solid/components/image/index.js +1 -1
- package/dist/solid/components/image/index.js.map +1 -1
- package/dist/solid/components/image/style/index.scss.js +4 -0
- package/dist/solid/components/image/style/index.scss.js.map +1 -0
- package/dist/solid/components/scroll-view/index.js +1 -1
- package/dist/solid/components/scroll-view/index.js.map +1 -1
- package/dist/solid/components/scroll-view/style/index.scss.js +4 -0
- package/dist/solid/components/scroll-view/style/index.scss.js.map +1 -0
- package/dist/solid/components/text/index.js +1 -1
- package/dist/solid/components/text/index.js.map +1 -1
- package/dist/solid/components/text/style/index.scss.js +4 -0
- package/dist/solid/components/text/style/index.scss.js.map +1 -0
- package/package.json +8 -8
- package/types/global.d.ts +1 -1
- package/types/index.d.ts +3 -1
- package/dist/components/image/style/index.css.js.map +0 -1
- package/dist/components/pull-down-refresh/style/index.css.js.map +0 -1
- package/dist/components/scroll-view/style/index.css.js.map +0 -1
- package/dist/components/swiper/style/index.css.js.map +0 -1
- package/dist/components/text/style/index.css.js +0 -4
- package/dist/components/text/style/index.css.js.map +0 -1
- package/dist/original/components/button/style/index.css +0 -3
- package/dist/original/components/button/style/index.css.map +0 -1
- package/dist/original/components/icon/style/index.css +0 -3
- package/dist/original/components/icon/style/index.css.map +0 -1
- package/dist/original/components/image/style/index.css +0 -3
- package/dist/original/components/image/style/index.css.map +0 -1
- package/dist/original/components/input/style/index.css +0 -3
- package/dist/original/components/input/style/index.css.map +0 -1
- package/dist/original/components/picker/style/index.css +0 -3
- package/dist/original/components/picker/style/index.css.map +0 -1
- package/dist/original/components/pull-down-refresh/style/index.css +0 -3
- package/dist/original/components/pull-down-refresh/style/index.css.map +0 -1
- package/dist/original/components/scroll-view/style/index.css +0 -3
- package/dist/original/components/scroll-view/style/index.css.map +0 -1
- package/dist/original/components/swiper/style/index.css +0 -3
- package/dist/original/components/swiper/style/index.css.map +0 -1
- package/dist/original/components/text/style/index.css +0 -3
- package/dist/original/components/text/style/index.css.map +0 -1
- package/dist/original/index.css +0 -2
- package/dist/original/index.css.map +0 -1
- package/dist/solid/components/image/style/index.css.js +0 -4
- package/dist/solid/components/image/style/index.css.js.map +0 -1
- package/dist/solid/components/scroll-view/style/index.css.js +0 -4
- package/dist/solid/components/scroll-view/style/index.css.js.map +0 -1
- package/dist/solid/components/text/style/index.css.js +0 -4
- package/dist/solid/components/text/style/index.css.js.map +0 -1
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
/* Imported from variable */
|
|
2
|
+
// @use "sass:math";
|
|
3
|
+
|
|
4
|
+
// body,
|
|
5
|
+
// .wx-root,
|
|
6
|
+
// page {
|
|
7
|
+
// --weui-BTN-HEIGHT: 48;
|
|
8
|
+
// --weui-BTN-HEIGHT-MEDIUM: 40;
|
|
9
|
+
// --weui-BTN-HEIGHT-SMALL: 32;
|
|
10
|
+
// }
|
|
11
|
+
// @include setColor(--weui-BTN-ACTIVE-MASK, rgba(0,0,0,0.1), rgba(255,255,255,0.1));
|
|
12
|
+
|
|
13
|
+
// @include setColor(--weui-BTN-DEFAULT-ACTIVE-BG, overlay(rgba(0, 0, 0, 0.05), #f2f2f2), overlay(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.08)));
|
|
14
|
+
|
|
15
|
+
// $weuiBtnWidth: 184px;
|
|
16
|
+
$weuiBtnHeight: 46px; // 48px;
|
|
17
|
+
$weuiBtnFontSize: 18px; // 17px;
|
|
18
|
+
$weuiBtnBorderRadius: 5px; // 8px;
|
|
19
|
+
$weuiBtnDefaultGap: 15px; // 16px;
|
|
20
|
+
|
|
21
|
+
$weuiBtnMiniFontSize: 13px; // 14px;
|
|
22
|
+
$weuiBtnMiniHeight: 2.3; // 32px;
|
|
23
|
+
|
|
24
|
+
// $weuiBtnCellHeight: 56px;
|
|
25
|
+
// $weuiBtnCellGap: 16px;
|
|
26
|
+
// $weuiBtnCellLineHeight: em(math.div($weuiBtnCellHeight - 2 * $weuiBtnCellGap, $weuiBtnFontSize));
|
|
27
|
+
|
|
28
|
+
$weuiBtnFontColor: #fff;
|
|
29
|
+
$weuiBtnDisabledFontColor: rgba(255, 255, 255, 0.6); // var(--weui-FG-4);
|
|
30
|
+
// $weuiBtnDisabledBg: var(--weui-FG-5);
|
|
31
|
+
$weuiBtnActiveFontColor: rgba(255, 255, 255, 0.6);
|
|
32
|
+
|
|
33
|
+
// default
|
|
34
|
+
$weuiBtnDefaultFontColor: #000000; // var(--weui-FG-0);
|
|
35
|
+
$weuiBtnDefaultDisabledFontColor: rgba(0, 0, 0, 0.3); // $weuiBtnDisabledFontColor;
|
|
36
|
+
$weuiBtnDefaultActiveFontColor: rgba(0, 0, 0, 0.6);
|
|
37
|
+
$weuiBtnDefaultActiveBg: #DEDEDE; // var(--weui-BTN-DEFAULT-ACTIVE-BG);
|
|
38
|
+
$weuiBtnDefaultDisabledBg: #F7F7F7; // $weuiBtnDisabledBg;
|
|
39
|
+
$weuiBtnDefaultBg: #F8F8F8;
|
|
40
|
+
|
|
41
|
+
// primary
|
|
42
|
+
// $weuiBtnPrimaryFontColor: $weuiBtnFontColor;
|
|
43
|
+
// $weuiBtnPrimaryDisabledFontColor: $weuiBtnDisabledFontColor;
|
|
44
|
+
$weuiBtnPrimaryBg: #1AAD19; // var(--weui-BRAND);
|
|
45
|
+
$weuiBtnPrimaryActiveBg: #179B16; // var(--weui-TAG-TEXT-GREEN);
|
|
46
|
+
$weuiBtnPrimaryDisabledBg: #9ED99D; // $weuiBtnDisabledBg;
|
|
47
|
+
|
|
48
|
+
// warn
|
|
49
|
+
// $weuiBtnWarnFontColor: $weuiColorWarn;
|
|
50
|
+
// $weuiBtnWarnDisabledFontColor: $weuiBtnDisabledFontColor;
|
|
51
|
+
$weuiBtnWarnBg: #E64340; // $weuiBtnDefaultBg;
|
|
52
|
+
$weuiBtnWarnActiveBg: #CE3C39;
|
|
53
|
+
$weuiBtnwarnDisabledBg: #EC8B89; // $weuiBtnDefaultDisabledBg;
|
|
54
|
+
|
|
55
|
+
$weuiBtnPlainPrimaryColor: rgba(26, 173, 25, 1);
|
|
56
|
+
$weuiBtnPlainPrimaryBorderColor: rgba(26, 173, 25, 1);
|
|
57
|
+
$weuiBtnPlainPrimaryActiveColor: rgba(26, 173, 25, .6);
|
|
58
|
+
$weuiBtnPlainPrimaryActiveBorderColor: rgba(26, 173, 25, .6);
|
|
59
|
+
|
|
60
|
+
$weuiBtnPlainDefaultColor: rgba(53, 53, 53, 1);
|
|
61
|
+
$weuiBtnPlainDefaultBorderColor: rgba(53, 53, 53, 1);
|
|
62
|
+
$weuiBtnPlainDefaultActiveColor: rgba(53, 53, 53, .6);
|
|
63
|
+
$weuiBtnPlainDefaultActiveBorderColor: rgba(53, 53, 53, .6);
|
|
64
|
+
|
|
65
|
+
/* Imported from weui-btn_loading.scss */
|
|
66
|
+
@-webkit-keyframes weuiLoading {
|
|
67
|
+
0% {
|
|
68
|
+
transform: rotate3d(0, 0, 1, 0deg);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
100% {
|
|
72
|
+
transform: rotate3d(0, 0, 1, 360deg);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@keyframes weuiLoading {
|
|
77
|
+
0% {
|
|
78
|
+
transform: rotate3d(0, 0, 1, 0deg);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
100% {
|
|
82
|
+
transform: rotate3d(0, 0, 1, 360deg);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.taro-button-core[loading] {
|
|
87
|
+
>.weui-loading {
|
|
88
|
+
// font-size: 16px;
|
|
89
|
+
width: 20px; // 1em;
|
|
90
|
+
height: 20px; // 1em;
|
|
91
|
+
display: inline-block;
|
|
92
|
+
vertical-align: middle;
|
|
93
|
+
animation: weuiLoading 1s steps(12, end) infinite;
|
|
94
|
+
background: transparent url("data:image/svg+xml;charset=utf8, %3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 100 100'%3E%3Cpath fill='none' d='M0 0h100v100H0z'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23E9E9E9' rx='5' ry='5' transform='translate(0 -30)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23989697' rx='5' ry='5' transform='rotate(30 105.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%239B999A' rx='5' ry='5' transform='rotate(60 75.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23A3A1A2' rx='5' ry='5' transform='rotate(90 65 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23ABA9AA' rx='5' ry='5' transform='rotate(120 58.66 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23B2B2B2' rx='5' ry='5' transform='rotate(150 54.02 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23BAB8B9' rx='5' ry='5' transform='rotate(180 50 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23C2C0C1' rx='5' ry='5' transform='rotate(-150 45.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23CBCBCB' rx='5' ry='5' transform='rotate(-120 41.34 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23D2D2D2' rx='5' ry='5' transform='rotate(-90 35 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23DADADA' rx='5' ry='5' transform='rotate(-60 24.02 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23E2E2E2' rx='5' ry='5' transform='rotate(-30 -5.98 65)'/%3E%3C/svg%3E") no-repeat;
|
|
95
|
+
background-size: 100%;
|
|
96
|
+
|
|
97
|
+
&.weui-btn_primary,
|
|
98
|
+
&.weui-btn_warn {
|
|
99
|
+
color: $weuiBtnActiveFontColor;
|
|
100
|
+
}
|
|
101
|
+
&.weui-btn_primary {
|
|
102
|
+
// color: var(--weui-WHITE);
|
|
103
|
+
background-color: $weuiBtnPrimaryActiveBg;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&.weui-btn_warn {
|
|
107
|
+
background-color: $weuiBtnWarnActiveBg;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
}
|
|
112
|
+
$weuiBtnHeight: 46px;
|
|
113
|
+
$weuiBtnFontSize: 18px;
|
|
114
|
+
$weuiBtnFontColor: #fff;
|
|
115
|
+
$weuiBtnActiveFontColor: rgb(255 255 255 / 60%);
|
|
116
|
+
$weuiBtnDisabledFontColor: rgb(255 255 255 / 60%);
|
|
117
|
+
$weuiBtnBorderRadius: 5px;
|
|
118
|
+
$weuiBtnDefaultGap: 15px;
|
|
119
|
+
|
|
120
|
+
// Button Mini
|
|
121
|
+
$weuiBtnMiniFontSize: 13px;
|
|
122
|
+
$weuiBtnMiniHeight: 2.3;
|
|
123
|
+
|
|
124
|
+
// Button Default
|
|
125
|
+
$weuiBtnDefaultFontColor: #000;
|
|
126
|
+
$weuiBtnDefaultActiveFontColor: rgb(0 0 0 / 60%);
|
|
127
|
+
$weuiBtnDefaultDisabledFontColor: rgb(0 0 0 / 30%);
|
|
128
|
+
$weuiBtnDefaultBg: #f8f8f8;
|
|
129
|
+
$weuiBtnDefaultActiveBg: #dedede;
|
|
130
|
+
$weuiBtnDefaultDisabledBg: #f7f7f7;
|
|
131
|
+
|
|
132
|
+
// Button Primary
|
|
133
|
+
$weuiBtnPrimaryBg: #1aad19;
|
|
134
|
+
$weuiBtnPrimaryActiveBg: #179b16;
|
|
135
|
+
$weuiBtnPrimaryDisabledBg: #9ed99d;
|
|
136
|
+
|
|
137
|
+
// Button Warn
|
|
138
|
+
$weuiBtnWarnBg: #e64340;
|
|
139
|
+
$weuiBtnWarnActiveBg: #ce3c39;
|
|
140
|
+
$weuiBtnWarnDisabledBg: #ec8b89;
|
|
141
|
+
|
|
142
|
+
// Button Plain Primary
|
|
143
|
+
$weuiBtnPlainPrimaryColor: rgb(26 173 25 / 100%);
|
|
144
|
+
$weuiBtnPlainPrimaryBorderColor: rgb(26 173 25 / 100%);
|
|
145
|
+
$weuiBtnPlainPrimaryActiveColor: rgb(26 173 25 / 60%);
|
|
146
|
+
$weuiBtnPlainPrimaryActiveBorderColor: rgb(26 173 25 / 60%);
|
|
147
|
+
|
|
148
|
+
// Button Plain Default
|
|
149
|
+
$weuiBtnPlainDefaultColor: rgb(53 53 53 / 100%);
|
|
150
|
+
$weuiBtnPlainDefaultBorderColor: rgb(53 53 53 / 100%);
|
|
151
|
+
$weuiBtnPlainDefaultActiveColor: rgb(53 53 53 / 60%);
|
|
152
|
+
$weuiBtnPlainDefaultActiveBorderColor: rgb(53 53 53 / 60%);
|
|
153
|
+
|
|
154
|
+
// Button Plain Warn
|
|
155
|
+
$weuiBtnPlainWarnColor: #e64340;
|
|
156
|
+
$weuiBtnPlainWarnBorderColor: #e64340;
|
|
157
|
+
$weuiBtnPlainWarnActiveColor: rgba(230 67 64 / 60%);
|
|
158
|
+
$weuiBtnPlainWarnActiveBorderColor: rgba(230 67 64 / 60%);
|
|
159
|
+
|
|
160
|
+
.taro-button-core {
|
|
161
|
+
display: block;
|
|
162
|
+
overflow: hidden;
|
|
163
|
+
position: relative;
|
|
164
|
+
box-sizing: border-box;
|
|
165
|
+
margin-left: auto;
|
|
166
|
+
margin-right: auto;
|
|
167
|
+
padding-left: 14px;
|
|
168
|
+
padding-right: 14px;
|
|
169
|
+
border-width: 0;
|
|
170
|
+
border: 1px solid rgb(0 0 0 / 20%);
|
|
171
|
+
border-radius: $weuiBtnBorderRadius * 2;
|
|
172
|
+
width: 100%;
|
|
173
|
+
appearance: none;
|
|
174
|
+
outline: 0;
|
|
175
|
+
background-color: $weuiBtnDefaultBg;
|
|
176
|
+
line-height: 2.55555556;
|
|
177
|
+
text-decoration: none;
|
|
178
|
+
text-align: center;
|
|
179
|
+
font-size: $weuiBtnFontSize;
|
|
180
|
+
color: $weuiBtnDefaultFontColor;
|
|
181
|
+
-webkit-tap-highlight-color: rgb(0 0 0 / 0%);
|
|
182
|
+
|
|
183
|
+
&:focus {
|
|
184
|
+
outline: 0;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
&:not(.taro-btn-disabled):active {
|
|
188
|
+
background-color: $weuiBtnDefaultActiveBg;
|
|
189
|
+
color: $weuiBtnDefaultActiveFontColor;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
&+& {
|
|
193
|
+
margin-top: $weuiBtnDefaultGap;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
&.taro-btn-default {
|
|
197
|
+
background-color: $weuiBtnDefaultBg;
|
|
198
|
+
color: $weuiBtnDefaultFontColor;
|
|
199
|
+
|
|
200
|
+
&:not(.taro-btn-disabled):visited {
|
|
201
|
+
color: $weuiBtnDefaultFontColor;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
&:not(.taro-btn-disabled):active {
|
|
205
|
+
background-color: $weuiBtnDefaultActiveBg;
|
|
206
|
+
color: $weuiBtnDefaultActiveFontColor;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
&.taro-btn-mini {
|
|
211
|
+
display: inline-block;
|
|
212
|
+
padding: 0 1.32em;
|
|
213
|
+
width: auto;
|
|
214
|
+
line-height: $weuiBtnMiniHeight;
|
|
215
|
+
font-size: $weuiBtnMiniFontSize;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
&.taro-btn-plain,
|
|
219
|
+
&.taro-btn-plain.taro-btn-default,
|
|
220
|
+
&.taro-btn-plain.taro-btn-primary,
|
|
221
|
+
&.taro-btn-plain.taro-btn-warn {
|
|
222
|
+
border-width: 1px;
|
|
223
|
+
background-color: transparent;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
&.taro-btn-disabled {
|
|
227
|
+
color: $weuiBtnDisabledFontColor;
|
|
228
|
+
|
|
229
|
+
&.taro-btn-default {
|
|
230
|
+
background-color: $weuiBtnDefaultDisabledBg;
|
|
231
|
+
color: $weuiBtnDefaultDisabledFontColor;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
&.taro-btn-primary {
|
|
235
|
+
background-color: $weuiBtnPrimaryDisabledBg;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
&.taro-btn-warn {
|
|
239
|
+
background-color: $weuiBtnWarnDisabledBg;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
&.taro-btn-loading {
|
|
244
|
+
.weui-loading {
|
|
245
|
+
margin: -0.2em 0.34em 0 0;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
&.taro-btn-primary,
|
|
249
|
+
&.taro-btn-warn {
|
|
250
|
+
color: $weuiBtnActiveFontColor;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
&.taro-btn-primary {
|
|
254
|
+
background-color: $weuiBtnPrimaryActiveBg;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
&.taro-btn-warn {
|
|
258
|
+
background-color: $weuiBtnWarnActiveBg;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
&.taro-btn-plain.taro-btn-primary {
|
|
263
|
+
border: 1px solid $weuiBtnPlainPrimaryBorderColor;
|
|
264
|
+
color: $weuiBtnPlainPrimaryColor;
|
|
265
|
+
|
|
266
|
+
&:not(.taro-btn-disabled):active {
|
|
267
|
+
border-color: $weuiBtnPlainPrimaryActiveBorderColor;
|
|
268
|
+
background-color: transparent;
|
|
269
|
+
color: $weuiBtnPlainPrimaryActiveColor;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
&::after {
|
|
273
|
+
border-width: 0;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
&.taro-btn-plain.taro-btn-warn {
|
|
278
|
+
border: 1px solid $weuiBtnPlainWarnBorderColor;
|
|
279
|
+
color: $weuiBtnPlainWarnColor;
|
|
280
|
+
|
|
281
|
+
&:not(.taro-btn-disabled):active {
|
|
282
|
+
border-color: $weuiBtnPlainWarnActiveBorderColor;
|
|
283
|
+
background-color: transparent;
|
|
284
|
+
color: $weuiBtnPlainWarnActiveColor;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
&::after {
|
|
288
|
+
border-width: 0;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
&.taro-btn-plain,
|
|
293
|
+
&.taro-btn-plain.taro-btn-default {
|
|
294
|
+
border: 1px solid $weuiBtnPlainDefaultBorderColor;
|
|
295
|
+
color: $weuiBtnPlainDefaultColor;
|
|
296
|
+
|
|
297
|
+
&:not(.taro-btn-disabled):active {
|
|
298
|
+
border-color: $weuiBtnPlainDefaultActiveBorderColor;
|
|
299
|
+
background-color: transparent;
|
|
300
|
+
color: $weuiBtnPlainDefaultActiveColor;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
&::after {
|
|
304
|
+
border-width: 0;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
&.taro-btn-primary {
|
|
309
|
+
background-color: $weuiBtnPrimaryBg;
|
|
310
|
+
color: #fff;
|
|
311
|
+
|
|
312
|
+
&:not(.taro-btn-disabled):visited {
|
|
313
|
+
color: $weuiBtnFontColor;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
&:not(.taro-btn-disabled):active {
|
|
317
|
+
background-color: $weuiBtnPrimaryActiveBg;
|
|
318
|
+
color: $weuiBtnActiveFontColor;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
&.taro-btn-warn {
|
|
323
|
+
background-color: $weuiBtnWarnBg;
|
|
324
|
+
color: #fff;
|
|
325
|
+
|
|
326
|
+
&:not(.taro-btn-disabled):visited {
|
|
327
|
+
color: $weuiBtnFontColor;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
&:not(.taro-btn-disabled):active {
|
|
331
|
+
background-color: $weuiBtnWarnActiveBg;
|
|
332
|
+
color: $weuiBtnActiveFontColor;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
&.taro-btn-plain.taro-btn-disabled.taro-btn-default {
|
|
337
|
+
border: 1px solid rgb(0 0 0 / 20%);
|
|
338
|
+
background-color: #f7f7f7;
|
|
339
|
+
color: rgb(0 0 0 / 30%);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
&.taro-btn-plain.taro-btn-disabled.taro-btn-primary {
|
|
343
|
+
border: 1px solid rgb(0 0 0 / 20%);
|
|
344
|
+
background-color: #f7f7f7;
|
|
345
|
+
color: rgb(0 0 0 / 30%);
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
&.taro-btn-plain.taro-btn-disabled.taro-btn-warn {
|
|
349
|
+
border: 1px solid rgb(0 0 0 / 20%);
|
|
350
|
+
background-color: #f7f7f7;
|
|
351
|
+
color: rgb(0 0 0 / 30%);
|
|
352
|
+
}
|
|
353
|
+
}
|
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
.weui-icon-circle:before { content: '\EA01' } /* '' */
|
|
2
|
+
.weui-icon-download:before { content: '\EA02' } /* '' */
|
|
3
|
+
.weui-icon-info:before { content: '\EA03' } /* '' */
|
|
4
|
+
.weui-icon-safe-success:before { content: '\EA04' } /* '' */
|
|
5
|
+
.weui-icon-safe-warn:before { content: '\EA05' } /* '' */
|
|
6
|
+
.weui-icon-success:before { content: '\EA06' } /* '' */
|
|
7
|
+
.weui-icon-success-circle:before { content: '\EA07' } /* '' */
|
|
8
|
+
.weui-icon-success-no-circle:before { content: '\EA08' } /* '' */
|
|
9
|
+
.weui-icon-waiting:before { content: '\EA09' } /* '' */
|
|
10
|
+
.weui-icon-waiting-circle:before { content: '\EA0A' } /* '' */
|
|
11
|
+
.weui-icon-warn:before { content: '\EA0B' } /* '' */
|
|
12
|
+
.weui-icon-info-circle:before { content: '\EA0C' } /* '' */
|
|
13
|
+
.weui-icon-cancel:before { content: '\EA0D' } /* '' */
|
|
14
|
+
.weui-icon-search:before { content: '\EA0E' } /* '' */
|
|
15
|
+
.weui-icon-clear:before { content: '\EA0F' } /* '' */
|
|
16
|
+
.weui-icon-back:before { content: '\EA10' } /* '' */
|
|
17
|
+
.weui-icon-delete:before { content: '\EA11' } /* '' */
|
|
18
|
+
|
|
19
|
+
.weui-icon-success {
|
|
20
|
+
font-size: 23px;
|
|
21
|
+
color: #09BB07;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.weui-icon-waiting {
|
|
25
|
+
font-size: 23px;
|
|
26
|
+
color: #10AEFF;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.weui-icon-warn {
|
|
30
|
+
font-size: 23px;
|
|
31
|
+
color: #F43530;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.weui-icon-info {
|
|
35
|
+
font-size: 23px;
|
|
36
|
+
color: #10AEFF;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.weui-icon-success-circle {
|
|
40
|
+
font-size: 23px;
|
|
41
|
+
color: #09BB07;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.weui-icon-success-no-circle {
|
|
45
|
+
font-size: 23px;
|
|
46
|
+
color: #09BB07;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.weui-icon-waiting-circle {
|
|
50
|
+
font-size: 23px;
|
|
51
|
+
color: #10AEFF;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.weui-icon-circle {
|
|
55
|
+
font-size: 23px;
|
|
56
|
+
color: #C9C9C9;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.weui-icon-download {
|
|
60
|
+
font-size: 23px;
|
|
61
|
+
color: #09BB07;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.weui-icon-info-circle {
|
|
65
|
+
font-size: 23px;
|
|
66
|
+
color: #09BB07;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.weui-icon-safe-success {
|
|
70
|
+
color: #09BB07;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.weui-icon-safe-warn {
|
|
74
|
+
color: #FFBE00;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.weui-icon-cancel {
|
|
78
|
+
color: #F43530;
|
|
79
|
+
font-size: 22px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.weui-icon-search {
|
|
83
|
+
color: #B2B2B2;
|
|
84
|
+
font-size: 14px;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.weui-icon-clear {
|
|
88
|
+
color: #B2B2B2;
|
|
89
|
+
font-size: 14px;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.weui-icon-delete {
|
|
93
|
+
&.weui-icon_gallery-delete {
|
|
94
|
+
color: #FFFFFF;
|
|
95
|
+
font-size: 22px;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.weui-icon_msg {
|
|
100
|
+
font-size: 93px;
|
|
101
|
+
|
|
102
|
+
&.weui-icon-warn {
|
|
103
|
+
color: #F76260;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.weui-icon_msg-primary {
|
|
108
|
+
font-size: 93px;
|
|
109
|
+
|
|
110
|
+
&.weui-icon-warn {
|
|
111
|
+
color: #FFBE00;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/** Note: 暂不考虑切换到 SVG 模式,原因如下:
|
|
116
|
+
* 1. 实际使用体验与原先使用 WEUI V1.1.3 通过字体加载 Icon 的方式存在差异;
|
|
117
|
+
* 2. 当前 SVG 模式下,图标大小不一致需要进一步调试。
|
|
118
|
+
* 需要注意的是,移除字体文件可以为全局的 css 样式节省约 6.7KB 的大小。
|
|
119
|
+
*/
|
|
120
|
+
|
|
121
|
+
// icon map
|
|
122
|
+
// .weui-icon-circle {
|
|
123
|
+
// mask-image: url(data:image/svg+xml,%3Csvg%20width%3D%221000%22%20height%3D%221000%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M500%20916.667C269.881%20916.667%2083.333%20730.119%2083.333%20500%2083.333%20269.881%20269.881%2083.333%20500%2083.333c230.119%200%20416.667%20186.548%20416.667%20416.667%200%20230.119-186.548%20416.667-416.667%20416.667zm0-50c202.504%200%20366.667-164.163%20366.667-366.667%200-202.504-164.163-366.667-366.667-366.667-202.504%200-366.667%20164.163-366.667%20366.667%200%20202.504%20164.163%20366.667%20366.667%20366.667z%22%20fill-rule%3D%22evenodd%22%20fill-opacity%3D%22.9%22%2F%3E%3C%2Fsvg%3E);
|
|
124
|
+
// }
|
|
125
|
+
// .weui-icon-download {
|
|
126
|
+
// mask-image: url(data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M11.25%2012.04l-1.72-1.72-1.06%201.06%202.828%202.83a1%201%200%20001.414-.001l2.828-2.828-1.06-1.061-1.73%201.73V7h-1.5v5.04zm0-5.04V2h1.5v5h6.251c.55%200%20.999.446.999.996v13.008a.998.998%200%2001-.996.996H4.996A.998.998%200%20014%2021.004V7.996A1%201%200%20014.999%207h6.251z%22%2F%3E%3C%2Fsvg%3E);
|
|
127
|
+
// }
|
|
128
|
+
// .weui-icon-info {
|
|
129
|
+
// mask-image: url(data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M12%2022C6.477%2022%202%2017.523%202%2012S6.477%202%2012%202s10%204.477%2010%2010-4.477%2010-10%2010zm-.75-12v7h1.5v-7h-1.5zM12%209a1%201%200%20100-2%201%201%200%20000%202z%22%2F%3E%3C%2Fsvg%3E);
|
|
130
|
+
// }
|
|
131
|
+
// .weui-icon-safe-success {
|
|
132
|
+
// mask-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201000%201000%22%3E%3Cpath%20d%3D%22M500.9%204.6C315.5%2046.7%20180.4%2093.1%2057.6%20132c0%20129.3.2%20231.7.2%20339.7%200%20304.2%20248.3%20471.6%20443.1%20523.7C695.7%20943.3%20944%20775.9%20944%20471.7c0-108%20.2-210.4.2-339.7C821.4%2093.1%20686.3%2046.7%20500.9%204.6zm248.3%20349.1l-299.7%20295c-2.1%202-5.3%202-7.4-.1L304.4%20506.1c-2-2.1-2.3-5.7-.6-8l18.3-24.9c1.7-2.3%205-2.8%207.2-1l112.2%2086c2.3%201.8%206%201.7%208.1-.1l274.7-228.9c2.2-1.8%205.7-1.7%207.7.3l17%2016.8c2.2%202.1%202.2%205.3.2%207.4z%22%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20fill%3D%22%23070202%22%2F%3E%3C%2Fsvg%3E);
|
|
133
|
+
// }
|
|
134
|
+
// .weui-icon-safe-warn {
|
|
135
|
+
// mask-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201000%201000%22%3E%3Cpath%20d%3D%22M500.9%204.5c-185.4%2042-320.4%2088.4-443.2%20127.3%200%20129.3.2%20231.7.2%20339.6%200%20304.1%20248.2%20471.4%20443%20523.6%20194.7-52.2%20443-219.5%20443-523.6%200-107.9.2-210.3.2-339.6C821.3%2092.9%20686.2%2046.5%20500.9%204.5zm-26.1%20271.1h52.1c5.8%200%2010.3%204.7%2010.1%2010.4l-11.6%20313.8c-.1%202.8-2.5%205.2-5.4%205.2h-38.2c-2.9%200-5.3-2.3-5.4-5.2L464.8%20286c-.2-5.8%204.3-10.4%2010-10.4zm26.1%20448.3c-20.2%200-36.5-16.3-36.5-36.5s16.3-36.5%2036.5-36.5%2036.5%2016.3%2036.5%2036.5-16.4%2036.5-36.5%2036.5z%22%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20fill%3D%22%23020202%22%2F%3E%3C%2Fsvg%3E);
|
|
136
|
+
// }
|
|
137
|
+
// .weui-icon-success {
|
|
138
|
+
// mask-image: url(data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M12%2022C6.477%2022%202%2017.523%202%2012S6.477%202%2012%202s10%204.477%2010%2010-4.477%2010-10%2010zm-1.177-7.86l-2.765-2.767L7%2012.431l3.119%203.121a1%201%200%20001.414%200l5.952-5.95-1.062-1.062-5.6%205.6z%22%2F%3E%3C%2Fsvg%3E);
|
|
139
|
+
// }
|
|
140
|
+
// .weui-icon-success-circle {
|
|
141
|
+
// mask-image: url(data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M12%2022C6.477%2022%202%2017.523%202%2012S6.477%202%2012%202s10%204.477%2010%2010-4.477%2010-10%2010zm0-1.2a8.8%208.8%200%20100-17.6%208.8%208.8%200%20000%2017.6zm-1.172-6.242l5.809-5.808.848.849-5.95%205.95a1%201%200%2001-1.414%200L7%2012.426l.849-.849%202.98%202.98z%22%2F%3E%3C%2Fsvg%3E);
|
|
142
|
+
// }
|
|
143
|
+
// .weui-icon-success-no-circle {
|
|
144
|
+
// mask-image: url(data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M8.657%2018.435L3%2012.778l1.414-1.414%204.95%204.95L20.678%205l1.414%201.414-12.02%2012.021a1%201%200%2001-1.415%200z%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E);
|
|
145
|
+
// }
|
|
146
|
+
// .weui-icon-waiting {
|
|
147
|
+
// mask-image: url(data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M12.75%2011.38V6h-1.5v6l4.243%204.243%201.06-1.06-3.803-3.804zM12%2022C6.477%2022%202%2017.523%202%2012S6.477%202%2012%202s10%204.477%2010%2010-4.477%2010-10%2010z%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E);
|
|
148
|
+
// }
|
|
149
|
+
// .weui-icon-waiting-circle {
|
|
150
|
+
// mask-image: url(data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M12.6%2011.503l3.891%203.891-.848.849L11.4%2012V6h1.2v5.503zM12%2022C6.477%2022%202%2017.523%202%2012S6.477%202%2012%202s10%204.477%2010%2010-4.477%2010-10%2010zm0-1.2a8.8%208.8%200%20100-17.6%208.8%208.8%200%20000%2017.6z%22%2F%3E%3C%2Fsvg%3E);
|
|
151
|
+
// }
|
|
152
|
+
// .weui-icon-warn {
|
|
153
|
+
// mask-image: url(data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M12%2022C6.477%2022%202%2017.523%202%2012S6.477%202%2012%202s10%204.477%2010%2010-4.477%2010-10%2010zm-.763-15.864l.11%207.596h1.305l.11-7.596h-1.525zm.759%2010.967c.512%200%20.902-.383.902-.882%200-.5-.39-.882-.902-.882a.878.878%200%2000-.896.882c0%20.499.396.882.896.882z%22%2F%3E%3C%2Fsvg%3E);
|
|
154
|
+
// }
|
|
155
|
+
// .weui-icon-outlined-warn {
|
|
156
|
+
// mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12ZM20.8 12C20.8 16.8601 16.8601 20.8 12 20.8C7.13989 20.8 3.2 16.8601 3.2 12C3.2 7.13989 7.13989 3.2 12 3.2C16.8601 3.2 20.8 7.13989 20.8 12ZM12.6592 6.43115L12.5713 13.4917H11.4287L11.3408 6.43115H12.6592ZM11.165 16.2383C11.165 16.707 11.5312 17.0732 12 17.0732C12.4761 17.0732 12.835 16.707 12.835 16.2383C12.835 15.7622 12.4761 15.4033 12 15.4033C11.5312 15.4033 11.165 15.7622 11.165 16.2383Z' fill='black' /%3E%3C/svg%3E%0A");
|
|
157
|
+
// }
|
|
158
|
+
// .weui-icon-info-circle {
|
|
159
|
+
// mask-image: url(data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M12%2022C6.477%2022%202%2017.523%202%2012S6.477%202%2012%202s10%204.477%2010%2010-4.477%2010-10%2010zm0-1.2a8.8%208.8%200%20100-17.6%208.8%208.8%200%20000%2017.6zM11.4%2010h1.2v7h-1.2v-7zm.6-1a1%201%200%20110-2%201%201%200%20010%202z%22%2F%3E%3C%2Fsvg%3E);
|
|
160
|
+
// }
|
|
161
|
+
// .weui-icon-cancel {
|
|
162
|
+
// mask-image: url(data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20fill-rule%3D%22evenodd%22%3E%3Cpath%20d%3D%22M12%2022C6.477%2022%202%2017.523%202%2012S6.477%202%2012%202s10%204.477%2010%2010-4.477%2010-10%2010zm0-1.2a8.8%208.8%200%20100-17.6%208.8%208.8%200%20000%2017.6z%22%20fill-rule%3D%22nonzero%22%2F%3E%3Cpath%20d%3D%22M12.849%2012l3.11%203.111-.848.849L12%2012.849l-3.111%203.11-.849-.848L11.151%2012l-3.11-3.111.848-.849L12%2011.151l3.111-3.11.849.848L12.849%2012z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E);
|
|
163
|
+
// }
|
|
164
|
+
// .weui-icon-search {
|
|
165
|
+
// mask-image: url(data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M16.31%2015.561l4.114%204.115-.848.848-4.123-4.123a7%207%200%2011.857-.84zM16.8%2011a5.8%205.8%200%2010-11.6%200%205.8%205.8%200%200011.6%200z%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E);
|
|
166
|
+
// }
|
|
167
|
+
// .weui-icon-clear {
|
|
168
|
+
// mask-image: url(data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M13.06%2012l3.006-3.005-1.06-1.06L12%2010.938%208.995%207.934l-1.06%201.06L10.938%2012l-3.005%203.005%201.06%201.06L12%2013.062l3.005%203.005%201.06-1.06L13.062%2012zM12%2022C6.477%2022%202%2017.523%202%2012S6.477%202%2012%202s10%204.477%2010%2010-4.477%2010-10%2010z%22%2F%3E%3C%2Fsvg%3E);
|
|
169
|
+
// }
|
|
170
|
+
// .weui-icon-back {
|
|
171
|
+
// mask-image: url(data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M12%2022C6.477%2022%202%2017.523%202%2012S6.477%202%2012%202s10%204.477%2010%2010-4.477%2010-10%2010zm1.999-6.563L10.68%2012%2014%208.562%2012.953%207.5%209.29%2011.277a1.045%201.045%200%20000%201.446l3.663%203.777L14%2015.437z%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E);
|
|
172
|
+
// }
|
|
173
|
+
// .weui-icon-delete {
|
|
174
|
+
// mask-image: url(data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M6.774%206.4l.812%2013.648a.8.8%200%2000.798.752h7.232a.8.8%200%2000.798-.752L17.226%206.4H6.774zm11.655%200l-.817%2013.719A2%202%200%200115.616%2022H8.384a2%202%200%2001-1.996-1.881L5.571%206.4H3.5v-.7a.5.5%200%2001.5-.5h16a.5.5%200%2001.5.5v.7h-2.071zM14%203a.5.5%200%2001.5.5v.7h-5v-.7A.5.5%200%200110%203h4zM9.5%209h1.2l.5%209H10l-.5-9zm3.8%200h1.2l-.5%209h-1.2l.5-9z%22%2F%3E%3C%2Fsvg%3E);
|
|
175
|
+
// }
|
|
176
|
+
// .weui-icon-success-no-circle-thin {
|
|
177
|
+
// mask-image: url(data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M8.864%2016.617l-5.303-5.303-1.061%201.06%205.657%205.657a1%201%200%20001.414%200L21.238%206.364l-1.06-1.06L8.864%2016.616z%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E);
|
|
178
|
+
// }
|
|
179
|
+
// .weui-icon-arrow {
|
|
180
|
+
// mask-image: url(data:image/svg+xml,%3Csvg%20width%3D%2212%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M2.454%206.58l1.06-1.06%205.78%205.779a.996.996%200%20010%201.413l-5.78%205.779-1.06-1.061%205.425-5.425-5.425-5.424z%22%20fill%3D%22%23B2B2B2%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E);
|
|
181
|
+
// }
|
|
182
|
+
// .weui-icon-arrow-bold {
|
|
183
|
+
// mask-image: url(data:image/svg+xml,%3Csvg%20height%3D%2224%22%20width%3D%2212%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M10.157%2012.711L4.5%2018.368l-1.414-1.414%204.95-4.95-4.95-4.95L4.5%205.64l5.657%205.657a1%201%200%20010%201.414z%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E);
|
|
184
|
+
// }
|
|
185
|
+
// .weui-icon-back-arrow {
|
|
186
|
+
// mask-image: url(data:image/svg+xml,%3Csvg%20width%3D%2212%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M3.343%2012l7.071%207.071L9%2020.485l-7.778-7.778a1%201%200%20010-1.414L9%203.515l1.414%201.414L3.344%2012z%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E);
|
|
187
|
+
// }
|
|
188
|
+
// .weui-icon-back-arrow-thin {
|
|
189
|
+
// mask-image: url(data:image/svg+xml,%3Csvg%20width%3D%2212%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M10%2019.438L8.955%2020.5l-7.666-7.79a1.02%201.02%200%20010-1.42L8.955%203.5%2010%204.563%202.682%2012%2010%2019.438z%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E);
|
|
190
|
+
// }
|
|
191
|
+
// .weui-icon-close {
|
|
192
|
+
// mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12.25 10.6932L6.05682 4.5L5 5.55682L11.1932 11.75L5 17.9432L6.05682 19L12.25 12.8068L18.4432 19L19.5 17.9432L13.3068 11.75L19.5 5.55682L18.4432 4.5L12.25 10.6932Z' fill='black' /%3E%3C/svg%3E%0A");
|
|
193
|
+
// }
|
|
194
|
+
// .weui-icon-close-thin {
|
|
195
|
+
// mask-image: url(data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M12.25%2010.693L6.057%204.5%205%205.557l6.193%206.193L5%2017.943%206.057%2019l6.193-6.193L18.443%2019l1.057-1.057-6.193-6.193L19.5%205.557%2018.443%204.5z%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E);
|
|
196
|
+
// }
|
|
197
|
+
// .weui-icon-back-circle {
|
|
198
|
+
// mask-image: url(data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M12%2022C6.477%2022%202%2017.523%202%2012S6.477%202%2012%202s10%204.477%2010%2010-4.477%2010-10%2010zm0-1.2a8.8%208.8%200%20100-17.6%208.8%208.8%200%20000%2017.6zm1.999-5.363L12.953%2016.5%209.29%2012.723a1.045%201.045%200%20010-1.446L12.953%207.5%2014%208.563%2010.68%2012%2014%2015.438z%22%2F%3E%3C%2Fsvg%3E);
|
|
199
|
+
// }
|
|
200
|
+
|
|
201
|
+
// icon setting
|
|
202
|
+
// .weui-icon-success {
|
|
203
|
+
// color: $weuiColorPrimary;
|
|
204
|
+
// }
|
|
205
|
+
// .weui-icon-waiting {
|
|
206
|
+
// color: var(--weui-BLUE);
|
|
207
|
+
// }
|
|
208
|
+
// .weui-icon-warn {
|
|
209
|
+
// color: $weuiColorWarn;
|
|
210
|
+
// }
|
|
211
|
+
// .weui-icon-info {
|
|
212
|
+
// color: var(--weui-BLUE);
|
|
213
|
+
// }
|
|
214
|
+
|
|
215
|
+
// .weui-icon-success-circle {
|
|
216
|
+
// color: $weuiColorPrimary;
|
|
217
|
+
// }
|
|
218
|
+
// .weui-icon-success-no-circle,
|
|
219
|
+
// .weui-icon-success-no-circle-thin {
|
|
220
|
+
// color: $weuiColorPrimary;
|
|
221
|
+
// }
|
|
222
|
+
// .weui-icon-waiting-circle {
|
|
223
|
+
// color: var(--weui-BLUE);
|
|
224
|
+
// }
|
|
225
|
+
// .weui-icon-circle {
|
|
226
|
+
// color: $weuiTextColorTips;
|
|
227
|
+
// }
|
|
228
|
+
// .weui-icon-download {
|
|
229
|
+
// color: $weuiColorPrimary;
|
|
230
|
+
// }
|
|
231
|
+
|
|
232
|
+
// .weui-icon-info-circle {
|
|
233
|
+
// color: $weuiTextColorTips;
|
|
234
|
+
// }
|
|
235
|
+
|
|
236
|
+
// .weui-icon-safe-success {
|
|
237
|
+
// color: $weuiColorPrimary;
|
|
238
|
+
// }
|
|
239
|
+
// .weui-icon-safe-warn {
|
|
240
|
+
// color: var(--weui-YELLOW);
|
|
241
|
+
// }
|
|
242
|
+
|
|
243
|
+
// .weui-icon-cancel {
|
|
244
|
+
// color: $weuiColorWarn;
|
|
245
|
+
// }
|
|
246
|
+
|
|
247
|
+
// .weui-icon-search {
|
|
248
|
+
// color: $weuiTextColorDesc;
|
|
249
|
+
// }
|
|
250
|
+
|
|
251
|
+
// .weui-icon-clear {
|
|
252
|
+
// color: $weuiTextColorTips;
|
|
253
|
+
// &:active {
|
|
254
|
+
// color: $weuiTextColorDesc;
|
|
255
|
+
// }
|
|
256
|
+
// }
|
|
257
|
+
|
|
258
|
+
// .weui-icon-delete {
|
|
259
|
+
// &.weui-icon_gallery-delete {
|
|
260
|
+
// color: var(--weui-WHITE);
|
|
261
|
+
// }
|
|
262
|
+
// }
|
|
263
|
+
// .weui-icon-arrow,
|
|
264
|
+
// .weui-icon-arrow-bold,
|
|
265
|
+
// .weui-icon-back-arrow,
|
|
266
|
+
// .weui-icon-back-arrow-thin {
|
|
267
|
+
// & {
|
|
268
|
+
// width: 1.2em;
|
|
269
|
+
// }
|
|
270
|
+
// }
|
|
271
|
+
// .weui-icon-arrow,
|
|
272
|
+
// .weui-icon-arrow-bold {
|
|
273
|
+
// color: $weuiTextColorTips;
|
|
274
|
+
// }
|
|
275
|
+
// .weui-icon-back-arrow,
|
|
276
|
+
// .weui-icon-back-arrow-thin {
|
|
277
|
+
// color: $weuiTextColorTitle;
|
|
278
|
+
// }
|
|
279
|
+
// .weui-icon-back,
|
|
280
|
+
// .weui-icon-back-circle {
|
|
281
|
+
// color: $weuiTextColorTitle;
|
|
282
|
+
// }
|
|
283
|
+
|
|
284
|
+
// .weui-icon_msg {
|
|
285
|
+
// & {
|
|
286
|
+
// width: 6.4em;
|
|
287
|
+
// height: 6.4em;
|
|
288
|
+
// &.weui-icon-warn {
|
|
289
|
+
// color: $weuiColorWarn;
|
|
290
|
+
// }
|
|
291
|
+
// &.weui-icon-info-circle {
|
|
292
|
+
// color: var(--weui-BLUE);
|
|
293
|
+
// }
|
|
294
|
+
// }
|
|
295
|
+
// }
|
|
296
|
+
// .weui-icon_msg-primary {
|
|
297
|
+
// & {
|
|
298
|
+
// width: 6.4em;
|
|
299
|
+
// height: 6.4em;
|
|
300
|
+
// &.weui-icon-warn {
|
|
301
|
+
// color: var(--weui-YELLOW);
|
|
302
|
+
// }
|
|
303
|
+
// }
|
|
304
|
+
// }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __rest } from 'tslib';
|
|
2
|
-
import './style/index.
|
|
2
|
+
import './style/index.scss';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import { createForwardRefComponent } from '../../utils/index.js';
|
|
5
5
|
import { useRef, useState, useEffect, useCallback } from '../../utils/hooks.react.js';
|