hy-app 0.6.4 → 0.6.6

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-address-picker/hy-address-picker.vue +249 -249
  3. package/components/hy-address-picker/props.ts +103 -103
  4. package/components/hy-button/hy-button.vue +320 -289
  5. package/components/hy-button/props.ts +143 -143
  6. package/components/hy-button/typing.d.ts +43 -35
  7. package/components/hy-calendar/header.vue +58 -58
  8. package/components/hy-calendar/hy-calendar.vue +8 -6
  9. package/components/hy-calendar/month.vue +402 -402
  10. package/components/hy-calendar/props.ts +169 -169
  11. package/components/hy-calendar/typing.d.ts +47 -45
  12. package/components/hy-cell-item/hy-cell-item.vue +161 -161
  13. package/components/hy-cell-item/props.ts +59 -59
  14. package/components/hy-check-button/hy-check-button.vue +135 -135
  15. package/components/hy-code-input/hy-code-input.vue +231 -231
  16. package/components/hy-code-input/props.ts +90 -90
  17. package/components/hy-config-provider/hy-config-provider.vue +53 -53
  18. package/components/hy-config-provider/props.ts +30 -30
  19. package/components/hy-coupon/hy-coupon.vue +183 -183
  20. package/components/hy-coupon/props.ts +108 -108
  21. package/components/hy-datetime-picker/hy-datetime-picker.vue +41 -55
  22. package/components/hy-datetime-picker/props.ts +144 -144
  23. package/components/hy-datetime-picker/typing.d.ts +2 -0
  24. package/components/hy-divider/props.ts +83 -83
  25. package/components/hy-empty/icon.ts +72 -72
  26. package/components/hy-folding-panel/hy-folding-panel-group.vue +162 -162
  27. package/components/hy-form/hy-form.vue +220 -220
  28. package/components/hy-icon/hy-icon.vue +112 -112
  29. package/components/hy-index-bar/hy-index-bar.vue +185 -185
  30. package/components/hy-index-bar/index.scss +64 -64
  31. package/components/hy-index-bar/props.ts +94 -94
  32. package/components/hy-index-bar/typing.d.ts +36 -36
  33. package/components/hy-input/hy-input.vue +333 -333
  34. package/components/hy-input/props.ts +186 -186
  35. package/components/hy-modal/hy-modal.vue +211 -211
  36. package/components/hy-modal/props.ts +94 -94
  37. package/components/hy-modal/typing.d.ts +16 -16
  38. package/components/hy-notice-bar/hy-row-notice.vue +121 -121
  39. package/components/hy-notify/hy-notify.vue +174 -174
  40. package/components/hy-number-step/hy-number-step.vue +367 -367
  41. package/components/hy-overlay/hy-overlay.vue +61 -61
  42. package/components/hy-overlay/props.ts +38 -38
  43. package/components/hy-pagination/hy-pagination.vue +136 -136
  44. package/components/hy-pagination/props.ts +58 -58
  45. package/components/hy-parse/hy-parse.vue +550 -550
  46. package/components/hy-parse/node/node.vue +781 -781
  47. package/components/hy-parse/parser.js +1455 -1455
  48. package/components/hy-parse/props.ts +19 -19
  49. package/components/hy-parse/typing.d.ts +68 -68
  50. package/components/hy-picker/hy-picker.vue +435 -435
  51. package/components/hy-picker/props.ts +122 -122
  52. package/components/hy-picker/typing.d.ts +38 -38
  53. package/components/hy-qrcode/props.ts +72 -72
  54. package/components/hy-qrcode/qrcode.js.bak +1433 -1433
  55. package/components/hy-radio/props.ts +97 -97
  56. package/components/hy-read-more/props.ts +48 -48
  57. package/components/hy-search/props.ts +133 -133
  58. package/components/hy-signature/canvasHelper.ts +51 -51
  59. package/components/hy-signature/props.ts +121 -121
  60. package/components/hy-skeleton/hy-skeleton.vue +142 -142
  61. package/components/hy-skeleton/props.ts +46 -46
  62. package/components/hy-skeleton/typing.d.ts +31 -31
  63. package/components/hy-steps/hy-steps.vue +275 -275
  64. package/components/hy-steps/typing.d.ts +25 -25
  65. package/components/hy-swiper/hy-swiper.vue +3 -3
  66. package/components/hy-swiper/index.scss +5 -5
  67. package/components/hy-swiper/props.ts +0 -1
  68. package/components/hy-table/hy-table.vue +630 -630
  69. package/components/hy-table/props.ts +62 -62
  70. package/components/hy-table/typing.d.ts +29 -29
  71. package/components/hy-tabs/hy-tabs.vue +336 -335
  72. package/components/hy-tabs/props.ts +84 -77
  73. package/components/hy-tag/hy-tag.vue +173 -173
  74. package/components/hy-tag/props.ts +89 -89
  75. package/components/hy-text/hy-text.vue +237 -237
  76. package/components/hy-text/props.ts +115 -115
  77. package/components/hy-textarea/hy-textarea.vue +198 -198
  78. package/components/hy-toast/hy-toast.vue +200 -200
  79. package/components/hy-toast/props.ts +3 -3
  80. package/components/hy-transition/hy-transition.vue +157 -157
  81. package/components/hy-transition/props.ts +32 -32
  82. package/components/hy-upload/hy-upload.vue +384 -384
  83. package/components/hy-watermark/hy-watermark.vue +1058 -1058
  84. package/components/hy-watermark/props.ts +109 -109
  85. package/global.d.ts +94 -94
  86. package/libs/api/http.ts +119 -119
  87. package/libs/composables/index.ts +8 -8
  88. package/libs/composables/useMessage.ts +149 -149
  89. package/libs/composables/useToast.ts +45 -45
  90. package/libs/composables/useTranslate.ts +10 -10
  91. package/libs/css/_config.scss +5 -5
  92. package/libs/index.ts +8 -8
  93. package/libs/locale/index.ts +32 -32
  94. package/libs/locale/lang/en-US.ts +84 -84
  95. package/libs/locale/lang/zh-CN.ts +87 -87
  96. package/libs/typing/index.ts +2 -2
  97. package/libs/typing/modules/common.d.ts +139 -139
  98. package/libs/typing/modules/form.ts +176 -176
  99. package/libs/typing/modules/http.d.ts +19 -19
  100. package/libs/typing/modules/index.d.ts +12 -12
  101. package/libs/utils/inside.ts +340 -340
  102. package/libs/utils/inspect.ts +140 -140
  103. package/libs/utils/utils.ts +525 -525
  104. package/package.json +81 -81
  105. package/tags.json +1 -1
  106. package/web-types.json +1 -1
