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
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { DateModeEnum } from "./enum";
|
|
2
|
+
import { CheckboxColumnsVo } from "../../components/hy-check-button/typing";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* 类型
|
|
6
|
+
* */
|
|
7
|
+
export enum FormTypeEnum {
|
|
8
|
+
/**
|
|
9
|
+
* 上传文件
|
|
10
|
+
* */
|
|
11
|
+
UPLOAD = "upload",
|
|
12
|
+
/**
|
|
13
|
+
* 普通输入框
|
|
14
|
+
* */
|
|
15
|
+
TEXT = "text",
|
|
16
|
+
/**
|
|
17
|
+
* 数字输入框
|
|
18
|
+
* */
|
|
19
|
+
NUMBER = "number",
|
|
20
|
+
/**
|
|
21
|
+
* 密码输入框
|
|
22
|
+
* */
|
|
23
|
+
PASSWORD = "password",
|
|
24
|
+
/**
|
|
25
|
+
* 身份证id输入框
|
|
26
|
+
* */
|
|
27
|
+
ID_CARD = "idcard",
|
|
28
|
+
/**
|
|
29
|
+
* 单选
|
|
30
|
+
* */
|
|
31
|
+
RADIO = "radio",
|
|
32
|
+
/**
|
|
33
|
+
* 时间选择器
|
|
34
|
+
* */
|
|
35
|
+
DATE = "date",
|
|
36
|
+
/**
|
|
37
|
+
* 选择器
|
|
38
|
+
* */
|
|
39
|
+
SELECT = "select",
|
|
40
|
+
/**
|
|
41
|
+
* 地址选择器
|
|
42
|
+
* */
|
|
43
|
+
ADDRESS = "address",
|
|
44
|
+
/**
|
|
45
|
+
* 开关
|
|
46
|
+
* */
|
|
47
|
+
SWITCH = "switch",
|
|
48
|
+
/**
|
|
49
|
+
* 详情
|
|
50
|
+
* */
|
|
51
|
+
DETAIL = "detail",
|
|
52
|
+
/**
|
|
53
|
+
* 文本域
|
|
54
|
+
* */
|
|
55
|
+
TEXTAREA = "textarea",
|
|
56
|
+
/**
|
|
57
|
+
* 自定义
|
|
58
|
+
* */
|
|
59
|
+
CUSTOM = "custom"
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export interface FormColumnsType {
|
|
63
|
+
/**
|
|
64
|
+
* 标题
|
|
65
|
+
* */
|
|
66
|
+
label: string;
|
|
67
|
+
/**
|
|
68
|
+
* 字段
|
|
69
|
+
* */
|
|
70
|
+
field: string;
|
|
71
|
+
/**
|
|
72
|
+
* 是否需要校验
|
|
73
|
+
* */
|
|
74
|
+
required?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* 右固定
|
|
77
|
+
* */
|
|
78
|
+
right?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* @description 表单类型
|
|
81
|
+
* */
|
|
82
|
+
type: FormTypeEnum;
|
|
83
|
+
/**
|
|
84
|
+
* @description 文件最大上传数据
|
|
85
|
+
* */
|
|
86
|
+
maxCount?: number;
|
|
87
|
+
/**
|
|
88
|
+
* @description 是否禁用
|
|
89
|
+
* */
|
|
90
|
+
disabled?: boolean;
|
|
91
|
+
/**
|
|
92
|
+
* @description 输入框为空时的占位符
|
|
93
|
+
* */
|
|
94
|
+
placeholder?: string;
|
|
95
|
+
/**
|
|
96
|
+
* @description 清除输入框
|
|
97
|
+
* */
|
|
98
|
+
clearable?: boolean;
|
|
99
|
+
/**
|
|
100
|
+
* @description 只读
|
|
101
|
+
* */
|
|
102
|
+
readonly?: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* @description type = select时候必填
|
|
105
|
+
* */
|
|
106
|
+
select?: string[][] | { text: string; id: string }[][];
|
|
107
|
+
/**
|
|
108
|
+
* @description type = radio时候必填
|
|
109
|
+
* */
|
|
110
|
+
actions?: CheckboxColumnsVo[];
|
|
111
|
+
/**
|
|
112
|
+
* @description 输入框形状
|
|
113
|
+
* */
|
|
114
|
+
shape?: HyApp.ShapeType;
|
|
115
|
+
/**
|
|
116
|
+
* @description 输入框边框
|
|
117
|
+
* */
|
|
118
|
+
border?: HyApp.BorderType;
|
|
119
|
+
/**
|
|
120
|
+
* @description 输入框边框
|
|
121
|
+
* */
|
|
122
|
+
mode?: DateModeEnum;
|
|
123
|
+
/**
|
|
124
|
+
* @description 规则校验
|
|
125
|
+
* */
|
|
126
|
+
rules?: RulesVo | RulesVo[];
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export interface RulesVo {
|
|
130
|
+
/**
|
|
131
|
+
* @description 是否必填
|
|
132
|
+
* */
|
|
133
|
+
required?: boolean;
|
|
134
|
+
/**
|
|
135
|
+
* @description 校验不通过时的提示信息
|
|
136
|
+
* */
|
|
137
|
+
message?: string;
|
|
138
|
+
/**
|
|
139
|
+
* @description 表单事件校验
|
|
140
|
+
* */
|
|
141
|
+
trigger?: ("blur" | "change")[];
|
|
142
|
+
/**
|
|
143
|
+
* @description 最小值
|
|
144
|
+
* */
|
|
145
|
+
min?: number;
|
|
146
|
+
/**
|
|
147
|
+
* @description 最大值
|
|
148
|
+
* */
|
|
149
|
+
max?: number;
|
|
150
|
+
/**
|
|
151
|
+
* @description 基础正则校验
|
|
152
|
+
* phone - 手机号校验
|
|
153
|
+
* email - 邮箱校验
|
|
154
|
+
* password - 复杂密码校验
|
|
155
|
+
* */
|
|
156
|
+
type?: "phone" | "email" | "password";
|
|
157
|
+
/**
|
|
158
|
+
* @description 自定义校验规则
|
|
159
|
+
* */
|
|
160
|
+
validator?: (rule: any, value: string, callback?: Function) => boolean;
|
|
161
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export interface HttpRequestConfig {
|
|
2
|
+
/** 请求基地址 */
|
|
3
|
+
baseURL?: string;
|
|
4
|
+
/** 请求服务器接口地址 */
|
|
5
|
+
url?: string;
|
|
6
|
+
|
|
7
|
+
/** 请求查询参数,自动拼接为查询字符串 */
|
|
8
|
+
params?: AnyObject;
|
|
9
|
+
/** 请求体参数 */
|
|
10
|
+
data?: AnyObject;
|
|
11
|
+
|
|
12
|
+
/** 文件对应的 key */
|
|
13
|
+
name?: string;
|
|
14
|
+
/** HTTP 请求中其他额外的 form data */
|
|
15
|
+
formData?: AnyObject;
|
|
16
|
+
/** 要上传文件资源的路径。 */
|
|
17
|
+
filePath?: string;
|
|
18
|
+
/** 需要上传的文件列表。使用 files 时,filePath 和 name 不生效,App、H5( 2.6.15+) */
|
|
19
|
+
files?: Array<{
|
|
20
|
+
name?: string;
|
|
21
|
+
file?: File;
|
|
22
|
+
uri: string;
|
|
23
|
+
}>;
|
|
24
|
+
/** 要上传的文件对象,仅H5(2.6.15+)支持 */
|
|
25
|
+
file?: File;
|
|
26
|
+
|
|
27
|
+
/** 请求头信息 */
|
|
28
|
+
header?: AnyObject;
|
|
29
|
+
/** 请求方式 */
|
|
30
|
+
method?:
|
|
31
|
+
| "GET"
|
|
32
|
+
| "POST"
|
|
33
|
+
| "PUT"
|
|
34
|
+
| "DELETE"
|
|
35
|
+
| "CONNECT"
|
|
36
|
+
| "HEAD"
|
|
37
|
+
| "OPTIONS"
|
|
38
|
+
| "TRACE"
|
|
39
|
+
| "UPLOAD"
|
|
40
|
+
| "DOWNLOAD";
|
|
41
|
+
/** 如果设为 json,会尝试对返回的数据做一次 JSON.parse */
|
|
42
|
+
dataType?: string;
|
|
43
|
+
/** 设置响应的数据类型,支付宝小程序不支持 */
|
|
44
|
+
responseType?: "text" | "arraybuffer";
|
|
45
|
+
/** 自定义参数 */
|
|
46
|
+
custom?: AnyObject;
|
|
47
|
+
/** 超时时间,仅微信小程序(2.10.0)、支付宝小程序支持 */
|
|
48
|
+
timeout?: number;
|
|
49
|
+
/** DNS解析时优先使用ipv4,仅 App-Android 支持 (HBuilderX 2.8.0+) */
|
|
50
|
+
firstIpv4?: boolean;
|
|
51
|
+
/** 验证 ssl 证书 仅5+App安卓端支持(HBuilderX 2.3.3+) */
|
|
52
|
+
sslVerify?: boolean;
|
|
53
|
+
/** 跨域请求时是否携带凭证(cookies)仅H5支持(HBuilderX 2.6.15+) */
|
|
54
|
+
withCredentials?: boolean;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface HttpResponse<T = any> {
|
|
58
|
+
config: HttpRequestConfig;
|
|
59
|
+
statusCode: number;
|
|
60
|
+
cookies: Array<string>;
|
|
61
|
+
data: T;
|
|
62
|
+
errMsg: string;
|
|
63
|
+
header: AnyObject;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface HttpInterceptorManager<V, E = V> {
|
|
67
|
+
onFulfilled?: (config: V) => Promise<V> | V;
|
|
68
|
+
}
|
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
declare enum HyIconConfig {
|
|
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
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface Rect {
|
|
2
|
+
id: string; // 节点的 ID
|
|
3
|
+
dataset: Record<string, any>; // 节点的 dataset 属性
|
|
4
|
+
left: number; // 节点的左边界坐标
|
|
5
|
+
right: number; // 节点的右边界坐标
|
|
6
|
+
top: number; // 节点的上边界坐标
|
|
7
|
+
bottom: number; // 节点的下边界坐标
|
|
8
|
+
width: number; // 节点的宽度
|
|
9
|
+
height: number; // 节点的高度
|
|
10
|
+
}
|