hy-app 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (206) hide show
  1. package/README.md +42 -0
  2. package/api/http.ts +138 -0
  3. package/api/index.ts +1 -0
  4. package/common/index.ts +1 -0
  5. package/common/versionControl.ts +102 -0
  6. package/components/dialog/TheDialog.vue +128 -0
  7. package/components/dialog/index.ts +38 -0
  8. package/components/hy-address-picker/hy-address-picker.vue +262 -0
  9. package/components/hy-address-picker/props.ts +27 -0
  10. package/components/hy-address-picker/typing.d.ts +98 -0
  11. package/components/hy-avatar/hy-avatar.vue +217 -0
  12. package/components/hy-avatar/props.ts +20 -0
  13. package/components/hy-avatar/typing.d.ts +64 -0
  14. package/components/hy-back-top/hy-back-top.vue +71 -0
  15. package/components/hy-back-top/props.ts +23 -0
  16. package/components/hy-back-top/typing.d.ts +49 -0
  17. package/components/hy-badge/hy-badge.vue +155 -0
  18. package/components/hy-badge/props.ts +19 -0
  19. package/components/hy-badge/typing.d.ts +60 -0
  20. package/components/hy-button/hy-button.vue +394 -0
  21. package/components/hy-button/props.ts +36 -0
  22. package/components/hy-button/typing.d.ts +125 -0
  23. package/components/hy-card/hy-card.vue +198 -0
  24. package/components/hy-card/props.ts +29 -0
  25. package/components/hy-card/typing.d.ts +112 -0
  26. package/components/hy-cell/hy-cell.vue +268 -0
  27. package/components/hy-cell/props.ts +20 -0
  28. package/components/hy-cell/typing.d.ts +98 -0
  29. package/components/hy-check-button/hy-check-button.vue +71 -0
  30. package/components/hy-check-button/props.ts +20 -0
  31. package/components/hy-check-button/typing.d.ts +79 -0
  32. package/components/hy-checkbox/hy-checkbox.vue +299 -0
  33. package/components/hy-checkbox/props.ts +28 -0
  34. package/components/hy-checkbox/typing.d.ts +77 -0
  35. package/components/hy-datetime-picker/hy-datetime-picker.vue +584 -0
  36. package/components/hy-datetime-picker/props.ts +36 -0
  37. package/components/hy-datetime-picker/typing.d.ts +135 -0
  38. package/components/hy-divider/hy-divider.vue +164 -0
  39. package/components/hy-divider/props.ts +21 -0
  40. package/components/hy-divider/typing.d.ts +64 -0
  41. package/components/hy-empty/hy-empty.vue +122 -0
  42. package/components/hy-empty/props.ts +21 -0
  43. package/components/hy-empty/typing.d.ts +68 -0
  44. package/components/hy-folding-panel/hy-folding-panel.vue +94 -0
  45. package/components/hy-folding-panel/props.ts +17 -0
  46. package/components/hy-folding-panel/typing.d.ts +59 -0
  47. package/components/hy-form/hy-form.vue +372 -0
  48. package/components/hy-form/props.ts +15 -0
  49. package/components/hy-form/typing.d.ts +51 -0
  50. package/components/hy-grid/hy-grid.vue +126 -0
  51. package/components/hy-grid/props.ts +16 -0
  52. package/components/hy-grid/typing.d.ts +62 -0
  53. package/components/hy-icon/hy-icon.vue +207 -0
  54. package/components/hy-icon/props.ts +24 -0
  55. package/components/hy-icon/typing.d.ts +80 -0
  56. package/components/hy-input/hy-input.vue +402 -0
  57. package/components/hy-input/props.ts +41 -0
  58. package/components/hy-input/typing.d.ts +148 -0
  59. package/components/hy-line/hy-line.vue +44 -0
  60. package/components/hy-line/props.ts +12 -0
  61. package/components/hy-line/typing.d.ts +32 -0
  62. package/components/hy-line-progress/hy-line-progress.vue +118 -0
  63. package/components/hy-line-progress/props.ts +12 -0
  64. package/components/hy-line-progress/typing.d.ts +28 -0
  65. package/components/hy-list/hy-list.vue +250 -0
  66. package/components/hy-list/props.ts +18 -0
  67. package/components/hy-list/typing.d.ts +50 -0
  68. package/components/hy-login/ThePhoneLogin.vue +106 -0
  69. package/components/hy-login/TheUserLogin.vue +391 -0
  70. package/components/hy-login/hy-login.vue +283 -0
  71. package/components/hy-login/props.ts +32 -0
  72. package/components/hy-login/typing.d.ts +60 -0
  73. package/components/hy-modal/hy-modal.vue +240 -0
  74. package/components/hy-modal/props.ts +24 -0
  75. package/components/hy-modal/typing.d.ts +70 -0
  76. package/components/hy-navbar/hy-navbar.vue +194 -0
  77. package/components/hy-navbar/props.ts +24 -0
  78. package/components/hy-navbar/typing.d.ts +81 -0
  79. package/components/hy-notice-bar/hy-column-notice.vue +130 -0
  80. package/components/hy-notice-bar/hy-notice-bar.vue +82 -0
  81. package/components/hy-notice-bar/hy-row-notice.vue +182 -0
  82. package/components/hy-notice-bar/props.ts +19 -0
  83. package/components/hy-notice-bar/typing.d.ts +56 -0
  84. package/components/hy-number-step/hy-number-step.vue +428 -0
  85. package/components/hy-number-step/props.ts +29 -0
  86. package/components/hy-number-step/typing.d.ts +104 -0
  87. package/components/hy-overlay/hy-overlay.vue +54 -0
  88. package/components/hy-overlay/props.ts +10 -0
  89. package/components/hy-overlay/typing.d.ts +24 -0
  90. package/components/hy-picker/hy-picker.vue +499 -0
  91. package/components/hy-picker/props.ts +30 -0
  92. package/components/hy-picker/typing.d.ts +115 -0
  93. package/components/hy-popup/hy-popup.vue +269 -0
  94. package/components/hy-popup/props.ts +21 -0
  95. package/components/hy-popup/typing.d.ts +68 -0
  96. package/components/hy-price/hy-price.vue +86 -0
  97. package/components/hy-price/props.ts +13 -0
  98. package/components/hy-price/typing.d.ts +36 -0
  99. package/components/hy-qrcode/hy-qrcode.vue +153 -0
  100. package/components/hy-qrcode/props.ts +20 -0
  101. package/components/hy-qrcode/qrcode.js +1364 -0
  102. package/components/hy-qrcode/typing.d.ts +64 -0
  103. package/components/hy-radio/hy-radio.vue +319 -0
  104. package/components/hy-radio/props.ts +28 -0
  105. package/components/hy-radio/typing.d.ts +85 -0
  106. package/components/hy-rate/hy-rate.vue +261 -0
  107. package/components/hy-rate/props.ts +18 -0
  108. package/components/hy-rate/typing.d.ts +60 -0
  109. package/components/hy-read-more/hy-read-more.vue +134 -0
  110. package/components/hy-read-more/props.ts +20 -0
  111. package/components/hy-read-more/typing.d.ts +44 -0
  112. package/components/hy-safe-bottom/hy-safe-bottom.vue +64 -0
  113. package/components/hy-scroll-list/hy-scroll-list.vue +146 -0
  114. package/components/hy-scroll-list/props.ts +12 -0
  115. package/components/hy-scroll-list/typing.d.ts +28 -0
  116. package/components/hy-search/hy-search.vue +294 -0
  117. package/components/hy-search/props.ts +29 -0
  118. package/components/hy-search/typing.d.ts +109 -0
  119. package/components/hy-slider/hy-slider.vue +511 -0
  120. package/components/hy-slider/props.ts +21 -0
  121. package/components/hy-slider/typing.d.ts +68 -0
  122. package/components/hy-steps/hy-steps.vue +352 -0
  123. package/components/hy-steps/props.ts +15 -0
  124. package/components/hy-steps/typing.d.ts +58 -0
  125. package/components/hy-subsection/hy-subsection.vue +272 -0
  126. package/components/hy-subsection/props.ts +16 -0
  127. package/components/hy-subsection/typing.d.ts +44 -0
  128. package/components/hy-swiper/hy-swiper-indicator.vue +105 -0
  129. package/components/hy-swiper/hy-swiper.vue +242 -0
  130. package/components/hy-swiper/props.ts +30 -0
  131. package/components/hy-swiper/typing.d.ts +107 -0
  132. package/components/hy-switch/hy-switch.vue +168 -0
  133. package/components/hy-switch/props.ts +16 -0
  134. package/components/hy-switch/typing.d.ts +48 -0
  135. package/components/hy-tabs/hy-tabs.vue +416 -0
  136. package/components/hy-tabs/props.ts +26 -0
  137. package/components/hy-tabs/typing.d.ts +86 -0
  138. package/components/hy-tag/hy-tag.vue +374 -0
  139. package/components/hy-tag/props.ts +22 -0
  140. package/components/hy-tag/typing.d.ts +76 -0
  141. package/components/hy-textarea/hy-textarea.vue +229 -0
  142. package/components/hy-textarea/props.ts +26 -0
  143. package/components/hy-textarea/typing.d.ts +27 -0
  144. package/components/hy-tooltip/hy-tooltip.vue +332 -0
  145. package/components/hy-tooltip/props.ts +17 -0
  146. package/components/hy-tooltip/typing.d.ts +52 -0
  147. package/components/hy-transition/hy-transition.vue +150 -0
  148. package/components/hy-transition/index.scss +113 -0
  149. package/components/hy-transition/props.ts +10 -0
  150. package/components/hy-transition/typing.d.ts +36 -0
  151. package/components/hy-upload/hy-upload.vue +557 -0
  152. package/components/hy-upload/props.ts +29 -0
  153. package/components/hy-upload/typing.d.ts +147 -0
  154. package/components/hy-warn/hy-warn.vue +228 -0
  155. package/components/hy-warn/props.ts +14 -0
  156. package/components/hy-warn/typing.d.ts +40 -0
  157. package/components/hy-waterfall/hy-waterfall.vue +51 -0
  158. package/components/hy-waterfall/props.ts +10 -0
  159. package/components/hy-waterfall/typing.d.ts +20 -0
  160. package/components/index.ts +162 -0
  161. package/components/message/TheMessage.vue +169 -0
  162. package/components/message/index.ts +54 -0
  163. package/components/u-form/form.js +22 -0
  164. package/components/u-form/hy-form.vue +324 -0
  165. package/components/u-form/props.js +49 -0
  166. package/components/u-form/schema.js +1451 -0
  167. package/components/u-form/u-form.vue +267 -0
  168. package/components/u-form/utils.js +65 -0
  169. package/components/u-form-item/formItem.js +24 -0
  170. package/components/u-form-item/hy-form-item.vue +360 -0
  171. package/components/u-form-item/props.js +57 -0
  172. package/components/u-form-item/u-form-item.vue +294 -0
  173. package/components/yk-dialog/yk-dialog.vue +129 -0
  174. package/components/yk-tabbar/props.ts +49 -0
  175. package/components/yk-tabbar/yk-tabbar.vue +224 -0
  176. package/config/color.ts +6 -0
  177. package/config/icon.ts +366 -0
  178. package/config/index.ts +2 -0
  179. package/global/index.ts +6 -0
  180. package/global/register-properties.ts +37 -0
  181. package/index.ts +8 -0
  182. package/libs/css/common.scss +0 -0
  183. package/libs/css/iconfont.css +379 -0
  184. package/libs/css/iconfont.ttf +0 -0
  185. package/libs/css/mixin.scss +15 -0
  186. package/package.json +42 -0
  187. package/public/icons/error.png +0 -0
  188. package/public/icons/success.png +0 -0
  189. package/public/icons/warning.png +0 -0
  190. package/store/index.ts +1 -0
  191. package/store/userInfo.ts +25 -0
  192. package/theme.scss +94 -0
  193. package/typing/index.ts +7 -0
  194. package/typing/modules/common.d.ts +50 -0
  195. package/typing/modules/dialog.ts +17 -0
  196. package/typing/modules/enum.ts +67 -0
  197. package/typing/modules/form.ts +161 -0
  198. package/typing/modules/http.ts +68 -0
  199. package/typing/modules/icon.d.ts +366 -0
  200. package/typing/modules/img.ts +15 -0
  201. package/typing/modules/rect.ts +10 -0
  202. package/utils/address.json +5890 -0
  203. package/utils/base64.ts +119 -0
  204. package/utils/index.ts +3 -0
  205. package/utils/inside.ts +310 -0
  206. package/utils/utils.ts +446 -0
