uview-plus 3.4.72 → 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,9 @@
1
+ ## 3.4.74(2025-08-07)
2
+ feat: input组件新增cursorColor属性
3
+
4
+ ## 3.4.73(2025-08-05)
5
+ improvment: 优化下拉刷新默认图标
6
+
1
7
  ## 3.4.72(2025-08-05)
2
8
  improvment: 优化virtual-list虚拟列表样式
3
9
 
@@ -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 )
@@ -22,7 +22,7 @@
22
22
  <!-- 默认下拉状态 -->
23
23
  <view class="refresh-content">
24
24
  <view class="refresh-indicator">
25
- <view class="arrow"></view>
25
+ <up-icon name="arrow-downward" size="26px"></up-icon>
26
26
  </view>
27
27
  <text class="refresh-text">下拉刷新</text>
28
28
  </view>
@@ -37,7 +37,7 @@
37
37
  <!-- 默认释放状态 -->
38
38
  <view class="refresh-content">
39
39
  <view class="refresh-indicator">
40
- <view class="arrow rotate"></view>
40
+ <up-icon name="arrow-upward" size="26px"></up-icon>
41
41
  </view>
42
42
  <text class="refresh-text">释放刷新</text>
43
43
  </view>
@@ -106,7 +106,7 @@ export default {
106
106
  // 下拉刷新阈值
107
107
  threshold: {
108
108
  type: Number,
109
- default: 50
109
+ default: 80
110
110
  },
111
111
  // 阻尼系数
112
112
  damping: {
@@ -116,7 +116,7 @@ export default {
116
116
  // 最大下拉距离
117
117
  maxDistance: {
118
118
  type: Number,
119
- default: 100
119
+ default: 120
120
120
  },
121
121
  // 是否显示加载更多
122
122
  showLoadmore: {
@@ -311,28 +311,6 @@ export default {
311
311
  padding-bottom: 10px;
312
312
  }
313
313
 
314
- .refresh-indicator {
315
- width: 24px;
316
- height: 24px;
317
- display: flex;
318
- align-items: center;
319
- justify-content: center;
320
- margin-bottom: 8px;
321
- }
322
-
323
- .arrow {
324
- width: 12px;
325
- height: 12px;
326
- border-left: 2px solid #666;
327
- border-bottom: 2px solid #666;
328
- transform: rotate(-45deg);
329
- transition: transform 0.2s;
330
- }
331
-
332
- .arrow.rotate {
333
- transform: rotate(135deg);
334
- }
335
-
336
314
  .spinner {
337
315
  width: 16px;
338
316
  height: 16px;
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.72",
5
+ "version": "3.4.74",
6
6
  "description": "零云®uview-plus已兼容vue3,100+全面的组件和便捷的工具会让您信手拈来,如鱼得水。",
7
7
  "keywords": [
8
8
  "uview",