taro-react-uilib 1.0.4 → 1.0.24

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 (244) hide show
  1. package/dist/components/Animated/Animated.js +2 -0
  2. package/dist/components/Animated/Animated.js.map +1 -0
  3. package/dist/components/Animated/Fade/index.js +2 -0
  4. package/dist/components/Animated/Fade/index.js.map +1 -0
  5. package/dist/components/Animated/Slide/index.js +2 -0
  6. package/dist/components/Animated/Slide/index.js.map +1 -0
  7. package/dist/components/BankIcon/bank.js +2 -0
  8. package/dist/components/BankIcon/bank.js.map +1 -0
  9. package/dist/components/BankIcon/images/102.png.js +2 -0
  10. package/dist/components/BankIcon/images/102.png.js.map +1 -0
  11. package/dist/components/BankIcon/images/103.png.js +2 -0
  12. package/dist/components/BankIcon/images/103.png.js.map +1 -0
  13. package/dist/components/BankIcon/images/104.png.js +2 -0
  14. package/dist/components/BankIcon/images/104.png.js.map +1 -0
  15. package/dist/components/BankIcon/images/105.png.js +2 -0
  16. package/dist/components/BankIcon/images/105.png.js.map +1 -0
  17. package/dist/components/BankIcon/images/301.png.js +2 -0
  18. package/dist/components/BankIcon/images/301.png.js.map +1 -0
  19. package/dist/components/BankIcon/images/302.png.js +2 -0
  20. package/dist/components/BankIcon/images/302.png.js.map +1 -0
  21. package/dist/components/BankIcon/images/303.png.js +2 -0
  22. package/dist/components/BankIcon/images/303.png.js.map +1 -0
  23. package/dist/components/BankIcon/images/304.png.js +2 -0
  24. package/dist/components/BankIcon/images/304.png.js.map +1 -0
  25. package/dist/components/BankIcon/images/305.png.js +2 -0
  26. package/dist/components/BankIcon/images/305.png.js.map +1 -0
  27. package/dist/components/BankIcon/images/306.png.js +2 -0
  28. package/dist/components/BankIcon/images/306.png.js.map +1 -0
  29. package/dist/components/BankIcon/images/307.png.js +2 -0
  30. package/dist/components/BankIcon/images/307.png.js.map +1 -0
  31. package/dist/components/BankIcon/images/308.png.js +2 -0
  32. package/dist/components/BankIcon/images/308.png.js.map +1 -0
  33. package/dist/components/BankIcon/images/309.png.js +2 -0
  34. package/dist/components/BankIcon/images/309.png.js.map +1 -0
  35. package/dist/components/BankIcon/images/310.png.js +2 -0
  36. package/dist/components/BankIcon/images/310.png.js.map +1 -0
  37. package/dist/components/BankIcon/images/403.png.js +2 -0
  38. package/dist/components/BankIcon/images/403.png.js.map +1 -0
  39. package/dist/components/BankIcon/index.js +2 -0
  40. package/dist/components/BankIcon/index.js.map +1 -0
  41. package/dist/components/Button/index.js +2 -0
  42. package/dist/components/Button/index.js.map +1 -0
  43. package/dist/components/Captcha/index.js +2 -0
  44. package/dist/components/Captcha/index.js.map +1 -0
  45. package/dist/components/Dialog/Alert/index.js +2 -0
  46. package/dist/components/Dialog/Alert/index.js.map +1 -0
  47. package/dist/components/Dialog/Confirm/index.js +2 -0
  48. package/dist/components/Dialog/Confirm/index.js.map +1 -0
  49. package/dist/components/Dialog/index.js +2 -0
  50. package/dist/components/Dialog/index.js.map +1 -0
  51. package/dist/components/DialogComponent/index.js +2 -0
  52. package/dist/components/DialogComponent/index.js.map +1 -0
  53. package/dist/components/DialogRef/index.js +2 -0
  54. package/dist/components/DialogRef/index.js.map +1 -0
  55. package/dist/components/FormInput/index.js +2 -0
  56. package/dist/components/FormInput/index.js.map +1 -0
  57. package/dist/components/Image/index.js +2 -0
  58. package/dist/components/Image/index.js.map +1 -0
  59. package/dist/components/List/index.js +2 -0
  60. package/dist/components/List/index.js.map +1 -0
  61. package/dist/components/Loading/index.js +2 -0
  62. package/dist/components/Loading/index.js.map +1 -0
  63. package/dist/components/Mask/index.js +2 -0
  64. package/dist/components/Mask/index.js.map +1 -0
  65. package/dist/components/NumberKeyboard/index.js +2 -0
  66. package/dist/components/NumberKeyboard/index.js.map +1 -0
  67. package/dist/components/Page/index.js +2 -0
  68. package/dist/components/Page/index.js.map +1 -0
  69. package/dist/components/PasswordInput/index.js +2 -0
  70. package/dist/components/PasswordInput/index.js.map +1 -0
  71. package/dist/components/Picker/Picker.js +2 -0
  72. package/dist/components/Picker/Picker.js.map +1 -0
  73. package/dist/components/Picker/index.js +2 -0
  74. package/dist/components/Picker/index.js.map +1 -0
  75. package/dist/components/Popup/index.js +2 -0
  76. package/dist/components/Popup/index.js.map +1 -0
  77. package/dist/components/Progress/index.js +2 -0
  78. package/dist/components/Progress/index.js.map +1 -0
  79. package/dist/components/Tabbar/index.js +2 -0
  80. package/dist/components/Tabbar/index.js.map +1 -0
  81. package/dist/components/Tabbar/tabbar/TabItem.js +2 -0
  82. package/dist/components/Tabbar/tabbar/TabItem.js.map +1 -0
  83. package/dist/components/Tabbar/tabbar/Tabbar.js +2 -0
  84. package/dist/components/Tabbar/tabbar/Tabbar.js.map +1 -0
  85. package/dist/components/Toast/Toast.js +2 -0
  86. package/dist/components/Toast/Toast.js.map +1 -0
  87. package/dist/components/Toast/index.js +2 -0
  88. package/dist/components/Toast/index.js.map +1 -0
  89. package/dist/components/_virtual/ReactPropTypesSecret.js +2 -0
  90. package/dist/components/_virtual/ReactPropTypesSecret.js.map +1 -0
  91. package/dist/components/_virtual/_commonjsHelpers.js +2 -0
  92. package/dist/components/_virtual/_commonjsHelpers.js.map +1 -0
  93. package/dist/components/_virtual/checkPropTypes.js +2 -0
  94. package/dist/components/_virtual/checkPropTypes.js.map +1 -0
  95. package/dist/components/_virtual/factoryWithThrowingShims.js +2 -0
  96. package/dist/components/_virtual/factoryWithThrowingShims.js.map +1 -0
  97. package/dist/components/_virtual/factoryWithTypeCheckers.js +2 -0
  98. package/dist/components/_virtual/factoryWithTypeCheckers.js.map +1 -0
  99. package/dist/components/_virtual/has.js +2 -0
  100. package/dist/components/_virtual/has.js.map +1 -0
  101. package/dist/components/_virtual/index.js +2 -0
  102. package/dist/components/_virtual/index.js.map +1 -0
  103. package/dist/components/_virtual/index2.js +2 -0
  104. package/dist/components/_virtual/index2.js.map +1 -0
  105. package/dist/components/_virtual/react-is.development.js +2 -0
  106. package/dist/components/_virtual/react-is.development.js.map +1 -0
  107. package/dist/components/_virtual/react-is.production.min.js +2 -0
  108. package/dist/components/_virtual/react-is.production.min.js.map +1 -0
  109. package/dist/components/src/hooks/index.js +2 -0
  110. package/dist/components/src/hooks/index.js.map +1 -0
  111. package/dist/components/src/index.js +2 -0
  112. package/dist/components/src/index.js.map +1 -0
  113. package/dist/components/src/utils/index.js +2 -0
  114. package/dist/components/src/utils/index.js.map +1 -0
  115. package/dist/index.js +2 -3010
  116. package/dist/index.js.map +1 -1
  117. package/dist/index.umd.js +9 -3018
  118. package/dist/index.umd.js.map +1 -1
  119. package/dist/styles/components/alert.scss +9 -4
  120. package/dist/styles/components/animated.scss +152 -0
  121. package/dist/styles/components/bankicon.scss +3 -1
  122. package/dist/styles/components/button.scss +23 -12
  123. package/dist/styles/components/captcha.scss +14 -2
  124. package/dist/styles/components/confirm.scss +16 -7
  125. package/dist/styles/components/dialog.scss +224 -0
  126. package/dist/styles/components/dialogref.scss +45 -168
  127. package/dist/styles/components/fade.scss +22 -0
  128. package/dist/styles/components/font/iconfont.ttf +0 -0
  129. package/dist/styles/components/font/iconfont.woff +0 -0
  130. package/dist/styles/components/font/iconfont.woff2 +0 -0
  131. package/dist/styles/components/forminput.scss +92 -57
  132. package/dist/styles/components/image.scss +1 -1
  133. package/dist/styles/components/images/backspace.png +0 -0
  134. package/dist/styles/components/images/loading.png +0 -0
  135. package/dist/styles/components/index.scss +9 -2
  136. package/dist/styles/components/list.scss +21 -18
  137. package/dist/styles/components/loading.scss +50 -9
  138. package/dist/styles/components/mask.scss +3 -2
  139. package/dist/styles/components/numberkeyboard.scss +48 -20
  140. package/dist/styles/components/page.scss +5 -4
  141. package/dist/styles/components/passwordinput.scss +2 -0
  142. package/dist/styles/components/picker.scss +147 -0
  143. package/dist/styles/components/popup.scss +77 -0
  144. package/dist/styles/components/scale.scss +27 -0
  145. package/dist/styles/components/scrollview.scss +4 -0
  146. package/dist/styles/components/slide.scss +105 -0
  147. package/dist/styles/components/tabbar.scss +42 -0
  148. package/dist/styles/components/toast.scss +2 -2
  149. package/dist/styles/index.scss +5 -5
  150. package/dist/styles/{components/dialogcomponent.scss → themes/animation.scss} +33 -74
  151. package/dist/styles/themes/default.scss +2 -2
  152. package/dist/styles/themes/variable.scss +3 -4
  153. package/lib/components/Animated/Animated.js +20 -0
  154. package/lib/components/Animated/Animated.js.map +1 -0
  155. package/lib/components/Animated/Fade/index.js +19 -0
  156. package/lib/components/Animated/Fade/index.js.map +1 -0
  157. package/lib/components/Animated/Scale/index.js +19 -0
  158. package/lib/components/Animated/Scale/index.js.map +1 -0
  159. package/lib/components/Animated/Slide/index.js +19 -0
  160. package/lib/components/Animated/Slide/index.js.map +1 -0
  161. package/lib/components/Animated/index.js +5 -0
  162. package/lib/components/Animated/index.js.map +1 -0
  163. package/lib/components/Button/index.js +27 -5
  164. package/lib/components/Button/index.js.map +1 -1
  165. package/lib/components/Captcha/index.js +17 -5
  166. package/lib/components/Captcha/index.js.map +1 -1
  167. package/lib/components/Dialog/Alert/index.js +3 -3
  168. package/lib/components/Dialog/Alert/index.js.map +1 -1
  169. package/lib/components/Dialog/Confirm/index.js +4 -4
  170. package/lib/components/Dialog/Confirm/index.js.map +1 -1
  171. package/lib/components/Dialog/index.js +1 -1
  172. package/lib/components/Dialog/index.js.map +1 -1
  173. package/lib/components/{Dialog/DialogComponent → DialogComponent}/index.js +1 -1
  174. package/lib/components/DialogComponent/index.js.map +1 -0
  175. package/lib/components/DialogRef/index.js +8 -7
  176. package/lib/components/DialogRef/index.js.map +1 -1
  177. package/lib/components/FormInput/index.js +44 -24
  178. package/lib/components/FormInput/index.js.map +1 -1
  179. package/lib/components/List/index.js +18 -15
  180. package/lib/components/List/index.js.map +1 -1
  181. package/lib/components/Loading/index.js +12 -10
  182. package/lib/components/Loading/index.js.map +1 -1
  183. package/lib/components/Mask/index.js +8 -8
  184. package/lib/components/Mask/index.js.map +1 -1
  185. package/lib/components/NumberKeyboard/index.js +12 -7
  186. package/lib/components/NumberKeyboard/index.js.map +1 -1
  187. package/lib/components/Page/index.js +7 -7
  188. package/lib/components/Page/index.js.map +1 -1
  189. package/lib/components/Picker/Picker.js +109 -0
  190. package/lib/components/Picker/Picker.js.map +1 -0
  191. package/lib/components/Picker/index.js +35 -0
  192. package/lib/components/Picker/index.js.map +1 -0
  193. package/lib/components/Popup/index.js +61 -0
  194. package/lib/components/Popup/index.js.map +1 -0
  195. package/lib/components/ScrollView/index.js +34 -0
  196. package/lib/components/ScrollView/index.js.map +1 -0
  197. package/lib/components/Tabbar/index.js +6 -0
  198. package/lib/components/Tabbar/index.js.map +1 -0
  199. package/lib/components/Tabbar/tabbar/TabItem.js +10 -0
  200. package/lib/components/Tabbar/tabbar/TabItem.js.map +1 -0
  201. package/lib/components/Tabbar/tabbar/Tabbar.js +74 -0
  202. package/lib/components/Tabbar/tabbar/Tabbar.js.map +1 -0
  203. package/lib/components/Toast/index.js +11 -3
  204. package/lib/components/Toast/index.js.map +1 -1
  205. package/lib/hooks/index.js +42 -1
  206. package/lib/hooks/index.js.map +1 -1
  207. package/lib/index.js +3 -0
  208. package/lib/index.js.map +1 -1
  209. package/lib/utils/index.js +18 -2
  210. package/lib/utils/index.js.map +1 -1
  211. package/package.json +134 -131
  212. package/types/components/Animated/Animated.d.ts +12 -0
  213. package/types/components/Animated/Fade/index.d.ts +9 -0
  214. package/types/components/Animated/Scale/index.d.ts +9 -0
  215. package/types/components/Animated/Slide/index.d.ts +11 -0
  216. package/types/components/Animated/index.d.ts +3 -0
  217. package/types/components/Button/index.d.ts +3 -2
  218. package/types/components/Captcha/index.d.ts +5 -3
  219. package/types/components/Dialog/index.d.ts +1 -1
  220. package/types/components/DialogComponent/index.d.ts +19 -0
  221. package/types/components/DialogRef/index.d.ts +4 -2
  222. package/types/components/FormInput/index.d.ts +9 -23
  223. package/types/components/List/index.d.ts +14 -6
  224. package/types/components/Loading/index.d.ts +6 -4
  225. package/types/components/Mask/index.d.ts +4 -4
  226. package/types/components/Page/index.d.ts +7 -5
  227. package/types/components/Picker/Picker.d.ts +23 -0
  228. package/types/components/Picker/index.d.ts +15 -0
  229. package/types/components/Popup/index.d.ts +10 -0
  230. package/types/components/ScrollView/index.d.ts +11 -0
  231. package/types/components/Tabbar/components/TabItem.d.ts +9 -0
  232. package/types/components/Tabbar/components/Tabbar.d.ts +30 -0
  233. package/types/components/Tabbar/index.d.ts +8 -0
  234. package/types/components/Tabbar/tabbar/TabItem.d.ts +9 -0
  235. package/types/components/Tabbar/tabbar/Tabbar.d.ts +30 -0
  236. package/types/hooks/index.d.ts +23 -0
  237. package/types/index.d.ts +3 -0
  238. package/types/utils/index.d.ts +1 -0
  239. package/dist/index.esm.js +0 -2995
  240. package/dist/index.esm.js.map +0 -1
  241. package/dist/styles/components/key.scss +0 -27
  242. package/lib/components/Dialog/DialogComponent/index.js.map +0 -1
  243. package/lib/components/NumberKeyboard/Key/index.js +0 -9
  244. package/lib/components/NumberKeyboard/Key/index.js.map +0 -1
