uview-pro 0.6.5 → 0.6.7
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 +22 -0
- package/components/u-calendar/u-calendar.vue +1 -2
- package/components/u-input/types.ts +5 -0
- package/components/u-input/u-input.vue +2 -0
- package/components/u-textarea/types.ts +3 -0
- package/components/u-textarea/u-textarea.vue +2 -0
- package/locale/lang/en-US.ts +1 -1
- package/package.json +1 -1
package/changelog.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
## 0.6.7(2026-07-02)
|
|
2
|
+
|
|
3
|
+
### ✨ Features | 新功能
|
|
4
|
+
|
|
5
|
+
- **u-input:** u-input新增confirm-hold属性,支持点击键盘右下角按钮保持键盘不收起(#170) ([27a57cd](https://github.com/anyup/uView-Pro/commit/27a57cdf0046a11b1a8a72c6fb44aecbe39b0c50))
|
|
6
|
+
- **u-textarea:** u-textarea新增confirm-hold属性,支持点击键盘右下角按钮保持键盘不收起(#170) ([3244812](https://github.com/anyup/uView-Pro/commit/3244812c961ab3cf2011e2433740fd9be407d347))
|
|
7
|
+
- **input,textarea:** 新增confirm-hold属性的使用示例(#170) ([b030a2d](https://github.com/anyup/uView-Pro/commit/b030a2dfd30099cda2e9e63e96fb9a2e00d2f639))
|
|
8
|
+
|
|
9
|
+
### 👥 Contributors
|
|
10
|
+
|
|
11
|
+
<a href="https://github.com/anyup"><img src="https://github.com/anyup.png?size=40" width="40" height="40" alt="anyup" title="anyup"/></a>
|
|
12
|
+
|
|
13
|
+
## 0.6.6(2026-06-10)
|
|
14
|
+
|
|
15
|
+
### 🐛 Bug Fixes | Bug 修复
|
|
16
|
+
|
|
17
|
+
- **u-calendar:** 修复日历标题无法实时通过切换多语言更新的问题,初始化英文日历默认分隔符(#166) ([18beabb](https://github.com/anyup/uView-Pro/commit/18beabbd72c4e21eb19b417d09073bd87457cefc))
|
|
18
|
+
|
|
19
|
+
### 👥 Contributors
|
|
20
|
+
|
|
21
|
+
<a href="https://github.com/anyup"><img src="https://github.com/anyup.png?size=40" width="40" height="40" alt="anyup" title="anyup"/></a>
|
|
22
|
+
|
|
1
23
|
## 0.6.5(2026-06-05)
|
|
2
24
|
|
|
3
25
|
### 🐛 Bug Fixes | Bug 修复
|
|
@@ -275,7 +275,6 @@ const weekdayArr = ref<number[]>([]);
|
|
|
275
275
|
const days = ref(0);
|
|
276
276
|
const daysArr = ref<number[]>([]);
|
|
277
277
|
const lunarArr = ref<any[]>([]);
|
|
278
|
-
const showTitle = ref('');
|
|
279
278
|
const year = ref(2020);
|
|
280
279
|
const month = ref(0);
|
|
281
280
|
// 当前月有多少天
|
|
@@ -351,6 +350,7 @@ const btnDisable = computed(() => {
|
|
|
351
350
|
const getStartText = computed(() => props.startText || t('uCalendar.startText'));
|
|
352
351
|
const getEndText = computed(() => props.endText || t('uCalendar.endText'));
|
|
353
352
|
const getToolTip = computed(() => props.toolTip || t('uCalendar.toolTip'));
|
|
353
|
+
const showTitle = computed(() => `${year.value}${t('uCalendar.year')}${month.value}${t('uCalendar.month')}`);
|
|
354
354
|
|
|
355
355
|
watch([dataChange, lunarChange], () => {
|
|
356
356
|
init();
|
|
@@ -817,7 +817,6 @@ function changeData() {
|
|
|
817
817
|
daysArr.value = generateArray(1, days.value);
|
|
818
818
|
weekday.value = getWeekday(year.value, month.value);
|
|
819
819
|
weekdayArr.value = generateArray(1, weekday.value);
|
|
820
|
-
showTitle.value = `${year.value}${t('uCalendar.year')}${month.value}${t('uCalendar.month')}`;
|
|
821
820
|
if (props.showLunar) {
|
|
822
821
|
lunarArr.value = [];
|
|
823
822
|
daysArr.value.forEach(d => {
|
|
@@ -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"
|
|
@@ -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/locale/lang/en-US.ts
CHANGED
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.7",
|
|
6
6
|
"description": "uView Pro是基于Vue3+TS的多平台UI框架,提供80+高质量组件、便捷工具和常用模板,支持多主题、暗黑模式、多语言,支持H5/APP/鸿蒙/小程序多端开发。已在鸿蒙应用商店上架,欢迎体验!",
|
|
7
7
|
"main": "index.ts",
|
|
8
8
|
"module": "index.ts",
|