uview-plus 3.1.45 → 3.1.47
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 +8 -0
- package/components/u-action-sheet/props.js +10 -11
- package/components/u-album/props.js +11 -12
- package/components/u-alert/props.js +8 -9
- package/components/u-avatar/props.js +14 -15
- package/components/u-avatar-group/props.js +9 -10
- package/components/u-back-top/props.js +10 -11
- package/components/u-badge/props.js +14 -15
- package/components/u-button/props.js +28 -29
- package/components/u-calendar/month.vue +1 -1
- package/components/u-calendar/props.js +27 -28
- package/components/u-car-keyboard/props.js +0 -1
- package/components/u-cell/props.js +17 -18
- package/components/u-cell/u-cell.vue +11 -2
- package/components/u-cell-group/props.js +2 -3
- package/components/u-checkbox/props.js +13 -14
- package/components/u-checkbox-group/props.js +16 -17
- package/components/u-circle-progress/props.js +1 -2
- package/components/u-code/props.js +6 -7
- package/components/u-code/u-code.vue +5 -0
- package/components/u-code-input/props.js +16 -17
- package/components/u-col/props.js +5 -6
- package/components/u-collapse/props.js +3 -4
- package/components/u-collapse-item/props.js +11 -12
- package/components/u-column-notice/props.js +10 -11
- package/components/u-count-down/props.js +4 -5
- package/components/u-count-down/u-count-down.vue +5 -0
- package/components/u-count-to/props.js +11 -12
- package/components/u-datetime-picker/props.js +24 -25
- package/components/u-divider/props.js +8 -9
- package/components/u-dropdown/props.js +0 -1
- package/components/u-dropdown-item/props.js +0 -1
- package/components/u-empty/props.js +11 -12
- package/components/u-form/props.js +8 -9
- package/components/u-form/u-form.vue +1 -1
- package/components/u-form-item/props.js +13 -9
- package/components/u-form-item/u-form-item.vue +1 -0
- package/components/u-gap/props.js +4 -5
- package/components/u-grid/props.js +3 -4
- package/components/u-grid-item/props.js +2 -3
- package/components/u-grid-item/u-grid-item.vue +5 -0
- package/components/u-icon/props.js +17 -18
- package/components/u-icon/u-icon.vue +9 -6
- package/components/u-image/props.js +16 -17
- package/components/u-index-anchor/props.js +5 -6
- package/components/u-index-item/props.js +0 -1
- package/components/u-index-list/props.js +5 -6
- package/components/u-index-list/u-index-list.vue +2 -1
- package/components/u-input/props.js +35 -36
- package/components/u-keyboard/props.js +16 -17
- package/components/u-line/props.js +6 -7
- package/components/u-line-progress/props.js +5 -6
- package/components/u-link/props.js +7 -8
- package/components/u-list/props.js +14 -15
- package/components/u-list-item/props.js +1 -2
- package/components/u-loading-icon/props.js +11 -12
- package/components/u-loading-page/props.js +9 -10
- package/components/u-loadmore/props.js +18 -19
- package/components/u-modal/props.js +16 -17
- package/components/u-navbar/props.js +16 -17
- package/components/u-no-network/props.js +3 -4
- package/components/u-notice-bar/props.js +13 -14
- package/components/u-notify/props.js +9 -10
- package/components/u-notify/u-notify.vue +5 -0
- package/components/u-number-box/props.js +22 -23
- package/components/u-number-keyboard/props.js +3 -4
- package/components/u-overlay/props.js +4 -5
- package/components/u-parse/props.js +8 -9
- package/components/u-parse/u-parse.vue +6 -1
- package/components/u-picker/props.js +16 -17
- package/components/u-picker-column/props.js +0 -1
- package/components/u-popup/props.js +15 -16
- package/components/u-radio/props.js +13 -14
- package/components/u-radio-group/props.js +17 -18
- package/components/u-rate/props.js +14 -15
- package/components/u-read-more/props.js +8 -9
- package/components/u-row/props.js +3 -4
- package/components/u-row-notice/props.js +7 -8
- package/components/u-row-notice/u-row-notice.vue +5 -0
- package/components/u-safe-bottom/props.js +0 -1
- package/components/u-scroll-list/props.js +6 -7
- package/components/u-search/props.js +24 -25
- package/components/u-skeleton/props.js +11 -12
- package/components/u-slider/props.js +11 -12
- package/components/u-status-bar/props.js +1 -2
- package/components/u-steps/props.js +7 -8
- package/components/u-steps-item/props.js +4 -5
- package/components/u-sticky/props.js +6 -7
- package/components/u-sticky/u-sticky.vue +5 -0
- package/components/u-subsection/props.js +9 -10
- package/components/u-swipe-action/props.js +1 -2
- package/components/u-swipe-action-item/nvue.js +5 -0
- package/components/u-swipe-action-item/props.js +6 -7
- package/components/u-swiper/props.js +24 -25
- package/components/u-swiper-indicator/props.js +5 -6
- package/components/u-switch/props.js +11 -12
- package/components/u-tabbar/props.js +8 -9
- package/components/u-tabbar-item/props.js +6 -7
- package/components/u-table/props.js +0 -1
- package/components/u-tabs/props.js +12 -13
- package/components/u-tabs-item/props.js +0 -1
- package/components/u-tag/props.js +15 -16
- package/components/u-td/props.js +0 -1
- package/components/u-text/props.js +21 -22
- package/components/u-textarea/props.js +23 -24
- package/components/u-toast/u-toast.vue +5 -0
- package/components/u-toolbar/props.js +6 -7
- package/components/u-tooltip/props.js +11 -12
- package/components/u-tr/props.js +0 -1
- package/components/u-transition/props.js +4 -5
- package/components/u-transition/transition.js +8 -9
- package/components/u-upload/props.js +22 -23
- package/libs/config/props/actionSheet.js +1 -1
- package/libs/config/props/album.js +1 -1
- package/libs/config/props/avatarGroup.js +1 -1
- package/libs/config/props/backtop.js +2 -2
- package/libs/config/props/badge.js +1 -1
- package/libs/config/props/calendar.js +3 -3
- package/libs/config/props/checkboxGroup.js +1 -1
- package/libs/config/props/datetimePicker.js +1 -1
- package/libs/config/props/form.js +3 -3
- package/libs/config/props/formItem.js +1 -0
- package/libs/config/props/indexList.js +1 -1
- package/libs/config/props/noticeBar.js +1 -1
- package/libs/config/props/picker.js +2 -2
- package/libs/config/props/popup.js +1 -1
- package/libs/config/props/search.js +2 -2
- package/libs/config/props/slider.js +1 -1
- package/libs/config/props/swiper.js +1 -1
- package/libs/config/props/tabs.js +7 -7
- package/libs/config/props/text.js +2 -2
- package/libs/config/props/toast.js +1 -1
- package/libs/config/props/tooltip.js +1 -1
- package/libs/config/props/upload.js +3 -3
- package/libs/css/components.scss +11 -1
- package/libs/css/flex.scss +41 -39
- package/package.json +1 -1
|
@@ -1,85 +1,84 @@
|
|
|
1
|
-
import defprops from '../../libs/config/props';
|
|
2
1
|
export default {
|
|
3
2
|
props: {
|
|
4
3
|
// 图片地址
|
|
5
4
|
src: {
|
|
6
5
|
type: String,
|
|
7
|
-
default:
|
|
6
|
+
default: () => uni.$u.props.image.src
|
|
8
7
|
},
|
|
9
8
|
// 裁剪模式
|
|
10
9
|
mode: {
|
|
11
10
|
type: String,
|
|
12
|
-
default:
|
|
11
|
+
default: () => uni.$u.props.image.mode
|
|
13
12
|
},
|
|
14
13
|
// 宽度,单位任意
|
|
15
14
|
width: {
|
|
16
15
|
type: [String, Number],
|
|
17
|
-
default:
|
|
16
|
+
default: () => uni.$u.props.image.width
|
|
18
17
|
},
|
|
19
18
|
// 高度,单位任意
|
|
20
19
|
height: {
|
|
21
20
|
type: [String, Number],
|
|
22
|
-
default:
|
|
21
|
+
default: () => uni.$u.props.image.height
|
|
23
22
|
},
|
|
24
23
|
// 图片形状,circle-圆形,square-方形
|
|
25
24
|
shape: {
|
|
26
25
|
type: String,
|
|
27
|
-
default:
|
|
26
|
+
default: () => uni.$u.props.image.shape
|
|
28
27
|
},
|
|
29
28
|
// 圆角,单位任意
|
|
30
29
|
radius: {
|
|
31
30
|
type: [String, Number],
|
|
32
|
-
default:
|
|
31
|
+
default: () => uni.$u.props.image.radius
|
|
33
32
|
},
|
|
34
33
|
// 是否懒加载,微信小程序、App、百度小程序、字节跳动小程序
|
|
35
34
|
lazyLoad: {
|
|
36
35
|
type: Boolean,
|
|
37
|
-
default:
|
|
36
|
+
default: () => uni.$u.props.image.lazyLoad
|
|
38
37
|
},
|
|
39
38
|
// 开启长按图片显示识别微信小程序码菜单
|
|
40
39
|
showMenuByLongpress: {
|
|
41
40
|
type: Boolean,
|
|
42
|
-
default:
|
|
41
|
+
default: () => uni.$u.props.image.showMenuByLongpress
|
|
43
42
|
},
|
|
44
43
|
// 加载中的图标,或者小图片
|
|
45
44
|
loadingIcon: {
|
|
46
45
|
type: String,
|
|
47
|
-
default:
|
|
46
|
+
default: () => uni.$u.props.image.loadingIcon
|
|
48
47
|
},
|
|
49
48
|
// 加载失败的图标,或者小图片
|
|
50
49
|
errorIcon: {
|
|
51
50
|
type: String,
|
|
52
|
-
default:
|
|
51
|
+
default: () => uni.$u.props.image.errorIcon
|
|
53
52
|
},
|
|
54
53
|
// 是否显示加载中的图标或者自定义的slot
|
|
55
54
|
showLoading: {
|
|
56
55
|
type: Boolean,
|
|
57
|
-
default:
|
|
56
|
+
default: () => uni.$u.props.image.showLoading
|
|
58
57
|
},
|
|
59
58
|
// 是否显示加载错误的图标或者自定义的slot
|
|
60
59
|
showError: {
|
|
61
60
|
type: Boolean,
|
|
62
|
-
default:
|
|
61
|
+
default: () => uni.$u.props.image.showError
|
|
63
62
|
},
|
|
64
63
|
// 是否需要淡入效果
|
|
65
64
|
fade: {
|
|
66
65
|
type: Boolean,
|
|
67
|
-
default:
|
|
66
|
+
default: () => uni.$u.props.image.fade
|
|
68
67
|
},
|
|
69
68
|
// 只支持网络资源,只对微信小程序有效
|
|
70
69
|
webp: {
|
|
71
70
|
type: Boolean,
|
|
72
|
-
default:
|
|
71
|
+
default: () => uni.$u.props.image.webp
|
|
73
72
|
},
|
|
74
73
|
// 过渡时间,单位ms
|
|
75
74
|
duration: {
|
|
76
75
|
type: [String, Number],
|
|
77
|
-
default:
|
|
76
|
+
default: () => uni.$u.props.image.duration
|
|
78
77
|
},
|
|
79
78
|
// 背景颜色,用于深色页面加载图片时,为了和背景色融合
|
|
80
79
|
bgColor: {
|
|
81
80
|
type: String,
|
|
82
|
-
default:
|
|
81
|
+
default: () => uni.$u.props.image.bgColor
|
|
83
82
|
}
|
|
84
83
|
}
|
|
85
84
|
}
|
|
@@ -1,30 +1,29 @@
|
|
|
1
|
-
import defprops from '../../libs/config/props';
|
|
2
1
|
export default {
|
|
3
2
|
props: {
|
|
4
3
|
// 列表锚点文本内容
|
|
5
4
|
text: {
|
|
6
5
|
type: [String, Number],
|
|
7
|
-
default:
|
|
6
|
+
default: () => uni.$u.props.indexAnchor.text
|
|
8
7
|
},
|
|
9
8
|
// 列表锚点文字颜色
|
|
10
9
|
color: {
|
|
11
10
|
type: String,
|
|
12
|
-
default:
|
|
11
|
+
default: () => uni.$u.props.indexAnchor.color
|
|
13
12
|
},
|
|
14
13
|
// 列表锚点文字大小,单位默认px
|
|
15
14
|
size: {
|
|
16
15
|
type: [String, Number],
|
|
17
|
-
default:
|
|
16
|
+
default: () => uni.$u.props.indexAnchor.size
|
|
18
17
|
},
|
|
19
18
|
// 列表锚点背景颜色
|
|
20
19
|
bgColor: {
|
|
21
20
|
type: String,
|
|
22
|
-
default:
|
|
21
|
+
default: () => uni.$u.props.indexAnchor.bgColor
|
|
23
22
|
},
|
|
24
23
|
// 列表锚点高度,单位默认px
|
|
25
24
|
height: {
|
|
26
25
|
type: [String, Number],
|
|
27
|
-
default:
|
|
26
|
+
default: () => uni.$u.props.indexAnchor.height
|
|
28
27
|
}
|
|
29
28
|
}
|
|
30
29
|
}
|
|
@@ -1,30 +1,29 @@
|
|
|
1
|
-
import defprops from '../../libs/config/props';
|
|
2
1
|
export default {
|
|
3
2
|
props: {
|
|
4
3
|
// 右边锚点非激活的颜色
|
|
5
4
|
inactiveColor: {
|
|
6
5
|
type: String,
|
|
7
|
-
default:
|
|
6
|
+
default: () => uni.$u.props.indexList.inactiveColor
|
|
8
7
|
},
|
|
9
8
|
// 右边锚点激活的颜色
|
|
10
9
|
activeColor: {
|
|
11
10
|
type: String,
|
|
12
|
-
default:
|
|
11
|
+
default: () => uni.$u.props.indexList.activeColor
|
|
13
12
|
},
|
|
14
13
|
// 索引字符列表,数组形式
|
|
15
14
|
indexList: {
|
|
16
15
|
type: Array,
|
|
17
|
-
default:
|
|
16
|
+
default: () => uni.$u.props.indexList.indexList
|
|
18
17
|
},
|
|
19
18
|
// 是否开启锚点自动吸顶
|
|
20
19
|
sticky: {
|
|
21
20
|
type: Boolean,
|
|
22
|
-
default:
|
|
21
|
+
default: () => uni.$u.props.indexList.sticky
|
|
23
22
|
},
|
|
24
23
|
// 自定义导航栏的高度
|
|
25
24
|
customNavHeight: {
|
|
26
25
|
type: [String, Number],
|
|
27
|
-
default:
|
|
26
|
+
default: () => uni.$u.props.indexList.customNavHeight
|
|
28
27
|
}
|
|
29
28
|
}
|
|
30
29
|
}
|
|
@@ -310,7 +310,8 @@
|
|
|
310
310
|
// #endif
|
|
311
311
|
// #ifdef MP-WEIXIN
|
|
312
312
|
// 微信小程序下,scroll-view的scroll-into-view属性无法对slot中的内容的id生效,只能通过设置scrollTop的形式去移动滚动条
|
|
313
|
-
|
|
313
|
+
const customNavHeight = this.customNavHeight
|
|
314
|
+
this.scrollTop = this.children[currentIndex].top - uni.$u.getPx(customNavHeight)
|
|
314
315
|
// #endif
|
|
315
316
|
// #ifdef APP-NVUE
|
|
316
317
|
// 在nvue中,由于cell和header为同级元素,所以实际是需要对header(anchor)进行偏移
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import defprops from '../../libs/config/props';
|
|
2
1
|
export default {
|
|
3
2
|
props: {
|
|
4
3
|
// #ifdef VUE3
|
|
5
4
|
// 绑定的值
|
|
6
5
|
modelValue: {
|
|
7
6
|
type: [String, Number],
|
|
8
|
-
default:
|
|
7
|
+
default: () => uni.$u.props.input.value
|
|
9
8
|
},
|
|
10
9
|
// #endif
|
|
11
10
|
// #ifdef VUE2
|
|
12
11
|
// 绑定的值
|
|
13
12
|
value: {
|
|
14
13
|
type: [String, Number],
|
|
15
|
-
default:
|
|
14
|
+
default: () => uni.$u.props.input.value
|
|
16
15
|
},
|
|
17
16
|
// #endif
|
|
18
17
|
// number-数字输入键盘,app-vue下可以输入浮点数,app-nvue和小程序平台下只能输入整数
|
|
@@ -21,171 +20,171 @@ export default {
|
|
|
21
20
|
// text-文本输入键盘
|
|
22
21
|
type: {
|
|
23
22
|
type: String,
|
|
24
|
-
default:
|
|
23
|
+
default: () => uni.$u.props.input.type
|
|
25
24
|
},
|
|
26
25
|
// 如果 textarea 是在一个 position:fixed 的区域,需要显示指定属性 fixed 为 true,
|
|
27
26
|
// 兼容性:微信小程序、百度小程序、字节跳动小程序、QQ小程序
|
|
28
27
|
fixed: {
|
|
29
28
|
type: Boolean,
|
|
30
|
-
default:
|
|
29
|
+
default: () => uni.$u.props.input.fixed
|
|
31
30
|
},
|
|
32
31
|
// 是否禁用输入框
|
|
33
32
|
disabled: {
|
|
34
33
|
type: Boolean,
|
|
35
|
-
default:
|
|
34
|
+
default: () => uni.$u.props.input.disabled
|
|
36
35
|
},
|
|
37
36
|
// 禁用状态时的背景色
|
|
38
37
|
disabledColor: {
|
|
39
38
|
type: String,
|
|
40
|
-
default:
|
|
39
|
+
default: () => uni.$u.props.input.disabledColor
|
|
41
40
|
},
|
|
42
41
|
// 是否显示清除控件
|
|
43
42
|
clearable: {
|
|
44
43
|
type: Boolean,
|
|
45
|
-
default:
|
|
44
|
+
default: () => uni.$u.props.input.clearable
|
|
46
45
|
},
|
|
47
46
|
// 是否密码类型
|
|
48
47
|
password: {
|
|
49
48
|
type: Boolean,
|
|
50
|
-
default:
|
|
49
|
+
default: () => uni.$u.props.input.password
|
|
51
50
|
},
|
|
52
51
|
// 最大输入长度,设置为 -1 的时候不限制最大长度
|
|
53
52
|
maxlength: {
|
|
54
53
|
type: [String, Number],
|
|
55
|
-
default:
|
|
54
|
+
default: () => uni.$u.props.input.maxlength
|
|
56
55
|
},
|
|
57
56
|
// 输入框为空时的占位符
|
|
58
57
|
placeholder: {
|
|
59
58
|
type: String,
|
|
60
|
-
default:
|
|
59
|
+
default: () => uni.$u.props.input.placeholder
|
|
61
60
|
},
|
|
62
61
|
// 指定placeholder的样式类,注意页面或组件的style中写了scoped时,需要在类名前写/deep/
|
|
63
62
|
placeholderClass: {
|
|
64
63
|
type: String,
|
|
65
|
-
default:
|
|
64
|
+
default: () => uni.$u.props.input.placeholderClass
|
|
66
65
|
},
|
|
67
66
|
// 指定placeholder的样式
|
|
68
67
|
placeholderStyle: {
|
|
69
68
|
type: [String, Object],
|
|
70
|
-
default:
|
|
69
|
+
default: () => uni.$u.props.input.placeholderStyle
|
|
71
70
|
},
|
|
72
71
|
// 是否显示输入字数统计,只在 type ="text"或type ="textarea"时有效
|
|
73
72
|
showWordLimit: {
|
|
74
73
|
type: Boolean,
|
|
75
|
-
default:
|
|
74
|
+
default: () => uni.$u.props.input.showWordLimit
|
|
76
75
|
},
|
|
77
76
|
// 设置右下角按钮的文字,有效值:send|search|next|go|done,兼容性详见uni-app文档
|
|
78
77
|
// https://uniapp.dcloud.io/component/input
|
|
79
78
|
// https://uniapp.dcloud.io/component/textarea
|
|
80
79
|
confirmType: {
|
|
81
80
|
type: String,
|
|
82
|
-
default:
|
|
81
|
+
default: () => uni.$u.props.input.confirmType
|
|
83
82
|
},
|
|
84
83
|
// 点击键盘右下角按钮时是否保持键盘不收起,H5无效
|
|
85
84
|
confirmHold: {
|
|
86
85
|
type: Boolean,
|
|
87
|
-
default:
|
|
86
|
+
default: () => uni.$u.props.input.confirmHold
|
|
88
87
|
},
|
|
89
88
|
// focus时,点击页面的时候不收起键盘,微信小程序有效
|
|
90
89
|
holdKeyboard: {
|
|
91
90
|
type: Boolean,
|
|
92
|
-
default:
|
|
91
|
+
default: () => uni.$u.props.input.holdKeyboard
|
|
93
92
|
},
|
|
94
93
|
// 自动获取焦点
|
|
95
94
|
// 在 H5 平台能否聚焦以及软键盘是否跟随弹出,取决于当前浏览器本身的实现。nvue 页面不支持,需使用组件的 focus()、blur() 方法控制焦点
|
|
96
95
|
focus: {
|
|
97
96
|
type: Boolean,
|
|
98
|
-
default:
|
|
97
|
+
default: () => uni.$u.props.input.focus
|
|
99
98
|
},
|
|
100
99
|
// 键盘收起时,是否自动失去焦点,目前仅App3.0.0+有效
|
|
101
100
|
autoBlur: {
|
|
102
101
|
type: Boolean,
|
|
103
|
-
default:
|
|
102
|
+
default: () => uni.$u.props.input.autoBlur
|
|
104
103
|
},
|
|
105
104
|
// 是否去掉 iOS 下的默认内边距,仅微信小程序,且type=textarea时有效
|
|
106
105
|
disableDefaultPadding: {
|
|
107
106
|
type: Boolean,
|
|
108
|
-
default:
|
|
107
|
+
default: () => uni.$u.props.input.disableDefaultPadding
|
|
109
108
|
},
|
|
110
109
|
// 指定focus时光标的位置
|
|
111
110
|
cursor: {
|
|
112
111
|
type: [String, Number],
|
|
113
|
-
default:
|
|
112
|
+
default: () => uni.$u.props.input.cursor
|
|
114
113
|
},
|
|
115
114
|
// 输入框聚焦时底部与键盘的距离
|
|
116
115
|
cursorSpacing: {
|
|
117
116
|
type: [String, Number],
|
|
118
|
-
default:
|
|
117
|
+
default: () => uni.$u.props.input.cursorSpacing
|
|
119
118
|
},
|
|
120
119
|
// 光标起始位置,自动聚集时有效,需与selection-end搭配使用
|
|
121
120
|
selectionStart: {
|
|
122
121
|
type: [String, Number],
|
|
123
|
-
default:
|
|
122
|
+
default: () => uni.$u.props.input.selectionStart
|
|
124
123
|
},
|
|
125
124
|
// 光标结束位置,自动聚集时有效,需与selection-start搭配使用
|
|
126
125
|
selectionEnd: {
|
|
127
126
|
type: [String, Number],
|
|
128
|
-
default:
|
|
127
|
+
default: () => uni.$u.props.input.selectionEnd
|
|
129
128
|
},
|
|
130
129
|
// 键盘弹起时,是否自动上推页面
|
|
131
130
|
adjustPosition: {
|
|
132
131
|
type: Boolean,
|
|
133
|
-
default:
|
|
132
|
+
default: () => uni.$u.props.input.adjustPosition
|
|
134
133
|
},
|
|
135
134
|
// 输入框内容对齐方式,可选值为:left|center|right
|
|
136
135
|
inputAlign: {
|
|
137
136
|
type: String,
|
|
138
|
-
default:
|
|
137
|
+
default: () => uni.$u.props.input.inputAlign
|
|
139
138
|
},
|
|
140
139
|
// 输入框字体的大小
|
|
141
140
|
fontSize: {
|
|
142
141
|
type: [String, Number],
|
|
143
|
-
default:
|
|
142
|
+
default: () => uni.$u.props.input.fontSize
|
|
144
143
|
},
|
|
145
144
|
// 输入框字体颜色
|
|
146
145
|
color: {
|
|
147
146
|
type: String,
|
|
148
|
-
default:
|
|
147
|
+
default: () => uni.$u.props.input.color
|
|
149
148
|
},
|
|
150
149
|
// 输入框前置图标
|
|
151
150
|
prefixIcon: {
|
|
152
151
|
type: String,
|
|
153
|
-
default:
|
|
152
|
+
default: () => uni.$u.props.input.prefixIcon
|
|
154
153
|
},
|
|
155
154
|
// 前置图标样式,对象或字符串
|
|
156
155
|
prefixIconStyle: {
|
|
157
156
|
type: [String, Object],
|
|
158
|
-
default:
|
|
157
|
+
default: () => uni.$u.props.input.prefixIconStyle
|
|
159
158
|
},
|
|
160
159
|
// 输入框后置图标
|
|
161
160
|
suffixIcon: {
|
|
162
161
|
type: String,
|
|
163
|
-
default:
|
|
162
|
+
default: () => uni.$u.props.input.suffixIcon
|
|
164
163
|
},
|
|
165
164
|
// 后置图标样式,对象或字符串
|
|
166
165
|
suffixIconStyle: {
|
|
167
166
|
type: [String, Object],
|
|
168
|
-
default:
|
|
167
|
+
default: () => uni.$u.props.input.suffixIconStyle
|
|
169
168
|
},
|
|
170
169
|
// 边框类型,surround-四周边框,bottom-底部边框,none-无边框
|
|
171
170
|
border: {
|
|
172
171
|
type: String,
|
|
173
|
-
default:
|
|
172
|
+
default: () => uni.$u.props.input.border
|
|
174
173
|
},
|
|
175
174
|
// 是否只读,与disabled不同之处在于disabled会置灰组件,而readonly则不会
|
|
176
175
|
readonly: {
|
|
177
176
|
type: Boolean,
|
|
178
|
-
default:
|
|
177
|
+
default: () => uni.$u.props.input.readonly
|
|
179
178
|
},
|
|
180
179
|
// 输入框形状,circle-圆形,square-方形
|
|
181
180
|
shape: {
|
|
182
181
|
type: String,
|
|
183
|
-
default:
|
|
182
|
+
default: () => uni.$u.props.input.shape
|
|
184
183
|
},
|
|
185
184
|
// 用于处理或者过滤输入框内容的方法
|
|
186
185
|
formatter: {
|
|
187
186
|
type: [Function, null],
|
|
188
|
-
default:
|
|
187
|
+
default: () => uni.$u.props.input.formatter
|
|
189
188
|
},
|
|
190
189
|
// 是否忽略组件内对文本合成系统事件的处理
|
|
191
190
|
ignoreCompositionEvent: {
|
|
@@ -1,85 +1,84 @@
|
|
|
1
|
-
import defprops from '../../libs/config/props';
|
|
2
1
|
export default {
|
|
3
2
|
props: {
|
|
4
3
|
// 键盘的类型,number-数字键盘,card-身份证键盘,car-车牌号键盘
|
|
5
4
|
mode: {
|
|
6
5
|
type: String,
|
|
7
|
-
default:
|
|
6
|
+
default: () => uni.$u.props.keyboard.mode
|
|
8
7
|
},
|
|
9
8
|
// 是否显示键盘的"."符号
|
|
10
9
|
dotDisabled: {
|
|
11
10
|
type: Boolean,
|
|
12
|
-
default:
|
|
11
|
+
default: () => uni.$u.props.keyboard.dotDisabled
|
|
13
12
|
},
|
|
14
13
|
// 是否显示顶部工具条
|
|
15
14
|
tooltip: {
|
|
16
15
|
type: Boolean,
|
|
17
|
-
default:
|
|
16
|
+
default: () => uni.$u.props.keyboard.tooltip
|
|
18
17
|
},
|
|
19
18
|
// 是否显示工具条中间的提示
|
|
20
19
|
showTips: {
|
|
21
20
|
type: Boolean,
|
|
22
|
-
default:
|
|
21
|
+
default: () => uni.$u.props.keyboard.showTips
|
|
23
22
|
},
|
|
24
23
|
// 工具条中间的提示文字
|
|
25
24
|
tips: {
|
|
26
25
|
type: String,
|
|
27
|
-
default:
|
|
26
|
+
default: () => uni.$u.props.keyboard.tips
|
|
28
27
|
},
|
|
29
28
|
// 是否显示工具条左边的"取消"按钮
|
|
30
29
|
showCancel: {
|
|
31
30
|
type: Boolean,
|
|
32
|
-
default:
|
|
31
|
+
default: () => uni.$u.props.keyboard.showCancel
|
|
33
32
|
},
|
|
34
33
|
// 是否显示工具条右边的"完成"按钮
|
|
35
34
|
showConfirm: {
|
|
36
35
|
type: Boolean,
|
|
37
|
-
default:
|
|
36
|
+
default: () => uni.$u.props.keyboard.showConfirm
|
|
38
37
|
},
|
|
39
38
|
// 是否打乱键盘按键的顺序
|
|
40
39
|
random: {
|
|
41
40
|
type: Boolean,
|
|
42
|
-
default:
|
|
41
|
+
default: () => uni.$u.props.keyboard.random
|
|
43
42
|
},
|
|
44
43
|
// 是否开启底部安全区适配,开启的话,会在iPhoneX机型底部添加一定的内边距
|
|
45
44
|
safeAreaInsetBottom: {
|
|
46
45
|
type: Boolean,
|
|
47
|
-
default:
|
|
46
|
+
default: () => uni.$u.props.keyboard.safeAreaInsetBottom
|
|
48
47
|
},
|
|
49
48
|
// 是否允许通过点击遮罩关闭键盘
|
|
50
49
|
closeOnClickOverlay: {
|
|
51
50
|
type: Boolean,
|
|
52
|
-
default:
|
|
51
|
+
default: () => uni.$u.props.keyboard.closeOnClickOverlay
|
|
53
52
|
},
|
|
54
53
|
// 控制键盘的弹出与收起
|
|
55
54
|
show: {
|
|
56
55
|
type: Boolean,
|
|
57
|
-
default:
|
|
56
|
+
default: () => uni.$u.props.keyboard.show
|
|
58
57
|
},
|
|
59
58
|
// 是否显示遮罩,某些时候数字键盘时,用户希望看到自己的数值,所以可能不想要遮罩
|
|
60
59
|
overlay: {
|
|
61
60
|
type: Boolean,
|
|
62
|
-
default:
|
|
61
|
+
default: () => uni.$u.props.keyboard.overlay
|
|
63
62
|
},
|
|
64
63
|
// z-index值
|
|
65
64
|
zIndex: {
|
|
66
65
|
type: [String, Number],
|
|
67
|
-
default:
|
|
66
|
+
default: () => uni.$u.props.keyboard.zIndex
|
|
68
67
|
},
|
|
69
68
|
// 取消按钮的文字
|
|
70
69
|
cancelText: {
|
|
71
70
|
type: String,
|
|
72
|
-
default:
|
|
71
|
+
default: () => uni.$u.props.keyboard.cancelText
|
|
73
72
|
},
|
|
74
73
|
// 确认按钮的文字
|
|
75
74
|
confirmText: {
|
|
76
75
|
type: String,
|
|
77
|
-
default:
|
|
76
|
+
default: () => uni.$u.props.keyboard.confirmText
|
|
78
77
|
},
|
|
79
78
|
// 输入一个中文后,是否自动切换到英文
|
|
80
79
|
autoChange: {
|
|
81
80
|
type: Boolean,
|
|
82
|
-
default:
|
|
81
|
+
default: () => uni.$u.props.keyboard.autoChange
|
|
83
82
|
}
|
|
84
83
|
}
|
|
85
84
|
}
|
|
@@ -1,34 +1,33 @@
|
|
|
1
|
-
import defprops from '../../libs/config/props';
|
|
2
1
|
export default {
|
|
3
2
|
props: {
|
|
4
3
|
color: {
|
|
5
4
|
type: String,
|
|
6
|
-
default:
|
|
5
|
+
default: () => uni.$u.props.line.color
|
|
7
6
|
},
|
|
8
7
|
// 长度,竖向时表现为高度,横向时表现为长度,可以为百分比,带px单位的值等
|
|
9
8
|
length: {
|
|
10
9
|
type: [String, Number],
|
|
11
|
-
default:
|
|
10
|
+
default: () => uni.$u.props.line.length
|
|
12
11
|
},
|
|
13
12
|
// 线条方向,col-竖向,row-横向
|
|
14
13
|
direction: {
|
|
15
14
|
type: String,
|
|
16
|
-
default:
|
|
15
|
+
default: () => uni.$u.props.line.direction
|
|
17
16
|
},
|
|
18
17
|
// 是否显示细边框
|
|
19
18
|
hairline: {
|
|
20
19
|
type: Boolean,
|
|
21
|
-
default:
|
|
20
|
+
default: () => uni.$u.props.line.hairline
|
|
22
21
|
},
|
|
23
22
|
// 线条与上下左右元素的间距,字符串形式,如"30px"、"20px 30px"
|
|
24
23
|
margin: {
|
|
25
24
|
type: [String, Number],
|
|
26
|
-
default:
|
|
25
|
+
default: () => uni.$u.props.line.margin
|
|
27
26
|
},
|
|
28
27
|
// 是否虚线,true-虚线,false-实线
|
|
29
28
|
dashed: {
|
|
30
29
|
type: Boolean,
|
|
31
|
-
default:
|
|
30
|
+
default: () => uni.$u.props.line.dashed
|
|
32
31
|
}
|
|
33
32
|
}
|
|
34
33
|
}
|
|
@@ -1,29 +1,28 @@
|
|
|
1
|
-
import defprops from '../../libs/config/props';
|
|
2
1
|
export default {
|
|
3
2
|
props: {
|
|
4
3
|
// 激活部分的颜色
|
|
5
4
|
activeColor: {
|
|
6
5
|
type: String,
|
|
7
|
-
default:
|
|
6
|
+
default: () => uni.$u.props.lineProgress.activeColor
|
|
8
7
|
},
|
|
9
8
|
inactiveColor: {
|
|
10
9
|
type: String,
|
|
11
|
-
default:
|
|
10
|
+
default: () => uni.$u.props.lineProgress.color
|
|
12
11
|
},
|
|
13
12
|
// 进度百分比,数值
|
|
14
13
|
percentage: {
|
|
15
14
|
type: [String, Number],
|
|
16
|
-
default:
|
|
15
|
+
default: () => uni.$u.props.lineProgress.inactiveColor
|
|
17
16
|
},
|
|
18
17
|
// 是否在进度条内部显示百分比的值
|
|
19
18
|
showText: {
|
|
20
19
|
type: Boolean,
|
|
21
|
-
default:
|
|
20
|
+
default: () => uni.$u.props.lineProgress.showText
|
|
22
21
|
},
|
|
23
22
|
// 进度条的高度,单位px
|
|
24
23
|
height: {
|
|
25
24
|
type: [String, Number],
|
|
26
|
-
default:
|
|
25
|
+
default: () => uni.$u.props.lineProgress.height
|
|
27
26
|
}
|
|
28
27
|
}
|
|
29
28
|
}
|
|
@@ -1,40 +1,39 @@
|
|
|
1
|
-
import defprops from '../../libs/config/props';
|
|
2
1
|
export default {
|
|
3
2
|
props: {
|
|
4
3
|
// 文字颜色
|
|
5
4
|
color: {
|
|
6
5
|
type: String,
|
|
7
|
-
default:
|
|
6
|
+
default: () => uni.$u.props.link.color
|
|
8
7
|
},
|
|
9
8
|
// 字体大小,单位px
|
|
10
9
|
fontSize: {
|
|
11
10
|
type: [String, Number],
|
|
12
|
-
default:
|
|
11
|
+
default: () => uni.$u.props.link.fontSize
|
|
13
12
|
},
|
|
14
13
|
// 是否显示下划线
|
|
15
14
|
underLine: {
|
|
16
15
|
type: Boolean,
|
|
17
|
-
default:
|
|
16
|
+
default: () => uni.$u.props.link.underLine
|
|
18
17
|
},
|
|
19
18
|
// 要跳转的链接
|
|
20
19
|
href: {
|
|
21
20
|
type: String,
|
|
22
|
-
default:
|
|
21
|
+
default: () => uni.$u.props.link.href
|
|
23
22
|
},
|
|
24
23
|
// 小程序中复制到粘贴板的提示语
|
|
25
24
|
mpTips: {
|
|
26
25
|
type: String,
|
|
27
|
-
default:
|
|
26
|
+
default: () => uni.$u.props.link.mpTips
|
|
28
27
|
},
|
|
29
28
|
// 下划线颜色
|
|
30
29
|
lineColor: {
|
|
31
30
|
type: String,
|
|
32
|
-
default:
|
|
31
|
+
default: () => uni.$u.props.link.lineColor
|
|
33
32
|
},
|
|
34
33
|
// 超链接的问题,不使用slot形式传入,是因为nvue下无法修改颜色
|
|
35
34
|
text: {
|
|
36
35
|
type: String,
|
|
37
|
-
default:
|
|
36
|
+
default: () => uni.$u.props.link.text
|
|
38
37
|
}
|
|
39
38
|
}
|
|
40
39
|
}
|