hy-app 0.2.11 → 0.2.13

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 (115) hide show
  1. package/component-helper.ts +177 -0
  2. package/components/hy-action-sheet/hy-action-sheet.vue +9 -3
  3. package/components/hy-action-sheet/props.ts +2 -2
  4. package/components/hy-action-sheet/typing.d.ts +49 -16
  5. package/components/hy-button/hy-button.vue +144 -13
  6. package/components/hy-button/props.ts +158 -32
  7. package/components/hy-button/typing.d.ts +71 -32
  8. package/components/index.ts +114 -122
  9. package/components.json +3287 -0
  10. package/dist/attributes.json +1 -0
  11. package/dist/docs/components/hy-action-sheet/hy-action-sheet.md +41 -0
  12. package/dist/docs/components/hy-address-picker/hy-address-picker.md +25 -0
  13. package/dist/docs/components/hy-avatar/hy-avatar.md +19 -0
  14. package/dist/docs/components/hy-back-top/hy-back-top.md +19 -0
  15. package/dist/docs/components/hy-badge/hy-badge.md +13 -0
  16. package/dist/docs/components/hy-button/hy-button.md +61 -0
  17. package/dist/docs/components/hy-calendar/header.md +17 -0
  18. package/dist/docs/components/hy-calendar/hy-calendar.md +27 -0
  19. package/dist/docs/components/hy-calendar/month.md +38 -0
  20. package/dist/docs/components/hy-card/hy-card.md +24 -0
  21. package/dist/docs/components/hy-cell/hy-cell.md +26 -0
  22. package/dist/docs/components/hy-check-button/hy-check-button.md +14 -0
  23. package/dist/docs/components/hy-checkbox/hy-checkbox.md +21 -0
  24. package/dist/docs/components/hy-code-input/hy-code-input.md +15 -0
  25. package/dist/docs/components/hy-config-provider/hy-config-provider.md +13 -0
  26. package/dist/docs/components/hy-count-down/hy-count-down.md +34 -0
  27. package/dist/docs/components/hy-count-to/hy-count-to.md +31 -0
  28. package/dist/docs/components/hy-datetime-picker/hy-datetime-picker.md +25 -0
  29. package/dist/docs/components/hy-divider/hy-divider.md +13 -0
  30. package/dist/docs/components/hy-dropdown/hy-dropdown.md +13 -0
  31. package/dist/docs/components/hy-dropdown-item/hy-dropdown-item.md +20 -0
  32. package/dist/docs/components/hy-empty/hy-empty.md +20 -0
  33. package/dist/docs/components/hy-float-button/hy-float-button.md +20 -0
  34. package/dist/docs/components/hy-folding-panel/hy-folding-panel.md +24 -0
  35. package/dist/docs/components/hy-form/hy-form.md +29 -0
  36. package/dist/docs/components/hy-grid/hy-grid.md +19 -0
  37. package/dist/docs/components/hy-icon/hy-icon.md +13 -0
  38. package/dist/docs/components/hy-image/hy-image.md +22 -0
  39. package/dist/docs/components/hy-input/hy-input.md +29 -0
  40. package/dist/docs/components/hy-line/hy-line.md +7 -0
  41. package/dist/docs/components/hy-line-progress/hy-line-progress.md +13 -0
  42. package/dist/docs/components/hy-list/hy-list.md +25 -0
  43. package/dist/docs/components/hy-loading/hy-loading.md +14 -0
  44. package/dist/docs/components/hy-login/ThePhoneLogin.md +20 -0
  45. package/dist/docs/components/hy-login/TheUserLogin.md +44 -0
  46. package/dist/docs/components/hy-login/hy-login.md +14 -0
  47. package/dist/docs/components/hy-menu/hy-menu.md +21 -0
  48. package/dist/docs/components/hy-modal/hy-modal.md +23 -0
  49. package/dist/docs/components/hy-navbar/hy-navbar.md +22 -0
  50. package/dist/docs/components/hy-notice-bar/hy-column-notice.md +20 -0
  51. package/dist/docs/components/hy-notice-bar/hy-notice-bar.md +14 -0
  52. package/dist/docs/components/hy-notice-bar/hy-row-notice.md +20 -0
  53. package/dist/docs/components/hy-notify/hy-notify.md +23 -0
  54. package/dist/docs/components/hy-number-step/hy-number-step.md +27 -0
  55. package/dist/docs/components/hy-overlay/hy-overlay.md +19 -0
  56. package/dist/docs/components/hy-pagination/hy-pagination.md +14 -0
  57. package/dist/docs/components/hy-parse/hy-parse.md +46 -0
  58. package/dist/docs/components/hy-parse/node/node.md +7 -0
  59. package/dist/docs/components/hy-picker/hy-picker.md +32 -0
  60. package/dist/docs/components/hy-popover/hy-popover.md +34 -0
  61. package/dist/docs/components/hy-popup/hy-popup.md +22 -0
  62. package/dist/docs/components/hy-price/hy-price.md +13 -0
  63. package/dist/docs/components/hy-qrcode/hy-qrcode.md +15 -0
  64. package/dist/docs/components/hy-radio/hy-radio.md +21 -0
  65. package/dist/docs/components/hy-rate/hy-rate.md +14 -0
  66. package/dist/docs/components/hy-read-more/hy-read-more.md +21 -0
  67. package/dist/docs/components/hy-scroll-list/hy-scroll-list.md +21 -0
  68. package/dist/docs/components/hy-search/hy-search.md +27 -0
  69. package/dist/docs/components/hy-signature/hy-signature.md +45 -0
  70. package/dist/docs/components/hy-slider/hy-slider.md +24 -0
  71. package/dist/docs/components/hy-status-bar/hy-status-bar.md +13 -0
  72. package/dist/docs/components/hy-steps/hy-steps.md +23 -0
  73. package/dist/docs/components/hy-submit-bar/hy-submit-bar.md +21 -0
  74. package/dist/docs/components/hy-subsection/hy-subsection.md +14 -0
  75. package/dist/docs/components/hy-swipe-action/hy-swipe-action.md +29 -0
  76. package/dist/docs/components/hy-swiper/hy-swiper-indicator.md +23 -0
  77. package/dist/docs/components/hy-swiper/hy-swiper.md +22 -0
  78. package/dist/docs/components/hy-switch/hy-switch.md +20 -0
  79. package/dist/docs/components/hy-tabBar/hy-tabBar.md +13 -0
  80. package/dist/docs/components/hy-tabs/hy-tabs.md +27 -0
  81. package/dist/docs/components/hy-tag/hy-tag.md +21 -0
  82. package/dist/docs/components/hy-text/hy-text.md +13 -0
  83. package/dist/docs/components/hy-textarea/hy-textarea.md +19 -0
  84. package/dist/docs/components/hy-toast/hy-toast.md +17 -0
  85. package/dist/docs/components/hy-tooltip/hy-tooltip.md +13 -0
  86. package/dist/docs/components/hy-transition/hy-transition.md +25 -0
  87. package/dist/docs/components/hy-upload/hy-upload.md +25 -0
  88. package/dist/docs/components/hy-warn/hy-warn.md +14 -0
  89. package/dist/docs/components/hy-waterfall/hy-waterfall.md +30 -0
  90. package/dist/docs/components/hy-watermark/hy-watermark.md +7 -0
  91. package/dist/docs/components/message/TheMessage.md +17 -0
  92. package/dist/docs/components/yk-dialog/yk-dialog.md +7 -0
  93. package/dist/tags.json +1 -0
  94. package/dist/web-types.json +1 -0
  95. package/docgen.config.js +14 -0
  96. package/global.d.ts +101 -0
  97. package/package.json +29 -33
  98. package/web-types.config.js +7 -0
  99. package/web-types.json +1 -0
  100. package/components/dialog/TheDialog.vue +0 -128
  101. package/components/dialog/index.ts +0 -38
  102. package/components/hy-safe-bottom/hy-safe-bottom.vue +0 -60
  103. package/components/hy-safe-bottom/index.scss +0 -5
  104. package/components/message/TheMessage.vue +0 -169
  105. package/components/message/index.ts +0 -54
  106. package/components/u-form/form.js +0 -22
  107. package/components/u-form/hy-form.vue +0 -324
  108. package/components/u-form/props.js +0 -49
  109. package/components/u-form/schema.js +0 -1451
  110. package/components/u-form/u-form.vue +0 -267
  111. package/components/u-form/utils.js +0 -65
  112. package/components/u-form-item/formItem.js +0 -24
  113. package/components/u-form-item/hy-form-item.vue +0 -360
  114. package/components/u-form-item/props.js +0 -57
  115. package/components/u-form-item/u-form-item.vue +0 -294