@@ -1,143 +1,143 @@
1
- import type { CSSProperties, PropType } from 'vue'
2
- import type { HyIconProps } from '../hy-icon/typing'
3
-
4
- const buttonProps = {
5
- /** 是否显示按钮的细边框 */
6
- hairline: {
7
- type: Boolean,
8
- default: true
9
- },
10
- /** 是否显示按钮的边框 */
11
- border: {
12
- type: Boolean,
13
- default: true
14
- },
15
- /**
16
- * 按钮的预置样式
17
- * @values info,primary,error,warning,success
18
- * */
19
- type: {
20
- type: String,
21
- default: 'primary'
22
- },
23
- /**
24
- * 按钮尺寸
25
- * @values large,medium,small,mini
26
- * */
27
- size: {
28
- type: String,
29
- default: 'medium'
30
- },
31
- /**
32
- * 按钮形状
33
- * @values circle,square
34
- * */
35
- shape: {
36
- type: String,
37
- default: 'square'
38
- },
39
- /** 按钮是否镂空,背景色透明 */
40
- plain: {
41
- type: Boolean,
42
- default: false
43
- },
44
- /** 是否禁用 */
45
- disabled: {
46
- type: Boolean,
47
- default: false
48
- },
49
- /** 按钮名称前是否带 loading 图标 */
50
- loading: {
51
- type: Boolean,
52
- default: false
53
- },
54
- /** 加载中提示文字 */
55
- loadingText: String,
56
- /**
57
- * 加载状态图标类型
58
- * @values spinner,circle,semicircle
59
- * */
60
- loadingMode: {
61
- type: String,
62
- default: 'spinner'
63
- },
64
- /** 加载图标大小 */
65
- loadingSize: {
66
- type: [Number, String],
67
- default: 13
68
- },
69
- /** 开放能力,具体请看uniapp稳定关于button组件部分说明 */
70
- openType: String,
71
- /** 用于 <form> 组件,点击分别会触发 <form> 组件的 submit/reset 事件 */
72
- formType: String,
73
- /** 打开 APP 时,向 APP 传递的参数,open-type=launchApp时有效 (注:只微信小程序、QQ小程序有效) */
74
- appParameter: String,
75
- /** 指定是否阻止本节点的祖先节点出现点击态,微信小程序有效 */
76
- hoverStopPropagation: {
77
- type: Boolean,
78
- default: true
79
- },
80
- /**
81
- * 指定返回用户信息的语言,zh_CN 简体中文,zh_TW 繁体中文,en 英文(默认 en )
82
- * @values zh_CN,zh_TW,en
83
- * */
84
- lang: {
85
- type: String,
86
- default: 'en'
87
- },
88
- /** 会话来源,openType="contact"时有效 */
89
- sessionFrom: String,
90
- /** 会话内消息卡片标题,openType="contact"时有效 */
91
- sendMessageTitle: String,
92
- /** 会话内消息卡片点击跳转小程序路径,openType="contact"时有效 */
93
- sendMessagePath: String,
94
- /** 会话内消息卡片图片,openType="contact"时有效 */
95
- sendMessageImg: String,
96
- /** 是否显示会话内消息卡片,设置此参数为 true,用户进入客服会话会在右下角显示"可能要发送的小程序"提示,用户点击后可以快速发送小程序消息,openType="contact"时有效 */
97
- showMessageCard: {
98
- type: Boolean,
99
- default: false
100
- },
101
- /** 额外传参参数,用于小程序的data-xxx属性,通过target.dataset.name获取 */
102
- dataName: String,
103
- /** 节流时间,一定时间内只能触发一次 */
104
- throttleTime: {
105
- type: Number,
106
- default: 0
107
- },
108
- /** 按住后多久出现点击态,单位毫秒 */
109
- hoverStartTime: {
110
- type: Number,
111
- default: 0
112
- },
113
- /** 手指松开后点击态保留时间,单位毫秒 */
114
- hoverStayTime: {
115
- type: Number,
116
- default: 200
117
- },
118
- /** 按钮文字,之所以通过props传入,是因为slot传入的话(注:nvue中无法控制文字的样式) */
119
- text: String,
120
- /** 按钮图标api集合 */
121
- icon: Object as PropType<HyIconProps>,
122
- /** 按钮颜色,支持传入linear-gradient渐变色 */
123
- color: String,
124
- /** 定义需要用到的外部样式 */
125
- customStyle: Object as PropType<CSSProperties>,
126
- /** 自定义外部类名 */
127
- customClass: String,
128
- /** 阻止事件冒泡 */
129
- stop: {
130
- type: Boolean,
131
- default: true
132
- },
133
- /**
134
- * 在支付宝小程序使用,当 open-type 为 getAuthorize 时有效。
135
- * @values userInfo,phoneNumber
136
- * */
137
- scope: {
138
- type: String,
139
- default: ''
140
- }
141
- } as const
142
-
143
- export default buttonProps
1
+ import type { CSSProperties, PropType } from 'vue'
2
+ import type { HyIconProps } from '../hy-icon/typing'
3
+
4
+ const buttonProps = {
5
+ /** 是否显示按钮的细边框 */
6
+ hairline: {
7
+ type: Boolean,
8
+ default: true
9
+ },
10
+ /** 是否显示按钮的边框 */
11
+ border: {
12
+ type: Boolean,
13
+ default: true
14
+ },
15
+ /**
16
+ * 按钮的预置样式
17
+ * @values info,primary,error,warning,success
18
+ * */
19
+ type: {
20
+ type: String,
21
+ default: 'primary'
22
+ },
23
+ /**
24
+ * 按钮尺寸
25
+ * @values large,medium,small,mini
26
+ * */
27
+ size: {
28
+ type: String,
29
+ default: 'medium'
30
+ },
31
+ /**
32
+ * 按钮形状
33
+ * @values circle,square
34
+ * */
35
+ shape: {
36
+ type: String,
37
+ default: 'square'
38
+ },
39
+ /** 按钮是否镂空,背景色透明 */
40
+ plain: {
41
+ type: Boolean,
42
+ default: false
43
+ },
44
+ /** 是否禁用 */
45
+ disabled: {
46
+ type: Boolean,
47
+ default: false
48
+ },
49
+ /** 按钮名称前是否带 loading 图标 */
50
+ loading: {
51
+ type: Boolean,
52
+ default: false
53
+ },
54
+ /** 加载中提示文字 */
55
+ loadingText: String,
56
+ /**
57
+ * 加载状态图标类型
58
+ * @values spinner,circle,semicircle
59
+ * */
60
+ loadingMode: {
61
+ type: String,
62
+ default: 'spinner'
63
+ },
64
+ /** 加载图标大小 */
65
+ loadingSize: {
66
+ type: [Number, String],
67
+ default: 13
68
+ },
69
+ /** 开放能力,具体请看uniapp稳定关于button组件部分说明 */
70
+ openType: String,
71
+ /** 用于 <form> 组件,点击分别会触发 <form> 组件的 submit/reset 事件 */
72
+ formType: String,
73
+ /** 打开 APP 时,向 APP 传递的参数,open-type=launchApp时有效 (注:只微信小程序、QQ小程序有效) */
74
+ appParameter: String,
75
+ /** 指定是否阻止本节点的祖先节点出现点击态,微信小程序有效 */
76
+ hoverStopPropagation: {
77
+ type: Boolean,
78
+ default: true
79
+ },
80
+ /**
81
+ * 指定返回用户信息的语言,zh_CN 简体中文,zh_TW 繁体中文,en 英文(默认 en )
82
+ * @values zh_CN,zh_TW,en
83
+ * */
84
+ lang: {
85
+ type: String,
86
+ default: 'en'
87
+ },
88
+ /** 会话来源,openType="contact"时有效 */
89
+ sessionFrom: String,
90
+ /** 会话内消息卡片标题,openType="contact"时有效 */
91
+ sendMessageTitle: String,
92
+ /** 会话内消息卡片点击跳转小程序路径,openType="contact"时有效 */
93
+ sendMessagePath: String,
94
+ /** 会话内消息卡片图片,openType="contact"时有效 */
95
+ sendMessageImg: String,
96
+ /** 是否显示会话内消息卡片,设置此参数为 true,用户进入客服会话会在右下角显示"可能要发送的小程序"提示,用户点击后可以快速发送小程序消息,openType="contact"时有效 */
97
+ showMessageCard: {
98
+ type: Boolean,
99
+ default: false
100
+ },
101
+ /** 额外传参参数,用于小程序的data-xxx属性,通过target.dataset.name获取 */
102
+ dataName: String,
103
+ /** 节流时间,一定时间内只能触发一次 */
104
+ throttleTime: {
105
+ type: Number,
106
+ default: 0
107
+ },
108
+ /** 按住后多久出现点击态,单位毫秒 */
109
+ hoverStartTime: {
110
+ type: Number,
111
+ default: 0
112
+ },
113
+ /** 手指松开后点击态保留时间,单位毫秒 */
114
+ hoverStayTime: {
115
+ type: Number,
116
+ default: 200
117
+ },
118
+ /** 按钮文字,之所以通过props传入,是因为slot传入的话(注:nvue中无法控制文字的样式) */
119
+ text: String,
120
+ /** 按钮图标api集合 */
121
+ icon: Object as PropType<HyIconProps>,
122
+ /** 按钮颜色,支持传入linear-gradient渐变色 */
123
+ color: String,
124
+ /** 定义需要用到的外部样式 */
125
+ customStyle: Object as PropType<CSSProperties>,
126
+ /** 自定义外部类名 */
127
+ customClass: String,
128
+ /** 阻止事件冒泡 */
129
+ stop: {
130
+ type: Boolean,
131
+ default: true
132
+ },
133
+ /**
134
+ * 在支付宝小程序使用,当 open-type 为 getAuthorize 时有效。
135
+ * @values userInfo,phoneNumber
136
+ * */
137
+ scope: {
138
+ type: String,
139
+ default: ''
140
+ }
141
+ } as const
142
+
143
+ export default buttonProps
@@ -1,35 +1,43 @@
1
- import type { ExtractPropTypes } from 'vue'
2
- import type buttonProps from './props'
3
-
4
- export interface HyButtonProps extends ExtractPropTypes<typeof buttonProps> {}
5
-
6
- export interface IButtonEmits {
7
- /**
8
- * 点击按钮事件
9
- * */
10
- (e: 'click', event: Event): void
11
- /**
12
- * 仅限微信小程序,当使用开放能力时,发生错误的回调
13
- * */
14
- (e: 'error', event: Event): void
15
- /**
16
- * 微信小程序获取手机号
17
- * */
18
- (e: 'getphonenumber', event: Event): void
19
- /**
20
- * 微信小程序用户点击该按钮时,会返回获取到的用户信息,从返回参数的detail中获取到的值同uni.getUserInfo
21
- * */
22
- (e: 'getuserinfo', event: Event): void
23
- /**
24
- * 仅限微信小程序,在打开授权设置页并关闭后回调
25
- * */
26
- (e: 'opensetting', event: Event): void
27
- /**
28
- * 仅限微信小程序,打开 APP 成功的回调
29
- * */
30
- (e: 'launchapp', event: Event): void
31
- /**
32
- * 仅限微信小程序,用户同意隐私协议事件回调,open-type="agreePrivacyAuthorization"时有效
33
- * */
34
- (e: 'agreeprivacyauthorization', event: Event): void
35
- }
1
+ import type { ExtractPropTypes } from 'vue'
2
+ import type buttonProps from './props'
3
+
4
+ export interface HyButtonProps extends ExtractPropTypes<typeof buttonProps> {}
5
+
6
+ export interface IButtonEmits {
7
+ /**
8
+ * 点击按钮事件
9
+ * */
10
+ (e: 'click', event: Event): void
11
+ /**
12
+ * 仅限微信小程序,当使用开放能力时,发生错误的回调
13
+ * */
14
+ (e: 'error', event: Event): void
15
+ /**
16
+ * 微信小程序获取手机号
17
+ * */
18
+ (e: 'getphonenumber', event: Event): void
19
+ /**
20
+ * 微信小程序用户点击该按钮时,会返回获取到的用户信息,从返回参数的detail中获取到的值同uni.getUserInfo
21
+ * */
22
+ (e: 'getuserinfo', event: Event): void
23
+ /**
24
+ * 仅限微信小程序,在打开授权设置页并关闭后回调
25
+ * */
26
+ (e: 'opensetting', event: Event): void
27
+ /**
28
+ * 仅限微信小程序,打开 APP 成功的回调
29
+ * */
30
+ (e: 'launchapp', event: Event): void
31
+ /**
32
+ * 仅限微信小程序,用户同意隐私协议事件回调,open-type="agreePrivacyAuthorization"时有效
33
+ * */
34
+ (e: 'agreeprivacyauthorization', event: Event): void
35
+ /**
36
+ * 获取用户头像回调
37
+ * */
38
+ (e: 'chooseavatar', event: Event): void
39
+ /**
40
+ * 客服消息回调
41
+ * */
42
+ (e: 'contact', event: Event): void
43
+ }
@@ -1,58 +1,58 @@
1
- <template>
2
- <view class="hy-calendar--header hy-border-bottom">
3
- <text class="hy-calendar--header__title" v-if="showTitle">{{ title }}</text>
4
- <text class="hy-calendar--header__subtitle" v-if="showSubtitle">{{ subtitle }}</text>
5
- <view class="hy-calendar--header__weekdays">
6
- <text class="hy-calendar--header__weekdays__weekday">{{ weekText[0] }}</text>
7
- <text class="hy-calendar--header__weekdays__weekday">{{ weekText[1] }}</text>
8
- <text class="hy-calendar--header__weekdays__weekday">{{ weekText[2] }}</text>
9
- <text class="hy-calendar--header__weekdays__weekday">{{ weekText[3] }}</text>
10
- <text class="hy-calendar--header__weekdays__weekday">{{ weekText[4] }}</text>
11
- <text class="hy-calendar--header__weekdays__weekday">{{ weekText[5] }}</text>
12
- <text class="hy-calendar--header__weekdays__weekday">{{ weekText[6] }}</text>
13
- </view>
14
- </view>
15
- </template>
16
-
17
- <script>
18
- export default {
19
- name: 'hy-calendar-header',
20
- props: {
21
- // 标题
22
- title: {
23
- type: String,
24
- default: ''
25
- },
26
- // 副标题
27
- subtitle: {
28
- type: String,
29
- default: ''
30
- },
31
- // 是否显示标题
32
- showTitle: {
33
- type: Boolean,
34
- default: true
35
- },
36
- // 是否显示副标题
37
- showSubtitle: {
38
- type: Boolean,
39
- default: true
40
- },
41
- // 星期文本
42
- weekText: {
43
- type: Array,
44
- default: () => []
45
- }
46
- },
47
- data() {
48
- return {}
49
- },
50
- methods: {
51
- name() {}
52
- }
53
- }
54
- </script>
55
-
56
- <style lang="scss" scoped>
57
- @import './index.scss';
58
- </style>
1
+ <template>
2
+ <view class="hy-calendar--header hy-border-bottom">
3
+ <text class="hy-calendar--header__title" v-if="showTitle">{{ title }}</text>
4
+ <text class="hy-calendar--header__subtitle" v-if="showSubtitle">{{ subtitle }}</text>
5
+ <view class="hy-calendar--header__weekdays">
6
+ <text class="hy-calendar--header__weekdays__weekday">{{ weekText[0] }}</text>
7
+ <text class="hy-calendar--header__weekdays__weekday">{{ weekText[1] }}</text>
8
+ <text class="hy-calendar--header__weekdays__weekday">{{ weekText[2] }}</text>
9
+ <text class="hy-calendar--header__weekdays__weekday">{{ weekText[3] }}</text>
10
+ <text class="hy-calendar--header__weekdays__weekday">{{ weekText[4] }}</text>
11
+ <text class="hy-calendar--header__weekdays__weekday">{{ weekText[5] }}</text>
12
+ <text class="hy-calendar--header__weekdays__weekday">{{ weekText[6] }}</text>
13
+ </view>
14
+ </view>
15
+ </template>
16
+
17
+ <script>
18
+ export default {
19
+ name: 'hy-calendar-header',
20
+ props: {
21
+ // 标题
22
+ title: {
23
+ type: String,
24
+ default: ''
25
+ },
26
+ // 副标题
27
+ subtitle: {
28
+ type: String,
29
+ default: ''
30
+ },
31
+ // 是否显示标题
32
+ showTitle: {
33
+ type: Boolean,
34
+ default: true
35
+ },
36
+ // 是否显示副标题
37
+ showSubtitle: {
38
+ type: Boolean,
39
+ default: true
40
+ },
41
+ // 星期文本
42
+ weekText: {
43
+ type: Array,
44
+ default: () => []
45
+ }
46
+ },
47
+ data() {
48
+ return {}
49
+ },
50
+ methods: {
51
+ name() {}
52
+ }
53
+ }
54
+ </script>
55
+
56
+ <style lang="scss" scoped>
57
+ @import './index.scss';
58
+ </style>
@@ -8,13 +8,13 @@
8
8
  :closeOnClickOverlay="closeOnClickOverlay"
