hy-app 0.5.11 → 0.5.12
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/components/hy-button/hy-button.vue +289 -275
- package/components/hy-button/index.scss +24 -1
- package/components/hy-button/props.ts +143 -135
- package/components/hy-button/typing.d.ts +35 -30
- package/components/hy-coupon/hy-coupon.vue +183 -172
- package/components/hy-coupon/index.scss +12 -16
- package/components/hy-coupon/props.ts +108 -103
- package/components/hy-form/hy-form.vue +220 -220
- package/components/hy-input/hy-input.vue +333 -333
- package/components/hy-input/index.scss +1 -2
- package/components/hy-input/props.ts +186 -186
- package/components/hy-notice-bar/hy-row-notice.vue +121 -121
- package/components/hy-parse/node/node.vue +619 -422
- package/components/hy-parse/parser.js +1253 -1060
- package/components/hy-table/hy-table.vue +579 -358
- package/components/hy-table/index.scss +134 -159
- package/components/hy-table/props.ts +62 -47
- package/components/hy-table/typing.d.ts +29 -34
- package/components/hy-tabs/hy-tabs.vue +335 -335
- package/components/hy-text/hy-text.vue +237 -237
- package/components/hy-text/props.ts +115 -115
- package/components/hy-textarea/hy-textarea.vue +198 -197
- package/components/hy-textarea/index.scss +2 -3
- package/components/hy-toast/hy-toast.vue +190 -190
- package/libs/css/theme.scss +1 -0
- package/libs/css/vars.scss +2 -2
- package/libs/typing/modules/common.d.ts +139 -139
- package/libs/utils/inside.ts +336 -350
- package/package.json +2 -2
- package/web-types.json +1 -1
|
@@ -1,139 +1,139 @@
|
|
|
1
|
-
declare namespace HyApp {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
}
|
|
1
|
+
declare namespace HyApp {
|
|
2
|
+
/**
|
|
3
|
+
* @description dark:暗色、light:亮色
|
|
4
|
+
* */
|
|
5
|
+
type DarkModeType = 'dark' | 'light'
|
|
6
|
+
/**
|
|
7
|
+
* @description 主题类型 primary-默认,success-错误,warning-警告,error-错误,info-信息
|
|
8
|
+
* */
|
|
9
|
+
type ThemeType = 'primary' | 'success' | 'warning' | 'error' | 'info'
|
|
10
|
+
/**
|
|
11
|
+
* @description 大小
|
|
12
|
+
* */
|
|
13
|
+
type SizeType = 'small' | 'medium' | 'large'
|
|
14
|
+
/**
|
|
15
|
+
* @description 形状:circle-圆形,square-方块
|
|
16
|
+
* */
|
|
17
|
+
type ShapeType = 'circle' | 'square'
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @description 形状:flex-start-开头排序,flex-start-结尾排序,space-between-两边靠边,space-around-两边留一半空隙,space-evenly-两边留一个空隙,center-居中
|
|
21
|
+
* */
|
|
22
|
+
type JustifyContentType =
|
|
23
|
+
| 'flex-start'
|
|
24
|
+
| 'flex-end'
|
|
25
|
+
| 'space-between'
|
|
26
|
+
| 'space-around'
|
|
27
|
+
| 'space-evenly'
|
|
28
|
+
| 'center'
|
|
29
|
+
/**
|
|
30
|
+
* @description 排列方式,row-横向,column-纵向
|
|
31
|
+
* */
|
|
32
|
+
type DirectionType = 'row' | 'column'
|
|
33
|
+
/**
|
|
34
|
+
* @description 布局方式;left-左,right-右,top-上,bottom-下,center-中
|
|
35
|
+
* */
|
|
36
|
+
type LayoutType = LeftRightType | TopBottomType | 'center'
|
|
37
|
+
/**
|
|
38
|
+
* @description 布局方式:left-左,right-右
|
|
39
|
+
* */
|
|
40
|
+
type LeftRightType = 'left' | 'right'
|
|
41
|
+
/**
|
|
42
|
+
* @description 布局方式:left-左,right-右,center-中间
|
|
43
|
+
* */
|
|
44
|
+
type RowCenterType = LeftRightType | 'center'
|
|
45
|
+
/**
|
|
46
|
+
* @description 布局方式:top-上,bottom-下,center-中间
|
|
47
|
+
* */
|
|
48
|
+
type ColumnCenterType = TopBottomType | 'center'
|
|
49
|
+
/**
|
|
50
|
+
* @description 布局方式:top-上,bottom-下
|
|
51
|
+
* */
|
|
52
|
+
type TopBottomType = 'top' | 'bottom'
|
|
53
|
+
/**
|
|
54
|
+
* @description 主题亮度:light-亮色,dark-暗色
|
|
55
|
+
* */
|
|
56
|
+
type ThemeVo = 'light' | 'dark'
|
|
57
|
+
/**
|
|
58
|
+
* @description 边框:surround-四周有边框,bottom-底部有边框,none-无边框
|
|
59
|
+
* */
|
|
60
|
+
type BorderType = 'surround' | 'bottom' | 'none'
|
|
61
|
+
/**
|
|
62
|
+
* @description 轮播图指示点样式:line-线形,dot-点
|
|
63
|
+
* */
|
|
64
|
+
type SwiperIndicatorModeType = 'line' | 'dot'
|
|
65
|
+
/**
|
|
66
|
+
* @description 输入框输入类型
|
|
67
|
+
* @desc test - 文本
|
|
68
|
+
* @desc idcard - 身份证id
|
|
69
|
+
* @desc number - 数字
|
|
70
|
+
* @desc digit - 数字输入框,不支持小数点和复数
|
|
71
|
+
* @desc password - 密码
|
|
72
|
+
* */
|
|
73
|
+
type InputType = 'text' | 'idcard' | 'number' | 'digit' | 'password'
|
|
74
|
+
/**
|
|
75
|
+
* @description 图片mode,详细见uniApp
|
|
76
|
+
* */
|
|
77
|
+
type ImageModeVo =
|
|
78
|
+
| 'scaleToFill'
|
|
79
|
+
| 'aspectFit'
|
|
80
|
+
| 'aspectFill'
|
|
81
|
+
| 'widthFix'
|
|
82
|
+
| 'heightFix'
|
|
83
|
+
| 'top'
|
|
84
|
+
| 'bottom'
|
|
85
|
+
| 'center'
|
|
86
|
+
| 'left'
|
|
87
|
+
| 'right'
|
|
88
|
+
| 'top left'
|
|
89
|
+
| 'top right'
|
|
90
|
+
| 'bottom left'
|
|
91
|
+
| 'bottom right'
|
|
92
|
+
/**
|
|
93
|
+
* @description 导航类型:
|
|
94
|
+
* */
|
|
95
|
+
type NavigationType = 'navigateTo' | 'redirectTo' | 'switchTab' | 'reLaunch'
|
|
96
|
+
/**
|
|
97
|
+
* @description 旋转方向
|
|
98
|
+
* */
|
|
99
|
+
type RotateType = 'left' | 'up' | 'down' | 'right'
|
|
100
|
+
/**
|
|
101
|
+
* @description 上传类型
|
|
102
|
+
* */
|
|
103
|
+
type FileType = 'video' | 'media' | 'all' | 'file' | 'image'
|
|
104
|
+
/**
|
|
105
|
+
* @description 加载模式:circle-圆圈,spinner-经典花,semicircle-半圆
|
|
106
|
+
* */
|
|
107
|
+
type LoadingMode = 'spinner' | 'circle' | 'semicircle'
|
|
108
|
+
/**
|
|
109
|
+
* @description 动画类型
|
|
110
|
+
* */
|
|
111
|
+
type TransitionMode =
|
|
112
|
+
| 'fade'
|
|
113
|
+
| 'fade-up'
|
|
114
|
+
| 'fade-down'
|
|
115
|
+
| 'fade-left'
|
|
116
|
+
| 'fade-right'
|
|
117
|
+
| 'fade-zoom'
|
|
118
|
+
| 'slide-up'
|
|
119
|
+
| 'slide-down'
|
|
120
|
+
| 'slide-left'
|
|
121
|
+
| 'slide-right'
|
|
122
|
+
| 'zoom-in'
|
|
123
|
+
| 'zoom-out'
|
|
124
|
+
/** label位置 */
|
|
125
|
+
type LabelPosition = 'left' | 'top'
|
|
126
|
+
interface IFieldNames {
|
|
127
|
+
/**
|
|
128
|
+
* @description 自定义columns的文本键
|
|
129
|
+
* */
|
|
130
|
+
name: string
|
|
131
|
+
/**
|
|
132
|
+
* @description 自定义columns的值键
|
|
133
|
+
* */
|
|
134
|
+
value: string
|
|
135
|
+
}
|
|
136
|
+
type FieldNamesType = {
|
|
137
|
+
[key in keyof IFieldNames as IFieldNames[key]]?: string | number | boolean
|
|
138
|
+
}
|
|
139
|
+
}
|