@@ -0,0 +1,379 @@
1
+ @font-face {
2
+ font-family: "iconfont"; /* Project id 4305932 */
3
+ src: url('iconfont.woff2?t=1742867873549') format('woff2'),
4
+ url('iconfont.woff?t=1742867873549') format('woff'),
5
+ url('iconfont.ttf?t=1742867873549') format('truetype');
6
+ }
7
+
8
+ .iconfont {
9
+ font-family: "iconfont" !important;
10
+ font-size: 16px;
11
+ font-style: normal;
12
+ -webkit-font-smoothing: antialiased;
13
+ -moz-osx-font-smoothing: grayscale;
14
+ }
15
+
16
+ .hy-icon-close-circle-fill:before {
17
+ content: "\e6f2";
18
+ }
19
+
20
+ .hy-icon-help-fill:before {
21
+ content: "\e6fa";
22
+ }
23
+
24
+ .hy-icon-message:before {
25
+ content: "\e70c";
26
+ }
27
+
28
+ .hy-icon-message-fill:before {
29
+ content: "\e70d";
30
+ }
31
+
32
+ .hy-icon-notice-fill:before {
33
+ content: "\e71b";
34
+ }
35
+
36
+ .hy-icon-send:before {
37
+ content: "\e726";
38
+ }
39
+
40
+ .hy-icon-share-fill:before {
41
+ content: "\e729";
42
+ }
43
+
44
+ .hy-icon-share:before {
45
+ content: "\e72a";
46
+ }
47
+
48
+ .hy-icon-success-fill:before {
49
+ content: "\e72d";
50
+ }
51
+
52
+ .hy-icon-systemprompt_fill:before {
53
+ content: "\e72f";
54
+ }
55
+
56
+ .hy-icon-delete:before {
57
+ content: "\e738";
58
+ }
59
+
60
+ .hy-icon-delete-fill:before {
61
+ content: "\e739";
62
+ }
63
+
64
+ .hy-icon-warning_fill:before {
65
+ content: "\e73d";
66
+ }
67
+
68
+ .hy-icon-search:before {
69
+ content: "\e741";
70
+ }
71
+
72
+ .hy-icon-loading:before {
73
+ content: "\e64a";
74
+ }
75
+
76
+ .hy-icon-order:before {
77
+ content: "\e737";
78
+ }
79
+
80
+ .hy-icon-copy:before {
81
+ content: "\e656";
82
+ }
83
+
84
+ .hy-icon-collect-fill:before {
85
+ content: "\e631";
86
+ }
87
+
88
+ .hy-icon-collect:before {
89
+ content: "\e632";
90
+ }
91
+
92
+ .hy-icon-calendar:before {
93
+ content: "\e645";
94
+ }
95
+
96
+ .hy-icon-eye:before {
97
+ content: "\e666";
98
+ }
99
+
100
+ .hy-icon-download:before {
101
+ content: "\e667";
102
+ }
103
+
104
+ .hy-icon-arrow-double-left:before {
105
+ content: "\e665";
106
+ }
107
+
108
+ .hy-icon-arrow-double-right:before {
109
+ content: "\e668";
110
+ }
111
+
112
+ .hy-icon-camera:before {
113
+ content: "\e669";
114
+ }
115
+
116
+ .hy-icon-attachment:before {
117
+ content: "\e66a";
118
+ }
119
+
120
+ .hy-icon-comment:before {
121
+ content: "\e66b";
122
+ }
123
+
124
+ .hy-icon-customer-service:before {
125
+ content: "\e66c";
126
+ }
127
+
128
+ .hy-icon-ellipsis:before {
129
+ content: "\e66e";
130
+ }
131
+
132
+ .hy-icon-export:before {
133
+ content: "\e66f";
134
+ }
135
+
136
+ .hy-icon-link:before {
137
+ content: "\e676";
138
+ }
139
+
140
+ .hy-icon-layers:before {
141
+ content: "\e675";
142
+ }
143
+
144
+ .hy-icon-print:before {
145
+ content: "\e67a";
146
+ }
147
+
148
+ .hy-icon-navigation:before {
149
+ content: "\e67b";
150
+ }
151
+
152
+ .hy-icon-pdf:before {
153
+ content: "\e67c";
154
+ }
155
+
156
+ .hy-icon-picture:before {
157
+ content: "\e67e";
158
+ }
159
+
160
+ .hy-icon-save:before {
161
+ content: "\e67f";
162
+ }
163
+
164
+ .hy-icon-scan:before {
165
+ content: "\e680";
166
+ }
167
+
168
+ .hy-icon-security:before {
169
+ content: "\e681";
170
+ }
171
+
172
+ .hy-icon-success:before {
173
+ content: "\e682";
174
+ }
175
+
176
+ .hy-icon-smile:before {
177
+ content: "\e683";
178
+ }
179
+
180
+ .hy-icon-switch:before {
181
+ content: "\e684";
182
+ }
183
+
184
+ .hy-icon-upload:before {
185
+ content: "\e685";
186
+ }
187
+
188
+ .hy-icon-warning:before {
189
+ content: "\e687";
190
+ }
191
+
192
+ .hy-icon-arrow-up-fill:before {
193
+ content: "\e688";
194
+ }
195
+
196
+ .hy-icon-arrow-down-fill:before {
197
+ content: "\e689";
198
+ }
199
+
200
+ .hy-icon-arrow-left-fill:before {
201
+ content: "\e68a";
202
+ }
203
+
204
+ .hy-icon-arrow-right-fill:before {
205
+ content: "\e68b";
206
+ }
207
+
208
+ .hy-icon-smile-fill:before {
209
+ content: "\e68c";
210
+ }
211
+
212
+ .hy-icon-cry-fill:before {
213
+ content: "\e68d";
214
+ }
215
+
216
+ .hy-icon-minus:before {
217
+ content: "\e686";
218
+ }
219
+
220
+ .hy-icon-check-mask:before {
221
+ content: "\e602";
222
+ }
223
+
224
+ .hy-icon-close:before {
225
+ content: "\e611";
226
+ }
227
+
228
+ .hy-icon-lock:before {
229
+ content: "\e8b2";
230
+ }
231
+
232
+ .hy-icon-home-fill:before {
233
+ content: "\e8c6";
234
+ }
235
+
236
+ .hy-icon-mine:before {
237
+ content: "\e60b";
238
+ }
239
+
240
+ .hy-icon-class-fill:before {
241
+ content: "\e600";
242
+ }
243
+
244
+ .hy-icon-setting:before {
245
+ content: "\e601";
246
+ }
247
+
248
+ .hy-icon-mine-fill:before {
249
+ content: "\e608";
250
+ }
251
+
252
+ .hy-icon-shopping-cart-fill:before {
253
+ content: "\e73c";
254
+ }
255
+
256
+ .hy-icon-home:before {
257
+ content: "\e751";
258
+ }
259
+
260
+ .hy-icon-shopping-cart-add:before {
261
+ content: "\e640";
262
+ }
263
+
264
+ .hy-icon-map:before {
265
+ content: "\e64e";
266
+ }
267
+
268
+ .hy-icon-class:before {
269
+ content: "\e638";
270
+ }
271
+
272
+ .hy-icon-right:before {
273
+ content: "\e620";
274
+ }
275
+
276
+ .hy-icon-close-circle:before {
277
+ content: "\e621";
278
+ }
279
+
280
+ .hy-icon-help:before {
281
+ content: "\e622";
282
+ }
283
+
284
+ .hy-icon-screen:before {
285
+ content: "\e623";
286
+ }
287
+
288
+ .hy-icon-remind:before {
289
+ content: "\e625";
290
+ }
291
+
292
+ .hy-icon-plus:before {
293
+ content: "\e626";
294
+ }
295
+
296
+ .hy-icon-arrow-rightward:before {
297
+ content: "\e628";
298
+ }
299
+
300
+ .hy-icon-arrow-leftward:before {
301
+ content: "\e629";
302
+ }
303
+
304
+ .hy-icon-notice:before {
305
+ content: "\e62a";
306
+ }
307
+
308
+ .hy-icon-menu:before {
309
+ content: "\e62e";
310
+ }
311
+
312
+ .hy-icon-list-dot:before {
313
+ content: "\e62f";
314
+ }
315
+
316
+ .hy-icon-network:before {
317
+ content: "\e630";
318
+ }
319
+
320
+ .hy-icon-time:before {
321
+ content: "\e639";
322
+ }
323
+
324
+ .hy-icon-history:before {
325
+ content: "\e63b";
326
+ }
327
+
328
+ .hy-icon-up:before {
329
+ content: "\e63c";
330
+ }
331
+
332
+ .hy-icon-down:before {
333
+ content: "\e63d";
334
+ }
335
+
336
+ .hy-icon-left:before {
337
+ content: "\e63e";
338
+ }
339
+
340
+ .hy-icon-tag:before {
341
+ content: "\e63f";
342
+ }
343
+
344
+ .hy-icon-task:before {
345
+ content: "\e641";
346
+ }
347
+
348
+ .hy-icon-refresh:before {
349
+ content: "\e642";
350
+ }
351
+
352
+ .hy-icon-shopping-cart:before {
353
+ content: "\e899";
354
+ }
355
+
356
+ .hy-icon-shopping-bag:before {
357
+ content: "\e65a";
358
+ }
359
+
360
+ .hy-icon-map-fill:before {
361
+ content: "\e65e";
362
+ }
363
+
364
+ .hy-icon-lock-open-fill:before {
365
+ content: "\e63a";
366
+ }
367
+
368
+ .hy-icon-lock-fill:before {
369
+ content: "\e643";
370
+ }
371
+
372
+ .hy-icon-shop:before {
373
+ content: "\e644";
374
+ }
375
+
376
+ .hy-icon-edit:before {
377
+ content: "\e8ac";
378
+ }
379
+
Binary file
@@ -0,0 +1,15 @@
1
+ @mixin flex($direction: row) {
2
+ /* #ifndef APP-NVUE */
3
+ display: flex;
4
+ /* #endif */
5
+ flex-direction: $direction;
6
+ }
7
+
8
+ /* 几行出现省略号 */
9
+ @mixin line-feed($line: 1) {
10
+ display: -webkit-box;
11
+ -webkit-box-orient: vertical;
12
+ -webkit-line-clamp: $line;
13
+ overflow: hidden;
14
+ text-overflow: ellipsis;
15
+ }
package/package.json ADDED
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "hy-app",
3
+ "version": "0.1.1",
4
+ "description": "华玥组件库",
5
+ "main": "./index.ts",
6
+ "private": false,
7
+ "scripts": {},
8
+ "files": [
9
+ "common/",
10
+ "components/",
11
+ "global/",
12
+ "public/",
13
+ "store/",
14
+ "typing/",
15
+ "utils/",
16
+ "api/",
17
+ "config/",
18
+ "libs/",
19
+ "index.ts",
20
+ "theme.scss",
21
+ "README.md"
22
+ ],
23
+ "dependencies": {
24
+ "@dcloudio/uni-app": "3.0.0-alpha-3081220230802001",
25
+ "pinia": "^2.3.1",
26
+ "pinia-plugin-unistorage": "^0.0.8",
27
+ "vue": "^3.5.13",
28
+ "vue-i18n": "^9.14.3"
29
+ },
30
+ "devDependencies": {
31
+ "@dcloudio/types": "^3.4.14",
32
+ "@vue/tsconfig": "^0.1.3",
33
+ "uni-app-types": "^0.1.7"
34
+ },
35
+ "keywords": [
36
+ "华玥组件库",
37
+ "gxh",
38
+ "yk"
39
+ ],
40
+ "author": "gaoxianhua",
41
+ "license": "ISC"
42
+ }
Binary file
Binary file
Binary file
package/store/index.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "./userInfo";
@@ -0,0 +1,25 @@
1
+ import { defineStore } from "pinia";
2
+
3
+ export const useUserInfo = defineStore("gxh_userInfo", {
4
+ state:() => ({
5
+ userForm: {
6
+ name: '',
7
+ pwd: ''
8
+ },
9
+ phoneForm: {
10
+ phone: '',
11
+ code: ''
12
+ },
13
+ rememberPsw: 0,
14
+ // 历史账户列表
15
+ choiceList:[],
16
+ // 选中账户信息
17
+ choiceIndex: 0,
18
+ secretKey: "hfyk"
19
+ }),
20
+ actions: {
21
+ saveHistoriesList() {
22
+ this.choiceList
23
+ }
24
+ }
25
+ })
package/theme.scss ADDED
@@ -0,0 +1,94 @@
1
+ /* 主题是相关颜色 */
2
+ $hy-primary: #2979ff;
3
+ $hy-primary-dark: #2b85e4;
4
+ $hy-primary-disabled: #a0cfff;
5
+ $hy-primary-light: #ecf5ff;
6
+
7
+ $hy-warning: #ff9900;
8
+ $hy-warning-dark: #f29100;
9
+ $hy-warning-disabled: #fcbd71;
10
+ $hy-warning-light: #fdf6ec;
11
+
12
+ $hy-success: #19be6b;
13
+ $hy-success-dark: #18b566;
14
+ $hy-success-disabled: #71d5a1;
15
+ $hy-success-light: #dbf1e1;
16
+
17
+ $hy-error: #fa3534;
18
+ $hy-error-dark: #dd6161;
19
+ $hy-error-disabled: #fab6b6;
20
+ $hy-error-light: #fef0f0;
21
+
22
+ $hy-info: #909399;
23
+ $hy-info-dark: #82848a;
24
+ $hy-info-disabled: #c8c9cc;
25
+ $hy-info-light: #f4f4f5;
26
+
27
+ /* 文字基本颜色 */
28
+ $hy-text-color: #333; //基本色
29
+ $hy-text-color-inverse: #fff; //反色
30
+ $hy-text-color-grey: #999; //辅助灰色,如加载更多的提示信息
31
+ $hy-text-color-placeholder: #808080;
32
+ $hy-text-color-disable: #c0c0c0;
33
+ $hy-text-color-light: rgba(192, 192, 192, 0.38);
34
+
35
+ $hy-tips-color: #909193FF;
36
+ $hy-color-disable-bg: #F5F5F5;
37
+ $hy-color-disable-icon: #c8c9cc;
38
+
39
+ /* 文字尺寸 */
40
+ $hy-font-size-sm: 24rpx;
41
+ $hy-font-size-base: 28rpx;
42
+ $hy-font-size-lg: 32rpx;
43
+
44
+ /* 背景颜色 */
45
+ $hy-bg-color: #F8F8F8;
46
+ $hy-bg-color-disabled: #87BAF3;
47
+ $hy-bg-color-light: #a7cff9a5;
48
+ $hy-bg-color-grey: #f8f8f8;
49
+ $hy-bg-color-hover: #f1f1f1; //点击状态颜色
50
+ $hy-bg-color-mask: rgba(0, 0, 0, 0.5); //遮罩颜色
51
+ $hy-image-bg-color: #F3F3F3;
52
+
53
+ /* 文章场景相关 */
54
+ $hy-color-title: #2c405a; // 文章标题颜色
55
+ $hy-weight-title: 700;
56
+ $hy-font-size-title: 44rpx;
57
+ $hy-color-subtitle: #555555; // 二级标题颜色
58
+ $hy-font-size-subtitle: 38rpx;
59
+ $hy-color-paragraph: #3f536e; // 文章段落颜色
60
+ $hy-font-size-paragraph: 32rpx;
61
+ $hy-color-hint: #999; // 提示文字
62
+ $hy-font-size-hint: 26rpx;
63
+
64
+
65
+ /* 边框颜色 */
66
+ $k-border-color-light: #c8c7cc;
67
+ $hy-border-color: #c8c7cc66;
68
+
69
+ /* 图片尺寸 */
70
+ $hy-img-size-sm: 45rpx;
71
+ $hy-img-size-base: 80rpx;
72
+ $hy-img-size-lg: 120rpx;
73
+
74
+ /* 头像大小 */
75
+ $hy-avatar-size-sm: 80rpx;
76
+ $hy-avatar-size-base: 100rpx;
77
+ $hy-avatar-size-lg: 120rpx;
78
+
79
+ /* 透明度 */
80
+ $hy-opacity-disabled: 0.3; // 组件禁用态的透明度
81
+
82
+ /* 盒子的圆角 */
83
+ $hy-border-radius-sm: 6rpx;
84
+ $hy-border-radius-base: 12rpx;
85
+ $hy-border-radius-lg: 20rpx;
86
+ $hy-border-radius-circle: 50%;
87
+ /* 盒子阴影 */
88
+ $hy-box-shadow: 0 0 10rpx 4rpx rgba(0, 0, 0, 0.16);
89
+ /* 盒内盒外间距 */
90
+ $hy-border-margin-padding-sm: 10rpx;
91
+ $hy-border-margin-padding-base: 20rpx;
92
+ $hy-border-margin-padding-lg: 25rpx;
93
+ /* 底部线条 */
94
+ $hy-border-line: 1px solid #dadbde;
@@ -0,0 +1,7 @@
1
+ export * from "./modules/form";
2
+ export * from "./modules/dialog";
3
+ export * from "./modules/http";
4
+ export * from "./modules/img";
5
+ export * from "./modules/enum";
6
+ export * from "./modules/rect";
7
+ // export * from "./modules/icon";
@@ -0,0 +1,50 @@
1
+ declare namespace HyApp {
2
+ /**
3
+ * @description 主题类型 primary-默认,success-错误,warning-警告,error-错误,info-信息
4
+ * */
5
+ type ThemeType = "primary" | "success" | "warning" | "error" | "info";
6
+ /**
7
+ * @description 大小
8
+ * */
9
+ type SizeType = "small" | "medium" | "large";
10
+ /**
11
+ * @description 形状:circle-圆形,square-方块
12
+ * */
13
+ type ShapeType = "circle" | "square";
14
+
15
+ /**
16
+ * @description 形状:flex-start-开头排序,flex-start-结尾排序,space-between-两边靠边,space-around-两边留一半空隙,space-evenly-两边留一个空隙,center-居中
17
+ * */
18
+ type JustifyContentType =
19
+ | "flex-start"
20
+ | "flex-end"
21
+ | "space-between"
22
+ | "space-around"
23
+ | "space-evenly"
24
+ | "center";
25
+ /**
26
+ * @description 排列方式,row-横向,column-纵向
27
+ * */
28
+ type PermutationType = "row" | "column";
29
+ /**
30
+ * @description 布局方式;left-左,right-右,top-上,bottom-下,center-中
31
+ * */
32
+ type LayoutType = LeftRightType | TopBottomType | "center";
33
+ /**
34
+ * @description 布局方式:left-左,right-右
35
+ * */
36
+ type LeftRightType = "left" | "right";
37
+ /**
38
+ * @description 布局方式:top-上,bottom-下
39
+ * */
40
+ type TopBottomType = "top" | "bottom";
41
+ /**
42
+ * @description 边框:surround-四周有边框,bottom-底部有边框,none-无边框
43
+ * */
44
+ type BorderType = "surround" | "bottom" | "none";
45
+ /**
46
+ * @description 导航类型:
47
+ * */
48
+ type NavigationType = "navigateTo" | "redirectTo" | "switchTab" | "reLaunch";
49
+ type FileType = "video" | "media" | "all" | "file" | "image";
50
+ }
@@ -0,0 +1,17 @@
1
+ export interface ResultParam {
2
+ confirm: boolean; // 为 true 时,表示用户点击了确定按钮
3
+ cancel: boolean; // 为 true 时,表示用户点击了取消
4
+ }
5
+
6
+ export interface DialogParam {
7
+ icon?: string;
8
+ title?: string;
9
+ content?: string;
10
+ confirmText?: string;
11
+ cancelText?: string;
12
+ shape?: "circle" | "square";
13
+ confirmColor?: string;
14
+ cancelColor?: string;
15
+ showCancel?: boolean;
16
+ result?: Function; // 回调用户操作结果
17
+ }
@@ -0,0 +1,67 @@
1
+ /**
2
+ * @deprecated 改成DateModeEnum,请尽快改
3
+ * */
4
+ export enum ModeEnum {
5
+ /**
6
+ * 年月日时分秒格式:2024-10-10 10:10:11
7
+ * */
8
+ DATETIME = "datetime",
9
+ /**
10
+ * 日期选择器:2024-10-10
11
+ * */
12
+ DATE = "date",
13
+ /**
14
+ * 时间选择器:10:10:11
15
+ * */
16
+ TIME = "time",
17
+ /**
18
+ * 年月选择器:2024-10
19
+ * */
20
+ YEAR_MONTH = "year-month",
21
+ /**
22
+ * 月日选择器:08-10
23
+ * */
24
+ MONTH_DAY = "month-day",
25
+ /**
26
+ * 时分选择器:10:59
27
+ * */
28
+ HOUR_MINUTE = "hour-minute",
29
+ /**
30
+ * 分秒选择器:02:10
31
+ * */
32
+ MINUTE_SECOND = "minute-second"
33
+ }
34
+
35
+ /**
36
+ * @description 日期展示的格式
37
+ * */
38
+ export enum DateModeEnum {
39
+ /**
40
+ * 年月日时分秒格式:2024-10-10 10:10:11
41
+ * */
42
+ DATETIME = "datetime",
43
+ /**
44
+ * 日期选择器:2024-10-10
45
+ * */
46
+ DATE = "date",
47
+ /**
48
+ * 时间选择器:10:10
49
+ * */
50
+ TIME = "time",
51
+ /**
52
+ * 年月选择器:2024-10
53
+ * */
54
+ YEAR_MONTH = "year-month",
55
+ /**
56
+ * 月日选择器:08-10
57
+ * */
58
+ MONTH_DAY = "month-day",
59
+ /**
60
+ * 时分选择器:10:59
61
+ * */
62
+ HOUR_MINUTE = "hour-minute",
63
+ /**
64
+ * 分秒选择器:02:10
65
+ * */
66
+ MINUTE_SECOND = "minute-second"
67
+ }