@@ -1,3 +1,7 @@
1
+ @import './mask.scss';
2
+ @import "../../styles/themes/variable.scss";
3
+ @import "../../styles/themes/default.scss";
4
+ @import "../../styles/themes/animation.scss";
1
5
 
2
6
  #{$xh-prefix}-dialog-ref {
3
7
  position: fixed;
@@ -9,15 +13,20 @@
9
13
  align-items: center;
10
14
  justify-content: center;
11
15
  visibility: hidden;
16
+ z-index: 999;
12
17
  &.show {
13
18
  visibility: visible;
19
+
20
+ .xh-dialog-ref-content {
21
+ animation: scaleDialog 0.3s;
22
+ }
14
23
  }
15
24
  &-content {
16
25
  position: absolute;
17
- background-color: #FFF;
18
- z-index: 998;
26
+ background-color: #fff;
27
+ z-index: 999;
19
28
  width: 600px;
20
- padding: 60px 40px;
29
+ // padding-top: 60px;
21
30
  box-sizing: border-box;
22
31
  border-radius: 10px;
23
32
  text-align: center;
@@ -28,187 +37,55 @@
28
37
  font-weight: 500;
29
38
  line-height: 53px;
30
39
  color: #333333;
40
+ margin-top: 30px;
31
41
  }
