hy-app 0.6.9 → 0.7.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.
Files changed (106) hide show
  1. package/attributes.json +1 -1
  2. package/components/hy-avatar/hy-avatar.vue +12 -5
  3. package/components/hy-avatar/props.ts +4 -2
  4. package/components/hy-avatar/typing.d.ts +8 -1
  5. package/components/hy-calendar/hy-calendar.vue +3 -2
  6. package/components/hy-calendar/month.vue +25 -5
  7. package/components/hy-calendar/props.ts +1 -1
  8. package/components/hy-calendar/typing.d.ts +9 -0
  9. package/components/hy-cascader/hy-cascader.vue +503 -0
  10. package/components/hy-cascader/index.scss +84 -0
  11. package/components/hy-cascader/props.ts +88 -0
  12. package/components/hy-cascader/typing.d.ts +34 -0
  13. package/components/hy-check-button/typing.d.ts +12 -7
  14. package/components/hy-code-input/hy-code-input.vue +33 -11
  15. package/components/hy-code-input/typing.d.ts +4 -0
  16. package/components/hy-config-provider/hy-config-provider.vue +58 -53
  17. package/components/hy-count-down/hy-count-down.vue +8 -8
  18. package/components/hy-count-down/typing.d.ts +16 -0
  19. package/components/hy-count-to/hy-count-to.vue +7 -7
  20. package/components/hy-count-to/typing.d.ts +24 -0
  21. package/components/hy-datetime-picker/props.ts +1 -1
  22. package/components/hy-datetime-picker/typing.d.ts +1 -1
  23. package/components/hy-dropdown/typing.d.ts +5 -0
  24. package/components/hy-dropdown-item/hy-dropdown-item.vue +1 -1
  25. package/components/hy-folding-panel/hy-folding-panel.vue +3 -3
  26. package/components/hy-folding-panel/typing.d.ts +23 -0
  27. package/components/hy-folding-panel-item/hy-folding-panel-item.vue +2 -2
  28. package/components/hy-folding-panel-item/typing.d.ts +21 -0
  29. package/components/hy-form/hy-form.vue +2 -2
  30. package/components/hy-form/typing.d.ts +37 -0
  31. package/components/hy-form-item/typing.d.ts +1 -1
  32. package/components/hy-grid/hy-grid.vue +12 -12
  33. package/components/hy-grid/index.scss +1 -2
  34. package/components/hy-grid/props.ts +7 -2
  35. package/components/hy-grid/typing.d.ts +1 -1
  36. package/components/hy-icon/typing.d.ts +52 -9
  37. package/components/hy-keyboard/constants.ts +83 -0
  38. package/components/hy-keyboard/hy-keyboard.vue +375 -0
  39. package/components/hy-keyboard/index.scss +73 -0
  40. package/components/hy-keyboard/key/index.scss +79 -0
  41. package/components/hy-keyboard/key/index.vue +91 -0
  42. package/components/hy-keyboard/key/types.ts +1 -0
  43. package/components/hy-keyboard/props.ts +108 -0
  44. package/components/hy-keyboard/typing.d.ts +18 -0
  45. package/components/hy-list/hy-list.vue +15 -13
  46. package/components/hy-list/props.ts +1 -1
  47. package/components/hy-modal/typing.d.ts +2 -2
  48. package/components/hy-notice-bar/hy-column-notice.vue +54 -94
  49. package/components/hy-notice-bar/hy-notice-bar.vue +128 -96
  50. package/components/hy-notice-bar/hy-row-notice.vue +89 -121
  51. package/components/hy-notice-bar/props.ts +86 -85
  52. package/components/hy-notify/hy-notify.vue +10 -10
  53. package/components/hy-notify/typing.d.ts +35 -0
  54. package/components/hy-number-step/hy-number-step.vue +370 -367
  55. package/components/hy-number-step/index.scss +1 -0
  56. package/components/hy-number-step/props.ts +1 -1
  57. package/components/hy-picker/hy-picker.vue +126 -149
  58. package/components/hy-picker/props.ts +4 -1
  59. package/components/hy-picker/typing.d.ts +22 -0
  60. package/components/hy-popover/hy-popover.vue +2 -2
  61. package/components/hy-popover/typing.d.ts +1 -1
  62. package/components/hy-popup/hy-popup.vue +1 -1
  63. package/components/hy-popup/index.scss +1 -0
  64. package/components/hy-price/hy-price.vue +52 -23
  65. package/components/hy-price/props.ts +54 -54
  66. package/components/hy-radio/props.ts +1 -1
  67. package/components/hy-radio/typing.d.ts +5 -1
  68. package/components/hy-rolling-num/typing.d.ts +1 -0
  69. package/components/hy-signature/hy-signature.vue +17 -17
  70. package/components/hy-signature/typing.d.ts +1 -1
  71. package/components/hy-skeleton/index.scss +17 -0
  72. package/components/hy-steps/hy-steps.vue +1 -1
  73. package/components/hy-submit-bar/typing.d.ts +3 -3
  74. package/components/hy-swipe-action/hy-swipe-action.vue +34 -15
  75. package/components/hy-swipe-action/index.scss +0 -1
  76. package/components/hy-switch/typing.d.ts +4 -0
  77. package/components/hy-tabbar/props.ts +2 -1
  78. package/components/hy-tabbar/typing.d.ts +5 -4
  79. package/components/hy-tabs/hy-tabs.vue +338 -336
  80. package/components/hy-tabs/index.scss +6 -6
  81. package/components/hy-tabs/typing.d.ts +41 -33
  82. package/components/hy-textarea/hy-textarea.vue +2 -2
  83. package/components/hy-textarea/typing.d.ts +4 -0
  84. package/components/hy-toast/hy-toast.vue +17 -9
  85. package/components/hy-toast/index.scss +1 -1
  86. package/components/hy-toast/typing.d.ts +56 -37
  87. package/components/hy-tooltip/hy-tooltip.vue +1 -1
  88. package/components/hy-tooltip/index.scss +1 -0
  89. package/components/hy-tooltip/props.ts +1 -1
  90. package/components/hy-upload/hy-upload.vue +16 -1
  91. package/components/hy-upload/index.scss +149 -144
  92. package/components/index.ts +6 -0
  93. package/global.d.ts +2 -0
  94. package/libs/api/http.ts +122 -119
  95. package/libs/config/icon.ts +442 -430
  96. package/libs/css/_function.scss +7 -13
  97. package/libs/css/iconfont.css +445 -441
  98. package/libs/css/theme.scss +3 -1
  99. package/libs/locale/lang/en-US.ts +4 -0
  100. package/libs/locale/lang/zh-CN.ts +4 -0
  101. package/libs/typing/index.ts +80 -0
  102. package/package.json +5 -2
  103. package/tags.json +1 -1
  104. package/web-types.json +1 -1
  105. package/components/hy-folding-panel/hy-folding-panel-group.vue +0 -163
  106. package/components/hy-qrcode/qrcode.js.bak +0 -1434