@@ -1,34 +1,160 @@
1
- import type IProps from "./typing";
1
+ import type { HyButtonProps } from './typing'
2
+ import { HyApp } from 'hy-app/typing/modules/common'
3
+ import type { CSSProperties } from 'vue'
2
4
 
3
- const defaultProps: IProps = {
4
- hairline: false,
5
- type: "primary",
6
- size: "medium",
7
- shape: "square",
8
- plain: false,
9
- disabled: false,
10
- loading: false,
11
- loadingText: "",
12
- loadingMode: "spinner",
13
- loadingSize: 13,
14
- openType: "",
15
- formType: "",
16
- appParameter: "",
17
- hoverStopPropagation: true,
18
- lang: "en",
19
- sessionFrom: "",
20
- sendMessageTitle: "",
21
- sendMessagePath: "",
22
- sendMessageImg: "",
23
- showMessageCard: false,
24
- dataName: "",
25
- throttleTime: 0,
26
- hoverStartTime: 0,
27
- hoverStayTime: 200,
28
- text: "",
29
- icon: {},
30
- color: "",
31
- stop: true,
32
- };
5
+ const defaultProps = {
6
+ /**是否显示按钮的细边框*/
7
+ hairline: {
8
+ type: Boolean,
9
+ default: false,
10
+ },
11
+ /**按钮的预置样式*/
12
+ type: {
13
+ type: String,
14
+ default: 'primary',
15
+ validator: (v) => ['info', 'primary', 'error', 'warning', 'success'].includes(v),
16
+ },
17
+ /**按钮尺寸*/
18
+ size: {
19
+ type: String,
20
+ default: 'medium',
21
+ validator: (v) => ['large', 'medium', 'small', 'mini'].includes(v),
22
+ },
23
+ /**按钮形状*/
24
+ shape: {
25
+ type: String,
26
+ default: 'square',
27
+ validator: (v) => ['circle', 'square'].includes(v),
28
+ },
29
+ /**按钮是否镂空,背景色透明 */
30
+ plain: {
31
+ type: Boolean,
32
+ default: false,
33
+ },
34
+ /**是否禁用*/
35
+ disabled: {
36
+ type: Boolean,
37
+ default: false,
38
+ },
39
+ /**按钮名称前是否带 loading 图标*/
40
+ loading: {
41
+ type: Boolean,
42
+ default: false,
43
+ },
44
+ /**加载中提示文字*/
45
+ loadingText: {
46
+ type: String,
47
+ default: '',
48
+ },
49
+ /**加载状态图标类型*/
50
+ loadingMode: {
51
+ type: String,
52
+ default: 'spinner',
53
+ validator: (v) => ['spinner', 'circle', 'semicircle'].includes(v),
54
+ },
55
+ /**加载图标大小*/
56
+ loadingSize: {
57
+ type: Number,
58
+ default: 13,
59
+ },
60
+ /**开放能力,具体请看uniapp稳定关于button组件部分说明*/
61
+ openType: {
62
+ type: String,
63
+ default: '',
64
+ },
65
+ /**用于 <form> 组件,点击分别会触发 <form> 组件的 submit/reset 事件*/
66
+ formType: {
67
+ type: String,
68
+ default: '',
69
+ },
70
+ /**打开 APP 时,向 APP 传递的参数,open-type=launchApp时有效 (注:只微信小程序、QQ小程序有效)*/
71
+ appParameter: {
72
+ type: String,
73
+ default: '',
74
+ },
75
+ /**指定是否阻止本节点的祖先节点出现点击态,微信小程序有效*/
76
+ hoverStopPropagation: {
77
+ type: Boolean,
78
+ default: true,
79
+ },
80
+ /**指定返回用户信息的语言,zh_CN 简体中文,zh_TW 繁体中文,en 英文(默认 en )*/
81
+ lang: {
82
+ type: String,
83
+ default: 'en',
84
+ },
85
+ /**会话来源,openType="contact"时有效*/
86
+ sessionFrom: {
87
+ type: String,
88
+ default: '',
89
+ },
90
+ /**会话内消息卡片标题,openType="contact"时有效*/
91
+ sendMessageTitle: {
92
+ type: String,
93
+ default: '',
94
+ },
95
+ /**会话内消息卡片点击跳转小程序路径,openType="contact"时有效*/
96
+ sendMessagePath: {
97
+ type: String,
98
+ default: '',
99
+ },
100
+ /**会话内消息卡片图片,openType="contact"时有效*/
101
+ sendMessageImg: {
102
+ type: String,
103
+ default: '',
104
+ },
105
+ /**是否显示会话内消息卡片,设置此参数为 true,用户进入客服会话会在右下角显示"可能要发送的小程序"提示,用户点击后可以快速发送小程序消息,openType="contact"时有效*/
106
+ showMessageCard: {
107
+ type: Boolean,
108
+ default: false,
109
+ },
110
+ /**额外传参参数,用于小程序的data-xxx属性,通过target.dataset.name获取*/
111
+ dataName: {
112
+ type: String,
113
+ default: '',
114
+ },
115
+ /**节流时间,一定时间内只能触发一次*/
116
+ throttleTime: {
117
+ type: Number,
118
+ default: 0,
119
+ },
120
+ /**按住后多久出现点击态,单位毫秒*/
121
+ hoverStartTime: {
122
+ type: Number,
123
+ default: 0,
124
+ },
125
+ /**手指松开后点击态保留时间,单位毫秒*/
126
+ hoverStayTime: {
127
+ type: Number,
128
+ default: 200,
129
+ },
130
+ /**按钮文字,之所以通过props传入,是因为slot传入的话(注:nvue中无法控制文字的样式)*/
131
+ text: {
132
+ type: String,
133
+ default: '',
134
+ },
135
+ /**按钮图标api集合*/
136
+ icon: {
137
+ type: Object,
138
+ default: () => ({}),
139
+ },
140
+ /**按钮颜色,支持传入linear-gradient渐变色*/
141
+ color: {
142
+ type: String,
143
+ default: '',
144
+ },
145
+ /**阻止事件冒泡*/
146
+ stop: {
147
+ type: Boolean,
148
+ default: true,
149
+ },
150
+ /**阻止事件冒泡*/
151
+ customStyle: {
152
+ type: CSSProperties,
153
+ },
154
+ /**阻止事件冒泡*/
155
+ customClass: {
156
+ type: String,
157
+ },
158
+ }
33
159
 
