hy-app 0.6.8 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/attributes.json +1 -1
  2. package/components/hy-action-sheet/index.scss +2 -2
  3. package/components/hy-avatar/hy-avatar.vue +12 -5
  4. package/components/hy-avatar/index.scss +2 -2
  5. package/components/hy-avatar/props.ts +4 -2
  6. package/components/hy-avatar/typing.d.ts +8 -1
  7. package/components/hy-calendar/hy-calendar.vue +1 -0
  8. package/components/hy-calendar/month.vue +25 -5
  9. package/components/hy-calendar/props.ts +1 -1
  10. package/components/hy-cascader/hy-cascader.vue +503 -0
  11. package/components/hy-cascader/index.scss +84 -0
  12. package/components/hy-cascader/props.ts +88 -0
  13. package/components/hy-cascader/typing.d.ts +34 -0
  14. package/components/hy-cell-item/index.scss +8 -9
  15. package/components/hy-check-button/typing.d.ts +12 -7
  16. package/components/hy-code-input/hy-code-input.vue +33 -11
  17. package/components/hy-code-input/index.scss +2 -2
  18. package/components/hy-code-input/typing.d.ts +4 -0
  19. package/components/hy-config-provider/hy-config-provider.vue +58 -53
  20. package/components/hy-config-provider/props.ts +1 -1
  21. package/components/hy-datetime-picker/props.ts +1 -1
  22. package/components/hy-datetime-picker/typing.d.ts +1 -1
  23. package/components/hy-dropdown/typing.d.ts +5 -0
  24. package/components/hy-float-button/index.scss +1 -1
  25. package/components/hy-form/typing.d.ts +6 -0
  26. package/components/hy-form-item/typing.d.ts +1 -1
  27. package/components/hy-grid/hy-grid.vue +12 -12
  28. package/components/hy-grid/index.scss +1 -2
  29. package/components/hy-grid/props.ts +7 -2
  30. package/components/hy-grid/typing.d.ts +1 -1
  31. package/components/hy-icon/typing.d.ts +52 -9
  32. package/components/hy-index-bar/index.scss +1 -1
  33. package/components/hy-keyboard/constants.ts +83 -0
  34. package/components/hy-keyboard/hy-keyboard.vue +375 -0
  35. package/components/hy-keyboard/index.scss +73 -0
  36. package/components/hy-keyboard/key/index.scss +79 -0
  37. package/components/hy-keyboard/key/index.vue +91 -0
  38. package/components/hy-keyboard/key/types.ts +1 -0
  39. package/components/hy-keyboard/props.ts +108 -0
  40. package/components/hy-keyboard/typing.d.ts +18 -0
  41. package/components/hy-line-progress/index.scss +3 -3
  42. package/components/hy-menu/index.scss +1 -1
  43. package/components/hy-modal/index.scss +2 -2
  44. package/components/hy-modal/typing.d.ts +2 -2
  45. package/components/hy-notice-bar/hy-column-notice.vue +54 -94
  46. package/components/hy-notice-bar/hy-notice-bar.vue +128 -96
  47. package/components/hy-notice-bar/hy-row-notice.vue +89 -121
  48. package/components/hy-notice-bar/index.scss +1 -1
  49. package/components/hy-notice-bar/props.ts +86 -85
  50. package/components/hy-notify/hy-notify.vue +9 -9
  51. package/components/hy-notify/typing.d.ts +22 -0
  52. package/components/hy-picker/hy-picker.vue +126 -149
  53. package/components/hy-picker/props.ts +4 -1
  54. package/components/hy-picker/typing.d.ts +22 -0
  55. package/components/hy-popover/index.scss +6 -6
  56. package/components/hy-popup/index.scss +6 -5
  57. package/components/hy-price/hy-price.vue +52 -23
  58. package/components/hy-price/props.ts +54 -54
  59. package/components/hy-radio/props.ts +1 -1
  60. package/components/hy-radio/typing.d.ts +5 -1
  61. package/components/hy-rolling-num/typing.d.ts +1 -0
  62. package/components/hy-scroll-list/index.scss +2 -2
  63. package/components/hy-search/index.scss +1 -1
  64. package/components/hy-signature/index.scss +1 -1
  65. package/components/hy-skeleton/index.scss +21 -4
  66. package/components/hy-slider/index.scss +3 -3
  67. package/components/hy-steps/hy-steps.vue +1 -1
  68. package/components/hy-steps/index.scss +3 -3
  69. package/components/hy-submit-bar/typing.d.ts +3 -3
  70. package/components/hy-subsection/index.scss +8 -8
  71. package/components/hy-swipe-action/hy-swipe-action.vue +34 -15
  72. package/components/hy-swipe-action/index.scss +0 -1
  73. package/components/hy-swiper/index.scss +2 -2
  74. package/components/hy-switch/index.scss +3 -3
  75. package/components/hy-switch/typing.d.ts +4 -0
  76. package/components/hy-tabbar/props.ts +2 -1
  77. package/components/hy-tabbar/typing.d.ts +5 -4
  78. package/components/hy-tabbar-group/index.scss +2 -2
  79. package/components/hy-tabs/hy-tabs.vue +338 -336
  80. package/components/hy-tabs/index.scss +7 -7
  81. package/components/hy-tabs/typing.d.ts +41 -33
  82. package/components/hy-tag/index.scss +1 -1
  83. package/components/hy-textarea/hy-textarea.vue +2 -2
  84. package/components/hy-textarea/index.scss +4 -4
  85. package/components/hy-textarea/typing.d.ts +4 -0
  86. package/components/hy-toast/hy-toast.vue +14 -6
  87. package/components/hy-toast/index.scss +1 -1
  88. package/components/hy-toast/typing.d.ts +42 -36
  89. package/components/hy-tooltip/hy-tooltip.vue +1 -1
  90. package/components/hy-tooltip/index.scss +7 -6
  91. package/components/hy-tooltip/props.ts +1 -1
  92. package/components/hy-upload/hy-upload.vue +16 -1
  93. package/components/hy-upload/index.scss +149 -144
  94. package/components/hy-warn/index.scss +1 -1
  95. package/components/index.ts +6 -0
  96. package/global.d.ts +2 -0
  97. package/libs/config/icon.ts +442 -430
  98. package/libs/css/_function.scss +7 -13
  99. package/libs/css/_mixin.scss +3 -3
  100. package/libs/css/common.scss +1 -1
  101. package/libs/css/iconfont.css +445 -441
  102. package/libs/css/theme.scss +54 -25
  103. package/libs/locale/lang/en-US.ts +4 -0
  104. package/libs/locale/lang/zh-CN.ts +4 -0
  105. package/libs/typing/index.ts +80 -0
  106. package/package.json +5 -2
  107. package/tags.json +1 -1
  108. package/web-types.json +1 -1
  109. package/components/hy-qrcode/qrcode.js.bak +0 -1434
