uview-plus 3.4.73 → 3.4.74

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,6 @@
1
+ ## 3.4.74(2025-08-07)
2
+ feat: input组件新增cursorColor属性
3
+
1
4
  ## 3.4.73(2025-08-05)
2
5
  improvment: 优化下拉刷新默认图标
3
6
 
@@ -43,6 +43,7 @@ export default {
43
43
  border: 'surround',
44
44
  readonly: false,
45
45
  shape: 'square',
46
- formatter: null
46
+ formatter: null,
47
+ cursorColor: ''
47
48
  }
48
49
  }
@@ -193,6 +193,11 @@ export const props = defineMixin({
193
193
  ignoreCompositionEvent: {
194
194
  type: Boolean,
195
195
  default: true
196
- }
196
+ },
197
+ // 光标颜色
198
+ cursorColor: {
199
+ type: String,
200
+ default: () => defProps.input.cursorColor
201
+ },
197
202
  }
198
203
  })
@@ -34,6 +34,7 @@
34
34
  :confirm-type="confirmType"
35
35
  :confirm-hold="confirmHold"
36
36
  :hold-keyboard="holdKeyboard"
37
+ :cursor-color="cursorColor"
37
38
  :cursor-spacing="cursorSpacing"
38
39
  :adjust-position="adjustPosition"
39
40
  :selection-end="selectionEnd"
@@ -105,6 +106,7 @@ import { addStyle, addUnit, deepMerge, formValidate, $parent, sleep, os } from '
105
106
  * @property {Boolean} autoBlur 键盘收起时,是否自动失去焦点,目前仅App3.0.0+有效 ( 默认 false )
106
107
  * @property {Boolean} disableDefaultPadding 是否去掉 iOS 下的默认内边距,仅微信小程序,且type=textarea时有效 ( 默认 false )
107
108
  * @property {String | Number} cursor 指定focus时光标的位置( 默认 140 )
109
+ * @property {String } cursorColor 光标颜色
108
110
  * @property {String | Number} cursorSpacing 输入框聚焦时底部与键盘的距离 ( 默认 30 )
109
111
  * @property {String | Number} selectionStart 光标起始位置,自动聚集时有效,需与selection-end搭配使用 ( 默认 -1 )
110
112
  * @property {String | Number} selectionEnd 光标结束位置,自动聚集时有效,需与selection-start搭配使用 ( 默认 -1 )
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "id": "uview-plus",
3
3
  "name": "uview-plus",
4
4
  "displayName": "零云®uview-plus3.0重磅发布,全面的Vue3鸿蒙移动组件库。",
5
- "version": "3.4.73",
5
+ "version": "3.4.74",
6
6
  "description": "零云®uview-plus已兼容vue3,100+全面的组件和便捷的工具会让您信手拈来,如鱼得水。",
7
7
  "keywords": [
8
8
  "uview",