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.
@@ -1,139 +1,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 text - 文本
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
- }
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
+ }