hy-app 0.5.4 → 0.5.5

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 (89) hide show
  1. package/components/hy-action-sheet/typing.d.ts +1 -63
  2. package/components/hy-address-picker/hy-address-picker.vue +7 -6
  3. package/components/hy-address-picker/typing.d.ts +0 -84
  4. package/components/hy-avatar/typing.d.ts +0 -66
  5. package/components/hy-back-top/typing.d.ts +0 -47
  6. package/components/hy-badge/typing.d.ts +0 -62
  7. package/components/hy-button/typing.d.ts +28 -162
  8. package/components/hy-calendar/hy-calendar.vue +2 -2
  9. package/components/hy-calendar/typing.d.ts +0 -128
  10. package/components/hy-card/hy-card.vue +12 -12
  11. package/components/hy-card/index.scss +17 -5
  12. package/components/hy-card/props.ts +1 -2
  13. package/components/hy-card/typing.d.ts +1 -114
  14. package/components/hy-cell/props.ts +1 -1
  15. package/components/hy-cell/typing.d.ts +0 -55
  16. package/components/hy-check-button/typing.d.ts +0 -43
  17. package/components/hy-checkbox/typing.d.ts +1 -73
  18. package/components/hy-checkbox-group/typing.d.ts +0 -65
  19. package/components/hy-code-input/typing.d.ts +0 -70
  20. package/components/hy-count-down/typing.d.ts +1 -20
  21. package/components/hy-count-to/typing.d.ts +0 -47
  22. package/components/hy-coupon/typing.d.ts +0 -133
  23. package/components/hy-datetime-picker/typing.d.ts +0 -119
  24. package/components/hy-dropdown-item/typing.d.ts +12 -31
  25. package/components/hy-empty/typing.d.ts +1 -59
  26. package/components/hy-float-button/typing.d.ts +24 -113
  27. package/components/hy-form/typing.d.ts +0 -27
  28. package/components/hy-form-item/hy-form-item.vue +7 -5
  29. package/components/hy-form-item/typing.d.ts +0 -19
  30. package/components/hy-grid/typing.d.ts +0 -43
  31. package/components/hy-icon/typing.d.ts +0 -86
  32. package/components/hy-image/typing.d.ts +0 -80
  33. package/components/hy-input/typing.d.ts +0 -149
  34. package/components/hy-list/typing.d.ts +0 -51
  35. package/components/hy-menu/typing.d.ts +0 -35
  36. package/components/hy-modal/typing.d.ts +9 -84
  37. package/components/hy-navbar/typing.d.ts +0 -81
  38. package/components/hy-notice-bar/typing.d.ts +0 -65
  39. package/components/hy-number-step/typing.d.ts +0 -110
  40. package/components/hy-overlay/typing.d.ts +2 -27
  41. package/components/hy-pagination/typing.d.ts +6 -49
  42. package/components/hy-picker/typing.d.ts +27 -124
  43. package/components/hy-popover/typing.d.ts +25 -66
  44. package/components/hy-popup/typing.d.ts +8 -77
  45. package/components/hy-price/typing.d.ts +0 -41
  46. package/components/hy-qrcode/hy-qrcode.vue +3 -4
  47. package/components/hy-qrcode/index.scss +3 -3
  48. package/components/hy-qrcode/qrcode.js +0 -138
  49. package/components/hy-qrcode/typing.d.ts +0 -66
  50. package/components/hy-radio/typing.d.ts +1 -86
  51. package/components/hy-rate/typing.d.ts +0 -62
  52. package/components/hy-read-more/typing.d.ts +4 -49
  53. package/components/hy-scroll-list/typing.d.ts +4 -33
  54. package/components/hy-search/typing.d.ts +19 -120
  55. package/components/hy-signature/typing.d.ts +0 -101
  56. package/components/hy-slider/typing.d.ts +8 -77
  57. package/components/hy-steps/typing.d.ts +16 -60
  58. package/components/hy-submit-bar/typing.d.ts +0 -72
  59. package/components/hy-subsection/typing.d.ts +0 -49
  60. package/components/hy-swipe-action/index.ts +13 -22
  61. package/components/hy-swipe-action/typing.d.ts +1 -38
  62. package/components/hy-swiper/typing.d.ts +0 -101
  63. package/components/hy-switch/typing.d.ts +0 -62
  64. package/components/hy-tabbar/index.scss +1 -1
  65. package/components/hy-tabbar/typing.d.ts +0 -40
  66. package/components/hy-tabbar-item/typing.ts +0 -12
  67. package/components/hy-tabs/typing.d.ts +25 -92
  68. package/components/hy-tag/typing.d.ts +9 -78
  69. package/components/hy-text/typing.d.ts +3 -100
  70. package/components/hy-textarea/typing.d.ts +0 -27
  71. package/components/hy-tooltip/props.ts +0 -1
  72. package/components/hy-tooltip/typing.d.ts +2 -55
  73. package/components/hy-transition/typing.d.ts +14 -43
  74. package/components/hy-upload/typing.d.ts +56 -164
  75. package/components/hy-warn/typing.d.ts +4 -45
  76. package/package.json +2 -2
  77. package/web-types.json +1 -1
  78. package/components/hy-config-provider/typing.d.ts +0 -24
  79. package/components/hy-divider/typing.d.ts +0 -64
  80. package/components/hy-dropdown/typing.d.ts +0 -48
  81. package/components/hy-form-group/typing.d.ts +0 -0
  82. package/components/hy-line/typing.d.ts +0 -32
  83. package/components/hy-line-progress/typing.d.ts +0 -32
  84. package/components/hy-loading/typing.d.ts +0 -52
  85. package/components/hy-notify/typing.d.ts +0 -48
  86. package/components/hy-status-bar/typing.d.ts +0 -12
  87. package/components/hy-tabbar-group/README.md +0 -326
  88. package/components/hy-waterfall/typing.d.ts +0 -14
  89. package/components/hy-watermark/typing.d.ts +0 -76