@@ -1,430 +1,442 @@
1
- export const IconConfig = {
2
- /**
3
- * 加载动画
4
- * */
5
- LOADING: "loading",
6
- /**
7
- * 关闭
8
- * */
9
- CLOSE: "close",
10
- /**
11
- * 空星
12
- * */
13
- STAR: "collect",
14
- /**
15
- * 实星
16
- * */
17
- STAR_FILL: "collect-fill",
18
- /**
19
- * 微笑
20
- * */
21
- SMILE: "smile",
22
- /**
23
- * 微笑-实心
24
- * */
25
- SMILE_FILL: "smile-fill",
26
- /**
27
- * 难过-实心
28
- * */
29
- CRY_FILL: "cry-fill",
30
- /**
31
- * 打勾,勾选
32
- * */
33
- CHECK_MASK: "check-mask",
34
- /**
35
- * 编辑
36
- * */
37
- EDIT: "edit",
38
- /**
39
- * 商城
40
- * */
41
- SHOP: "shop",
42
- /**
43
- * 实心锁
44
- * */
45
- LOCK_FILL: "lock-fill",
46
- /**
47
- * 打开实心锁
48
- * */
49
- LOCK_OPEN_FILL: "lock-open-fill",
50
- /**
51
- * 空心锁
52
- * */
53
- LOCK: "lock",
54
- /**
55
- * 地点
56
- * */
57
- MAP: "map",
58
- /**
59
- * 地点-实心
60
- * */
61
- MAP_FILL: "map-fill",
62
- /**
63
- * 购物车
64
- * */
65
- SHOPPING_CART: "shopping-cart",
66
- /**
67
- * 购物车-实心
68
- * */
69
- SHOPPING_CART_FILL: "shopping-cart-fill",
70
- /**
71
- * 添加购物车
72
- * */
73
- SHOPPING_CART_ADD: "shopping-cart-add",
74
- /**
75
- * 购物袋
76
- * */
77
- SHOPPING_BAG: "shopping-bag",
78
- /**
79
- * 刷新
80
- * */
81
- REFRESH: "refresh",
82
- /**
83
- * 任务
84
- * */
85
- TASK: "task",
86
- /**
87
- * 标签
88
- * */
89
- TAG: "tag",
90
- /**
91
- * 左
92
- * */
93
- LEFT: "left",
94
- /**
95
- * 右
96
- * */
97
- RIGHT: "right",
98
- /**
99
- * 上
100
- * */
101
- UP: "up",
102
- /**
103
- * 下
104
- * */
105
- DOWN: "down",
106
- /**
107
- * 向上-实心
108
- * */
109
- ARROW_UP_FILL: "arrow-up-fill",
110
- /**
111
- * 向下-实心
112
- * */
113
- ARROW_DOWN_FILL: "arrow-down-fill",
114
- /**
115
- * 向左-实心
116
- * */
117
- ARROW_LEFT_FILL: "arrow-left-fill",
118
- /**
119
- * 向右-实心
120
- * */
121
- ARROW_RIGHT_FILL: "arrow-right-fill",
122
- /**
123
- * 向左双箭头
124
- * */
125
- ARROW_DOUBLE_LEFT: "arrow-double-left",
126
- /**
127
- * 向右双箭头
128
- * */
129
- ARROW_DOUBLE_RIGHT: "arrow-double-right",
130
- /**
131
- * 箭头向左
132
- * */
133
- ARROW_LEFTWARD: "arrow-leftward",
134
- /**
135
- * 箭头向右
136
- * */
137
- ARROW_RIGHTWARD: "arrow-rightward",
138
- /**
139
- * 历史
140
- * */
141
- HISTORY: "history",
142
- /**
143
- * 时间
144
- * */
145
- TIME: "time",
146
- /**
147
- * 网络
148
- * */
149
- NETWORK: "network",
150
- /**
151
- * 列表
152
- * */
153
- LIST_DOT: "list-dot",
154
- /**
155
- * 菜单
156
- * */
157
- MENU: "menu",
158
- /**
159
- * 搜索
160
- * */
161
- SEARCH: "search",
162
- /**
163
- * 加
164
- * */
165
- PLUS: "plus",
166
- /**
167
- * 减
168
- * */
169
- MINUS: "minus",
170
- /**
171
- * 提醒
172
- * */
173
- REMIND: "remind",
174
- /**
175
- * 提醒-实心
176
- * */
177
- REMIND_FILL: "remind-fill",
178
- /**
179
- * 警告
180
- * */
181
- WARNING: "warning",
182
- /**
183
- * 警告-实心
184
- * */
185
- WARNING_FILL: "warning-fill",
186
- /**
187
- * 删除
188
- * */
189
- DELETE: "delete",
190
- /**
191
- * 删除-实心
192
- * */
193
- DELETE_FILL: "delete-fill",
194
- /**
195
- * 筛选
196
- * */
197
- SCREEN: "screen",
198
- /**
199
- * 分类
200
- * */
201
- CLASS: "class",
202
- /**
203
- * 应用
204
- * */
205
- CLASS_FILL: "class-fill",
206
- /**
207
- * 首页
208
- * */
209
- HOME: "home",
210
- /**
211
- * 首页-实心
212
- * */
213
- HOME_FILL: "home-fill",
214
- /**
215
- * 我的
216
- * */
217
- MINE: "mine",
218
- /**
219
- * 我的-实心
220
- * */
221
- MINE_FILL: "mine-fill",
222
- /**
223
- * 设置
224
- * */
225
- SETTING: "setting",
226
- /**
227
- * 设置-实心
228
- * */
229
- SETTING_FILL: "setting-fill",
230
- /**
231
- * 关闭-圈
232
- * */
233
- CLOSE_CIRCLE: "close-circle",
234
- /**
235
- * 关闭-圈-实心
236
- * */
237
- CLOSE_CIRCLE_FILL: "close-circle-fill",
238
- /**
239
- * 感叹号
240
- * */
241
- NOTICE: "notice",
242
- /**
243
- * 注意
244
- * */
245
- NOTICE_CIRCLE: "notice-circle",
246
- /**
247
- * 注意-实心
248
- * */
249
- NOTICE_FILL: "notice-fill",
250
- /**
251
- * 成功
252
- * */
253
- SUCCESS: "success",
254
- /**
255
- * 成功-实心
256
- * */
257
- SUCCESS_FILL: "success-fill",
258
- /**
259
- * 疑问
260
- * */
261
- QUERY: "query",
262
- /**
263
- * 帮助
264
- * */
265
- HELP_CIRCLE: "help-circle",
266
- /**
267
- * 帮助-实心
268
- * */
269
- HELP_FILL: "help-fill",
270
- /**
271
- * 上传
272
- * */
273
- UPLOAD: "upload",
274
- /**
275
- * 转换
276
- * */
277
- SWITCH: "switch",
278
- /**
279
- * 下载
280
- * */
281
- DOWNLOAD: "download",
282
- /**
283
- * 保护
284
- * */
285
- SECURITY: "security",
286
- /**
287
- * 扫码
288
- * */
289
- SCAN: "scan",
290
- /**
291
- * 保存
292
- * */
293
- SAVE: "save",
294
- /**
295
- * 图片
296
- * */
297
- PHOTO: "picture",
298
- /**
299
- * 图片-实体
300
- * */
301
- PHOTO_FILL: "picture-fill",
302
- /**
303
- * pdf
304
- * */
305
- PDF: "pdf",
306
- /**
307
- * 导航
308
- * */
309
- NAVIGATION: "navigation",
310
- /**
311
- * 打印
312
- * */
313
- PRINT: "print",
314
- /**
315
- * layers
316
- * */
317
- LAYERS: "layers",
318
- /**
319
- * 链接
320
- * */
321
- LINK: "link",
322
- /**
323
- * 导出
324
- * */
325
- EXPORT: "export",
326
- /**
327
- * 省略号
328
- * */
329
- ELLIPSIS: "ellipsis",
330
- /**
331
- * 客服
332
- * */
333
- CUSTOMER_SERVICE: "customer-service",
334
- /**
335
- * 信息
336
- * */
337
- COMMENT: "comment",
338
- /**
339
- * 附件
340
- * */
341
- ATTACHMENT: "attachment",
342
- /**
343
- * 相机
344
- * */
345
- CAMERA: "camera",
346
- /**
347
- * 眼睛
348
- * */
349
- EYE: "eye",
350
- /**
351
- * 眼睛-关闭
352
- * */
353
- EYE_CLOSE: "eye-close",
354
- /**
355
- * 密码隐藏
356
- * */
357
- HIDE: "hide",
358
- /**
359
- * 日历
360
- * */
361
- CALENDAR: "calendar",
362
- /**
363
- * 复制
364
- * */
365
- COPY: "copy",
366
- /**
367
- * 订单
368
- * */
369
- ORDER: "order",
370
- /**
371
- * 消息
372
- * */
373
- MESSAGE: "message",
374
- /**
375
- * 消息-实心
376
- * */
377
- MESSAGE_FILL: "message-fill",
378
- /**
379
- * 通知
380
- * */
381
- NOTIFICATION_FILL: "systemprompt_fill",
382
- /**
383
- * 发送
384
- * */
385
- SEND: "send",
386
- /**
387
- * 分享
388
- * */
389
- SHARE: "share",
390
- /**
391
- * 分享-实心
392
- * */
393
- SHARE_FILL: "share-fill",
394
- /**
395
- * 打出电话
396
- * */
397
- TELEPHONE_OUT: "telephone-out",
398
- /**
399
- * 电话
400
- * */
401
- TELEPHONE: "telephone",
402
- /**
403
- * 电话-实心
404
- * */
405
- TELEPHONE_FILL: "telephone-fill",
406
- /**
407
- * 话筒
408
- * */
409
- MIC: "mic",
410
- };
411
-
412
- /**
413
- * 不同主题对应不同的图标
414
- * */
415
- export const iconName = (type: string) => {
416
- switch (type) {
417
- case "success":
418
- return IconConfig.CHECK_MASK;
419
- case "error":
420
- return IconConfig.CLOSE;
421
- case "warning":
422
- return IconConfig.NOTICE;
423
- case "info":
424
- return IconConfig.QUERY;
425
- case "primary":
426
- return IconConfig.MESSAGE_FILL;
427
- default:
428
- return IconConfig.CLOSE;
429
- }
430
- };
1
+ export const IconConfig = {
2
+ /**
3
+ * 加载动画
4
+ * */
5
+ LOADING: 'loading',
6
+ /**
7
+ * 关闭
8
+ * */
9
+ CLOSE: 'close',
10
+ /**
11
+ * 空星
12
+ * */
13
+ STAR: 'collect',
14
+ /**
15
+ * 实星
16
+ * */
17
+ STAR_FILL: 'collect-fill',
18
+ /**
19
+ * 微笑
20
+ * */
21
+ SMILE: 'smile',
22
+ /**
23
+ * 微笑-实心
24
+ * */
25
+ SMILE_FILL: 'smile-fill',
26
+ /**
27
+ * 难过-实心
28
+ * */
29
+ CRY_FILL: 'cry-fill',
30
+ /**
31
+ * 打勾,勾选
32
+ * */
33
+ CHECK_MASK: 'check-mask',
34
+ /**
35
+ * 编辑
36
+ * */
37
+ EDIT: 'edit',
38
+ /**
39
+ * 商城
40
+ * */
41
+ SHOP: 'shop',
42
+ /**
43
+ * 实心锁
44
+ * */
45
+ LOCK_FILL: 'lock-fill',
46
+ /**
47
+ * 打开实心锁
48
+ * */
49
+ LOCK_OPEN_FILL: 'lock-open-fill',
50
+ /**
51
+ * 空心锁
52
+ * */
53
+ LOCK: 'lock',
54
+ /**
55
+ * 地点
56
+ * */
57
+ MAP: 'map',
58
+ /**
59
+ * 地点-实心
60
+ * */
61
+ MAP_FILL: 'map-fill',
62
+ /**
63
+ * 购物车
64
+ * */
65
+ SHOPPING_CART: 'shopping-cart',
66
+ /**
67
+ * 购物车-实心
68
+ * */
69
+ SHOPPING_CART_FILL: 'shopping-cart-fill',
70
+ /**
71
+ * 添加购物车
72
+ * */
73
+ SHOPPING_CART_ADD: 'shopping-cart-add',
74
+ /**
75
+ * 购物袋
76
+ * */
77
+ SHOPPING_BAG: 'shopping-bag',
78
+ /**
79
+ * 刷新
80
+ * */
81
+ REFRESH: 'refresh',
82
+ /**
83
+ * 任务
84
+ * */
85
+ TASK: 'task',
86
+ /**
87
+ * 标签
88
+ * */
89
+ TAG: 'tag',
90
+ /**
91
+ * 左
92
+ * */
93
+ LEFT: 'left',
94
+ /**
95
+ * 右
96
+ * */
97
+ RIGHT: 'right',
98
+ /**
99
+ * 上
100
+ * */
101
+ UP: 'up',
102
+ /**
103
+ * 下
104
+ * */
105
+ DOWN: 'down',
106
+ /**
107
+ * 向上-实心
108
+ * */
109
+ ARROW_UP_FILL: 'arrow-up-fill',
110
+ /**
111
+ * 向下-实心
112
+ * */
113
+ ARROW_DOWN_FILL: 'arrow-down-fill',
114
+ /**
115
+ * 向左-实心
116
+ * */
117
+ ARROW_LEFT_FILL: 'arrow-left-fill',
118
+ /**
119
+ * 向右-实心
120
+ * */
121
+ ARROW_RIGHT_FILL: 'arrow-right-fill',
122
+ /**
123
+ * 向左双箭头
124
+ * */
125
+ ARROW_DOUBLE_LEFT: 'arrow-double-left',
126
+ /**
127
+ * 向右双箭头
128
+ * */
129
+ ARROW_DOUBLE_RIGHT: 'arrow-double-right',
130
+ /**
131
+ * 箭头向左
132
+ * */
133
+ ARROW_LEFTWARD: 'arrow-leftward',
134
+ /**
135
+ * 箭头向右
136
+ * */
137
+ ARROW_RIGHTWARD: 'arrow-rightward',
138
+ /**
139
+ * 历史
140
+ * */
141
+ HISTORY: 'history',
142
+ /**
143
+ * 时间
144
+ * */
145
+ TIME: 'time',
146
+ /**
147
+ * 网络
148
+ * */
149
+ NETWORK: 'network',
150
+ /**
151
+ * 列表
152
+ * */
153
+ LIST_DOT: 'list-dot',
154
+ /**
155
+ * 菜单
156
+ * */
157
+ MENU: 'menu',
158
+ /**
159
+ * 搜索
160
+ * */
161
+ SEARCH: 'search',
162
+ /**
163
+ * 加
164
+ * */
165
+ PLUS: 'plus',
166
+ /**
167
+ * 减
168
+ * */
169
+ MINUS: 'minus',
170
+ /**
171
+ * 提醒
172
+ * */
173
+ REMIND: 'remind',
174
+ /**
175
+ * 提醒-实心
176
+ * */
177
+ REMIND_FILL: 'remind-fill',
178
+ /**
179
+ * 警告
180
+ * */
181
+ WARNING: 'warning',
182
+ /**
183
+ * 警告-实心
184
+ * */
185
+ WARNING_FILL: 'warning-fill',
186
+ /**
187
+ * 删除
188
+ * */
189
+ DELETE: 'delete',
190
+ /**
191
+ * 删除-实心
192
+ * */
193
+ DELETE_FILL: 'delete-fill',
194
+ /**
195
+ * 筛选
196
+ * */
197
+ SCREEN: 'screen',
198
+ /**
199
+ * 分类
200
+ * */
201
+ CLASS: 'class',
202
+ /**
203
+ * 应用
204
+ * */
205
+ CLASS_FILL: 'class-fill',
206
+ /**
207
+ * 首页
208
+ * */
209
+ HOME: 'home',
210
+ /**
211
+ * 首页-实心
212
+ * */
213
+ HOME_FILL: 'home-fill',
214
+ /**
215
+ * 我的
216
+ * */
217
+ MINE: 'mine',
218
+ /**
219
+ * 我的-实心
220
+ * */
221
+ MINE_FILL: 'mine-fill',
222
+ /**
223
+ * 设置
224
+ * */
225
+ SETTING: 'setting',
226
+ /**
227
+ * 设置-实心
228
+ * */
229
+ SETTING_FILL: 'setting-fill',
230
+ /**
231
+ * 关闭-圈
232
+ * */
233
+ CLOSE_CIRCLE: 'close-circle',
234
+ /**
235
+ * 关闭-圈-实心
236
+ * */
237
+ CLOSE_CIRCLE_FILL: 'close-circle-fill',
238
+ /**
239
+ * 感叹号
240
+ * */
241
+ NOTICE: 'notice',
242
+ /**
243
+ * 注意
244
+ * */
245
+ NOTICE_CIRCLE: 'notice-circle',
246
+ /**
247
+ * 注意-实心
248
+ * */
249
+ NOTICE_FILL: 'notice-fill',
250
+ /**
251
+ * 成功
252
+ * */
253
+ SUCCESS: 'success',
254
+ /**
255
+ * 成功-实心
256
+ * */
257
+ SUCCESS_FILL: 'success-fill',
258
+ /**
259
+ * 疑问
260
+ * */
261
+ QUERY: 'query',
262
+ /**
263
+ * 帮助
264
+ * */
265
+ HELP_CIRCLE: 'help-circle',
266
+ /**
267
+ * 帮助-实心
268
+ * */
269
+ HELP_FILL: 'help-fill',
270
+ /**
271
+ * 上传
272
+ * */
273
+ UPLOAD: 'upload',
274
+ /**
275
+ * 转换
276
+ * */
277
+ SWITCH: 'switch',
278
+ /**
279
+ * 下载
280
+ * */
281
+ DOWNLOAD: 'download',
282
+ /**
283
+ * 保护
284
+ * */
285
+ SECURITY: 'security',
286
+ /**
287
+ * 扫码
288
+ * */
289
+ SCAN: 'scan',
290
+ /**
291
+ * 保存
292
+ * */
293
+ SAVE: 'save',
294
+ /**
295
+ * 图片
296
+ * */
297
+ PHOTO: 'picture',
298
+ /**
299
+ * 图片-实体
300
+ * */
301
+ PHOTO_FILL: 'picture-fill',
302
+ /**
303
+ * pdf
304
+ * */
305
+ PDF: 'pdf',
306
+ /**
307
+ * 导航
308
+ * */
309
+ NAVIGATION: 'navigation',
310
+ /**
311
+ * 打印
312
+ * */
313
+ PRINT: 'print',
314
+ /**
315
+ * layers
316
+ * */
317
+ LAYERS: 'layers',
318
+ /**
319
+ * 链接
320
+ * */
321
+ LINK: 'link',
322
+ /**
323
+ * 导出
324
+ * */
325
+ EXPORT: 'export',
326
+ /**
327
+ * 省略号
328
+ * */
329
+ ELLIPSIS: 'ellipsis',
330
+ /**
331
+ * 客服
332
+ * */
333
+ CUSTOMER_SERVICE: 'customer-service',
334
+ /**
335
+ * 信息
336
+ * */
337
+ COMMENT: 'comment',
338
+ /**
339
+ * 附件
340
+ * */
341
+ ATTACHMENT: 'attachment',
342
+ /**
343
+ * 相机
344
+ * */
345
+ CAMERA: 'camera',
346
+ /**
347
+ * 眼睛
348
+ * */
349
+ EYE: 'eye',
350
+ /**
351
+ * 眼睛-关闭
352
+ * */
353
+ EYE_CLOSE: 'eye-close',
354
+ /**
355
+ * 密码隐藏
356
+ * */
357
+ HIDE: 'hide',
358
+ /**
359
+ * 日历
360
+ * */
361
+ CALENDAR: 'calendar',
362
+ /**
363
+ * 复制
364
+ * */
365
+ COPY: 'copy',
366
+ /**
367
+ * 订单
368
+ * */
369
+ ORDER: 'order',
370
+ /**
371
+ * 消息
372
+ * */
373
+ MESSAGE: 'message',
374
+ /**
375
+ * 消息-实心
376
+ * */
377
+ MESSAGE_FILL: 'message-fill',
378
+ /**
379
+ * 通知
380
+ * */
381
+ NOTIFICATION_FILL: 'systemprompt_fill',
382
+ /**
383
+ * 发送
384
+ * */
385
+ SEND: 'send',
386
+ /**
387
+ * 分享
388
+ * */
389
+ SHARE: 'share',
390
+ /**
391
+ * 分享-实心
392
+ * */
393
+ SHARE_FILL: 'share-fill',
394
+ /**
395
+ * 打出电话
396
+ * */
397
+ TELEPHONE_OUT: 'telephone-out',
398
+ /**
399
+ * 电话
400
+ * */
401
+ TELEPHONE: 'telephone',
402
+ /**
403
+ * 电话-实心
404
+ * */
405
+ TELEPHONE_FILL: 'telephone-fill',
406
+ /**
407
+ * 话筒
408
+ * */
409
+ MIC: 'mic',
410
+ /**
411
+ * 话筒
412
+ * */
413
+ PIE_CHART: 'pie-chart',
414
+ /**
415
+ * 话筒
416
+ * */
417
+ BAR_CHART: 'bar-chart',
418
+ /**
419
+ * 话筒
420
+ * */
421
+ CLEAR: 'clear'
422
+ }
423
+
424
+ /**
425
+ * 不同主题对应不同的图标
426
+ * */
427
+ export const iconName = (type: string) => {
428
+ switch (type) {
429
+ case 'success':
430
+ return IconConfig.CHECK_MASK
431
+ case 'error':
432
+ return IconConfig.CLOSE
433
+ case 'warning':
434
+ return IconConfig.NOTICE
435
+ case 'info':
436
+ return IconConfig.QUERY
437
+ case 'primary':
438
+ return IconConfig.MESSAGE_FILL
439
+ default:
440
+ return IconConfig.CLOSE
441
+ }
442
+ }