hy-app 0.7.0 → 0.7.2

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 (36) hide show
  1. package/attributes.json +1 -1
  2. package/components/hy-calendar/hy-calendar.vue +2 -2
  3. package/components/hy-calendar/typing.d.ts +9 -0
  4. package/components/hy-count-down/hy-count-down.vue +8 -8
  5. package/components/hy-count-down/typing.d.ts +16 -0
  6. package/components/hy-count-to/hy-count-to.vue +7 -7
  7. package/components/hy-count-to/typing.d.ts +24 -0
  8. package/components/hy-dropdown-item/hy-dropdown-item.vue +1 -1
  9. package/components/hy-folding-panel/hy-folding-panel.vue +3 -3
  10. package/components/hy-folding-panel/typing.d.ts +23 -0
  11. package/components/hy-folding-panel-item/hy-folding-panel-item.vue +2 -2
  12. package/components/hy-folding-panel-item/typing.d.ts +21 -0
  13. package/components/hy-form/hy-form.vue +2 -2
  14. package/components/hy-form/typing.d.ts +37 -6
  15. package/components/hy-list/hy-list.vue +346 -226
  16. package/components/hy-list/index.scss +0 -1
  17. package/components/hy-list/props.ts +69 -69
  18. package/components/hy-notify/hy-notify.vue +2 -2
  19. package/components/hy-notify/typing.d.ts +34 -21
  20. package/components/hy-number-step/hy-number-step.vue +370 -367
  21. package/components/hy-number-step/index.scss +1 -0
  22. package/components/hy-number-step/props.ts +1 -1
  23. package/components/hy-popover/hy-popover.vue +2 -2
  24. package/components/hy-popover/typing.d.ts +1 -1
  25. package/components/hy-popup/hy-popup.vue +1 -1
  26. package/components/hy-signature/hy-signature.vue +17 -17
  27. package/components/hy-signature/typing.d.ts +1 -1
  28. package/components/hy-toast/hy-toast.vue +3 -3
  29. package/components/hy-toast/index.scss +1 -1
  30. package/components/hy-toast/typing.d.ts +14 -1
  31. package/libs/api/http.ts +122 -119
  32. package/libs/common/versionControl.ts +285 -102
  33. package/libs/css/theme.scss +2 -0
  34. package/package.json +1 -1
  35. package/web-types.json +1 -1
  36. package/components/hy-folding-panel/hy-folding-panel-group.vue +0 -163