@@ -1,45 +1,16 @@
1
- import type { CSSProperties } from 'vue'
2
-
3
- export default interface HyTransitionProps {
4
- /**
5
- * @description 是否展示组件
6
- * */
7
- show: boolean
8
- /**
9
- * @description 使用的动画模式(默认:fade)
10
- * */
11
- mode?: HyApp.TransitionMode
12
- /**
13
- * @description 动画的执行时间,单位ms
14
- * */
15
- duration?: number
16
- /**
17
- * @description 使用的动画过渡函数(默认:ease-out)
18
- * */
19
- timingFunction?: string
20
- /**
21
- * @description 定义需要用到的外部样式
22
- * */
23
- customStyle?: CSSProperties
24
- /**
25
- * @description 定义组件的类名
26
- * */
27
- customClass?: string
28
- }
29
-
30
1
  export interface ITransitionEmits {
31
- /** 进入中触发 */
32
- (e: 'enter'): void
33
- /** 离开中触发 */
34
- (e: 'leave'): void
35
- /** 点击触发 */
36
- (e: 'click'): void
37
- /** 进入后触发 */
38
- (e: 'afterEnter'): void
39
- /** 离开后触发 */
40
- (e: 'afterLeave'): void
41
- /** 进入前触发 */
42
- (e: 'beforeEnter'): void
43
- /** 离开前触发 */
44
- (e: 'beforeLeave'): void
2
+ /** 进入中触发 */
3
+ (e: 'enter'): void
4
+ /** 离开中触发 */
5
+ (e: 'leave'): void
6
+ /** 点击触发 */
7
+ (e: 'click'): void
8
+ /** 进入后触发 */
9
+ (e: 'afterEnter'): void
10
+ /** 离开后触发 */
11
+ (e: 'afterLeave'): void
12
+ /** 进入前触发 */
13
+ (e: 'beforeEnter'): void
14
+ /** 离开前触发 */
15
+ (e: 'beforeLeave'): void
45
16
  }
