uview-plus 3.4.73 → 3.4.75
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
|
@@ -6,7 +6,10 @@ let params = {
|
|
|
6
6
|
// 加载字体方法
|
|
7
7
|
const loadFont = () => {
|
|
8
8
|
// console.log('加载字体图标');
|
|
9
|
-
|
|
9
|
+
// 全局加载不稳定,默认关闭,需要开启可以配置loadFontOnce。
|
|
10
|
+
if (config.loadFontOnce) {
|
|
11
|
+
params.loaded = true;
|
|
12
|
+
}
|
|
10
13
|
// #ifdef APP-NVUE
|
|
11
14
|
// nvue通过weex的dom模块引入字体,相关文档地址如下:
|
|
12
15
|
// https://weex.apache.org/zh/docs/modules/dom.html#addrule
|
|
@@ -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/libs/config/config.js
CHANGED
package/package.json
CHANGED