@@ -1,121 +1,89 @@
1
- <template>
2
- <view class="hy-notice" @tap="clickHandler">
3
- <slot name="icon">
4
- <view class="hy-notice__left-icon" v-if="icon">
5
- <hy-icon :name="icon" :color="color" size="19"></hy-icon>
6
- </view>
7
- </slot>
8
- <view class="hy-notice__content" ref="hy-notice__content">
9
- <view
10
- ref="hy-notice__content--text"
11
- class="hy-notice__content--text"
12
- :style="animationStyle"
13
- >
14
- <text v-for="(item, index) in innerText" :key="index" :style="textStyle">{{
15
- item
16
- }}</text>
17
- </view>
18
- </view>
19
- <view class="hy-notice__right-icon" v-if="['link', 'closable'].includes(mode)">
20
- <hy-icon
21
- v-if="mode === 'link'"
22
- :name="IconConfig.RIGHT"
23
- :size="17"
24
- :color="color"
25
- ></hy-icon>
26
- <hy-icon
27
- v-if="mode === 'closable'"
28
- @click="close"
29
- :name="IconConfig.CLOSE"
30
- :size="16"
31
- :color="color"
32
- ></hy-icon>
33
- </view>
34
- </view>
35
- </template>
36
-
37
- <script setup lang="ts">
38
- import { ref, watch, toRefs, computed, type CSSProperties, getCurrentInstance } from 'vue'
39
- import noticeBarProps from './props'
40
- import { addUnit, getRect, sleep, IconConfig } from '../../libs'
41
- // 组件
42
- import HyIcon from '../hy-icon/hy-icon.vue'
43
-
44
- const props = defineProps(noticeBarProps)
45
- const { text, speed, fontSize, color } = toRefs(props)
46
- const emit = defineEmits(['click', 'close'])
47
-
48
- const instance = getCurrentInstance()
49
- const animationDuration = ref<string>('0') // 动画执行时间
50
- const animationPlayState = ref<string>('paused') // 动画的开始和结束执行
51
- const initValue = ref<string>('')
52
-
53
- watch(
54
- () => text.value,
55
- async (newValue) => {
56
- initValue.value = Array.isArray(newValue) ? newValue.join('') : newValue
57
- let boxWidth = 0,
58
- textWidth = 0
59
- // 进行一定的延时
60
- await sleep()
61
- // 查询盒子和文字的宽度
62
- textWidth = (await getRect('.hy-notice__content--text', false, instance)).width!
63
- boxWidth = (await getRect('.hy-notice__content', false, instance)).width!
64
- // 根据t=s/v(时间=路程/速度),这里为何不需要加上#u-notice-box的宽度,因为中设置了.u-notice-content样式中设置了padding-left: 100%
65
- // 恰巧计算出来的结果中已经包含了#u-notice-box的宽度
66
- animationDuration.value = `${textWidth / speed.value}s`
67
- // 这里必须这样开始动画,否则在APP上动画速度不会改变
68
- animationPlayState.value = 'paused'
69
- await sleep(10)
70
- animationPlayState.value = 'running'
71
- },
72
- { immediate: true }
73
- )
74
-
75
- /**
76
- * @description 文字内容的样式
77
- * */
78
- const textStyle = computed<CSSProperties>(() => {
79
- let style: CSSProperties = {}
80
- style.whiteSpace = 'nowrap !important'
81
- style.color = color.value
82
- style.fontSize = addUnit(fontSize.value)
83
- return style
84
- })
85
- /**
86
- * @description 动画的样式
87
- * */
88
- const animationStyle = computed<CSSProperties>(() => {
89
- let style: CSSProperties = {}
90
- style.animationDuration = animationDuration.value
91
- style.animationPlayState = animationPlayState.value
92
- return style
93
- })
94
- // 内部对用户传入的数据进一步分割,放到多个text标签循环,否则如果用户传入的字符串很长(100个字符以上)
95
- // 放在一个text标签中进行滚动,在低端安卓机上,动画可能会出现抖动现象,需要分割到多个text中可解决此问题
96
- const innerText = computed(() => {
97
- let result = [],
98
- // 每组text标签的字符长度
99
- len = 20
100
- const textArr = initValue.value.split('')
101
- for (let i = 0; i < textArr.length; i += len) {
102
- // 对拆分的后的text进行slice分割,得到的为数组再进行join拼接为字符串
103
- result.push(textArr.slice(i, i + len).join(''))
104
- }
105
- return result
106
- })
107
-
108
- // 点击通告栏
109
- const clickHandler = (index: number) => {
110
- emit('click', index)
111
- }
112
-
113
- // 点击关闭按钮
114
- const close = () => {
115
- emit('close')
116
- }
117
- </script>
118
-
119
- <style lang="scss" scoped>
120
- @import './index.scss';
121
- </style>
1
+ <template>
2
+ <view class="hy-notice__content" ref="hy-notice__content">
3
+ <view
4
+ ref="hy-notice__content--text"
5
+ class="hy-notice__content--text"
6
+ :style="animationStyle"
7
+ >
8
+ <text v-for="(item, index) in innerText" :key="index" :style="textStyle">{{
9
+ item
10
+ }}</text>
11
+ </view>
12
+ </view>
13
+ </template>
14
+
15
+ <script setup lang="ts">
16
+ import { ref, watch, toRefs, computed, type CSSProperties, getCurrentInstance } from 'vue'
17
+ import noticeBarProps from './props'
18
+ import { addUnit, getRect, sleep } from '../../libs'
19
+
20
+ const props = defineProps(noticeBarProps)
21
+ const { text, speed, fontSize, color } = toRefs(props)
22
+ const emit = defineEmits(['change'])
23
+
24
+ const instance = getCurrentInstance()
25
+ const animationDuration = ref<string>('0') // 动画执行时间
26
+ const animationPlayState = ref<string>('paused') // 动画的开始和结束执行
27
+ const initValue = ref<string>('')
28
+
29
+ watch(
30
+ () => text.value,
31
+ async (newValue) => {
32
+ initValue.value = Array.isArray(newValue) ? newValue.join('') : newValue
33
+ let boxWidth = 0,
34
+ textWidth = 0
35
+ // 进行一定的延时
36
+ await sleep()
37
+ // 查询盒子和文字的宽度
38
+ textWidth = (await getRect('.hy-notice__content--text', false, instance)).width!
39
+ boxWidth = (await getRect('.hy-notice__content', false, instance)).width!
40
+ // 根据t=s/v(时间=路程/速度),这里为何不需要加上#u-notice-box的宽度,因为中设置了.u-notice-content样式中设置了padding-left: 100%
41
+ // 恰巧计算出来的结果中已经包含了#u-notice-box的宽度
42
+ animationDuration.value = `${textWidth / speed.value}s`
43
+ // 这里必须这样开始动画,否则在APP上动画速度不会改变
44
+ animationPlayState.value = 'paused'
45
+ await sleep(10)
46
+ animationPlayState.value = 'running'
47
+ },
48
+ { immediate: true }
49
+ )
50
+
51
+ /**
52
+ * @description 文字内容的样式
53
+ * */
54
+ const textStyle = computed<CSSProperties>(() => {
55
+ let style: CSSProperties = {}
56
+ style.whiteSpace = 'nowrap !important'
57
+ style.color = color.value
58
+ style.fontSize = addUnit(fontSize.value)
59
+ return style
60
+ })
61
+
62
+ /**
63
+ * @description 动画的样式
64
+ * */
65
+ const animationStyle = computed<CSSProperties>(() => {
66
+ let style: CSSProperties = {}
67
+ style.animationDuration = animationDuration.value
68
+ style.animationPlayState = animationPlayState.value
69
+ return style
70
+ })
71
+
72
+ // 内部对用户传入的数据进一步分割,放到多个text标签循环,否则如果用户传入的字符串很长(100个字符以上)
73
+ // 放在一个text标签中进行滚动,在低端安卓机上,动画可能会出现抖动现象,需要分割到多个text中可解决此问题
74
+ const innerText = computed(() => {
75
+ let result = [],
76
+ // 每组text标签的字符长度
77
+ len = 20
78
+ const textArr = initValue.value.split('')
79
+ for (let i = 0; i < textArr.length; i += len) {
80
+ // 对拆分的后的text进行slice分割,得到的为数组再进行join拼接为字符串
81
+ result.push(textArr.slice(i, i + len).join(''))
82
+ }
83
+ return result
84
+ })
85
+ </script>
86
+
87
+ <style lang="scss" scoped>
88
+ @import './index.scss';
89
+ </style>
@@ -1,85 +1,86 @@
1
- import type { NoticeBarModeVo } from './typing'
2
- import { IconConfig } from '../../libs'
3
- import type { CSSProperties, PropType } from 'vue'
4
-
5
- const noticeBarProps = {
6
- /** 显示的内容,数组 */
7
- text: {
8
- type: [String, Array] as PropType<string | string[]>,
9
- default: []
10
- },
11
- /**
12
- * 通告滚动模式,row-横向滚动,column-竖向滚动
13
- * @values row,column
14
- * */
15
- direction: {
16
- type: String,
17
- default: 'row'
18
- },
19
- /** direction = row时,是否使用步进形式滚动 */
20
- step: {
21
- type: Boolean,
22
- default: false
23
- },
24
- /** 是否显示左侧的音量图标 */
25
- icon: {
26
- type: String,
27
- default: IconConfig.NOTIFICATION_FILL
28
- },
29
- /**
30
- * 通告模式,link-显示右箭头,closable-显示右侧关闭图标
31
- * @values link,closable
32
- * */
33
- mode: String,
34
- /** 文字颜色,各图标也会使用文字颜色 */
35
- color: {
36
- type: String,
37
- default: '#ff9900'
38
- },
39
- /** 背景颜色 */
40
- bgColor: String,
41
- /** 水平滚动时的滚动速度,即每秒滚动多少px(px),这有利于控制文字无论多少时,都能有一个恒定的速度 */
42
- speed: {
43
- type: Number,
44
- default: 80
45
- },
46
- /** 字体大小,单位px */
47
- fontSize: {
48
- type: [String, Number],
49
- default: 14
50
- },
51
- /** 滚动一个周期的时间长,单位ms */
52
- duration: {
53
- type: Number,
54
- default: 2000
55
- },
56
- /** 是否禁止用手滑动切换 目前HX2.6.11,只支持App 2.5.5+、H5 2.5.5+、支付宝小程序、字节跳动小程序 */
57
- disableTouch: {
58
- type: Boolean,
59
- default: true
60
- },
61
- /**
62
- * 分布
63
- * @values flex-start,flex-start,center
64
- * */
65
- justifyContent: {
66
- type: String,
67
- default: 'flex-start'
68
- },
69
- /**
70
- * 跳转类型
71
- * @values navigateTo,redirectTo,switchTab,reLaunch
72
- * */
73
- linkType: {
74
- type: String,
75
- default: 'navigateTo'
76
- },
77
- /** 跳转地址 */
78
- url: String,
79
- /** 定义需要用到的外部样式 */
80
- customStyle: Object as PropType<CSSProperties>,
81
- /** 自定义外部类名 */
82
- customClass: String
83
- }
84
-
85
- export default noticeBarProps
1
+ import type { NoticeBarModeVo } from './typing'
2
+ import { IconConfig } from '../../libs'
3
+ import type { CSSProperties, PropType } from 'vue'
4
+ import type { HyIconProps } from '../hy-icon/typing'
5
+
6
+ const noticeBarProps = {
7
+ /** 显示的内容,数组 */
8
+ text: {
9
+ type: [String, Array] as PropType<string | string[]>,
10
+ default: []
11
+ },
12
+ /**
13
+ * 通告滚动模式,row-横向滚动,column-竖向滚动
14
+ * @values row,column
15
+ * */
16
+ direction: {
17
+ type: String,
18
+ default: 'row'
19
+ },
20
+ /** direction = row时,是否使用步进形式滚动 */
21
+ step: {
22
+ type: Boolean,
23
+ default: false
24
+ },
25
+ /** 是否显示左侧的音量图标 */
26
+ icon: {
27
+ type: [String, Object] as PropType<string | Partial<HyIconProps>>,
28
+ default: IconConfig.NOTIFICATION_FILL
29
+ },
30
+ /**
31
+ * 通告模式,link-显示右箭头,closable-显示右侧关闭图标
32
+ * @values link,closable
33
+ * */
34
+ mode: String,
35
+ /** 文字颜色,各图标也会使用文字颜色 */
36
+ color: {
37
+ type: String,
38
+ default: '#ff9900'
39
+ },
40
+ /** 背景颜色 */
41
+ bgColor: String,
42
+ /** 水平滚动时的滚动速度,即每秒滚动多少px(px),这有利于控制文字无论多少时,都能有一个恒定的速度 */
43
+ speed: {
44
+ type: Number,
45
+ default: 80
46
+ },
47
+ /** 字体大小,单位px */
48
+ fontSize: {
49
+ type: [String, Number],
50
+ default: 14
51
+ },
52
+ /** 滚动一个周期的时间长,单位ms */
53
+ duration: {
54
+ type: Number,
55
+ default: 2000
56
+ },
57
+ /** 是否禁止用手滑动切换 目前HX2.6.11,只支持App 2.5.5+、H5 2.5.5+、支付宝小程序、字节跳动小程序 */
58
+ disableTouch: {
59
+ type: Boolean,
60
+ default: true
61
+ },
62
+ /**
63
+ * 分布
64
+ * @values flex-start,flex-start,center
65
+ * */
66
+ justifyContent: {
67
+ type: String,
68
+ default: 'flex-start'
69
+ },
70
+ /**
71
+ * 跳转类型
72
+ * @values navigateTo,redirectTo,switchTab,reLaunch
73
+ * */
74
+ linkType: {
75
+ type: String,
76
+ default: 'navigateTo'
77
+ },
78
+ /** 跳转地址 */
79
+ url: String,
80
+ /** 定义需要用到的外部样式 */
81
+ customStyle: Object as PropType<CSSProperties>,
82
+ /** 自定义外部类名 */
83
+ customClass: String
84
+ }
85
+
86
+ export default noticeBarProps
@@ -42,7 +42,7 @@ export default {
42
42
  </script>
43
43
 
44
44
  <script setup lang="ts">
45
- import type HyNotifyProps 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'
@@ -60,7 +60,7 @@ defineOptions({})
60
60
 
61
61
  const props = defineProps(notifyProps)
62
62
 
63
- const config = ref<HyNotifyProps>({
63
+ const config = ref<NotifyOptions>({
64
64
  // 到顶部的距离
65
65
  top: props.top,
66
66
  // type主题,primary,success,warning,error
@@ -78,12 +78,12 @@ const config = ref<HyNotifyProps>({
78
78
  // 是否留出顶部安全距离(状态栏高度)
79
79
  safeAreaInsetTop: props.safeAreaInsetTop
80
80
  })
81
- const tmpConfig = ref<HyNotifyProps>({})
81
+ const tmpConfig = ref<NotifyOptions>({})
82
82
  const open = ref(false)
83
83
  let timer: ReturnType<typeof setTimeout>
84
84
 
85
85
  /**
86
- * @description 容器样式
86
+ * 容器样式
87
87
  * */
88
88
  const containerStyle = computed(() => {
89
89
  let top = 0
@@ -106,7 +106,7 @@ const containerStyle = computed(() => {
106
106
  return style
107
107
  })
108
108
  /**
109
- * @description 组件背景颜色
109
+ * 组件背景颜色
110
110
  */
111
111
  const backgroundColor = computed(() => {
112
112
  const style: CSSProperties = {}
@@ -117,7 +117,7 @@ const backgroundColor = computed(() => {
117
117
  })
118
118
 
119
119
  /**
120
- * @description 默认主题下的图标
120
+ * 默认主题下的图标
121
121
  * */
122
122
  const icon = computed(() => {
123
123
  switch (tmpConfig.value.type) {
@@ -132,7 +132,7 @@ const icon = computed(() => {
132
132
  }
133
133
  })
134
134
 
135
- const show = (options: HyNotifyProps) => {
135
+ const show = (options: NotifyOptions) => {
136
136
  // 不将结果合并到this.config变量,避免多次调用hy-toast,前后的配置造成混乱
137
137
  tmpConfig.value = Object.assign(config.value, options)
138
138
  // 任何定时器初始化之前,都要执行清除操作,否则可能会造成混乱
@@ -149,13 +149,13 @@ const show = (options: HyNotifyProps) => {
149
149
  }
150
150
  }
151
151
  /**
152
- * @description 关闭notify
152
+ * 关闭notify
153
153
  * */
154
154
  const close = () => {
155
155
  clearTimer()
156
156
  }
157
157
  /**
158
- * @description 清除定时任务
158
+ * 清除定时任务
159
159
  * */
160
160
  const clearTimer = () => {
161
161
  open.value = false
@@ -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
  })
@@ -0,0 +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
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
35
+ }