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,186 +1,186 @@
1
- import type { CSSProperties, PropType } from 'vue'
2
- import type { InputConfirmType } from '@uni-helper/uni-types'
3
- import type { HyIconProps } from '../hy-icon/typing'
4
-
5
- const inputProps = {
6
- /** 输入的值 */
7
- modelValue: {
8
- type: [String, Number],
9
- required: true
10
- },
11
- /**
12
- * 输入框类型,见上方说明
13
- * @values test,idcard,number,digit,safe-password,tel,nickname
14
- * */
15
- type: {
16
- type: String,
17
- default: 'text'
18
- },
19
- /** 如果 textarea 是在一个 position:fixed 的区域,需要显示指定属性 fixed 为 true,兼容性:微信小程序、百度小程序、字节跳动小程序、QQ小程序 */
20
- fixed: {
21
- type: Boolean,
22
- default: false
23
- },
24
- /** 是否禁用输入框 */
25
- disabled: {
26
- type: Boolean,
27
- default: false
28
- },
29
- /** 禁用状态时的背景色 */
30
- disabledColor: {
31
- type: String,
32
- default: ''
33
- },
34
- /** 是否显示清除控件 */
35
- clearable: {
36
- type: Boolean,
37
- default: false
38
- },
39
- /** 是否密码类型 */
40
- password: {
41
- type: Boolean,
42
- default: false
43
- },
44
- /** 最大输入长度,设置为 -1 的时候不限制最大长度(注:支付宝不支持-1,需要设置其他任意值) */
45
- maxlength: {
46
- type: Number,
47
- default: -1
48
- },
49
- /** 输入框为空时的占位符 */
50
- placeholder: String,
51
- /** 指定placeholder的样式类,注意页面或组件的style中写了scoped时,需要在类名前写/deep/ */
52
- placeholderClass: {
53
- type: String,
54
- default: 'input-placeholder'
55
- },
56
- /** 指定placeholder的样式,字符串/对象形式,如"color: red;" */
57
- placeholderStyle: {
58
- type: Object as PropType<CSSProperties>,
59
- default: () => ({})
60
- },
61
- /** 是否显示输入字数统计,只在 type ="test"或type ="textarea"时有效 */
62
- showWordLimit: {
63
- type: Boolean,
64
- default: false
65
- },
66
- /** 设置右下角按钮的文字,兼容性详见uni-app文档 */
67
- confirmType: {
68
- type: String as PropType<InputConfirmType>,
69
- default: 'done'
70
- },
71
- /** 点击键盘右下角按钮时是否保持键盘不收起,H5无效 */
72
- confirmHold: {
73
- type: Boolean,
74
- default: false
75
- },
76
- /** focus时,点击页面的时候不收起键盘,微信小程序有效 */
77
- holdKeyboard: {
78
- type: Boolean,
79
- default: false
80
- },
81
- /** 自动获取焦点,在 H5 平台能否聚焦以及软键盘是否跟随弹出,取决于当前浏览器本身的实现。nvue 页面不支持,需使用组件的 focus()、blur() 方法控制焦点 */
82
- focus: {
83
- type: Boolean,
84
- default: false
85
- },
86
- /** 键盘收起时,是否自动失去焦点,目前仅App3.0.0+有效 */
87
- autoBlur: {
88
- type: Boolean,
89
- default: false
90
- },
91
- /** 是否去掉 iOS 下的默认内边距,仅微信小程序,且type=textarea时有效 */
92
- disableDefaultPadding: {
93
- type: Boolean,
94
- default: false
95
- },
96
- /** 指定focus时光标的位置 */
97
- cursor: {
98
- type: Number,
99
- default: 140
100
- },
101
- /** 输入框聚焦时底部与键盘的距离 */
102
- cursorSpacing: {
103
- type: Number,
104
- default: 30
105
- },
106
- /** 光标起始位置,自动聚集时有效,需与selection-end搭配使用 */
107
- selectionStart: {
108
- type: Number,
109
- default: -1
110
- },
111
- /** 光标结束位置,自动聚集时有效,需与selection-start搭配使用 */
112
- selectionEnd: {
113
- type: Number,
114
- default: -1
115
- },
116
- /** 键盘弹起时,是否自动上推页面 */
117
- adjustPosition: {
118
- type: Boolean,
119
- default: true
120
- },
121
- /**
122
- * 输入框内容对齐方式
123
- * @values left,center,right
124
- * */
125
- inputAlign: {
126
- type: String,
127
- default: 'left'
128
- },
129
- /** 输入框字体的大小 */
130
- fontSize: {
131
- type: [String, Number],
132
- default: '15px'
133
- },
134
- /** 输入框字体颜色 */
135
- color: {
136
- type: String,
137
- default: ''
138
- },
139
- /** 输入框前置图标 */
140
- prefixIcon: {
141
- type: Object as PropType<HyIconProps>,
142
- default: () => {}
143
- },
144
- /** 输入框后置图标 */
145
- suffixIcon: {
146
- type: Object as PropType<HyIconProps>,
147
- default: () => {}
148
- },
149
- /**
150
- * 边框类型
151
- * @values surround,bottom,none
152
- * */
153
- border: {
154
- type: String,
155
- default: 'surround'
156
- },
157
- /** 是否只读,与disabled不同之处在于disabled会置灰组件,而readonly则不会 */
158
- readonly: {
159
- type: Boolean,
160
- default: false
161
- },
162
- /**
163
- * 输入框形状
164
- * @values circle,square
165
- * */
166
- shape: {
167
- type: String,
168
- default: 'square'
169
- },
170
- /** 是否忽略组件内对文本合成系统事件的处理 */
171
- ignoreCompositionEvent: {
172
- type: Boolean,
173
- default: false
174
- },
175
- /** 内容式化函数 */
176
- formatter: Function,
177
- /** 定义需要用到的外部样式 */
178
- customStyle: {
179
- type: Object as PropType<CSSProperties>,
180
- default: () => {}
181
- },
182
- /** 自定义外部类名 */
183
- customClass: String
184
- }
185
-
186
- export default inputProps
1
+ import type { CSSProperties, PropType } from 'vue'
2
+ import type { InputConfirmType } from '@uni-helper/uni-types'
3
+ import type { HyIconProps } from '../hy-icon/typing'
4
+
5
+ const inputProps = {
6
+ /** 输入的值 */
7
+ modelValue: {
8
+ type: [String, Number],
9
+ required: true
10
+ },
11
+ /**
12
+ * 输入框类型,见上方说明
13
+ * @values test,idcard,number,digit,safe-password,tel,nickname
14
+ * */
15
+ type: {
16
+ type: String,
17
+ default: 'text'
18
+ },
19
+ /** 如果 textarea 是在一个 position:fixed 的区域,需要显示指定属性 fixed 为 true,兼容性:微信小程序、百度小程序、字节跳动小程序、QQ小程序 */
20
+ fixed: {
21
+ type: Boolean,
22
+ default: false
23
+ },
24
+ /** 是否禁用输入框 */
25
+ disabled: {
26
+ type: Boolean,
27
+ default: false
28
+ },
29
+ /** 禁用状态时的背景色 */
30
+ disabledColor: {
31
+ type: String,
32
+ default: ''
33
+ },
34
+ /** 是否显示清除控件 */
35
+ clearable: {
36
+ type: Boolean,
37
+ default: false
38
+ },
39
+ /** 是否密码类型 */
40
+ password: {
41
+ type: Boolean,
42
+ default: false
43
+ },
44
+ /** 最大输入长度,设置为 -1 的时候不限制最大长度(注:支付宝不支持-1,需要设置其他任意值) */
45
+ maxlength: {
46
+ type: Number,
47
+ default: -1
48
+ },
49
+ /** 输入框为空时的占位符 */
50
+ placeholder: String,
51
+ /** 指定placeholder的样式类,注意页面或组件的style中写了scoped时,需要在类名前写/deep/ */
52
+ placeholderClass: {
53
+ type: String,
54
+ default: 'input-placeholder'
55
+ },
56
+ /** 指定placeholder的样式,字符串/对象形式,如"color: red;" */
57
+ placeholderStyle: {
58
+ type: Object as PropType<CSSProperties>,
59
+ default: () => ({})
60
+ },
61
+ /** 是否显示输入字数统计,只在 type ="test"或type ="textarea"时有效 */
62
+ showWordLimit: {
63
+ type: Boolean,
64
+ default: false
65
+ },
66
+ /** 设置右下角按钮的文字,兼容性详见uni-app文档 */
67
+ confirmType: {
68
+ type: String as PropType<InputConfirmType>,
69
+ default: 'done'
70
+ },
71
+ /** 点击键盘右下角按钮时是否保持键盘不收起,H5无效 */
72
+ confirmHold: {
73
+ type: Boolean,
74
+ default: false
75
+ },
76
+ /** focus时,点击页面的时候不收起键盘,微信小程序有效 */
77
+ holdKeyboard: {
78
+ type: Boolean,
79
+ default: false
80
+ },
81
+ /** 自动获取焦点,在 H5 平台能否聚焦以及软键盘是否跟随弹出,取决于当前浏览器本身的实现。nvue 页面不支持,需使用组件的 focus()、blur() 方法控制焦点 */
82
+ focus: {
83
+ type: Boolean,
84
+ default: false
85
+ },
86
+ /** 键盘收起时,是否自动失去焦点,目前仅App3.0.0+有效 */
87
+ autoBlur: {
88
+ type: Boolean,
89
+ default: false
90
+ },
91
+ /** 是否去掉 iOS 下的默认内边距,仅微信小程序,且type=textarea时有效 */
92
+ disableDefaultPadding: {
93
+ type: Boolean,
94
+ default: false
95
+ },
96
+ /** 指定focus时光标的位置 */
97
+ cursor: {
98
+ type: Number,
99
+ default: 140
100
+ },
101
+ /** 输入框聚焦时底部与键盘的距离 */
102
+ cursorSpacing: {
103
+ type: Number,
104
+ default: 30
105
+ },
106
+ /** 光标起始位置,自动聚集时有效,需与selection-end搭配使用 */
107
+ selectionStart: {
108
+ type: Number,
109
+ default: -1
110
+ },
111
+ /** 光标结束位置,自动聚集时有效,需与selection-start搭配使用 */
112
+ selectionEnd: {
113
+ type: Number,
114
+ default: -1
115
+ },
116
+ /** 键盘弹起时,是否自动上推页面 */
117
+ adjustPosition: {
118
+ type: Boolean,
119
+ default: true
120
+ },
121
+ /**
122
+ * 输入框内容对齐方式
123
+ * @values left,center,right
124
+ * */
125
+ inputAlign: {
126
+ type: String,
127
+ default: 'left'
128
+ },
129
+ /** 输入框字体的大小 */
130
+ fontSize: {
131
+ type: [String, Number],
132
+ default: '15px'
133
+ },
134
+ /** 输入框字体颜色 */
135
+ color: {
136
+ type: String,
137
+ default: ''
138
+ },
139
+ /** 输入框前置图标 */
140
+ prefixIcon: {
141
+ type: Object as PropType<HyIconProps>,
142
+ default: () => {}
143
+ },
144
+ /** 输入框后置图标 */
145
+ suffixIcon: {
146
+ type: Object as PropType<HyIconProps>,
147
+ default: () => {}
148
+ },
149
+ /**
150
+ * 边框类型
151
+ * @values surround,bottom,none
152
+ * */
153
+ border: {
154
+ type: String,
155
+ default: 'surround'
156
+ },
157
+ /** 是否只读,与disabled不同之处在于disabled会置灰组件,而readonly则不会 */
158
+ readonly: {
159
+ type: Boolean,
160
+ default: false
161
+ },
162
+ /**
163
+ * 输入框形状
164
+ * @values circle,square
165
+ * */
166
+ shape: {
167
+ type: String,
168
+ default: 'square'
169
+ },
170
+ /** 是否忽略组件内对文本合成系统事件的处理 */
171
+ ignoreCompositionEvent: {
172
+ type: Boolean,
173
+ default: false
174
+ },
175
+ /** 内容式化函数 */
176
+ formatter: Function,
177
+ /** 定义需要用到的外部样式 */
178
+ customStyle: {
179
+ type: Object as PropType<CSSProperties>,
180
+ default: () => {}
181
+ },
182
+ /** 自定义外部类名 */
183
+ customClass: String
184
+ }
185
+
186
+ export default inputProps