@@ -1,173 +1,65 @@
1
- import type { CSSProperties } from "vue";
2
-
3
1
  export interface FileVo {
4
- /**
5
- * 上传文件本地地址链接
6
- * */
7
- url?: string;
8
- /**
9
- * 上传文件类型
10
- * */
11
- type?: "image" | "video" | "file";
12
- /**
13
- * 上传文件本地地址链接
14
- * */
15
- thumb?: string;
16
- /**
17
- * 文件大小
18
- * */
19
- size?: number;
20
- /**
21
- * 是否视频
22
- * */
23
- isVideo?: boolean;
24
- /**
25
- * 是否图片
26
- * */
27
- isImage?: boolean;
28
- /**
29
- * 是否显示删除按钮
30
- * */
31
- deletable?: boolean;
32
- /**
33
- * 上传时候状态
34
- * */
35
- status?: "loading" | "failed" | "success";
36
- /**
37
- * 提示信息
38
- * */
39
- message?: string;
40
- /**
41
- * 进度条
42
- * */
43
- schedule?: string | number;
2
+ /**
3
+ * 上传文件本地地址链接
4
+ * */
5
+ url?: string
6
+ /**
7
+ * 上传文件类型
8
+ * */
9
+ type?: 'image' | 'video' | 'file'
10
+ /**
11
+ * 上传文件本地地址链接
12
+ * */
13
+ thumb?: string
14
+ /**
15
+ * 文件大小
16
+ * */
17
+ size?: number
18
+ /**
19
+ * 是否视频
20
+ * */
21
+ isVideo?: boolean
22
+ /**
23
+ * 是否图片
24
+ * */
25
+ isImage?: boolean
26
+ /**
27
+ * 是否显示删除按钮
28
+ * */
29
+ deletable?: boolean
30
+ /**
31
+ * 上传时候状态
32
+ * */
33
+ status?: 'loading' | 'failed' | 'success'
34
+ /**
35
+ * 提示信息
36
+ * */
37
+ message?: string
38
+ /**
39
+ * 进度条
40
+ * */
41
+ schedule?: string | number
44
42
  }
45
43
 
46
- export type ReadFunctionVo = (
47
- file: FileVo,
48
- detail: { name: string; index: number },
49
- ) => void;
50
-
51
- export default interface HyUploadProps {
52
- /**
53
- * 接受的文件类型, 可选值为all media image file video (默认 'image' )
54
- * */
55
- accept?: HyApp.FileType;
56
- /**
57
- * 根据文件拓展名过滤,每一项都不能是空字符串。默认不过滤。
58
- * */
59
- extension?: string[];
60
- /**
61
- * 图片或视频拾取模式,当accept为image类型时设置capture可选额外camera可以直接调起摄像头(默认 ['album', 'camera'] )
62
- * */
63
- capture?: ("album" | "camera")[];
64
- /**
65
- * 当accept为video时生效,是否压缩视频,默认为true(默认 true )
66
- * */
67
- compressed?: boolean;
68
- /**
69
- * 当accept为video时生效,可选值为back或front(默认 'back' )
70
- * */
71
- camera?: "back" | "front";
72
- /**
73
- * 当accept为video时生效,拍摄视频最长拍摄时间,单位秒(默认 60 )
74
- * */
75
- maxDuration?: number;
76
- /**
77
- * 上传区域的图标,只能内置图标(默认 'camera-fill' )
78
- * */
79
- uploadIcon?: string;
80
- /**
81
- * 上传区域的图标的字体颜色,只能内置图标(默认 #D3D4D6 )
82
- * */
83
- uploadIconColor?: string;
84
- /**
85
- * 是否开启文件读取前事件(默认 false )
86
- * */
87
- useBeforeRead?: boolean;
88
- /**
89
- * 是否显示组件自带的图片预览功能(默认 true )
90
- * */
91
- previewFullImage?: boolean;
92
- /**
93
- * 最大上传数量(默认 52 )
94
- * */
95
- maxCount?: number;
96
- /**
97
- * 是否启用(默认 false )
98
- * */
99
- disabled?: boolean;
100
- /**
101
- * 预览上传的图片时的裁剪模式,和image组件mode属性一致(默认 'aspectFill' )
102
- * */
103
- imageMode?: "aspectFill" | "aspectFit" | "widthFix";
104
- /**
105
- * 标识符,可以在回调函数的第二项参数中获取
106
- * */
107
- name?: string;
108
- /**
109
- * 所选的图片的尺寸, 可选值为original compressed(默认 ['original', 'compressed'] )
110
- * */
111
- sizeType?: ("original" | "compressed")[];
112
- /**
113
- * 是否开启图片多选,部分安卓机型不支持 (默认 false )
114
- * */
115
- multiple?: boolean;
116
- /**
117
- * 是否展示删除按钮(默认 true )
118
- * */
119
- deletable?: boolean;
120
- /**
121
- * 文件大小限制,单位为byte (默认 Number.MAX_VALUE )
122
- * */
123
- maxSize?: number;
124
- /**
125
- * 显示已上传的文件列表
126
- * */
127
- fileList?: FileVo[];
128
- /**
129
- * 上传区域的提示文字
130
- * */
131
- uploadText?: string;
132
- /**
133
- * 内部预览图片区域和选择图片按钮的区域宽度(默认 80 )
134
- * */
135
- width?: string | number;
136
- /**
137
- * 内部预览图片区域和选择图片按钮的区域高度(默认 80 )
138
- * */
139
- height?: string | number;
140
- /**
141
- * 读取前的处理函数
142
- * */
143
- beforeRead?: (file: FileVo, detail: { name: string; index: number }) => void;
144
- /**
145
- * 读取后的处理函数
146
- * */
147
- afterRead?: (file: FileVo, detail: { name: string; index: number }) => void;
148
- /**
149
- * 定义需要用到的外部样式
150
- * */
151
- customStyle?: CSSProperties;
152
- }
44
+ export type ReadFunctionVo = (file: FileVo, detail: { name: string; index: number }) => void
153
45
 
