uview-pro 0.6.6 → 0.6.8
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.
package/changelog.md
CHANGED
|
@@ -1,3 +1,26 @@
|
|
|
1
|
+
## 0.6.8(2026-07-03)
|
|
2
|
+
|
|
3
|
+
### 🐛 Bug Fixes | Bug 修复
|
|
4
|
+
|
|
5
|
+
- **u-button:** 添加data-eventsync属性以修复事件同步问题(#172) ([cbec72a](https://github.com/anyup/uView-Pro/commit/cbec72ac1959630dd7cb436fc74944bf0ad6bddb))
|
|
6
|
+
- **u-input:** 修复输入框readonly状态下无效问题,调整z-index层级(#173) ([38eca40](https://github.com/anyup/uView-Pro/commit/38eca4023f2f0300b795e8eb786a22002cec67b3))
|
|
7
|
+
|
|
8
|
+
### 👥 Contributors
|
|
9
|
+
|
|
10
|
+
<a href="https://github.com/anyup"><img src="https://github.com/anyup.png?size=40" width="40" height="40" alt="anyup" title="anyup"/></a>
|
|
11
|
+
|
|
12
|
+
## 0.6.7(2026-07-02)
|
|
13
|
+
|
|
14
|
+
### ✨ Features | 新功能
|
|
15
|
+
|
|
16
|
+
- **u-input:** u-input新增confirm-hold属性,支持点击键盘右下角按钮保持键盘不收起(#170) ([27a57cd](https://github.com/anyup/uView-Pro/commit/27a57cdf0046a11b1a8a72c6fb44aecbe39b0c50))
|
|
17
|
+
- **u-textarea:** u-textarea新增confirm-hold属性,支持点击键盘右下角按钮保持键盘不收起(#170) ([3244812](https://github.com/anyup/uView-Pro/commit/3244812c961ab3cf2011e2433740fd9be407d347))
|
|
18
|
+
- **input,textarea:** 新增confirm-hold属性的使用示例(#170) ([b030a2d](https://github.com/anyup/uView-Pro/commit/b030a2dfd30099cda2e9e63e96fb9a2e00d2f639))
|
|
19
|
+
|
|
20
|
+
### 👥 Contributors
|
|
21
|
+
|
|
22
|
+
<a href="https://github.com/anyup"><img src="https://github.com/anyup.png?size=40" width="40" height="40" alt="anyup" title="anyup"/></a>
|
|
23
|
+
|
|
1
24
|
## 0.6.6(2026-06-10)
|
|
2
25
|
|
|
3
26
|
### 🐛 Bug Fixes | Bug 修复
|
|
@@ -147,6 +147,11 @@ export const InputProps = {
|
|
|
147
147
|
type: Boolean,
|
|
148
148
|
default: true
|
|
149
149
|
},
|
|
150
|
+
/** 点击键盘右下角按钮时是否保持键盘不收起(默认false) */
|
|
151
|
+
confirmHold: {
|
|
152
|
+
type: Boolean,
|
|
153
|
+
default: false
|
|
154
|
+
},
|
|
150
155
|
/** 输入框的验证状态,用于错误时,边框是否改为红色 */
|
|
151
156
|
validateState: {
|
|
152
157
|
type: Boolean,
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
:cursor-spacing="getCursorSpacing"
|
|
35
35
|
:show-confirm-bar="showConfirmbar"
|
|
36
36
|
:adjust-position="adjustPosition"
|
|
37
|
+
:confirm-hold="confirmHold"
|
|
37
38
|
@input="handleInput"
|
|
38
39
|
@blur="handleBlur"
|
|
39
40
|
@focus="onFocus"
|
|
@@ -59,6 +60,7 @@
|
|
|
59
60
|
:selection-start="Number(uSelectionStart)"
|
|
60
61
|
:show-confirm-bar="showConfirmbar"
|
|
61
62
|
:adjust-position="adjustPosition"
|
|
63
|
+
:confirm-hold="confirmHold"
|
|
62
64
|
@focus="onFocus"
|
|
63
65
|
@blur="handleBlur"
|
|
64
66
|
@input="handleInput"
|
|
@@ -357,7 +359,7 @@ defineExpose({
|
|
|
357
359
|
&__readonly-overlay {
|
|
358
360
|
position: absolute;
|
|
359
361
|
inset: 0;
|
|
360
|
-
z-index:
|
|
362
|
+
z-index: 2;
|
|
361
363
|
}
|
|
362
364
|
|
|
363
365
|
&__input {
|
|
@@ -388,7 +390,7 @@ defineExpose({
|
|
|
388
390
|
padding: 1px 4px;
|
|
389
391
|
border-radius: 10px;
|
|
390
392
|
line-height: 16px;
|
|
391
|
-
z-index:
|
|
393
|
+
z-index: 3;
|
|
392
394
|
}
|
|
393
395
|
|
|
394
396
|
&--border {
|
|
@@ -421,7 +423,7 @@ defineExpose({
|
|
|
421
423
|
|
|
422
424
|
&__right-icon {
|
|
423
425
|
position: relative;
|
|
424
|
-
z-index:
|
|
426
|
+
z-index: 3;
|
|
425
427
|
|
|
426
428
|
&--select {
|
|
427
429
|
transition: transform 0.4s;
|
|
@@ -21,6 +21,7 @@ const textarea = {
|
|
|
21
21
|
adjustPosition: true,
|
|
22
22
|
disableDefaultPadding: false,
|
|
23
23
|
holdKeyboard: false,
|
|
24
|
+
confirmHold: false,
|
|
24
25
|
maxlength: 140,
|
|
25
26
|
border: 'surround',
|
|
26
27
|
formatter: null,
|
|
@@ -81,6 +82,8 @@ export const TextareaProps = {
|
|
|
81
82
|
disableDefaultPadding: { type: Boolean as PropType<boolean>, default: textarea.disableDefaultPadding },
|
|
82
83
|
// focus时,点击页面的时候不收起键盘,只微信小程序有效
|
|
83
84
|
holdKeyboard: { type: Boolean as PropType<boolean>, default: textarea.holdKeyboard },
|
|
85
|
+
// 点击完成按钮时是否保持键盘不收起
|
|
86
|
+
confirmHold: { type: Boolean as PropType<boolean>, default: textarea.confirmHold },
|
|
84
87
|
// 最大输入长度,设置为 -1 的时候不限制最大长度
|
|
85
88
|
maxlength: { type: [String, Number] as PropType<string | number>, default: textarea.maxlength },
|
|
86
89
|
// 边框类型,surround-四周边框,bottom-底部边框
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
:adjustPosition="props.adjustPosition"
|
|
33
33
|
:disableDefaultPadding="props.disableDefaultPadding"
|
|
34
34
|
:holdKeyboard="props.holdKeyboard"
|
|
35
|
+
:confirm-hold="props.confirmHold"
|
|
35
36
|
:maxlength="Number(props.maxlength)"
|
|
36
37
|
:confirmType="(props.confirmType as any)"
|
|
37
38
|
:ignoreCompositionEvent="props.ignoreCompositionEvent"
|
|
@@ -115,6 +116,7 @@ import type { SizeType } from '../../types/global';
|
|
|
115
116
|
* @property {Boolean} adjustPosition 键盘弹起时,是否自动上推页面(默认 true )
|
|
116
117
|
* @property {Boolean | Number} disableDefaultPadding 是否去掉 iOS 下的默认内边距,只微信小程序有效(默认 false )
|
|
117
118
|
* @property {Boolean} holdKeyboard focus时,点击页面的时候不收起键盘,只微信小程序有效(默认 false )
|
|
119
|
+
* @property {Boolean} confirmHold 点击完成按钮时是否保持键盘不收起(默认 false )
|
|
118
120
|
* @property {String | Number} maxlength 最大输入长度,设置为 -1 的时候不限制最大长度(默认 140 )
|
|
119
121
|
* @property {String} border 边框类型,surround-四周边框,none-无边框,bottom-底部边框(默认 'surround' )
|
|
120
122
|
* @property {Boolean} ignoreCompositionEvent 是否忽略组件内对文本合成系统事件的处理
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "uview-pro",
|
|
3
3
|
"name": "uview-pro",
|
|
4
4
|
"displayName": "【支持鸿蒙】uView Pro|基于Vue3+TS的高质量UI组件库,支持多主题、暗黑模式、多语言",
|
|
5
|
-
"version": "0.6.
|
|
5
|
+
"version": "0.6.8",
|
|
6
6
|
"description": "uView Pro是基于Vue3+TS的多平台UI框架,提供80+高质量组件、便捷工具和常用模板,支持多主题、暗黑模式、多语言,支持H5/APP/鸿蒙/小程序多端开发。已在鸿蒙应用商店上架,欢迎体验!",
|
|
7
7
|
"main": "index.ts",
|
|
8
8
|
"module": "index.ts",
|