34
- export default defaultProps;
160
+ export default defaultProps
@@ -1,126 +1,165 @@
1
1
  import type { CSSProperties } from 'vue'
2
2
  import type HyIconProps from '../hy-icon/typing'
3
+ import HyApp from 'hy-app'
3
4
 
4
- export default interface HyButtonProps {
5
+ export interface HyButtonProps {
5
6
  /**
6
- * @description 是否显示按钮的细边框 (默认 true )
7
+ * 是否显示按钮的细边框
8
+ * @default true
9
+ * @type {boolean}
7
10
  * */
8
11
  hairline?: boolean
9
12
  /**
10
- * @description 按钮的预置样式,info,primary,error,warning,success (默认 'primary' )
13
+ * 按钮的预置样式
14
+ * @type {ThemeType}
15
+ * @default 'primary'
16
+ * @values info, primary, error, warning, success
11
17
  * */
12
18
  type?: HyApp.ThemeType
13
19
  /**
14
- * @description 按钮尺寸,large,medium,mini (默认 medium)
20
+ * 按钮尺寸
21
+ * @type {'large' | 'medium' | 'small' | 'mini'}
22
+ * @default 'medium'
15
23
  * */
16
- size?: HyApp.SizeType | 'mini'
24
+ size?: 'large' | 'medium' | 'small' | 'mini'
17
25
  /**
18
- * @description 按钮形状,circle(两边为半圆),square(带圆角) (默认 'square' )
26
+ * 按钮形状,circle(两边为半圆),square(带圆角) (默认 'square' )
19
27
  * */
20
28
  shape?: HyApp.ShapeType
21
29
  /**
22
- * @description 按钮是否镂空,背景色透明 (默认 false)
30
+ * 按钮是否镂空,背景色透明 (默认 false)
23
31
  * */
24
32
  plain?: boolean
25
33
  /**
26
- * @description 是否禁用 (默认 false)
34
+ * 是否禁用 (默认 false)
27
35
  * */
28
36
  disabled?: boolean
29
37
  /**
30
- * @description 按钮名称前是否带 loading 图标(App-nvue 平台,在 ios 上为雪花,Android上为圆圈) (默认 false)
38
+ * 按钮名称前是否带 loading 图标(App-nvue 平台,在 ios 上为雪花,Android上为圆圈) (默认 false)
31
39
  * */
32
40
  loading?: boolean
33
41
  /**
34
- * @description 加载中提示文字
42
+ * 加载中提示文字
35
43
  * */
36
44
  loadingText?: string
37
45
  /**
38
- * @description 加载状态图标类型 (默认 'spinner' )
46
+ * 加载状态图标类型 (默认 'spinner' )
39
47
  * */
40
48
  loadingMode?: HyApp.LoadingMode
41
49
  /**
42
- * @description 加载图标大小 (默认 13 )
50
+ * 加载图标大小 (默认 13 )
43
51
  * */
44
52
  loadingSize?: number
45
53
  /**
46
- * @description 开放能力,具体请看uniapp稳定关于button组件部分说明
54
+ * 开放能力,具体请看uniapp稳定关于button组件部分说明
47
55
  * */
48
56
  openType?: string
49
57
  /**
50
- * @description 用于 <form> 组件,点击分别会触发 <form> 组件的 submit/reset 事件
58
+ * 用于 <form> 组件,点击分别会触发 <form> 组件的 submit/reset 事件
51
59
  * */
52
60
  formType?: string
53
61
  /**
54
- * @description 打开 APP 时,向 APP 传递的参数,open-type=launchApp时有效 (注:只微信小程序、QQ小程序有效)
62
+ * 打开 APP 时,向 APP 传递的参数,open-type=launchApp时有效 (注:只微信小程序、QQ小程序有效)
55
63
  * */
56
64
  appParameter?: string
57
65
  /**
58
- * @description 指定是否阻止本节点的祖先节点出现点击态,微信小程序有效(默认 true )
66
+ * 指定是否阻止本节点的祖先节点出现点击态,微信小程序有效(默认 true )
59
67
  * */
60
68
  hoverStopPropagation?: boolean
61
69
  /**
62
- * @description 指定返回用户信息的语言,zh_CN 简体中文,zh_TW 繁体中文,en 英文(默认 en )
70
+ * 指定返回用户信息的语言,zh_CN 简体中文,zh_TW 繁体中文,en 英文(默认 en )
63
71
  * */
64
72
  lang?: string
65
73
  /**
66
- * @description 会话来源,openType="contact"时有效
74
+ * 会话来源,openType="contact"时有效
67
75
  * */
68
76
  sessionFrom?: string
69
77
  /**
70
- * @description 会话内消息卡片标题,openType="contact"时有效
78
+ * 会话内消息卡片标题,openType="contact"时有效
71
79
  * */
72
80
  sendMessageTitle?: string
73
81
  /**
74
- * @description 会话内消息卡片点击跳转小程序路径,openType="contact"时有效
82
+ * 会话内消息卡片点击跳转小程序路径,openType="contact"时有效
75
83
  * */
76
84
  sendMessagePath?: string
77
85
  /**
78
- * @description 会话内消息卡片图片,openType="contact"时有效
86
+ * 会话内消息卡片图片,openType="contact"时有效
79
87
  * */
80
88
  sendMessageImg?: string
81
89
  /**
82
- * @description 是否显示会话内消息卡片,设置此参数为 true,用户进入客服会话会在右下角显示"可能要发送的小程序"提示,用户点击后可以快速发送小程序消息,openType="contact"时有效(默认false)
90
+ * 是否显示会话内消息卡片,设置此参数为 true,用户进入客服会话会在右下角显示"可能要发送的小程序"提示,用户点击后可以快速发送小程序消息,openType="contact"时有效(默认false)
83
91
  * */
84
92
  showMessageCard?: boolean
85
93
  /**
86
- * @description 额外传参参数,用于小程序的data-xxx属性,通过target.dataset.name获取
94
+ * 额外传参参数,用于小程序的data-xxx属性,通过target.dataset.name获取
87
95
  * */
88
96
  dataName?: string
89
97
  /**
90
- * @description 节流时间,一定时间内只能触发一次 (默认 0 )
98
+ * 节流时间,一定时间内只能触发一次 (默认 0 )
91
99
  * */
92
100
  throttleTime?: number
93
101
  /**
94
- * @description 按住后多久出现点击态,单位毫秒 (默认 0 )
102
+ * 按住后多久出现点击态,单位毫秒 (默认 0 )
95
103
  * */
96
104
  hoverStartTime?: number
97
105
  /**
98
- * @description 手指松开后点击态保留时间,单位毫秒 (默认 200 )
106
+ * 手指松开后点击态保留时间,单位毫秒 (默认 200 )
99
107
  * */
100
108
  hoverStayTime?: number
101
109
  /**
102
- * @description 按钮文字,之所以通过props传入,是因为slot传入的话(注:nvue中无法控制文字的样式)
110
+ * 按钮文字,之所以通过props传入,是因为slot传入的话(注:nvue中无法控制文字的样式)
103
111
  * */
104
112
  text?: string
105
113
  /**
106
- * @description 按钮图标api集合
114
+ * 按钮图标api集合
107
115
  * */
108
116
  icon?: Partial<HyIconProps>
109
117
  /**
110
- * @description 按钮颜色,支持传入linear-gradient渐变色
118
+ * 按钮颜色,支持传入linear-gradient渐变色
111
119
  * */
112
120
  color?: string
113
121
  /**
114
- * @description 阻止事件冒泡
122
+ * 阻止事件冒泡
115
123
  * */
116
124
  stop?: boolean
117
125
  /**
118
- * @description 定义需要用到的外部样式
126
+ * 定义需要用到的外部样式
119
127
  * @note 类型问题
120
128
  * */
121
129
  customStyle?: CSSProperties
122
130
  /**
123
- * @description 自定义外部类名
131
+ * 自定义外部类名
124
132
  * */
125
133
  customClass?: string
126
134
  }
135
+
136
+ export interface IButtonEmits {
137
+ /**
138
+ * 点击按钮事件
139
+ * */
140
+ (e: 'click', event: Event): void
141
+ /**
142
+ * 仅限微信小程序,当使用开放能力时,发生错误的回调
143
+ * */
144
+ (e: 'error', event: Event): void
145
+ /**
146
+ * 微信小程序获取手机号
147
+ * */
148
+ (e: 'getphonenumber', event: Event): void
149
+ /**
150
+ * 微信小程序用户点击该按钮时,会返回获取到的用户信息,从返回参数的detail中获取到的值同uni.getUserInfo
151
+ * */
152
+ (e: 'getuserinfo', event: Event): void
153
+ /**
154
+ * 仅限微信小程序,在打开授权设置页并关闭后回调
155
+ * */
156
+ (e: 'opensetting', event: Event): void
157
+ /**
158
+ * 仅限微信小程序,打开 APP 成功的回调
159
+ * */
160
+ (e: 'launchapp', event: Event): void
161
+ /**
162
+ * 仅限微信小程序,用户同意隐私协议事件回调,open-type="agreePrivacyAuthorization"时有效
163
+ * */
164
+ (e: 'agreeprivacyauthorization', event: Event): void
165
+ }
@@ -1,133 +1,125 @@
1
- import HyTabBr from "./hy-tabBar/hy-tabBar.vue";
2
- import Dialog from "./dialog";
3
- /* #ifdef H5 */
4
- import DialogService from "./message";
5
- /* #endif */
6
-
1
+ import HyTabBr from './hy-tabBar/hy-tabBar.vue'
2
+ import Dialog from './dialog'
7
3
  // 组件库
8
- import HyAddressPicker from "./hy-address-picker/hy-address-picker.vue";
9
- import HyAvatar from "./hy-avatar/hy-avatar.vue";
10
- import HyBackTop from "./hy-back-top/hy-back-top.vue";
11
- import HyBadge from "./hy-badge/hy-badge.vue";
12
- import HyButton from "./hy-button/hy-button.vue";
13
- import HyCard from "./hy-card/hy-card.vue";
14
- import HyCell from "./hy-cell/hy-cell.vue";
15
- import HyCheckButton from "./hy-check-button/hy-check-button.vue";
16
- import HyCheckbox from "./hy-checkbox/hy-checkbox.vue";
17
- import HyCountDown from "./hy-count-down/hy-count-down.vue";
18
- import HyCountTo from "./hy-count-to/hy-count-to.vue";
19
- import HyDatetimePicker from "./hy-datetime-picker/hy-datetime-picker.vue";
20
- import HyDivider from "./hy-divider/hy-divider.vue";
21
- import HyDropdown from "./hy-dropdown/hy-dropdown.vue";
22
- import HyDropdownItem from "./hy-dropdown-item/hy-dropdown-item.vue";
23
- import YkEmpty from "./hy-empty/hy-empty.vue";
24
- import YkFloatButton from "./hy-float-button/hy-float-button.vue";
25
- import HyFoldingPanel from "./hy-folding-panel/hy-folding-panel.vue";
26
- import HyForm from "./hy-form/hy-form.vue";
27
- import HyGrid from "./hy-grid/hy-grid.vue";
28
- import HyIcon from "./hy-icon/hy-icon.vue";
29
- import HyImage from "./hy-image/hy-image.vue";
30
- import HyInput from "./hy-input/hy-input.vue";
31
- import HyLine from "./hy-line/hy-line.vue";
32
- import HyLineProgress from "./hy-line-progress/hy-line-progress.vue";
33
- import HyList from "./hy-list/hy-list.vue";
34
- import HyLoading from "./hy-loading/hy-loading.vue";
35
- import YkLogin from "./hy-login/hy-login.vue";
36
- import HyModal from "./hy-modal/hy-modal.vue";
37
- import HyNavbar from "./hy-navbar/hy-navbar.vue";
38
- import HyNoticeBar from "./hy-notice-bar/hy-notice-bar.vue";
39
- import HyNumberStep from "./hy-number-step/hy-number-step.vue";
40
- import HyOverlay from "./hy-overlay/hy-overlay.vue";
41
- import YkPrice from "./hy-price/hy-price.vue";
42
- import HyPicker from "./hy-picker/hy-picker.vue";
43
- import HyPopup from "./hy-popup/hy-popup.vue";
44
- import HyQrcode from "./hy-qrcode/hy-qrcode.vue";
45
- import HyRadio from "./hy-radio/hy-radio.vue";
46
- import HyRate from "./hy-rate/hy-rate.vue";
47
- import HyReadMore from "./hy-read-more/hy-read-more.vue";
4
+ import HyAddressPicker from './hy-address-picker/hy-address-picker.vue'
5
+ import HyAvatar from './hy-avatar/hy-avatar.vue'
6
+ import HyBackTop from './hy-back-top/hy-back-top.vue'
7
+ import HyBadge from './hy-badge/hy-badge.vue'
8
+ import HyButton from './hy-button/hy-button.vue'
9
+ import HyCard from './hy-card/hy-card.vue'
10
+ import HyCell from './hy-cell/hy-cell.vue'
11
+ import HyCheckButton from './hy-check-button/hy-check-button.vue'
12
+ import HyCheckbox from './hy-checkbox/hy-checkbox.vue'
13
+ import HyCountDown from './hy-count-down/hy-count-down.vue'
14
+ import HyCountTo from './hy-count-to/hy-count-to.vue'
15
+ import HyDatetimePicker from './hy-datetime-picker/hy-datetime-picker.vue'
16
+ import HyDivider from './hy-divider/hy-divider.vue'
17
+ import HyDropdown from './hy-dropdown/hy-dropdown.vue'
18
+ import HyDropdownItem from './hy-dropdown-item/hy-dropdown-item.vue'
19
+ import YkEmpty from './hy-empty/hy-empty.vue'
20
+ import YkFloatButton from './hy-float-button/hy-float-button.vue'
21
+ import HyFoldingPanel from './hy-folding-panel/hy-folding-panel.vue'
22
+ import HyForm from './hy-form/hy-form.vue'
23
+ import HyGrid from './hy-grid/hy-grid.vue'
24
+ import HyIcon from './hy-icon/hy-icon.vue'
25
+ import HyImage from './hy-image/hy-image.vue'
26
+ import HyInput from './hy-input/hy-input.vue'
27
+ import HyLine from './hy-line/hy-line.vue'
28
+ import HyLineProgress from './hy-line-progress/hy-line-progress.vue'
29
+ import HyList from './hy-list/hy-list.vue'
30
+ import HyLoading from './hy-loading/hy-loading.vue'
31
+ import YkLogin from './hy-login/hy-login.vue'
32
+ import HyModal from './hy-modal/hy-modal.vue'
33
+ import HyNavbar from './hy-navbar/hy-navbar.vue'
34
+ import HyNoticeBar from './hy-notice-bar/hy-notice-bar.vue'
35
+ import HyNumberStep from './hy-number-step/hy-number-step.vue'
36
+ import HyOverlay from './hy-overlay/hy-overlay.vue'
37
+ import YkPrice from './hy-price/hy-price.vue'
38
+ import HyPicker from './hy-picker/hy-picker.vue'
39
+ import HyPopup from './hy-popup/hy-popup.vue'
40
+ import HyQrcode from './hy-qrcode/hy-qrcode.vue'
41
+ import HyRadio from './hy-radio/hy-radio.vue'
42
+ import HyRate from './hy-rate/hy-rate.vue'
43
+ import HyReadMore from './hy-read-more/hy-read-more.vue'
48
44
  // import HySafeBottom from "./hy-safe-bottom/hy-safe-bottom.vue";
49
- import HyScrollList from "./hy-scroll-list/hy-scroll-list.vue";
50
- import HySearch from "./hy-search/hy-search.vue";
51
- import HySlider from "./hy-slider/hy-slider.vue";
52
- import HyStatusBar from "./hy-status-bar/hy-status-bar.vue";
53
- import HySteps from "./hy-steps/hy-steps.vue";
54
- import HySubsection from "./hy-subsection/hy-subsection.vue";
55
- import HySwiper from "./hy-swiper/hy-swiper.vue";
56
- import HySwitch from "./hy-switch/hy-switch.vue";
57
- import HyTabs from "./hy-tabs/hy-tabs.vue";
58
- import HyTag from "./hy-tag/hy-tag.vue";
59
- import HyTextarea from "./hy-textarea/hy-textarea.vue";
60
- import HyTooltip from "./hy-tooltip/hy-tooltip.vue";
61
- import HyTransition from "./hy-transition/hy-transition.vue";
62
- import HyUpload from "./hy-upload/hy-upload.vue";
63
- import HyWarn from "./hy-warn/hy-warn.vue";
45
+ import HyScrollList from './hy-scroll-list/hy-scroll-list.vue'
46
+ import HySearch from './hy-search/hy-search.vue'
47
+ import HySlider from './hy-slider/hy-slider.vue'
48
+ import HyStatusBar from './hy-status-bar/hy-status-bar.vue'
49
+ import HySteps from './hy-steps/hy-steps.vue'
50
+ import HySubsection from './hy-subsection/hy-subsection.vue'
51
+ import HySwiper from './hy-swiper/hy-swiper.vue'
52
+ import HySwitch from './hy-switch/hy-switch.vue'
53
+ import HyTabs from './hy-tabs/hy-tabs.vue'
54
+ import HyTag from './hy-tag/hy-tag.vue'
55
+ import HyTextarea from './hy-textarea/hy-textarea.vue'
56
+ import HyTooltip from './hy-tooltip/hy-tooltip.vue'
57
+ import HyTransition from './hy-transition/hy-transition.vue'
58
+ import HyUpload from './hy-upload/hy-upload.vue'
59
+ import HyWarn from './hy-warn/hy-warn.vue'
64
60
 
65
61
  const install = (Vue: any) => {
66
- Vue.component("hy-tabBar", HyTabBr);
62
+ Vue.component('hy-tabBar', HyTabBr)
67
63
 
68
- Vue.component("HyAddressPicker", HyAddressPicker);
69
- Vue.component("HyAvatar", HyAvatar);
70
- Vue.component("HyBackTop", HyBackTop);
71
- Vue.component("HyBadge", HyBadge);
72
- Vue.component("HyButton", HyButton);
73
- Vue.component("HyCard", HyCard);
74
- Vue.component("HyCell", HyCell);
75
- Vue.component("HyCheckButton", HyCheckButton);
76
- Vue.component("HyCheckbox", HyCheckbox);
77
- Vue.component("HyCountDown", HyCountDown);
78
- Vue.component("HyCountTo", HyCountTo);
79
- Vue.component("HyDatetimePicker", HyDatetimePicker);
80
- Vue.component("HyDivider", HyDivider);
81
- Vue.component("HyDropdown", HyDropdown);
82
- Vue.component("HyDropdownItem", HyDropdownItem);
83
- Vue.component("YkEmpty", YkEmpty);
84
- Vue.component("YkFloatButton", YkFloatButton);
85
- Vue.component("HyFoldingPanel", HyFoldingPanel);
86
- Vue.component("HyForm", HyForm);
87
- Vue.component("HyGrid", HyGrid);
88
- Vue.component("HyIcon", HyIcon);
89
- Vue.component("HyImage", HyImage);
90
- Vue.component("HyInput", HyInput);
91
- Vue.component("HyLine", HyLine);
92
- Vue.component("HyLineProgress", HyLineProgress);
93
- Vue.component("HyList", HyList);
94
- Vue.component("HyLoading", HyLoading);
64
+ Vue.component('HyAddressPicker', HyAddressPicker)
65
+ Vue.component('HyAvatar', HyAvatar)
66
+ Vue.component('HyBackTop', HyBackTop)
67
+ Vue.component('HyBadge', HyBadge)
68
+ Vue.component('HyButton', HyButton)
69
+ Vue.component('HyCard', HyCard)
70
+ Vue.component('HyCell', HyCell)
71
+ Vue.component('HyCheckButton', HyCheckButton)
72
+ Vue.component('HyCheckbox', HyCheckbox)
73
+ Vue.component('HyCountDown', HyCountDown)
74
+ Vue.component('HyCountTo', HyCountTo)
75
+ Vue.component('HyDatetimePicker', HyDatetimePicker)
76
+ Vue.component('HyDivider', HyDivider)
77
+ Vue.component('HyDropdown', HyDropdown)
78
+ Vue.component('HyDropdownItem', HyDropdownItem)
79
+ Vue.component('YkEmpty', YkEmpty)
80
+ Vue.component('YkFloatButton', YkFloatButton)
81
+ Vue.component('HyFoldingPanel', HyFoldingPanel)
82
+ Vue.component('HyForm', HyForm)
83
+ Vue.component('HyGrid', HyGrid)
84
+ Vue.component('HyIcon', HyIcon)
85
+ Vue.component('HyImage', HyImage)
86
+ Vue.component('HyInput', HyInput)
87
+ Vue.component('HyLine', HyLine)
88
+ Vue.component('HyLineProgress', HyLineProgress)
89
+ Vue.component('HyList', HyList)
90
+ Vue.component('HyLoading', HyLoading)
95
91
  // Vue.component("YkLogin", YkLogin);
96
- Vue.component("HyModal", HyModal);
97
- Vue.component("HyNavbar", HyNavbar);
98
- Vue.component("HyNoticeBar", HyNoticeBar);
99
- Vue.component("HyNumberStep", HyNumberStep);
100
- Vue.component("HyOverlay", HyOverlay);
101
- Vue.component("YkPrice", YkPrice);
102
- Vue.component("HyPicker", HyPicker);
103
- Vue.component("HyPopup", HyPopup);
104
- Vue.component("HyQrcode", HyQrcode);
105
- Vue.component("HyRadio", HyRadio);
106
- Vue.component("HyRate", HyRate);
107
- Vue.component("HyReadMore", HyReadMore);
108
- Vue.component("HyScrollList", HyScrollList);
109
- Vue.component("HySearch", HySearch);
110
- Vue.component("HySlider", HySlider);
111
- Vue.component("HyStatusBar", HyStatusBar);
112
- Vue.component("HySteps", HySteps);
113
- Vue.component("HySubsection", HySubsection);
114
- Vue.component("HySwiper", HySwiper);
115
- Vue.component("HySwitch", HySwitch);
116
- Vue.component("HyTabs", HyTabs);
117
- Vue.component("HyTag", HyTag);
118
- Vue.component("HyTextarea", HyTextarea);
119
- Vue.component("HyTooltip", HyTooltip);
120
- Vue.component("HyTransition", HyTransition);
121
- Vue.component("HyUpload", HyUpload);
122
- Vue.component("HyWarn", HyWarn);
92
+ Vue.component('HyModal', HyModal)
93
+ Vue.component('HyNavbar', HyNavbar)
94
+ Vue.component('HyNoticeBar', HyNoticeBar)
95
+ Vue.component('HyNumberStep', HyNumberStep)
96
+ Vue.component('HyOverlay', HyOverlay)
97
+ Vue.component('YkPrice', YkPrice)
98
+ Vue.component('HyPicker', HyPicker)
99
+ Vue.component('HyPopup', HyPopup)
100
+ Vue.component('HyQrcode', HyQrcode)
101
+ Vue.component('HyRadio', HyRadio)
102
+ Vue.component('HyRate', HyRate)
103
+ Vue.component('HyReadMore', HyReadMore)
104
+ Vue.component('HyScrollList', HyScrollList)
105
+ Vue.component('HySearch', HySearch)
106
+ Vue.component('HySlider', HySlider)
107
+ Vue.component('HyStatusBar', HyStatusBar)
108
+ Vue.component('HySteps', HySteps)
109
+ Vue.component('HySubsection', HySubsection)
110
+ Vue.component('HySwiper', HySwiper)
111
+ Vue.component('HySwitch', HySwitch)
112
+ Vue.component('HyTabs', HyTabs)
113
+ Vue.component('HyTag', HyTag)
114
+ Vue.component('HyTextarea', HyTextarea)
115
+ Vue.component('HyTooltip', HyTooltip)
116
+ Vue.component('HyTransition', HyTransition)
117
+ Vue.component('HyUpload', HyUpload)
118
+ Vue.component('HyWarn', HyWarn)
123
119
  // Vue.config.globalProperties.$dialog = myDialog;
124
- };
120
+ }
125
121
  export {
126
122
  install,
127
- // Dialog,
128
- /* #ifdef H5 */
129
- DialogService,
130
- /* #endif */
131
123
  HyAddressPicker,
132
124
  HyAvatar,
133
125
  HyBackTop,
@@ -183,4 +175,4 @@ export {
183
175
  HyTransition,
184
176
  HyUpload,
185
177
  HyWarn,
186
- };
178
+ }