154
46
  export interface UploadFileParams {
155
- file: FileVo | FileVo[];
156
- name: string;
157
- index: number;
47
+ file: FileVo | FileVo[]
48
+ name: string
49
+ index: number
158
50
  }
159
51
 
160
52
  export interface IUploadEmits {
161
- /** 点击预览大图触发 */
162
- (e: "clickPreview", params: UploadFileParams): void;
163
- /** 上传前触发 */
164
- (e: "beforeRead", params: UploadFileParams): void;
165
- /** 上传错误触发 */
166
- (e: "error", error: any): void;
167
- /** 删除触发 */
168
- (e: "delete", params: UploadFileParams): void;
169
- /** 上传完成触发 */
170
- (e: "afterRead", params: UploadFileParams): void;
171
- /** 超出最大值 */
172
- (e: "oversize", params: UploadFileParams): void;
53
+ /** 点击预览大图触发 */
54
+ (e: 'clickPreview', params: UploadFileParams): void
55
+ /** 上传前触发 */
56
+ (e: 'beforeRead', params: UploadFileParams): void
57
+ /** 上传错误触发 */
58
+ (e: 'error', error: any): void
59
+ /** 删除触发 */
60
+ (e: 'delete', params: UploadFileParams): void
61
+ /** 上传完成触发 */
62
+ (e: 'afterRead', params: UploadFileParams): void
63
+ /** 超出最大值 */
64
+ (e: 'oversize', params: UploadFileParams): void
173
65
  }
@@ -1,47 +1,6 @@
1
- import type { CSSProperties } from "vue";
2
-
3
- export default interface HyWarnProps {
4
- /**
5
- * @description 显示的文字
6
- * */
7
- title: string;
8
- /**
9
- * @description 使用预设的颜色 (默认 'warning' )
10
- * */
11
- type?: HyApp.ThemeType;
12
- /**
13
- * @description 辅助性文字,颜色比title浅一点,字号也小一点,可选
14
- * */
15
- description?: string;
16
- /**
17
- * @description 关闭按钮(默认为叉号icon图标) (默认 false )
18
- * */
19
- closable?: boolean;
20
- /**
21
- * @description 是否显示左边的辅助图标 ( 默认 false )
22
- * */
23
- showIcon?: boolean;
24
- /**
25
- * @description 显示的暗色或者亮色 (默认 'light' )
26
- * */
27
- theme?: HyApp.ThemeVo;
28
- /**
29
- * @description 文字是否居中 (默认 false )
30
- * */
31
- center?: boolean;
32
- /**
33
- * @description 字体大小 (默认 14 )
34
- * */
35
- fontSize?: number;
36
- /**
37
- * @description 定义需要用到的外部样式
38
- * */
39
- customStyle?: CSSProperties;
40
- }
41
-
42
1
  export interface IWarnEmits {
43
- /** 点击触发 */
44
- (e: "click"): void;
45
- /** 关闭触发 */
46
- (e: "close"): void;
2
+ /** 点击触发 */
3
+ (e: 'click'): void
4
+ /** 关闭触发 */
5
+ (e: 'close'): void
47
6
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hy-app",
3
- "version": "0.5.4",
4
- "description": "fix: tabbar优化",
3
+ "version": "0.5.5",
4
+ "description": "fix: 表单修复",
5
5
  "main": "./index.ts",
6
6
  "private": false,
7
7
  "scripts": {},