@@ -1,69 +1,69 @@
1
- import type { PropType } from 'vue'
2
-
3
- const listProps = {
4
- /** 数据列表 */
5
- list: {
6
- type: Array,
7
- default: () => []
8
- },
9
- /** 容器高度,必须给个高度,否则加载全部数据 */
10
- containerHeight: {
11
- type: String,
12
- default: '100%'
13
- },
14
- /** 子容器的高度,必须和内容一致,否则计算有问题 */
15
- itemHeight: {
16
- type: [String, Number],
17
- default: '40px'
18
- },
19
- /** 子容器的底部,会计算到容器内 */
20
- marginBottom: {
21
- type: [String, Number],
22
- default: 10
23
- },
24
- /** 子容器的内边距 */
25
- padding: {
26
- type: [String, Number],
27
- default: 10
28
- },
29
- /** 子容器的圆角,单位px */
30
- borderRadius: {
31
- type: [String, Number],
32
- default: '3px'
33
- },
34
- /** 容器背景色 */
35
- background: {
36
- type: String,
37
- default: 'transparent'
38
- },
39
- /** 是否显示边框 */
40
- border: {
41
- type: Boolean,
42
- default: false
43
- },
44
- /** 展示几列 */
45
- line: {
46
- type: Number,
47
- default: 1
48
- },
49
- /** 每一项的唯一标识key */
50
- keyField: {
51
- type: String,
52
- default: 'id'
53
- },
54
- /**
55
- * 加载状态
56
- * @values loadMore,loading,noMore
57
- * */
58
- load: {
59
- type: String,
60
- default: 'loadMore'
61
- },
62
- /** 显示底部加载状态 */
63
- showDivider: {
64
- type: Boolean,
65
- default: true
66
- }
67
- }
68
-
69
- export default listProps
1
+ import type { PropType } from 'vue'
2
+
3
+ const listProps = {
4
+ /** 数据列表 */
5
+ list: {
6
+ type: Array,
7
+ default: () => []
8
+ },
9
+ /** 容器高度,必须给个高度,否则加载全部数据 */
10
+ containerHeight: {
11
+ type: String,
12
+ default: '100%'
13
+ },
14
+ /** 子容器的高度,必须和内容一致,否则计算有问题 */
15
+ itemHeight: {
16
+ type: [String, Number],
17
+ default: '40px'
18
+ },
19
+ /** 子容器的底部,会计算到容器内 */
20
+ marginBottom: {
21
+ type: [String, Number],
22
+ default: 0
23
+ },
24
+ /** 子容器的内边距 */
25
+ padding: {
26
+ type: [String, Number],
27
+ default: 10
28
+ },
29
+ /** 子容器的圆角,单位px */
30
+ borderRadius: {
31
+ type: [String, Number],
32
+ default: '3px'
33
+ },
34
+ /** 容器背景色 */
35
+ background: {
36
+ type: String,
37
+ default: 'transparent'
38
+ },
39
+ /** 是否显示边框 */
40
+ border: {
41
+ type: Boolean,
42
+ default: false
43
+ },
44
+ /** 展示几列 */
45
+ line: {
46
+ type: Number,
47
+ default: 1
48
+ },
49
+ /** 每一项的唯一标识key */
50
+ keyField: {
51
+ type: String,
52
+ default: 'id'
53
+ },
54
+ /**
55
+ * 加载状态
56
+ * @values loadMore,loading,noMore
57
+ * */
58
+ load: {
59
+ type: String,
60
+ default: 'loadMore'
61
+ },
62
+ /** 显示底部加载状态 */
63
+ showDivider: {
64
+ type: Boolean,
65
+ default: true
66
+ }
67
+ }
68
+
69
+ export default listProps
@@ -42,7 +42,7 @@ export default {
42
42
  </script>
43
43
 
44
44
  <script setup lang="ts">
45
- import type { NotifyOptions } from './typing'
45
+ import type { NotifyOptions, INotifyExpose } from './typing'
46
46
  import { computed, ref } from 'vue'
47
47
  import type { CSSProperties } from 'vue'
48
48
  import { addUnit, IconConfig } from '../../libs'
@@ -163,7 +163,7 @@ const clearTimer = () => {
163
163
  clearTimeout(timer)
164
164
  }
165
165
 
166
- defineExpose({
166
+ defineExpose<INotifyExpose>({
167
167
  show,
168
168
  close
169
169
  })
@@ -1,22 +1,35 @@
1
- export interface NotifyOptions {
2
- /** 到顶部的距离 */
3
- top?: number
4
- /** 主题类型 */
5
- type?: NotifyType
6
- /** 字体颜色 */
7
- color?: string
8
- /** 背景颜色 */
9
- bgColor?: string
10
- /** 自定义图标 */
11
- icon?: string
12
- /** 展示的文字内容 */
13
- message?: string
14
- /** 展示时长,为0时不消失 */
15
- duration?: number
16
- /** 字体大小 */
17
- fontSize?: number | string
18
- /** 是否留出顶部安全距离 */
19
- safeAreaInsetTop?: boolean
20
- /** 关闭后的回调函数 */
21
- complete?: () => void
1
+ export interface NotifyOptions {
2
+ /** 到顶部的距离 */
3
+ top?: number
4
+ /** 主题类型 */
5
+ type?: NotifyType
6
+ /** 字体颜色 */
7
+ color?: string
8
+ /** 背景颜色 */
9
+ bgColor?: string
10
+ /** 自定义图标 */
11
+ icon?: string
12
+ /** 展示的文字内容 */
13
+ message?: string
14
+ /** 展示时长,为 0 时不消失 */
15
+ duration?: number
16
+ /** 字体大小 */
17
+ fontSize?: number | string
18
+ /** 是否留出顶部安全距离 */
19
+ safeAreaInsetTop?: boolean
20
+ /** 关闭后的回调函数 */
21
+ complete?: () => void
22
+ }
23
+
24
+ /** HyNotify 组件实例暴露的方法 */
25
+ export interface INotifyExpose {
26
+ /**
27
+ * 显示 Notify 提示
28
+ * @param options Notify 配置选项
29
+ */
30
+ show: (options: NotifyOptions) => void
31
+ /**
32
+ * 关闭 Notify 提示
33
+ */
34
+ close: () => void
22
35
  }