32
42
  &-content {
33
- margin-top: 66px;
34
- width: 476px;
43
+ // margin: 66px auto 0;
35
44
  font-size: 34px;
36
45
  font-family: PingFang SC;
37
- color: #333333;
38
- opacity: 1;
46
+ color: #999;
39
47
  }
40
48
  &-footer {
41
- margin-top: 60px;
42
- &-button {
49
+ // margin-top: 60px;
50
+ border-top: 2px solid #f8f8f8;
51
+ .xh-dialog-ref-content-footer-button {
43
52
  display: flex;
44
53
  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;
54
+ &-button {
55
+ padding: 18px 0;
56
+ flex: 1;
57
+ font-size: 32px;
58
+ font-weight: 800;
59
+ border: 0;
60
+ border-bottom-left-radius: 10px;
61
+ border-right: 2px solid #f8f8f8;
62
+ color: #000;
63
+ position: relative;
64
+ outline: 0;
65
+ box-sizing: border-box;
66
+ overflow: hidden;
67
+ text-overflow: ellipsis;
68
+ white-space: nowrap;
69
+ line-height: 2.55555556;
70
+ background-color: #fff;
71
+ &:last-child {
72
+ color: #f6ab00;
73
+ border-bottom-right-radius: 10px;
74
+ border-right: 0;
75
+ }
57
76
  }
58
77
  }
59
78
  }
60
79
  }
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
80
  }
