taro-react-uilib 1.0.2 → 1.0.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/index.esm.js +2599 -41
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2604 -39
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +2606 -42
- package/dist/index.umd.js.map +1 -1
- package/dist/styles/components/alert.scss +4 -0
- package/dist/styles/components/bankicon.scss +4 -0
- package/dist/styles/components/button.scss +4 -6
- package/dist/styles/components/captcha.scss +2 -3
- package/dist/styles/components/confirm.scss +11 -0
- package/dist/styles/components/dialogcomponent.scss +191 -0
- package/dist/styles/components/dialogref.scss +214 -0
- package/dist/styles/components/{formInput.scss → forminput.scss} +8 -8
- package/dist/styles/components/index.scss +13 -4
- package/dist/styles/components/key.scss +27 -0
- package/dist/styles/components/loading.scss +1 -4
- package/dist/styles/components/mask.scss +2 -2
- package/dist/styles/components/numberkeyboard.scss +72 -0
- package/dist/styles/components/page.scss +17 -1
- package/dist/styles/components/passwordinput.scss +42 -0
- package/dist/styles/components/progress.scss +30 -0
- package/dist/styles/components/toast.scss +83 -0
- package/dist/styles/themes/base.scss +1 -1
- package/dist/styles/themes/default.scss +6 -0
- package/dist/styles/themes/variable.scss +25 -0
- package/lib/components/BankIcon/index.js +7 -7
- package/lib/components/BankIcon/index.js.map +1 -1
- package/lib/components/Button/index.js +22 -22
- package/lib/components/Button/index.js.map +1 -1
- package/lib/components/Dialog/Alert/index.js +16 -15
- package/lib/components/Dialog/Alert/index.js.map +1 -1
- package/lib/components/Dialog/Confirm/index.js +43 -0
- package/lib/components/Dialog/Confirm/index.js.map +1 -0
- package/lib/components/Dialog/{Dialog → DialogComponent}/index.js +10 -10
- package/lib/components/Dialog/DialogComponent/index.js.map +1 -0
- package/lib/components/Dialog/index.js +3 -1
- package/lib/components/Dialog/index.js.map +1 -1
- package/lib/components/DialogRef/index.js +55 -0
- package/lib/components/DialogRef/index.js.map +1 -0
- package/lib/components/FormInput/index.js +16 -16
- package/lib/components/FormInput/index.js.map +1 -1
- package/lib/components/Image/index.js +12 -6
- package/lib/components/Image/index.js.map +1 -1
- package/lib/components/NumberKeyboard/Key/index.js +9 -0
- package/lib/components/NumberKeyboard/Key/index.js.map +1 -0
- package/lib/components/NumberKeyboard/index.js +56 -0
- package/lib/components/NumberKeyboard/index.js.map +1 -0
- package/lib/components/PasswordInput/index.js +24 -0
- package/lib/components/PasswordInput/index.js.map +1 -0
- package/lib/components/Progress/index.js +20 -0
- package/lib/components/Progress/index.js.map +1 -0
- package/lib/components/Toast/Toast.js +37 -0
- package/lib/components/Toast/Toast.js.map +1 -0
- package/lib/components/Toast/index.js +48 -0
- package/lib/components/Toast/index.js.map +1 -0
- package/lib/index.js +15 -9
- package/lib/index.js.map +1 -1
- package/package.json +3 -2
- package/types/components/BankIcon/index.d.ts +5 -5
- package/types/components/Button/index.d.ts +17 -17
- package/types/components/Dialog/Alert/index.d.ts +18 -2
- package/types/components/Dialog/Confirm/index.d.ts +37 -0
- package/types/components/Dialog/DialogComponent/index.d.ts +19 -0
- package/types/components/Dialog/index.d.ts +3 -1
- package/types/components/DialogRef/index.d.ts +30 -0
- package/types/components/NumberKeyboard/Key/index.d.ts +8 -0
- package/types/components/NumberKeyboard/index.d.ts +23 -0
- package/types/components/PasswordInput/index.d.ts +11 -0
- package/types/components/Progress/index.d.ts +12 -0
- package/types/components/Toast/Toast.d.ts +20 -0
- package/types/components/Toast/index.d.ts +5 -0
- package/types/index.d.ts +15 -9
- package/dist/styles/components/backIcon.scss +0 -10
- package/dist/styles/components/images/loading.png +0 -0
- package/lib/components/Dialog/Dialog/index.js.map +0 -1
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
@import '../../styles/themes/variable.scss';
|
|
2
|
-
@import '../../styles/themes/default.scss';
|
|
3
|
-
|
|
4
1
|
// @import '../../styles/themes/variable.scss';
|
|
5
2
|
// @import '../../styles/themes/default.scss';
|
|
6
3
|
|
|
@@ -16,6 +13,9 @@ button[disabled] {
|
|
|
16
13
|
padding: 0;
|
|
17
14
|
box-sizing: border-box;
|
|
18
15
|
line-height: 2.55;
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
text-overflow: ellipsis;
|
|
18
|
+
white-space: nowrap;
|
|
19
19
|
|
|
20
20
|
&::after {
|
|
21
21
|
content: ' ';
|
|
@@ -81,9 +81,7 @@ button[disabled] {
|
|
|
81
81
|
&-small {
|
|
82
82
|
font-size: 20px;
|
|
83
83
|
width: 150px;
|
|
84
|
-
|
|
85
|
-
text-overflow: ellipsis;
|
|
86
|
-
white-space: nowrap;
|
|
84
|
+
display: inline-block;
|
|
87
85
|
}
|
|
88
86
|
&-full {
|
|
89
87
|
width: 100%;
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
|
|
2
|
+
#{$xh-prefix}-dialog {
|
|
3
|
+
position: fixed;
|
|
4
|
+
top: 0;
|
|
5
|
+
left: 0;
|
|
6
|
+
right: 0;
|
|
7
|
+
bottom: 0;
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
&-content {
|
|
12
|
+
position: absolute;
|
|
13
|
+
background-color: #FFF;
|
|
14
|
+
z-index: 998;
|
|
15
|
+
width: 600px;
|
|
16
|
+
padding: 60px;
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
border-radius: 10px;
|
|
19
|
+
text-align: center;
|
|
20
|
+
&-header {
|
|
21
|
+
font-size: 38px;
|
|
22
|
+
font-family: PingFang SC;
|
|
23
|
+
font-weight: 500;
|
|
24
|
+
line-height: 53px;
|
|
25
|
+
color: #333333;
|
|
26
|
+
}
|
|
27
|
+
&-content {
|
|
28
|
+
margin-top: 66px;
|
|
29
|
+
width: 476px;
|
|
30
|
+
font-size: 34px;
|
|
31
|
+
font-family: PingFang SC;
|
|
32
|
+
color: #333333;
|
|
33
|
+
}
|
|
34
|
+
&-footer {
|
|
35
|
+
margin-top: 60px;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.fade {
|
|
42
|
+
&-enter,
|
|
43
|
+
&-appear {
|
|
44
|
+
opacity: 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&-enter-active {
|
|
48
|
+
opacity: 1;
|
|
49
|
+
transition: opacity 0.3s;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&-exit {
|
|
53
|
+
opacity: 1;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&-exit-active {
|
|
57
|
+
opacity: 0;
|
|
58
|
+
transition: opacity 0.3s;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.scale {
|
|
63
|
+
&-enter,
|
|
64
|
+
&-appear {
|
|
65
|
+
opacity: 0;
|
|
66
|
+
transform: scale(0.8);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&-enter-active,
|
|
70
|
+
&-appear-active {
|
|
71
|
+
opacity: 1;
|
|
72
|
+
transform: scale(1);
|
|
73
|
+
transition: transform 0.3s, opacity 0.3s;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&-exit {
|
|
77
|
+
opacity: 1;
|
|
78
|
+
transform: scale(1);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&-exit-active {
|
|
82
|
+
opacity: 0;
|
|
83
|
+
transform: scale(0.8);
|
|
84
|
+
transition: transform 0.3s, opacity 0.3s;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.slide-up {
|
|
89
|
+
&-enter,
|
|
90
|
+
&-appear {
|
|
91
|
+
opacity: 0;
|
|
92
|
+
transform: translateY(100%);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&-enter-active,
|
|
96
|
+
&-appear-active {
|
|
97
|
+
opacity: 1;
|
|
98
|
+
transform: translateY(0);
|
|
99
|
+
transition: transform 0.3s, opacity 0.3s;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&-exit {
|
|
103
|
+
opacity: 1;
|
|
104
|
+
transform: translateY(0);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&-exit-active {
|
|
108
|
+
opacity: 0;
|
|
109
|
+
transform: translateY(100%);
|
|
110
|
+
transition: transform 0.3s, opacity 0.3s;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.slide-down {
|
|
115
|
+
&-enter,
|
|
116
|
+
&-appear {
|
|
117
|
+
opacity: 0;
|
|
118
|
+
transform: translateY(-100%);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
&-enter-active,
|
|
122
|
+
&-appear-active {
|
|
123
|
+
opacity: 1;
|
|
124
|
+
transform: translateY(0);
|
|
125
|
+
transition: transform 0.3s, opacity 0.3s;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&-exit {
|
|
129
|
+
opacity: 1;
|
|
130
|
+
transform: translateY(0);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&-exit-active {
|
|
134
|
+
opacity: 0;
|
|
135
|
+
transform: translateY(-100%);
|
|
136
|
+
transition: transform 0.3s, opacity 0.3s;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.slide-left {
|
|
141
|
+
&-enter,
|
|
142
|
+
&-appear {
|
|
143
|
+
opacity: 0;
|
|
144
|
+
transform: translateX(100%);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
&-enter-active,
|
|
148
|
+
&-appear-active {
|
|
149
|
+
opacity: 1;
|
|
150
|
+
transform: translateX(0);
|
|
151
|
+
transition: transform 0.3s, opacity 0.3s;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
&-exit {
|
|
155
|
+
opacity: 1;
|
|
156
|
+
transform: translateX(0);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
&-exit-active {
|
|
160
|
+
opacity: 0;
|
|
161
|
+
transform: translateX(100%);
|
|
162
|
+
transition: transform 0.3s, opacity 0.3s;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.slide-right {
|
|
167
|
+
&-enter,
|
|
168
|
+
&-appear {
|
|
169
|
+
opacity: 0;
|
|
170
|
+
transform: translateX(-100%);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
&-enter-active,
|
|
174
|
+
&-appear-active {
|
|
175
|
+
opacity: 1;
|
|
176
|
+
transform: translateX(0);
|
|
177
|
+
transition: transform 0.3s, opacity 0.3s;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
&-exit {
|
|
181
|
+
opacity: 1;
|
|
182
|
+
transform: translateX(0);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
&-exit-active {
|
|
186
|
+
opacity: 0;
|
|
187
|
+
transform: translateX(-100%);
|
|
188
|
+
transition: transform 0.3s, opacity 0.3s;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
|
|
2
|
+
#{$xh-prefix}-dialog-ref {
|
|
3
|
+
position: fixed;
|
|
4
|
+
top: 0;
|
|
5
|
+
left: 0;
|
|
6
|
+
right: 0;
|
|
7
|
+
bottom: 0;
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
visibility: hidden;
|
|
12
|
+
&.show {
|
|
13
|
+
visibility: visible;
|
|
14
|
+
}
|
|
15
|
+
&-content {
|
|
16
|
+
position: absolute;
|
|
17
|
+
background-color: #FFF;
|
|
18
|
+
z-index: 998;
|
|
19
|
+
width: 600px;
|
|
20
|
+
padding: 60px 40px;
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
border-radius: 10px;
|
|
23
|
+
text-align: center;
|
|
24
|
+
touch-action: none;
|
|
25
|
+
&-header {
|
|
26
|
+
font-size: 38px;
|
|
27
|
+
font-family: PingFang SC;
|
|
28
|
+
font-weight: 500;
|
|
29
|
+
line-height: 53px;
|
|
30
|
+
color: #333333;
|
|
31
|
+
}
|
|
32
|
+
&-content {
|
|
33
|
+
margin-top: 66px;
|
|
34
|
+
width: 476px;
|
|
35
|
+
font-size: 34px;
|
|
36
|
+
font-family: PingFang SC;
|
|
37
|
+
color: #333333;
|
|
38
|
+
opacity: 1;
|
|
39
|
+
}
|
|
40
|
+
&-footer {
|
|
41
|
+
margin-top: 60px;
|
|
42
|
+
&-button {
|
|
43
|
+
display: flex;
|
|
44
|
+
width: 100%;
|
|
45
|
+
justify-content: space-between;
|
|
46
|
+
&-center {
|
|
47
|
+
justify-content: center;
|
|
48
|
+
}
|
|
49
|
+
.xh-button:first-child{
|
|
50
|
+
margin-right: 40px;
|
|
51
|
+
}
|
|
52
|
+
.xh-button:last-child {
|
|
53
|
+
margin-right: 0;
|
|
54
|
+
}
|
|
55
|
+
.one-button {
|
|
56
|
+
width: 300px;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.fade {
|
|
65
|
+
&-enter,
|
|
66
|
+
&-appear {
|
|
67
|
+
opacity: 0;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&-enter-active {
|
|
71
|
+
opacity: 1;
|
|
72
|
+
transition: opacity 0.3s;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&-exit {
|
|
76
|
+
opacity: 1;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&-exit-active {
|
|
80
|
+
opacity: 0;
|
|
81
|
+
transition: opacity 0.3s;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.scale {
|
|
86
|
+
&-enter,
|
|
87
|
+
&-appear {
|
|
88
|
+
opacity: 0;
|
|
89
|
+
transform: scale(0.8);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&-enter-active,
|
|
93
|
+
&-appear-active {
|
|
94
|
+
opacity: 1;
|
|
95
|
+
transform: scale(1);
|
|
96
|
+
transition: transform 0.3s, opacity 0.3s;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&-exit {
|
|
100
|
+
opacity: 1;
|
|
101
|
+
transform: scale(1);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&-exit-active {
|
|
105
|
+
opacity: 0;
|
|
106
|
+
transform: scale(0.8);
|
|
107
|
+
transition: transform 0.3s, opacity 0.3s;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.slide-up {
|
|
112
|
+
&-enter,
|
|
113
|
+
&-appear {
|
|
114
|
+
opacity: 0;
|
|
115
|
+
transform: translateY(100%);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&-enter-active,
|
|
119
|
+
&-appear-active {
|
|
120
|
+
opacity: 1;
|
|
121
|
+
transform: translateY(0);
|
|
122
|
+
transition: transform 0.3s, opacity 0.3s;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&-exit {
|
|
126
|
+
opacity: 1;
|
|
127
|
+
transform: translateY(0);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
&-exit-active {
|
|
131
|
+
opacity: 0;
|
|
132
|
+
transform: translateY(100%);
|
|
133
|
+
transition: transform 0.3s, opacity 0.3s;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.slide-down {
|
|
138
|
+
&-enter,
|
|
139
|
+
&-appear {
|
|
140
|
+
opacity: 0;
|
|
141
|
+
transform: translateY(-100%);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
&-enter-active,
|
|
145
|
+
&-appear-active {
|
|
146
|
+
opacity: 1;
|
|
147
|
+
transform: translateY(0);
|
|
148
|
+
transition: transform 0.3s, opacity 0.3s;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
&-exit {
|
|
152
|
+
opacity: 1;
|
|
153
|
+
transform: translateY(0);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
&-exit-active {
|
|
157
|
+
opacity: 0;
|
|
158
|
+
transform: translateY(-100%);
|
|
159
|
+
transition: transform 0.3s, opacity 0.3s;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.slide-left {
|
|
164
|
+
&-enter,
|
|
165
|
+
&-appear {
|
|
166
|
+
opacity: 0;
|
|
167
|
+
transform: translateX(100%);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
&-enter-active,
|
|
171
|
+
&-appear-active {
|
|
172
|
+
opacity: 1;
|
|
173
|
+
transform: translateX(0);
|
|
174
|
+
transition: transform 0.3s, opacity 0.3s;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
&-exit {
|
|
178
|
+
opacity: 1;
|
|
179
|
+
transform: translateX(0);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
&-exit-active {
|
|
183
|
+
opacity: 0;
|
|
184
|
+
transform: translateX(100%);
|
|
185
|
+
transition: transform 0.3s, opacity 0.3s;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.slide-right {
|
|
190
|
+
&-enter,
|
|
191
|
+
&-appear {
|
|
192
|
+
opacity: 0;
|
|
193
|
+
transform: translateX(-100%);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
&-enter-active,
|
|
197
|
+
&-appear-active {
|
|
198
|
+
opacity: 1;
|
|
199
|
+
transform: translateX(0);
|
|
200
|
+
transition: transform 0.3s, opacity 0.3s;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
&-exit {
|
|
204
|
+
opacity: 1;
|
|
205
|
+
transform: translateX(0);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
&-exit-active {
|
|
209
|
+
opacity: 0;
|
|
210
|
+
transform: translateX(-100%);
|
|
211
|
+
transition: transform 0.3s, opacity 0.3s;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
2
|
+
#{$xh-prefix}-form-input {
|
|
3
3
|
height: 100px;
|
|
4
4
|
font-size: 32px;
|
|
5
5
|
display: flex;
|
|
@@ -85,15 +85,15 @@
|
|
|
85
85
|
|
|
86
86
|
&-right {
|
|
87
87
|
display: flex;
|
|
88
|
+
.arrow {
|
|
89
|
+
display: block;
|
|
90
|
+
width: 30px;
|
|
91
|
+
height: 30px;
|
|
92
|
+
background: url("./images/icon-arrow-right.png") no-repeat;
|
|
93
|
+
background-size: 100%;
|
|
94
|
+
}
|
|
88
95
|
}
|
|
89
96
|
}
|
|
90
|
-
.arrow {
|
|
91
|
-
display: block;
|
|
92
|
-
width: 30px;
|
|
93
|
-
height: 30px;
|
|
94
|
-
background: url("./images/icon-arrow-right.png") no-repeat;
|
|
95
|
-
background-size: 100%;
|
|
96
|
-
}
|
|
97
97
|
|
|
98
98
|
input::-webkit-input-placeholder,
|
|
99
99
|
textarea::-webkit-input-placeholder {
|
|
@@ -1,9 +1,18 @@
|
|
|
1
|
+
@import './alert.scss';
|
|
2
|
+
@import './bankicon.scss';
|
|
1
3
|
@import './button.scss';
|
|
2
|
-
@import './page.scss';
|
|
3
|
-
@import './backIcon.scss';
|
|
4
4
|
@import './captcha.scss';
|
|
5
|
-
@import './
|
|
5
|
+
@import './confirm.scss';
|
|
6
|
+
@import './dialogcomponent.scss';
|
|
7
|
+
@import './dialogref.scss';
|
|
8
|
+
@import './forminput.scss';
|
|
6
9
|
@import './image.scss';
|
|
10
|
+
@import './key.scss';
|
|
7
11
|
@import './list.scss';
|
|
8
12
|
@import './loading.scss';
|
|
9
|
-
@import './mask.scss';
|
|
13
|
+
@import './mask.scss';
|
|
14
|
+
@import './numberkeyboard.scss';
|
|
15
|
+
@import './page.scss';
|
|
16
|
+
@import './passwordinput.scss';
|
|
17
|
+
@import './progress.scss';
|
|
18
|
+
@import './toast.scss';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// @import '../../style/mixins.scss';
|
|
2
|
+
|
|
3
|
+
$key-height: 110px;
|
|
4
|
+
|
|
5
|
+
.number-keyboard-key {
|
|
6
|
+
width: 33.33%;
|
|
7
|
+
height: $key-height;
|
|
8
|
+
font-size: 50px;
|
|
9
|
+
line-height: $key-height;
|
|
10
|
+
text-align: center;
|
|
11
|
+
border-width: 1PX;
|
|
12
|
+
border-radius: 0;
|
|
13
|
+
border-bottom-width: 0;
|
|
14
|
+
vertical-align: middle;
|
|
15
|
+
|
|
16
|
+
& + & {
|
|
17
|
+
border-left-width: 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&:nth-of-type(3n + 1) {
|
|
21
|
+
border-left-width: 1px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:nth-last-of-type(-n + 3) {
|
|
25
|
+
border-bottom-width: 1px;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
display: inline-block;
|
|
4
4
|
|
|
5
5
|
&-main {
|
|
6
|
-
position:
|
|
6
|
+
position: fixed;
|
|
7
7
|
top: 50%;
|
|
8
8
|
left: 50%;
|
|
9
9
|
display: flex;
|
|
@@ -35,9 +35,6 @@
|
|
|
35
35
|
z-index: 9999998;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
.dark-mask {
|
|
39
|
-
background: rgba(0, 0, 0, .3);
|
|
40
|
-
}
|
|
41
38
|
}
|
|
42
39
|
|
|
43
40
|
@keyframes rotate {
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
// @import '../style/themes/variable.scss';
|
|
2
|
+
// @import '../style/themes/default.scss';
|
|
3
|
+
|
|
4
|
+
#{$xh-prefix}-number-keyboard {
|
|
5
|
+
position: fixed;
|
|
6
|
+
bottom: 0;
|
|
7
|
+
left: 0;
|
|
8
|
+
right: 0;
|
|
9
|
+
z-index: 10;
|
|
10
|
+
padding-bottom: constant(safe-area-inset-bottom);
|
|
11
|
+
padding-bottom: env(safe-area-inset-bottom);
|
|
12
|
+
|
|
13
|
+
&-header {
|
|
14
|
+
border-top: 1px solid $border-color;
|
|
15
|
+
display: flex;
|
|
16
|
+
justify-content: flex-end;
|
|
17
|
+
padding: 5px 0;
|
|
18
|
+
background-color: #FFF;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&-close {
|
|
22
|
+
align-self: flex-end;
|
|
23
|
+
border: 0;
|
|
24
|
+
color: #1989fa;
|
|
25
|
+
width: 150px;
|
|
26
|
+
text-align: center;
|
|
27
|
+
font-size: 18PX;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&-body {
|
|
31
|
+
width: 100%;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&-delete {
|
|
35
|
+
display: inline-block;
|
|
36
|
+
width: 100%;
|
|
37
|
+
height: 100%;
|
|
38
|
+
background-image: url('./images/backspace.png');
|
|
39
|
+
background-size: 25%;
|
|
40
|
+
background-repeat: no-repeat;
|
|
41
|
+
background-position: 50%;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&-key-gray {
|
|
45
|
+
background-color: #eee;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
.slide-up {
|
|
49
|
+
&-enter,
|
|
50
|
+
&-appear {
|
|
51
|
+
opacity: 0;
|
|
52
|
+
transform: translateY(100%);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&-enter-active,
|
|
56
|
+
&-appear-active {
|
|
57
|
+
opacity: 1;
|
|
58
|
+
transform: translateY(0);
|
|
59
|
+
transition: transform 0.3s, opacity 0.3s;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&-exit {
|
|
63
|
+
opacity: 1;
|
|
64
|
+
transform: translateY(0);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&-exit-active {
|
|
68
|
+
opacity: 0;
|
|
69
|
+
transform: translateY(100%);
|
|
70
|
+
transition: transform 0.3s, opacity 0.3s;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
|
|
2
2
|
@import '../../styles/themes/variable.scss';
|
|
3
3
|
@import '../../styles/themes/default.scss';
|
|
4
|
-
|
|
5
4
|
#{$xh-prefix}-page {
|
|
6
5
|
width: 100%;
|
|
7
6
|
min-height: 100vh;
|
|
8
7
|
background: #fff;
|
|
8
|
+
min-height: 100vh;
|
|
9
|
+
overflow-x: hidden;
|
|
10
|
+
#{$xh-prefix}-loading {
|
|
11
|
+
z-index: 1000;
|
|
12
|
+
}
|
|
13
|
+
.loadingMask {
|
|
14
|
+
width: 100vw;
|
|
15
|
+
height: 100vh;
|
|
16
|
+
background-color: #FFF;
|
|
17
|
+
position: fixed;
|
|
18
|
+
top: 0;
|
|
19
|
+
left: 0;
|
|
20
|
+
z-index: 999;
|
|
21
|
+
&.transparent {
|
|
22
|
+
background-color: transparent;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
9
25
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
#{$xh-prefix}-password-input {
|
|
2
|
+
display: flex;
|
|
3
|
+
|
|
4
|
+
&-list {
|
|
5
|
+
display: flex;
|
|
6
|
+
margin: 0 auto;
|
|
7
|
+
padding: 0;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
&-item {
|
|
11
|
+
display: inline-block;
|
|
12
|
+
width: 100px;
|
|
13
|
+
height: 100px;
|
|
14
|
+
line-height: 100px;
|
|
15
|
+
text-align: center;
|
|
16
|
+
border: 1px solid #d1d1d1;
|
|
17
|
+
font-size: 40px;
|
|
18
|
+
|
|
19
|
+
&:not(:first-child) {
|
|
20
|
+
border-left-width: 0;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&-mask {
|
|
25
|
+
display: inline-block;
|
|
26
|
+
width: 24px;
|
|
27
|
+
height: 24px;
|
|
28
|
+
background-color: #333;
|
|
29
|
+
border-radius: 50%;
|
|
30
|
+
animation: scale 0.3s ease;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@keyframes scale {
|
|
35
|
+
0% {
|
|
36
|
+
transform: scale(0.6);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
100% {
|
|
40
|
+
transform: scale(1);
|
|
41
|
+
}
|
|
42
|
+
}
|