9
9
  >
10
10
  <view class="hy-calendar">
11
- <HyHeader
11
+ <hy-header
12
12
  :title="title"
13
13
  :subtitle="subtitle"
14
14
  :showSubtitle="showSubtitle"
15
15
  :showTitle="showTitle"
16
16
  :weekText="weekText"
17
- ></HyHeader>
17
+ ></hy-header>
18
18
  <scroll-view
19
19
  :style="{
20
20
  height: addUnit(listHeight)
@@ -24,7 +24,7 @@
24
24
  :scroll-top="scrollTop"
25
25
  :scrollIntoView="scrollIntoView"
26
26
  >
27
- <HyMount
27
+ <hy-mount
28
28
  :color="color"
29
29
  :rowHeight="rowHeight"
30
30
  :showMark="showMark"
@@ -47,17 +47,17 @@
47
47
  ref="month"
48
48
  @monthSelected="monthSelected"
49
49
  @updateMonthTop="updateMonthTop"
50
- ></HyMount>
50
+ ></hy-mount>
51
51
  </scroll-view>
52
52
  <slot name="footer" v-if="showConfirm">
53
53
  <view class="hy-calendar__confirm">
54
- <HyButton
54
+ <hy-button
55
55
  shape="circle"
56
56
  :text="buttonDisabled ? confirmDisabledText : confirmText"
57
57
  :color="color"
58
58
  @click="confirm"
59
59
  :disabled="buttonDisabled"
60
- ></HyButton>
60
+ ></hy-button>
61
61
  </view>
62
62
  </slot>
63
63
  </view>
@@ -297,6 +297,7 @@ const init = () => {
297
297
 
298
298
  const close = () => {
299
299
  emit('close')
300
+ emit('update:show', false)
300
301
  }
301
302
 
302
303
  /**
@@ -305,6 +306,7 @@ const close = () => {
305
306
  const confirm = () => {
306
307
  if (!buttonDisabled.value) {
307
308
  emit('confirm', selected.value)
309
+ emit('update:show', false)
308
310
  }
309
311
  }
310
312