hy-app 0.2.14 → 0.2.15

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 (137) hide show
  1. package/components/hy-action-sheet/hy-action-sheet.vue +81 -13
  2. package/components/hy-action-sheet/typing.d.ts +1 -3
  3. package/components/hy-address-picker/hy-address-picker.vue +109 -8
  4. package/components/hy-address-picker/index.scss +2 -2
  5. package/components/hy-address-picker/typing.d.ts +39 -30
  6. package/components/hy-avatar/hy-avatar.vue +78 -4
  7. package/components/hy-avatar/typing.d.ts +21 -16
  8. package/components/hy-back-top/hy-back-top.vue +86 -28
  9. package/components/hy-back-top/typing.d.ts +17 -12
  10. package/components/hy-badge/hy-badge.vue +114 -43
  11. package/components/hy-badge/typing.d.ts +20 -15
  12. package/components/hy-button/hy-button.vue +22 -40
  13. package/components/hy-calendar/hy-calendar.vue +290 -143
  14. package/components/hy-calendar/typing.d.ts +38 -31
  15. package/components/hy-card/hy-card.vue +139 -36
  16. package/components/hy-card/typing.d.ts +39 -28
  17. package/components/hy-cell/hy-cell.vue +131 -67
  18. package/components/hy-cell/typing.d.ts +6 -1
  19. package/components/hy-check-button/hy-check-button.vue +101 -32
  20. package/components/hy-check-button/typing.d.ts +26 -19
  21. package/components/hy-checkbox/hy-checkbox.vue +167 -78
  22. package/components/hy-checkbox/typing.d.ts +26 -19
  23. package/components/hy-code-input/hy-code-input.vue +101 -5
  24. package/components/hy-code-input/typing.d.ts +9 -0
  25. package/components/hy-config-provider/hy-config-provider.vue +44 -24
  26. package/components/hy-config-provider/typing.d.ts +0 -4
  27. package/components/hy-count-down/hy-count-down.vue +99 -62
  28. package/components/hy-count-down/typing.d.ts +18 -5
  29. package/components/hy-count-to/hy-count-to.vue +165 -113
  30. package/components/hy-count-to/typing.d.ts +15 -11
  31. package/components/hy-datetime-picker/hy-datetime-picker.vue +338 -232
  32. package/components/hy-datetime-picker/typing.d.ts +49 -39
  33. package/components/hy-divider/hy-divider.vue +128 -64
  34. package/components/hy-divider/typing.d.ts +16 -16
  35. package/components/hy-dropdown/hy-dropdown.vue +57 -19
  36. package/components/hy-dropdown/typing.d.ts +14 -14
  37. package/components/hy-dropdown-item/hy-dropdown-item.vue +34 -5
  38. package/components/hy-dropdown-item/typing.d.ts +13 -6
  39. package/components/hy-empty/hy-empty.vue +64 -6
  40. package/components/hy-empty/typing.d.ts +5 -0
  41. package/components/hy-float-button/hy-float-button.vue +117 -5
  42. package/components/hy-float-button/typing.d.ts +7 -0
  43. package/components/hy-folding-panel/hy-folding-panel.vue +87 -25
  44. package/components/hy-folding-panel/typing.d.ts +24 -15
  45. package/components/hy-grid/hy-grid.vue +95 -35
  46. package/components/hy-grid/typing.d.ts +24 -19
  47. package/components/hy-icon/hy-icon.vue +84 -6
  48. package/components/hy-icon/typing.d.ts +5 -0
  49. package/components/hy-image/hy-image.vue +105 -6
  50. package/components/hy-image/typing.d.ts +9 -0
  51. package/components/hy-input/hy-input.vue +277 -130
  52. package/components/hy-input/props.ts +13 -14
  53. package/components/hy-input/typing.d.ts +59 -38
  54. package/components/hy-line/hy-line.vue +65 -25
  55. package/components/hy-line-progress/hy-line-progress.vue +68 -35
  56. package/components/hy-list/hy-list.vue +127 -61
  57. package/components/hy-list/typing.d.ts +19 -12
  58. package/components/hy-loading/hy-loading.vue +79 -25
  59. package/components/hy-menu/hy-menu.vue +69 -45
  60. package/components/hy-menu/typing.d.ts +22 -15
  61. package/components/hy-modal/hy-modal.vue +91 -4
  62. package/components/hy-modal/typing.d.ts +11 -0
  63. package/components/hy-navbar/hy-navbar.vue +105 -25
  64. package/components/hy-navbar/typing.d.ts +25 -20
  65. package/components/hy-notice-bar/hy-notice-bar.vue +97 -19
  66. package/components/hy-notice-bar/typing.d.ts +22 -17
  67. package/components/hy-notify/hy-notify.vue +106 -54
  68. package/components/hy-number-step/hy-number-step.vue +211 -120
  69. package/components/hy-number-step/typing.d.ts +45 -28
  70. package/components/hy-overlay/hy-overlay.vue +60 -16
  71. package/components/hy-overlay/typing.d.ts +11 -6
  72. package/components/hy-pagination/hy-pagination.vue +94 -37
  73. package/components/hy-pagination/typing.d.ts +20 -11
  74. package/components/hy-picker/hy-picker.vue +225 -160
  75. package/components/hy-picker/typing.d.ts +51 -28
  76. package/components/hy-popover/hy-popover.vue +55 -7
  77. package/components/hy-popover/typing.d.ts +21 -1
  78. package/components/hy-popup/hy-popup.vue +164 -99
  79. package/components/hy-popup/typing.d.ts +11 -0
  80. package/components/hy-price/hy-price.vue +77 -30
  81. package/components/hy-price/typing.d.ts +10 -10
  82. package/components/hy-qrcode/hy-qrcode.vue +75 -5
  83. package/components/hy-qrcode/typing.d.ts +25 -16
  84. package/components/hy-radio/hy-radio.vue +169 -88
  85. package/components/hy-radio/typing.d.ts +29 -22
  86. package/components/hy-rate/hy-rate.vue +155 -104
  87. package/components/hy-rate/typing.d.ts +23 -16
  88. package/components/hy-read-more/hy-read-more.vue +83 -56
  89. package/components/hy-read-more/typing.d.ts +18 -11
  90. package/components/hy-scroll-list/hy-scroll-list.vue +69 -58
  91. package/components/hy-scroll-list/typing.d.ts +14 -7
  92. package/components/hy-search/hy-search.vue +168 -62
  93. package/components/hy-search/typing.d.ts +47 -26
  94. package/components/hy-signature/hy-signature.vue +354 -272
  95. package/components/hy-signature/typing.d.ts +65 -52
  96. package/components/hy-slider/hy-slider.vue +208 -160
  97. package/components/hy-slider/typing.d.ts +28 -17
  98. package/components/hy-steps/hy-steps.vue +125 -99
  99. package/components/hy-steps/typing.d.ts +21 -14
  100. package/components/hy-submit-bar/hy-submit-bar.vue +129 -48
  101. package/components/hy-submit-bar/typing.d.ts +30 -23
  102. package/components/hy-subsection/hy-subsection.vue +139 -96
  103. package/components/hy-subsection/typing.d.ts +23 -16
  104. package/components/hy-swipe-action/hy-swipe-action.vue +161 -135
  105. package/components/hy-swipe-action/typing.d.ts +26 -17
  106. package/components/hy-swiper/hy-swiper.vue +178 -73
  107. package/components/hy-swiper/typing.d.ts +37 -28
  108. package/components/hy-switch/hy-switch.vue +107 -60
  109. package/components/hy-switch/typing.d.ts +25 -18
  110. package/components/hy-tabs/hy-tabs.vue +170 -160
  111. package/components/hy-tabs/typing.d.ts +36 -22
  112. package/components/hy-tag/hy-tag.vue +133 -58
  113. package/components/hy-tag/typing.d.ts +26 -18
  114. package/components/hy-text/hy-text.vue +106 -6
  115. package/components/hy-text/typing.d.ts +31 -26
  116. package/components/hy-textarea/hy-textarea.vue +183 -89
  117. package/components/hy-textarea/typing.d.ts +41 -24
  118. package/components/hy-tooltip/hy-tooltip.vue +145 -101
  119. package/components/hy-tooltip/typing.d.ts +18 -13
  120. package/components/hy-transition/hy-transition.vue +48 -13
  121. package/components/hy-transition/typing.d.ts +17 -0
  122. package/components/hy-upload/hy-upload.vue +113 -148
  123. package/components/hy-upload/typing.d.ts +71 -71
  124. package/components/hy-warn/hy-warn.vue +79 -36
  125. package/components/hy-warn/typing.d.ts +18 -11
  126. package/components/hy-waterfall/hy-waterfall.vue +90 -77
  127. package/components/hy-watermark/hy-watermark.vue +82 -5
  128. package/components/hy-watermark/typing.d.ts +20 -20
  129. package/global.d.ts +39 -59
  130. package/package.json +3 -13
  131. package/utils/inspect.ts +3 -1
  132. package/web-types.json +1 -1
  133. package/compiler.ts +0 -108
  134. package/component-helper.ts +0 -179
  135. package/components.json +0 -3287
  136. package/docgen.config.js +0 -13
  137. package/web-types.config.js +0 -7
