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.
- package/README.md +42 -0
- package/api/http.ts +138 -0
- package/api/index.ts +1 -0
- package/common/index.ts +1 -0
- package/common/versionControl.ts +102 -0
- package/components/dialog/TheDialog.vue +128 -0
- package/components/dialog/index.ts +38 -0
- package/components/hy-address-picker/hy-address-picker.vue +262 -0
- package/components/hy-address-picker/props.ts +27 -0
- package/components/hy-address-picker/typing.d.ts +98 -0
- package/components/hy-avatar/hy-avatar.vue +217 -0
- package/components/hy-avatar/props.ts +20 -0
- package/components/hy-avatar/typing.d.ts +64 -0
- package/components/hy-back-top/hy-back-top.vue +71 -0
- package/components/hy-back-top/props.ts +23 -0
- package/components/hy-back-top/typing.d.ts +49 -0
- package/components/hy-badge/hy-badge.vue +155 -0
- package/components/hy-badge/props.ts +19 -0
- package/components/hy-badge/typing.d.ts +60 -0
- package/components/hy-button/hy-button.vue +394 -0
- package/components/hy-button/props.ts +36 -0
- package/components/hy-button/typing.d.ts +125 -0
- package/components/hy-card/hy-card.vue +198 -0
- package/components/hy-card/props.ts +29 -0
- package/components/hy-card/typing.d.ts +112 -0
- package/components/hy-cell/hy-cell.vue +268 -0
- package/components/hy-cell/props.ts +20 -0
- package/components/hy-cell/typing.d.ts +98 -0
- package/components/hy-check-button/hy-check-button.vue +71 -0
- package/components/hy-check-button/props.ts +20 -0
- package/components/hy-check-button/typing.d.ts +79 -0
- package/components/hy-checkbox/hy-checkbox.vue +299 -0
- package/components/hy-checkbox/props.ts +28 -0
- package/components/hy-checkbox/typing.d.ts +77 -0
- package/components/hy-datetime-picker/hy-datetime-picker.vue +584 -0
- package/components/hy-datetime-picker/props.ts +36 -0
- package/components/hy-datetime-picker/typing.d.ts +135 -0
- package/components/hy-divider/hy-divider.vue +164 -0
- package/components/hy-divider/props.ts +21 -0
- package/components/hy-divider/typing.d.ts +64 -0
- package/components/hy-empty/hy-empty.vue +122 -0
- package/components/hy-empty/props.ts +21 -0
- package/components/hy-empty/typing.d.ts +68 -0
- package/components/hy-folding-panel/hy-folding-panel.vue +94 -0
- package/components/hy-folding-panel/props.ts +17 -0
- package/components/hy-folding-panel/typing.d.ts +59 -0
- package/components/hy-form/hy-form.vue +372 -0
- package/components/hy-form/props.ts +15 -0
- package/components/hy-form/typing.d.ts +51 -0
- package/components/hy-grid/hy-grid.vue +126 -0
- package/components/hy-grid/props.ts +16 -0
- package/components/hy-grid/typing.d.ts +62 -0
- package/components/hy-icon/hy-icon.vue +207 -0
- package/components/hy-icon/props.ts +24 -0
- package/components/hy-icon/typing.d.ts +80 -0
- package/components/hy-input/hy-input.vue +402 -0
- package/components/hy-input/props.ts +41 -0
- package/components/hy-input/typing.d.ts +148 -0
- package/components/hy-line/hy-line.vue +44 -0
- package/components/hy-line/props.ts +12 -0
- package/components/hy-line/typing.d.ts +32 -0
- package/components/hy-line-progress/hy-line-progress.vue +118 -0
- package/components/hy-line-progress/props.ts +12 -0
- package/components/hy-line-progress/typing.d.ts +28 -0
- package/components/hy-list/hy-list.vue +250 -0
- package/components/hy-list/props.ts +18 -0
- package/components/hy-list/typing.d.ts +50 -0
- package/components/hy-login/ThePhoneLogin.vue +106 -0
- package/components/hy-login/TheUserLogin.vue +391 -0
- package/components/hy-login/hy-login.vue +283 -0
- package/components/hy-login/props.ts +32 -0
- package/components/hy-login/typing.d.ts +60 -0
- package/components/hy-modal/hy-modal.vue +240 -0
- package/components/hy-modal/props.ts +24 -0
- package/components/hy-modal/typing.d.ts +70 -0
- package/components/hy-navbar/hy-navbar.vue +194 -0
- package/components/hy-navbar/props.ts +24 -0
- package/components/hy-navbar/typing.d.ts +81 -0
- package/components/hy-notice-bar/hy-column-notice.vue +130 -0
- package/components/hy-notice-bar/hy-notice-bar.vue +82 -0
- package/components/hy-notice-bar/hy-row-notice.vue +182 -0
- package/components/hy-notice-bar/props.ts +19 -0
- package/components/hy-notice-bar/typing.d.ts +56 -0
- package/components/hy-number-step/hy-number-step.vue +428 -0
- package/components/hy-number-step/props.ts +29 -0
- package/components/hy-number-step/typing.d.ts +104 -0
- package/components/hy-overlay/hy-overlay.vue +54 -0
- package/components/hy-overlay/props.ts +10 -0
- package/components/hy-overlay/typing.d.ts +24 -0
- package/components/hy-picker/hy-picker.vue +499 -0
- package/components/hy-picker/props.ts +30 -0
- package/components/hy-picker/typing.d.ts +115 -0
- package/components/hy-popup/hy-popup.vue +269 -0
- package/components/hy-popup/props.ts +21 -0
- package/components/hy-popup/typing.d.ts +68 -0
- package/components/hy-price/hy-price.vue +86 -0
- package/components/hy-price/props.ts +13 -0
- package/components/hy-price/typing.d.ts +36 -0
- package/components/hy-qrcode/hy-qrcode.vue +153 -0
- package/components/hy-qrcode/props.ts +20 -0
- package/components/hy-qrcode/qrcode.js +1364 -0
- package/components/hy-qrcode/typing.d.ts +64 -0
- package/components/hy-radio/hy-radio.vue +319 -0
- package/components/hy-radio/props.ts +28 -0
- package/components/hy-radio/typing.d.ts +85 -0
- package/components/hy-rate/hy-rate.vue +261 -0
- package/components/hy-rate/props.ts +18 -0
- package/components/hy-rate/typing.d.ts +60 -0
- package/components/hy-read-more/hy-read-more.vue +134 -0
- package/components/hy-read-more/props.ts +20 -0
- package/components/hy-read-more/typing.d.ts +44 -0
- package/components/hy-safe-bottom/hy-safe-bottom.vue +64 -0
- package/components/hy-scroll-list/hy-scroll-list.vue +146 -0
- package/components/hy-scroll-list/props.ts +12 -0
- package/components/hy-scroll-list/typing.d.ts +28 -0
- package/components/hy-search/hy-search.vue +294 -0
- package/components/hy-search/props.ts +29 -0
- package/components/hy-search/typing.d.ts +109 -0
- package/components/hy-slider/hy-slider.vue +511 -0
- package/components/hy-slider/props.ts +21 -0
- package/components/hy-slider/typing.d.ts +68 -0
- package/components/hy-steps/hy-steps.vue +352 -0
- package/components/hy-steps/props.ts +15 -0
- package/components/hy-steps/typing.d.ts +58 -0
- package/components/hy-subsection/hy-subsection.vue +272 -0
- package/components/hy-subsection/props.ts +16 -0
- package/components/hy-subsection/typing.d.ts +44 -0
- package/components/hy-swiper/hy-swiper-indicator.vue +105 -0
- package/components/hy-swiper/hy-swiper.vue +242 -0
- package/components/hy-swiper/props.ts +30 -0
- package/components/hy-swiper/typing.d.ts +107 -0
- package/components/hy-switch/hy-switch.vue +168 -0
- package/components/hy-switch/props.ts +16 -0
- package/components/hy-switch/typing.d.ts +48 -0
- package/components/hy-tabs/hy-tabs.vue +416 -0
- package/components/hy-tabs/props.ts +26 -0
- package/components/hy-tabs/typing.d.ts +86 -0
- package/components/hy-tag/hy-tag.vue +374 -0
- package/components/hy-tag/props.ts +22 -0
- package/components/hy-tag/typing.d.ts +76 -0
- package/components/hy-textarea/hy-textarea.vue +229 -0
- package/components/hy-textarea/props.ts +26 -0
- package/components/hy-textarea/typing.d.ts +27 -0
- package/components/hy-tooltip/hy-tooltip.vue +332 -0
- package/components/hy-tooltip/props.ts +17 -0
- package/components/hy-tooltip/typing.d.ts +52 -0
- package/components/hy-transition/hy-transition.vue +150 -0
- package/components/hy-transition/index.scss +113 -0
- package/components/hy-transition/props.ts +10 -0
- package/components/hy-transition/typing.d.ts +36 -0
- package/components/hy-upload/hy-upload.vue +557 -0
- package/components/hy-upload/props.ts +29 -0
- package/components/hy-upload/typing.d.ts +147 -0
- package/components/hy-warn/hy-warn.vue +228 -0
- package/components/hy-warn/props.ts +14 -0
- package/components/hy-warn/typing.d.ts +40 -0
- package/components/hy-waterfall/hy-waterfall.vue +51 -0
- package/components/hy-waterfall/props.ts +10 -0
- package/components/hy-waterfall/typing.d.ts +20 -0
- package/components/index.ts +162 -0
- package/components/message/TheMessage.vue +169 -0
- package/components/message/index.ts +54 -0
- package/components/u-form/form.js +22 -0
- package/components/u-form/hy-form.vue +324 -0
- package/components/u-form/props.js +49 -0
- package/components/u-form/schema.js +1451 -0
- package/components/u-form/u-form.vue +267 -0
- package/components/u-form/utils.js +65 -0
- package/components/u-form-item/formItem.js +24 -0
- package/components/u-form-item/hy-form-item.vue +360 -0
- package/components/u-form-item/props.js +57 -0
- package/components/u-form-item/u-form-item.vue +294 -0
- package/components/yk-dialog/yk-dialog.vue +129 -0
- package/components/yk-tabbar/props.ts +49 -0
- package/components/yk-tabbar/yk-tabbar.vue +224 -0
- package/config/color.ts +6 -0
- package/config/icon.ts +366 -0
- package/config/index.ts +2 -0
- package/global/index.ts +6 -0
- package/global/register-properties.ts +37 -0
- package/index.ts +8 -0
- package/libs/css/common.scss +0 -0
- package/libs/css/iconfont.css +379 -0
- package/libs/css/iconfont.ttf +0 -0
- package/libs/css/mixin.scss +15 -0
- package/package.json +42 -0
- package/public/icons/error.png +0 -0
- package/public/icons/success.png +0 -0
- package/public/icons/warning.png +0 -0
- package/store/index.ts +1 -0
- package/store/userInfo.ts +25 -0
- package/theme.scss +94 -0
- package/typing/index.ts +7 -0
- package/typing/modules/common.d.ts +50 -0
- package/typing/modules/dialog.ts +17 -0
- package/typing/modules/enum.ts +67 -0
- package/typing/modules/form.ts +161 -0
- package/typing/modules/http.ts +68 -0
- package/typing/modules/icon.d.ts +366 -0
- package/typing/modules/img.ts +15 -0
- package/typing/modules/rect.ts +10 -0
- package/utils/address.json +5890 -0
- package/utils/base64.ts +119 -0
- package/utils/index.ts +3 -0
- package/utils/inside.ts +310 -0
- package/utils/utils.ts +446 -0
package/config/icon.ts
ADDED
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
export const IconConfig = {
|
|
2
|
+
/**
|
|
3
|
+
* @description 加载动画
|
|
4
|
+
* */
|
|
5
|
+
LOADING: "loading",
|
|
6
|
+
/**
|
|
7
|
+
* @description 关闭
|
|
8
|
+
* */
|
|
9
|
+
CLOSE: "close",
|
|
10
|
+
/**
|
|
11
|
+
* @description 空星
|
|
12
|
+
* */
|
|
13
|
+
STAR: "collect",
|
|
14
|
+
/**
|
|
15
|
+
* @description 实星
|
|
16
|
+
* */
|
|
17
|
+
STAR_FILL: "collect-fill",
|
|
18
|
+
/**
|
|
19
|
+
* @description 微笑
|
|
20
|
+
* */
|
|
21
|
+
SMILE: "smile",
|
|
22
|
+
/**
|
|
23
|
+
* @description 微笑-实心
|
|
24
|
+
* */
|
|
25
|
+
SMILE_FILL: "smile-fill",
|
|
26
|
+
/**
|
|
27
|
+
* @description 难过-实心
|
|
28
|
+
* */
|
|
29
|
+
CRY_FILL: "cry-fill",
|
|
30
|
+
/**
|
|
31
|
+
* @description 打勾,勾选
|
|
32
|
+
* */
|
|
33
|
+
CHECK_MASK: "check-mask",
|
|
34
|
+
/**
|
|
35
|
+
* @description 编辑
|
|
36
|
+
* */
|
|
37
|
+
EDIT: "edit",
|
|
38
|
+
/**
|
|
39
|
+
* @description 商城
|
|
40
|
+
* */
|
|
41
|
+
SHOP: "shop",
|
|
42
|
+
/**
|
|
43
|
+
* @description 实心锁
|
|
44
|
+
* */
|
|
45
|
+
LOCK_FILL: "lock-fill",
|
|
46
|
+
/**
|
|
47
|
+
* @description 打开实心锁
|
|
48
|
+
* */
|
|
49
|
+
LOCK_OPEN_FILL: "lock-open-fill",
|
|
50
|
+
/**
|
|
51
|
+
* @description 空心锁
|
|
52
|
+
* */
|
|
53
|
+
LOCK: "lock",
|
|
54
|
+
/**
|
|
55
|
+
* @description 地点
|
|
56
|
+
* */
|
|
57
|
+
MAP: "map",
|
|
58
|
+
/**
|
|
59
|
+
* @description 地点-实心
|
|
60
|
+
* */
|
|
61
|
+
MAP_FILL: "map-fill",
|
|
62
|
+
/**
|
|
63
|
+
* @description 购物车
|
|
64
|
+
* */
|
|
65
|
+
SHOPPING_CART: "shopping-cart",
|
|
66
|
+
/**
|
|
67
|
+
* @description 购物车-实心
|
|
68
|
+
* */
|
|
69
|
+
SHOPPING_CART_FILL: "shopping-cart-fill",
|
|
70
|
+
/**
|
|
71
|
+
* @description 添加购物车
|
|
72
|
+
* */
|
|
73
|
+
SHOPPING_CART_ADD: "shopping-cart-add",
|
|
74
|
+
/**
|
|
75
|
+
* @description 购物袋
|
|
76
|
+
* */
|
|
77
|
+
SHOPPING_BAG: "shopping-bag",
|
|
78
|
+
/**
|
|
79
|
+
* @description 刷新
|
|
80
|
+
* */
|
|
81
|
+
REFRESH: "refresh",
|
|
82
|
+
/**
|
|
83
|
+
* @description 任务
|
|
84
|
+
* */
|
|
85
|
+
TASK: "task",
|
|
86
|
+
/**
|
|
87
|
+
* @description 标签
|
|
88
|
+
* */
|
|
89
|
+
TAG: "tag",
|
|
90
|
+
/**
|
|
91
|
+
* @description 左
|
|
92
|
+
* */
|
|
93
|
+
LEFT: "left",
|
|
94
|
+
/**
|
|
95
|
+
* @description 右
|
|
96
|
+
* */
|
|
97
|
+
RIGHT: "right",
|
|
98
|
+
/**
|
|
99
|
+
* @description 上
|
|
100
|
+
* */
|
|
101
|
+
UP: "up",
|
|
102
|
+
/**
|
|
103
|
+
* @description 下
|
|
104
|
+
* */
|
|
105
|
+
DOWN: "down",
|
|
106
|
+
/**
|
|
107
|
+
* @description 向上-实心
|
|
108
|
+
* */
|
|
109
|
+
ARROW_UP_FILL: "arrow-up-fill",
|
|
110
|
+
/**
|
|
111
|
+
* @description 向下-实心
|
|
112
|
+
* */
|
|
113
|
+
ARROW_DOWN_FILL: "arrow-down-fill",
|
|
114
|
+
/**
|
|
115
|
+
* @description 向左-实心
|
|
116
|
+
* */
|
|
117
|
+
ARROW_LEFT_FILL: "arrow-left-fill",
|
|
118
|
+
/**
|
|
119
|
+
* @description 向右-实心
|
|
120
|
+
* */
|
|
121
|
+
ARROW_RIGHT_FILL: "arrow-right-fill",
|
|
122
|
+
/**
|
|
123
|
+
* @description 向左双箭头
|
|
124
|
+
* */
|
|
125
|
+
ARROW_DOUBLE_LEFT: "arrow-double-left",
|
|
126
|
+
/**
|
|
127
|
+
* @description 向右双箭头
|
|
128
|
+
* */
|
|
129
|
+
ARROW_DOUBLE_RIGHT: "arrow-double-right",
|
|
130
|
+
/**
|
|
131
|
+
* @description 箭头向左
|
|
132
|
+
* */
|
|
133
|
+
ARROW_LEFTWARD: "arrow-leftward",
|
|
134
|
+
/**
|
|
135
|
+
* @description 箭头向右
|
|
136
|
+
* */
|
|
137
|
+
ARROW_RIGHTWARD: "arrow-rightward",
|
|
138
|
+
/**
|
|
139
|
+
* @description 历史
|
|
140
|
+
* */
|
|
141
|
+
HISTORY: "history",
|
|
142
|
+
/**
|
|
143
|
+
* @description 时间
|
|
144
|
+
* */
|
|
145
|
+
TIME: "time",
|
|
146
|
+
/**
|
|
147
|
+
* @description 网络
|
|
148
|
+
* */
|
|
149
|
+
NETWORK: "network",
|
|
150
|
+
/**
|
|
151
|
+
* @description 列表
|
|
152
|
+
* */
|
|
153
|
+
LIST_DOT: "list-dot",
|
|
154
|
+
/**
|
|
155
|
+
* @description 菜单
|
|
156
|
+
* */
|
|
157
|
+
MENU: "menu",
|
|
158
|
+
/**
|
|
159
|
+
* @description 搜索
|
|
160
|
+
* */
|
|
161
|
+
SEARCH: "search",
|
|
162
|
+
/**
|
|
163
|
+
* @description 加
|
|
164
|
+
* */
|
|
165
|
+
PLUS: "plus",
|
|
166
|
+
/**
|
|
167
|
+
* @description 减
|
|
168
|
+
* */
|
|
169
|
+
MINUS: "minus",
|
|
170
|
+
/**
|
|
171
|
+
* @description 提醒
|
|
172
|
+
* */
|
|
173
|
+
REMIND: "remind",
|
|
174
|
+
/**
|
|
175
|
+
* @description 警告
|
|
176
|
+
* */
|
|
177
|
+
WARNING: "warning",
|
|
178
|
+
/**
|
|
179
|
+
* @description 警告-实心
|
|
180
|
+
* */
|
|
181
|
+
WARNING_FILL: "warning-fill",
|
|
182
|
+
/**
|
|
183
|
+
* @description 删除
|
|
184
|
+
* */
|
|
185
|
+
DELETE: "delete",
|
|
186
|
+
/**
|
|
187
|
+
* @description 删除-实心
|
|
188
|
+
* */
|
|
189
|
+
DELETE_FILL: "delete-fill",
|
|
190
|
+
/**
|
|
191
|
+
* @description 筛选
|
|
192
|
+
* */
|
|
193
|
+
SCREEN: "screen",
|
|
194
|
+
/**
|
|
195
|
+
* @description 分类
|
|
196
|
+
* */
|
|
197
|
+
CLASS: "class",
|
|
198
|
+
/**
|
|
199
|
+
* @description 应用
|
|
200
|
+
* */
|
|
201
|
+
CLASS_FILL: "class-fill",
|
|
202
|
+
/**
|
|
203
|
+
* @description 首页
|
|
204
|
+
* */
|
|
205
|
+
HOME: "home",
|
|
206
|
+
/**
|
|
207
|
+
* @description 首页-实心
|
|
208
|
+
* */
|
|
209
|
+
HOME_FILL: "home-fill",
|
|
210
|
+
/**
|
|
211
|
+
* @description 我的
|
|
212
|
+
* */
|
|
213
|
+
MINE: "mine",
|
|
214
|
+
/**
|
|
215
|
+
* @description 我的-实心
|
|
216
|
+
* */
|
|
217
|
+
MINE_FILL: "mine-fill",
|
|
218
|
+
/**
|
|
219
|
+
* @description 设置
|
|
220
|
+
* */
|
|
221
|
+
SETTING: "setting",
|
|
222
|
+
/**
|
|
223
|
+
* @description 关闭-圈
|
|
224
|
+
* */
|
|
225
|
+
CLOSE_CIRCLE: "close-circle",
|
|
226
|
+
/**
|
|
227
|
+
* @description 关闭-圈-实心
|
|
228
|
+
* */
|
|
229
|
+
CLOSE_CIRCLE_FILL: "close-circle-fill",
|
|
230
|
+
/**
|
|
231
|
+
* @description 注意
|
|
232
|
+
* */
|
|
233
|
+
NOTICE: "notice",
|
|
234
|
+
/**
|
|
235
|
+
* @description 注意-实心
|
|
236
|
+
* */
|
|
237
|
+
NOTICE_FILL: "notice-fill",
|
|
238
|
+
/**
|
|
239
|
+
* @description 成功
|
|
240
|
+
* */
|
|
241
|
+
SUCCESS: "success",
|
|
242
|
+
/**
|
|
243
|
+
* @description 成功-实心
|
|
244
|
+
* */
|
|
245
|
+
SUCCESS_FILL: "success-fill",
|
|
246
|
+
/**
|
|
247
|
+
* @description 帮助
|
|
248
|
+
* */
|
|
249
|
+
HELP: "help",
|
|
250
|
+
/**
|
|
251
|
+
* @description 帮助-实心
|
|
252
|
+
* */
|
|
253
|
+
HELP_FILL: "help-fill",
|
|
254
|
+
/**
|
|
255
|
+
* @description 上传
|
|
256
|
+
* */
|
|
257
|
+
UPLOAD: "upload",
|
|
258
|
+
/**
|
|
259
|
+
* @description 转换
|
|
260
|
+
* */
|
|
261
|
+
SWITCH: "switch",
|
|
262
|
+
/**
|
|
263
|
+
* @description 下载
|
|
264
|
+
* */
|
|
265
|
+
DOWNLOAD: "download",
|
|
266
|
+
/**
|
|
267
|
+
* @description 保护
|
|
268
|
+
* */
|
|
269
|
+
SECURITY: "security",
|
|
270
|
+
/**
|
|
271
|
+
* @description 扫码
|
|
272
|
+
* */
|
|
273
|
+
SCAN: "scan",
|
|
274
|
+
/**
|
|
275
|
+
* @description 保存
|
|
276
|
+
* */
|
|
277
|
+
SAVE: "save",
|
|
278
|
+
/**
|
|
279
|
+
* @description 图片
|
|
280
|
+
* */
|
|
281
|
+
PHOTO: "picture",
|
|
282
|
+
/**
|
|
283
|
+
* @description pdf
|
|
284
|
+
* */
|
|
285
|
+
PDF: "pdf",
|
|
286
|
+
/**
|
|
287
|
+
* @description 导航
|
|
288
|
+
* */
|
|
289
|
+
NAVIGATION: "navigation",
|
|
290
|
+
/**
|
|
291
|
+
* @description 打印
|
|
292
|
+
* */
|
|
293
|
+
PRINT: "print",
|
|
294
|
+
/**
|
|
295
|
+
* @description layers
|
|
296
|
+
* */
|
|
297
|
+
LAYERS: "layers",
|
|
298
|
+
/**
|
|
299
|
+
* @description 链接
|
|
300
|
+
* */
|
|
301
|
+
LINK: "link",
|
|
302
|
+
/**
|
|
303
|
+
* @description 导出
|
|
304
|
+
* */
|
|
305
|
+
EXPORT: "export",
|
|
306
|
+
/**
|
|
307
|
+
* @description 省略号
|
|
308
|
+
* */
|
|
309
|
+
ELLIPSIS: "ellipsis",
|
|
310
|
+
/**
|
|
311
|
+
* @description 客服
|
|
312
|
+
* */
|
|
313
|
+
CUSTOMER_SERVICE: "customer-service",
|
|
314
|
+
/**
|
|
315
|
+
* @description 信息
|
|
316
|
+
* */
|
|
317
|
+
COMMENT: "comment",
|
|
318
|
+
/**
|
|
319
|
+
* @description 附件
|
|
320
|
+
* */
|
|
321
|
+
ATTACHMENT: "attachment",
|
|
322
|
+
/**
|
|
323
|
+
* @description 相机
|
|
324
|
+
* */
|
|
325
|
+
CAMERA: "camera",
|
|
326
|
+
/**
|
|
327
|
+
* @description 眼睛
|
|
328
|
+
* */
|
|
329
|
+
EYE: "eye",
|
|
330
|
+
/**
|
|
331
|
+
* @description 日历
|
|
332
|
+
* */
|
|
333
|
+
CALENDAR: "calendar",
|
|
334
|
+
/**
|
|
335
|
+
* @description 复制
|
|
336
|
+
* */
|
|
337
|
+
COPY: "copy",
|
|
338
|
+
/**
|
|
339
|
+
* @description 订单
|
|
340
|
+
* */
|
|
341
|
+
ORDER: "order",
|
|
342
|
+
/**
|
|
343
|
+
* @description 消息
|
|
344
|
+
* */
|
|
345
|
+
MESSAGE: "message",
|
|
346
|
+
/**
|
|
347
|
+
* @description 消息-实心
|
|
348
|
+
* */
|
|
349
|
+
MESSAGE_FILL: "message-fill",
|
|
350
|
+
/**
|
|
351
|
+
* @description 通知
|
|
352
|
+
* */
|
|
353
|
+
NOTIFICATION_FILL: "systemprompt_fill",
|
|
354
|
+
/**
|
|
355
|
+
* @description 发送
|
|
356
|
+
* */
|
|
357
|
+
SEND: "send",
|
|
358
|
+
/**
|
|
359
|
+
* @description 分享
|
|
360
|
+
* */
|
|
361
|
+
SHARE: "share",
|
|
362
|
+
/**
|
|
363
|
+
* @description 分享-实心
|
|
364
|
+
* */
|
|
365
|
+
SHARE_FILL: "share-fill"
|
|
366
|
+
};
|
package/config/index.ts
ADDED
package/global/index.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { App } from "vue";
|
|
2
|
+
import { addUnit, bytesToSize, formatTime, random } from "../utils";
|
|
3
|
+
export default function registerProperties(app: App) {
|
|
4
|
+
app.config.globalProperties.$hy = {
|
|
5
|
+
/**
|
|
6
|
+
* @description 添加单位,如果有rpx,upx,%,px等单位结尾或者值为auto,直接返回,否则加上px单位结尾
|
|
7
|
+
* @param {String|Number} value 需要添加单位的值
|
|
8
|
+
* @param {String} unit 添加的单位名 比如px
|
|
9
|
+
* @returns {String}
|
|
10
|
+
*/
|
|
11
|
+
addUnit: (value: string | number, unit: string): string =>
|
|
12
|
+
addUnit(value, unit),
|
|
13
|
+
/**
|
|
14
|
+
* 获取 [min,max]的随机数
|
|
15
|
+
* Math.floor(Math.random()*10) 可均衡获取 0 到 9 的随机整数
|
|
16
|
+
* @param min 最小值
|
|
17
|
+
* @param max 最大值
|
|
18
|
+
* @returns {Number} 随机数
|
|
19
|
+
*/
|
|
20
|
+
random: (min: string | number, max: string | number): number =>
|
|
21
|
+
random(min, max),
|
|
22
|
+
/**
|
|
23
|
+
* 时间戳转换成字符串
|
|
24
|
+
* @param timestamp 时间戳或者时间格式,例:1702051200000、Sat Apr 06 2024 11:35:56 GMT+0800 (中国标准时间)
|
|
25
|
+
* @param fmt 例:YYYY-mm-dd HH:MM:SS / YYYY-mm-dd
|
|
26
|
+
* @returns {String} date 例:2023-12-09
|
|
27
|
+
*/
|
|
28
|
+
formatTime: (timestamp: string, fmt: string): string =>
|
|
29
|
+
formatTime(timestamp, fmt),
|
|
30
|
+
/**
|
|
31
|
+
* 字节转化(b/KB/MB/GB)单位
|
|
32
|
+
* @param {Number} bytes 字节
|
|
33
|
+
* @returns {String} 返回单位大小
|
|
34
|
+
* */
|
|
35
|
+
bytesToSize: (bytes: number): string => bytesToSize(bytes)
|
|
36
|
+
};
|
|
37
|
+
}
|
package/index.ts
ADDED
|
File without changes
|