84
81
 
85
- .scale {
86
- &-enter,
87
- &-appear {
88
- opacity: 0;
89
- transform: scale(0.8);
82
+ @keyframes scaleDialog {
83
+ from {
84
+ transform: scale(0.6);
85
+ opacity: 0.2;
90
86
  }
91
-
92
- &-enter-active,
93
- &-appear-active {
94
- opacity: 1;
87
+ to {
95
88
  transform: scale(1);
96
- transition: transform 0.3s, opacity 0.3s;
97
- }
98
-
99
- &-exit {
100
89
  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
90
  }
135
91
  }
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
-
@@ -0,0 +1,22 @@
1
+ :global {
2
+ .fade {
3
+ &-enter,
4
+ &-appear {
5
+ opacity: 0;
6
+ }
7
+
8
+ &-enter-active {
9
+ opacity: 1;
10
+ transition: opacity 0.3s;
11
+ }
12
+
13
+ &-exit {
14
+ opacity: 1;
15
+ }
16
+
17
+ &-exit-active {
18
+ opacity: 0;
19
+ transition: opacity 0.3s;
20
+ }
21
+ }
22
+ }
@@ -1,88 +1,97 @@
1
-
1
+ @import "../../styles/themes/variable.scss";
2
+ @import "../../styles/themes/default.scss";
2
3
  #{$xh-prefix}-form-input {
3
- height: 100px;
4
4
  font-size: 32px;
5
5
  display: flex;
6
6
  box-sizing: border-box;
7
7
  justify-content: space-between;
8
8
  background: #fff;
9
- padding: 0 35px;
10
9
  line-height: 38px;
11
10
  align-items: center;
12
11
  position: relative;
13
12
  overflow: hidden;
14
- &:after {
13
+ padding: 40px 0;
14
+ &.padding {
15
+ padding: 40px 30px;
16
+ }
17
+ &.border::after {
15
18
  content: " ";
16
19
  position: absolute;
17
- left: 35px;
18
- right: 35px;
20
+ left: 0;
19
21
  bottom: 0;
20
22
  width: 100%;
21
- height: 1PX;
23
+ height: 2px;
22
24
  background-color: #e6e6e6;
23
25
  }
24
26
 
25
- &-left {
27
+ &-main {
26
28
  display: flex;
27
29
  align-items: center;
28
- .label {
29
- min-width: 128px;
30
- font-size: 32px;
31
- font-family: PingFang SC;
32
- font-weight: 400;
33
- line-height: 32px;
34
- color: #333333;
35
- white-space: nowrap;
36
- }
37
-
38
- &-label {
39
- width: 168px;
40
- text-align: left;
41
- color: #333;
30
+ justify-content: center;
31
+ flex: 1;
32
+ &-left {
42
33
  display: flex;
43
34
  align-items: center;
44
- &-icon {
45
- width: 48px;
46
- height: 48px;
47
- margin-left: 8px;
48
- display: inline-block;
49
- image {
50
- width: 100%;
51
- height: 100%;
52
- }
53
- img {
54
- width: 100%;
55
- height: 100%;
35
+ .label {
36
+ min-width: 128px;
37
+ font-size: 32px;
38
+ font-family: PingFang SC;
39
+ font-weight: 400;
40
+ line-height: 32px;
41
+ color: #333333;
42
+ white-space: nowrap;
43
+ }
44
+
45
+ &-label {
46
+ width: 128px;
47
+ text-align: left;
48
+ color: #333;
49
+ display: flex;
50
+ align-items: center;
51
+ &-icon {
52
+ width: 48px;
53
+ height: 48px;
54
+ margin-left: 8px;
55
+ display: inline-block;
56
+ image {
57
+ width: 100%;
58
+ height: 100%;
59
+ }
60
+ img {
61
+ width: 100%;
62
+ height: 100%;
63
+ }
56
64
  }
57
65
  }
58
66
  }
59
-
60
- }
61
- &-center {
62
- display: flex;
63
- align-items: center;
64
- width: 56%;
65
- flex: 1;
66
- height: 100%;
67
- & > input {
68
- margin-left: 16px;
69
- border: 0 none;
70
- display: block;
71
- font-size: 32px;
72
- }
73
- input {
74
- &::placeholder {
67
+ &-center {
68
+ display: flex;
69
+ align-items: center;
70
+ width: 56%;
71
+ flex: 1;
72
+ height: 100%;
73
+ margin-left: 30px;
74
+ & > input {
75
+ border: 0 none;
76
+ display: block;
75
77
  font-size: 32px;
76
- color: $font-color-tertiary;
77
- font-weight: normal;
78
- line-height: 36px;
78
+ }
79
+ input {
80
+ &::placeholder {
81
+ font-size: 32px;
82
+ color: $font-color-tertiary;
83
+ font-weight: normal;
84
+ line-height: 36px;
85
+ }
79
86
  }
80
87
  }
88
+ &-placeholder {
89
+ color: $font-color-tertiary;
90
+ }
91
+ &-extra {
92
+ margin-top: 6px;
93
+ }
81
94
  }
82
- &-placeholder {
83
- color: $font-color-tertiary;
84
- }
85
-
86
95
  &-right {
87
96
  display: flex;
88
97
  .arrow {
@@ -93,6 +102,32 @@
93
102
  background-size: 100%;
94
103
  }
95
104
  }
105
+ &.column {
106
+ .xh-form-input-main {
107
+ flex-direction: column;
108
+ align-items: flex-start;
109
+ margin-left: 0;
110
+ width: 100%;
111
+ &-left {
112
+ &-label {
113
+ font-size: 28px;
114
+ color: #999999;
115
+ width: auto;
116
+ }
117
+ }
118
+ &-center {
119
+ width: 100%;
120
+ margin-top: 18px;
121
+ margin-left: 0;
122
+ &-native {
123
+ width: 100%;
124
+ font-size: 32px;
125
+ font-weight: 400;
126
+ font-family: PingFang SC-Regular, PingFang SC;
127
+ }
128
+ }
129
+ }
130
+ }
96
131
  }
97
132
 
98
133
  input::-webkit-input-placeholder,
@@ -1,3 +1,3 @@
1
1
  .image {
2
2
  display: inline-block;
3
- }
3
+ }
@@ -1,18 +1,25 @@
1
1
  @import './alert.scss';
2
+ @import './animated.scss';
2
3
  @import './bankicon.scss';
3
4
  @import './button.scss';
4
5
  @import './captcha.scss';
5
6
  @import './confirm.scss';
6
- @import './dialogcomponent.scss';
7
+ @import './dialog.scss';
7
8
  @import './dialogref.scss';
9
+ @import './fade.scss';
8
10
  @import './forminput.scss';
9
11
  @import './image.scss';
10
- @import './key.scss';
11
12
  @import './list.scss';
12
13
  @import './loading.scss';
13
14
  @import './mask.scss';
14
15
  @import './numberkeyboard.scss';
15
16
  @import './page.scss';
16
17
  @import './passwordinput.scss';
18
+ @import './picker.scss';
19
+ @import './popup.scss';
17
20
  @import './progress.scss';
21
+ @import './scale.scss';
22
+ @import './scrollview.scss';
23
+ @import './slide.scss';
24
+ @import './tabbar.scss';
18
25
  @import './toast.scss';
@@ -1,24 +1,25 @@
1
+ @import "../../styles/themes/variable.scss";
2
+ @import "../../styles/themes/default.scss";
1
3
  #{$xh-prefix}-list {
2
4
  display: flex;
3
- padding: 24px;
4
- justify-content:space-between;
5
- background-color: #FFF;
5
+ padding: 24px 0;
6
+ justify-content: space-between;
7
+ background-color: #fff;
6
8
  align-items: center;
7
9
  position: relative;
8
10
  box-sizing: border-box;
9
11
  font-size: 32px;
10
- &:active {
11
- background-color: #F0F0F0;
12
+ &.condensed {
13
+ padding: 6px 0;
12
14
  }
13
- &.border:after {
14
- content: ' ';
15
- display: block;
16
- height: 1PX;
17
- width: 100%;
18
- position: absolute;
19
- background-color: #F8F8F8;
20
- bottom: 0;
21
- left: 24px;
15
+ &.outline:active {
16
+ background-color: #f0f0f0;
17
+ }
18
+ &.padding {
19
+ padding: 24px 30px;
20
+ }
21
+ &.border {
22
+ border-bottom: 1px solid #eee;
22
23
  }
23
24
  &-icon {
24
25
  display: inline-block;
@@ -39,8 +40,10 @@
39
40
  flex: 1;
40
41
  justify-content: space-between;
41
42
  overflow: hidden;
42
- text-overflow: ellipsis;
43
- white-space: nowrap;
43
+ &.ellipsis {
44
+ text-overflow: ellipsis;
45
+ white-space: nowrap;
46
+ }
44
47
  color: inherit;
45
48
  font-size: inherit;
46
49
  line-height: 1.5;
@@ -61,7 +64,7 @@
61
64
  &-extra {
62
65
  display: flex;
63
66
  align-items: center;
64
- max-width: 225px;
67
+ // max-width: 280px;
65
68
  &-info {
66
69
  display: inline-block;
67
70
  margin-right: 10px;
@@ -81,4 +84,4 @@
81
84
  }
82
85
  }
83
86
  }
84
- }
87
+ }
@@ -1,7 +1,7 @@
1
-
1
+ @import './mask.scss';
2
+ @import "../../styles/themes/variable.scss";
3
+ @import "../../styles/themes/default.scss";
2
4
  #{$xh-prefix}-loading {
3
- display: inline-block;
4
-
5
5
  &-main {
6
6
  position: fixed;
7
7
  top: 50%;
@@ -9,19 +9,50 @@
9
9
  display: flex;
10
10
  align-items: center;
11
11
  justify-content: center;
12
- width: 120px;
13
- height: 120px;
14
- background: rgba(0, 0, 0, 1);
12
+ flex-direction: column;
15
13
  border-radius: 20px;
16
- opacity: 0.7;
17
14
  transform: translate(-50%, -50%);
18
- z-index: 9999999;
15
+ z-index: 999;
16
+ &-spinner {
17
+ width: 100px;
18
+ height: 100px;
19
+ position: relative;
20
+ &-circle {
21
+ width: 100%;
22
+ height: 100%;
23
+ top: 0;
24
+ left: 0;
25
+ position: absolute;
26
+ .dot-rotate {
27
+ display: block;
28
+ margin: 0 auto;
29
+ width: 15%;
30
+ height: 15%;
31
+ border-radius: 100%;
32
+ animation: xh-spinner-circle 1.2s infinite ease-in-out both;
33
+ background-color: $font-color-secondary;
34
+ }
35
+ }
36
+ @for $var from 1 through 12 {
37
+ .is-circle#{$var} {
38
+ transform: rotate(30+30 * ($var - 1) + deg);
39
+ .dot-rotate {
40
+ animation-delay: -(1 - 0.1 * ($var - 1)) + s;
41
+ }
42
+ }
43
+ }
44
+ }
45
+ &-tip {
46
+ display: block;
47
+ font-size: 22px;
48
+ margin-top: 15px;
49
+ }
19
50
  }
20
51
 
21
52
  &-icon {
22
53
  width: 60px;
23
54
  height: 60px;
24
- background-image: url('./images/loading.png');
55
+ background-image: url("./images/loading.png");
25
56
  background-size: 100%;
26
57
  animation: rotate 1s infinite linear;
27
58
  }
@@ -34,7 +65,17 @@
34
65
  bottom: 0;
35
66
  z-index: 9999998;
36
67
  }
68
+ }
37
69
 
70
+ @keyframes xh-spinner-circle {
71
+ 0%,
72
+ 39%,
73
+ 100% {
74
+ opacity: 0;
75
+ }
76
+ 40% {
77
+ opacity: 1;
78
+ }
38
79
  }
39
80
 
40
81
  @keyframes rotate {
@@ -1,4 +1,5 @@
1
-
1
+ @import "../../styles/themes/variable.scss";
2
+ @import "../../styles/themes/default.scss";
2
3
  #{$xh-prefix}-mask {
3
4
  position: fixed;
4
5
  top: 0;
@@ -9,7 +10,7 @@
9
10
  z-index: 998;
10
11
  touch-action: none;
11
12
  &-normal {
12
- background-color: #FFF;
13
+ background-color: #fff;
13
14
  }
14
15
  &-transparent {
15
16
  background-color: transparent;