@@ -1,101 +1,122 @@
1
- import type { CSSProperties } from "vue";
2
- import type HyIconProps from "../hy-icon/typing";
1
+ import type { CSSProperties } from 'vue'
2
+ import type HyIconProps from '../hy-icon/typing'
3
3
 
4
4
  export default interface HySearchProps {
5
5
  /**
6
6
  * @description 输入框初始值
7
7
  * */
8
- modelValue: string;
8
+ modelValue: string
9
9
  /**
10
10
  * @description 搜索框形状,circle-圆形,square-方形(默认 'circle' )
11
11
  * */
12
- shape?: HyApp.ShapeType;
12
+ shape?: HyApp.ShapeType
13
13
  /**
14
14
  * @description 搜索框背景颜色(默认 '#f2f2f2' )
15
15
  * */
16
- bgColor?: string;
16
+ bgColor?: string
17
17
  /**
18
18
  * @description 占位文字内容(默认 '请输入关键字' )
19
19
  * */
20
- placeholder?: string;
20
+ placeholder?: string
21
21
  /**
22
22
  * @description 是否启用清除控件(默认 true )
23
23
  * */
24
- clear?: boolean;
24
+ clear?: boolean
25
25
  /**
26
26
  * @description 是否自动获得焦点(默认 false )
27
27
  * */
28
- focus?: boolean;
28
+ focus?: boolean
29
29
  /**
30
30
  * @description 是否显示右侧控件(默认 true )
31
31
  * */
32
- showAction?: boolean;
32
+ showAction?: boolean
33
33
  /**
34
34
  * @description 右侧控件的样式,对象形式
35
35
  * */
36
- actionStyle?: CSSProperties;
36
+ actionStyle?: CSSProperties
37
37
  /**
38
38
  * @description 右侧控件文字(默认 '搜索' )
39
39
  * */
40
- actionText?: string;
40
+ actionText?: string
41
41
  /**
42
42
  * @description 输入框内容水平对齐方式 (默认 'left' )
43
43
  * */
44
- inputAlign?: HyApp.RowCenterType;
44
+ inputAlign?: HyApp.RowCenterType
45
45
  /**
46
46
  * @description 自定义输入框样式,对象形式
47
47
  * */
48
- inputStyle?: CSSProperties;
48
+ inputStyle?: CSSProperties
49
49
  /**
50
50
  * @description 是否启用输入框(默认 false )
51
51
  * */
52
- disabled?: boolean;
52
+ disabled?: boolean
53
53
  /**
54
54
  * @description 边框颜色,配置了颜色,才会有边框 (默认 'transparent' )
55
55
  * */
56
- borderColor?: string;
56
+ borderColor?: string
57
57
  /**
58
58
  * @description 输入框字体颜色(默认 '#606266' )
59
59
  * */
60
- color?: string;
60
+ color?: string
61
61
  /**
62
62
  * @description placeholder的颜色(默认 '#909399' )
63
63
  * */
64
- placeholderColor?: string;
64
+ placeholderColor?: string
65
65
  /**
66
66
  * @description 输入框左边的图标属性集合,可以为图标名称或图片路径 (默认 'search' )
67
67
  * */
68
- searchIcon?: Partial<HyIconProps>;
68
+ searchIcon?: Partial<HyIconProps>
69
69
  /**
70
70
  * @description 组件与其他上下左右之间的距离,带单位的字符串形式,如"30px" (默认 '0' )
71
71
  * */
72
- margin?: string;
72
+ margin?: string
73
73
  /**
74
74
  * @description 是否开启动画,见上方说明(默认 false )
75
75
  * */
76
- animation?: boolean;
76
+ animation?: boolean
77
77
  /**
78
78
  * @description 输入框最大能输入的长度,-1为不限制长度 (默认 '-1' )
79
79
  * */
80
- maxlength?: string | number;
80
+ maxlength?: string | number
81
81
  /**
82
82
  * @description 输入框高度,单位px(默认 64 )
83
83
  * */
84
- height?: number;
84
+ height?: number
85
85
  /**
86
86
  * @description 搜索框左边显示内容
87
87
  * */
88
- label?: string | null;
88
+ label?: string | null
89
89
  /**
90
90
  * @description 键盘弹起时,是否自动上推页面
91
91
  * */
92
- adjustPosition?: boolean;
92
+ adjustPosition?: boolean
93
93
  /**
94
94
  * @description 键盘收起时,是否自动失去焦点
95
95
  * */
96
- autoBlur?: boolean;
96
+ autoBlur?: boolean
97
97
  /**
98
98
  * @description 定义需要用到的外部样式
99
99
  * */
100
- customStyle?: CSSProperties;
100
+ customStyle?: CSSProperties
101
+ }
102
+
103
+ export interface ISearchEmits {
104
+ /** disabled为true时,点击输入框,发出此事件,用于跳转搜索页 */
105
+ (e: 'click'): void
106
+ /** 输入框内容发生变化时触发 */
107
+ (e: 'change', value: string): void
108
+ /** 左侧icon点击时候时触发 */
109
+ (e: 'clickIcon'): void
110
+ /** 用户确定搜索时触发,用户按回车键,或者手机键盘右下角的"搜索"键时触发 */
111
+ (e: 'search', value: string): void
112
+ /** 配置了clearabled后,清空内容时会发出此事件 */
113
+ (e: 'clear'): void
114
+ /** 用户点击右侧控件时触发 */
115
+ (e: 'confirm', value: string): void
116
+ /** 输入框获得焦点时触发 */
117
+ (e: 'focus', value: string): void
118
+ /** 输入框失去焦点时触发 */
119
+ (e: 'blur', value: string): void
120
+ /** 输入框内容发生变化时触发 */
121
+ (e: 'update:modelValue', value: string): void
101
122
  }