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
|
@@ -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
|
-
<
|
|
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
|
-
<
|
|
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:
|
|
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:
|
|
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