uview-plus 3.2.6 → 3.2.7
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 +5 -0
- package/components/u-action-sheet/props.js +11 -10
- package/components/u-album/props.js +12 -11
- package/components/u-alert/props.js +9 -8
- package/components/u-avatar/props.js +15 -14
- package/components/u-avatar-group/props.js +10 -9
- package/components/u-back-top/props.js +11 -10
- package/components/u-badge/props.js +15 -14
- package/components/u-button/props.js +29 -37
- package/components/u-calendar/props.js +28 -27
- package/components/u-car-keyboard/props.js +1 -0
- package/components/u-cell/props.js +21 -20
- package/components/u-cell/u-cell.vue +3 -2
- package/components/u-cell-group/props.js +3 -2
- package/components/u-checkbox/props.js +14 -13
- package/components/u-checkbox-group/props.js +17 -16
- package/components/u-circle-progress/props.js +2 -1
- package/components/u-code/props.js +7 -6
- package/components/u-code-input/props.js +17 -16
- package/components/u-col/props.js +6 -5
- package/components/u-collapse/props.js +4 -3
- package/components/u-collapse-item/props.js +12 -11
- package/components/u-column-notice/props.js +11 -10
- package/components/u-count-down/props.js +5 -4
- package/components/u-count-to/props.js +12 -11
- package/components/u-datetime-picker/props.js +25 -24
- package/components/u-divider/props.js +9 -8
- package/components/u-dropdown/props.js +1 -0
- package/components/u-dropdown-item/props.js +1 -0
- package/components/u-dropdown-item/u-dropdown-item.vue +3 -5
- package/components/u-empty/props.js +12 -11
- package/components/u-form/props.js +9 -8
- package/components/u-form-item/props.js +11 -10
- package/components/u-gap/props.js +5 -4
- package/components/u-grid/props.js +4 -3
- package/components/u-grid-item/props.js +3 -2
- package/components/u-icon/props.js +18 -17
- package/components/u-image/props.js +17 -16
- package/components/u-index-anchor/props.js +6 -5
- package/components/u-index-item/props.js +1 -0
- package/components/u-index-list/props.js +6 -5
- package/components/u-input/props.js +36 -35
- package/components/u-keyboard/props.js +17 -16
- package/components/u-line/props.js +7 -6
- package/components/u-line-progress/props.js +6 -5
- package/components/u-link/props.js +8 -7
- package/components/u-list/props.js +15 -14
- package/components/u-list-item/props.js +2 -1
- package/components/u-loading-icon/props.js +12 -11
- package/components/u-loading-page/props.js +10 -9
- package/components/u-loadmore/props.js +19 -18
- package/components/u-modal/props.js +17 -16
- package/components/u-navbar/props.js +17 -16
- package/components/u-no-network/props.js +4 -3
- package/components/u-notice-bar/props.js +14 -13
- package/components/u-notify/props.js +10 -9
- package/components/u-number-box/props.js +23 -22
- package/components/u-number-keyboard/props.js +4 -3
- package/components/u-overlay/props.js +5 -4
- package/components/u-parse/props.js +9 -8
- package/components/u-picker/props.js +17 -16
- package/components/u-picker-column/props.js +1 -0
- package/components/u-popup/props.js +16 -15
- package/components/u-radio/props.js +14 -13
- package/components/u-radio-group/props.js +18 -17
- package/components/u-rate/props.js +15 -14
- package/components/u-read-more/props.js +9 -8
- package/components/u-row/props.js +4 -3
- package/components/u-row-notice/props.js +8 -7
- package/components/u-safe-bottom/props.js +1 -0
- package/components/u-scroll-list/props.js +7 -6
- package/components/u-search/props.js +25 -24
- package/components/u-skeleton/props.js +12 -11
- package/components/u-slider/props.js +12 -11
- package/components/u-status-bar/props.js +2 -1
- package/components/u-steps/props.js +8 -7
- package/components/u-steps-item/props.js +5 -4
- package/components/u-sticky/props.js +7 -6
- package/components/u-subsection/props.js +10 -9
- package/components/u-swipe-action/props.js +2 -1
- package/components/u-swipe-action-item/props.js +8 -7
- package/components/u-swiper/props.js +25 -24
- package/components/u-swiper-indicator/props.js +6 -5
- package/components/u-switch/props.js +12 -11
- package/components/u-tabbar/props.js +9 -8
- package/components/u-tabbar-item/props.js +7 -6
- package/components/u-table/props.js +1 -0
- package/components/u-tabs/props.js +13 -12
- package/components/u-tabs-item/props.js +1 -0
- package/components/u-tag/props.js +20 -18
- package/components/u-td/props.js +1 -0
- package/components/u-text/props.js +22 -21
- package/components/u-textarea/props.js +24 -23
- package/components/u-toolbar/props.js +7 -6
- package/components/u-tooltip/props.js +12 -11
- package/components/u-tr/props.js +1 -0
- package/components/u-transition/props.js +5 -4
- package/components/u-upload/props.js +23 -22
- package/index.js +16 -1
- package/libs/function/index.js +30 -23
- package/package.json +1 -1
|
@@ -1,74 +1,75 @@
|
|
|
1
|
+
import defProps from '../../libs/config/props.js';
|
|
1
2
|
export default {
|
|
2
3
|
props: {
|
|
3
4
|
// 控制是否出现滚动条,仅nvue有效
|
|
4
5
|
showScrollbar: {
|
|
5
6
|
type: Boolean,
|
|
6
|
-
default: () =>
|
|
7
|
+
default: () => defProps.list.showScrollbar
|
|
7
8
|
},
|
|
8
9
|
// 距底部多少时触发scrolltolower事件
|
|
9
10
|
lowerThreshold: {
|
|
10
11
|
type: [String, Number],
|
|
11
|
-
default: () =>
|
|
12
|
+
default: () => defProps.list.lowerThreshold
|
|
12
13
|
},
|
|
13
14
|
// 距顶部多少时触发scrolltoupper事件,非nvue有效
|
|
14
15
|
upperThreshold: {
|
|
15
16
|
type: [String, Number],
|
|
16
|
-
default: () =>
|
|
17
|
+
default: () => defProps.list.upperThreshold
|
|
17
18
|
},
|
|
18
19
|
// 设置竖向滚动条位置
|
|
19
20
|
scrollTop: {
|
|
20
21
|
type: [String, Number],
|
|
21
|
-
default: () =>
|
|
22
|
+
default: () => defProps.list.scrollTop
|
|
22
23
|
},
|
|
23
24
|
// 控制 onscroll 事件触发的频率,仅nvue有效
|
|
24
25
|
offsetAccuracy: {
|
|
25
26
|
type: [String, Number],
|
|
26
|
-
default: () =>
|
|
27
|
+
default: () => defProps.list.offsetAccuracy
|
|
27
28
|
},
|
|
28
29
|
// 启用 flexbox 布局。开启后,当前节点声明了display: flex就会成为flex container,并作用于其孩子节点,仅微信小程序有效
|
|
29
30
|
enableFlex: {
|
|
30
31
|
type: Boolean,
|
|
31
|
-
default: () =>
|
|
32
|
+
default: () => defProps.list.enableFlex
|
|
32
33
|
},
|
|
33
34
|
// 是否按分页模式显示List,默认值false
|
|
34
35
|
pagingEnabled: {
|
|
35
36
|
type: Boolean,
|
|
36
|
-
default: () =>
|
|
37
|
+
default: () => defProps.list.pagingEnabled
|
|
37
38
|
},
|
|
38
39
|
// 是否允许List滚动
|
|
39
40
|
scrollable: {
|
|
40
41
|
type: Boolean,
|
|
41
|
-
default: () =>
|
|
42
|
+
default: () => defProps.list.scrollable
|
|
42
43
|
},
|
|
43
44
|
// 值应为某子元素id(id不能以数字开头)
|
|
44
45
|
scrollIntoView: {
|
|
45
46
|
type: String,
|
|
46
|
-
default: () =>
|
|
47
|
+
default: () => defProps.list.scrollIntoView
|
|
47
48
|
},
|
|
48
49
|
// 在设置滚动条位置时使用动画过渡
|
|
49
50
|
scrollWithAnimation: {
|
|
50
51
|
type: Boolean,
|
|
51
|
-
default: () =>
|
|
52
|
+
default: () => defProps.list.scrollWithAnimation
|
|
52
53
|
},
|
|
53
54
|
// iOS点击顶部状态栏、安卓双击标题栏时,滚动条返回顶部,只对微信小程序有效
|
|
54
55
|
enableBackToTop: {
|
|
55
56
|
type: Boolean,
|
|
56
|
-
default: () =>
|
|
57
|
+
default: () => defProps.list.enableBackToTop
|
|
57
58
|
},
|
|
58
59
|
// 列表的高度
|
|
59
60
|
height: {
|
|
60
61
|
type: [String, Number],
|
|
61
|
-
default: () =>
|
|
62
|
+
default: () => defProps.list.height
|
|
62
63
|
},
|
|
63
64
|
// 列表宽度
|
|
64
65
|
width: {
|
|
65
66
|
type: [String, Number],
|
|
66
|
-
default: () =>
|
|
67
|
+
default: () => defProps.list.width
|
|
67
68
|
},
|
|
68
69
|
// 列表前后预渲染的屏数,1代表一个屏幕的高度,1.5代表1个半屏幕高度
|
|
69
70
|
preLoadScreen: {
|
|
70
71
|
type: [String, Number],
|
|
71
|
-
default: () =>
|
|
72
|
+
default: () => defProps.list.preLoadScreen
|
|
72
73
|
}
|
|
73
74
|
// vue下,是否开启虚拟列表
|
|
74
75
|
|
|
@@ -1,59 +1,60 @@
|
|
|
1
|
+
import defProps from '../../libs/config/props.js';
|
|
1
2
|
export default {
|
|
2
3
|
props: {
|
|
3
4
|
// 是否显示组件
|
|
4
5
|
show: {
|
|
5
6
|
type: Boolean,
|
|
6
|
-
default: () =>
|
|
7
|
+
default: () => defProps.loadingIcon.show
|
|
7
8
|
},
|
|
8
9
|
// 颜色
|
|
9
10
|
color: {
|
|
10
11
|
type: String,
|
|
11
|
-
default: () =>
|
|
12
|
+
default: () => defProps.loadingIcon.color
|
|
12
13
|
},
|
|
13
14
|
// 提示文字颜色
|
|
14
15
|
textColor: {
|
|
15
16
|
type: String,
|
|
16
|
-
default: () =>
|
|
17
|
+
default: () => defProps.loadingIcon.textColor
|
|
17
18
|
},
|
|
18
19
|
// 文字和图标是否垂直排列
|
|
19
20
|
vertical: {
|
|
20
21
|
type: Boolean,
|
|
21
|
-
default: () =>
|
|
22
|
+
default: () => defProps.loadingIcon.vertical
|
|
22
23
|
},
|
|
23
24
|
// 模式选择,circle-圆形,spinner-花朵形,semicircle-半圆形
|
|
24
25
|
mode: {
|
|
25
26
|
type: String,
|
|
26
|
-
default: () =>
|
|
27
|
+
default: () => defProps.loadingIcon.mode
|
|
27
28
|
},
|
|
28
29
|
// 图标大小,单位默认px
|
|
29
30
|
size: {
|
|
30
31
|
type: [String, Number],
|
|
31
|
-
default: () =>
|
|
32
|
+
default: () => defProps.loadingIcon.size
|
|
32
33
|
},
|
|
33
34
|
// 文字大小
|
|
34
35
|
textSize: {
|
|
35
36
|
type: [String, Number],
|
|
36
|
-
default: () =>
|
|
37
|
+
default: () => defProps.loadingIcon.textSize
|
|
37
38
|
},
|
|
38
39
|
// 文字内容
|
|
39
40
|
text: {
|
|
40
41
|
type: [String, Number],
|
|
41
|
-
default: () =>
|
|
42
|
+
default: () => defProps.loadingIcon.text
|
|
42
43
|
},
|
|
43
44
|
// 动画模式
|
|
44
45
|
timingFunction: {
|
|
45
46
|
type: String,
|
|
46
|
-
default: () =>
|
|
47
|
+
default: () => defProps.loadingIcon.timingFunction
|
|
47
48
|
},
|
|
48
49
|
// 动画执行周期时间
|
|
49
50
|
duration: {
|
|
50
51
|
type: [String, Number],
|
|
51
|
-
default: () =>
|
|
52
|
+
default: () => defProps.loadingIcon.duration
|
|
52
53
|
},
|
|
53
54
|
// mode=circle时的暗边颜色
|
|
54
55
|
inactiveColor: {
|
|
55
56
|
type: String,
|
|
56
|
-
default: () =>
|
|
57
|
+
default: () => defProps.loadingIcon.inactiveColor
|
|
57
58
|
}
|
|
58
59
|
}
|
|
59
60
|
}
|
|
@@ -1,49 +1,50 @@
|
|
|
1
|
+
import defProps from '../../libs/config/props.js';
|
|
1
2
|
export default {
|
|
2
3
|
props: {
|
|
3
4
|
// 提示内容
|
|
4
5
|
loadingText: {
|
|
5
6
|
type: [String, Number],
|
|
6
|
-
default: () =>
|
|
7
|
+
default: () => defProps.loadingPage.loadingText
|
|
7
8
|
},
|
|
8
9
|
// 文字上方用于替换loading动画的图片
|
|
9
10
|
image: {
|
|
10
11
|
type: String,
|
|
11
|
-
default: () =>
|
|
12
|
+
default: () => defProps.loadingPage.image
|
|
12
13
|
},
|
|
13
14
|
// 加载动画的模式,circle-圆形,spinner-花朵形,semicircle-半圆形
|
|
14
15
|
loadingMode: {
|
|
15
16
|
type: String,
|
|
16
|
-
default: () =>
|
|
17
|
+
default: () => defProps.loadingPage.loadingMode
|
|
17
18
|
},
|
|
18
19
|
// 是否加载中
|
|
19
20
|
loading: {
|
|
20
21
|
type: Boolean,
|
|
21
|
-
default: () =>
|
|
22
|
+
default: () => defProps.loadingPage.loading
|
|
22
23
|
},
|
|
23
24
|
// 背景色
|
|
24
25
|
bgColor: {
|
|
25
26
|
type: String,
|
|
26
|
-
default: () =>
|
|
27
|
+
default: () => defProps.loadingPage.bgColor
|
|
27
28
|
},
|
|
28
29
|
// 文字颜色
|
|
29
30
|
color: {
|
|
30
31
|
type: String,
|
|
31
|
-
default: () =>
|
|
32
|
+
default: () => defProps.loadingPage.color
|
|
32
33
|
},
|
|
33
34
|
// 文字大小
|
|
34
35
|
fontSize: {
|
|
35
36
|
type: [String, Number],
|
|
36
|
-
default: () =>
|
|
37
|
+
default: () => defProps.loadingPage.fontSize
|
|
37
38
|
},
|
|
38
39
|
// 图标大小
|
|
39
40
|
iconSize: {
|
|
40
41
|
type: [String, Number],
|
|
41
|
-
default: () =>
|
|
42
|
+
default: () => defProps.loadingPage.fontSize
|
|
42
43
|
},
|
|
43
44
|
// 加载中图标的颜色,只能rgb或者十六进制颜色值
|
|
44
45
|
loadingColor: {
|
|
45
46
|
type: String,
|
|
46
|
-
default: () =>
|
|
47
|
+
default: () => defProps.loadingPage.loadingColor
|
|
47
48
|
}
|
|
48
49
|
}
|
|
49
50
|
}
|
|
@@ -1,94 +1,95 @@
|
|
|
1
|
+
import defProps from '../../libs/config/props.js';
|
|
1
2
|
export default {
|
|
2
3
|
props: {
|
|
3
4
|
// 组件状态,loadmore-加载前的状态,loading-加载中的状态,nomore-没有更多的状态
|
|
4
5
|
status: {
|
|
5
6
|
type: String,
|
|
6
|
-
default: () =>
|
|
7
|
+
default: () => defProps.loadmore.status
|
|
7
8
|
},
|
|
8
9
|
// 组件背景色
|
|
9
10
|
bgColor: {
|
|
10
11
|
type: String,
|
|
11
|
-
default: () =>
|
|
12
|
+
default: () => defProps.loadmore.bgColor
|
|
12
13
|
},
|
|
13
14
|
// 是否显示加载中的图标
|
|
14
15
|
icon: {
|
|
15
16
|
type: Boolean,
|
|
16
|
-
default: () =>
|
|
17
|
+
default: () => defProps.loadmore.icon
|
|
17
18
|
},
|
|
18
19
|
// 字体大小
|
|
19
20
|
fontSize: {
|
|
20
21
|
type: [String, Number],
|
|
21
|
-
default: () =>
|
|
22
|
+
default: () => defProps.loadmore.fontSize
|
|
22
23
|
},
|
|
23
24
|
// 图标大小
|
|
24
25
|
iconSize: {
|
|
25
26
|
type: [String, Number],
|
|
26
|
-
default: () =>
|
|
27
|
+
default: () => defProps.loadmore.iconSize
|
|
27
28
|
},
|
|
28
29
|
// 字体颜色
|
|
29
30
|
color: {
|
|
30
31
|
type: String,
|
|
31
|
-
default: () =>
|
|
32
|
+
default: () => defProps.loadmore.color
|
|
32
33
|
},
|
|
33
34
|
// 加载中状态的图标,spinner-花朵状图标,circle-圆圈状,semicircle-半圆
|
|
34
35
|
loadingIcon: {
|
|
35
36
|
type: String,
|
|
36
|
-
default: () =>
|
|
37
|
+
default: () => defProps.loadmore.loadingIcon
|
|
37
38
|
},
|
|
38
39
|
// 加载前的提示语
|
|
39
40
|
loadmoreText: {
|
|
40
41
|
type: String,
|
|
41
|
-
default: () =>
|
|
42
|
+
default: () => defProps.loadmore.loadmoreText
|
|
42
43
|
},
|
|
43
44
|
// 加载中提示语
|
|
44
45
|
loadingText: {
|
|
45
46
|
type: String,
|
|
46
|
-
default: () =>
|
|
47
|
+
default: () => defProps.loadmore.loadingText
|
|
47
48
|
},
|
|
48
49
|
// 没有更多的提示语
|
|
49
50
|
nomoreText: {
|
|
50
51
|
type: String,
|
|
51
|
-
default: () =>
|
|
52
|
+
default: () => defProps.loadmore.nomoreText
|
|
52
53
|
},
|
|
53
54
|
// 在“没有更多”状态下,是否显示粗点
|
|
54
55
|
isDot: {
|
|
55
56
|
type: Boolean,
|
|
56
|
-
default: () =>
|
|
57
|
+
default: () => defProps.loadmore.isDot
|
|
57
58
|
},
|
|
58
59
|
// 加载中图标的颜色
|
|
59
60
|
iconColor: {
|
|
60
61
|
type: String,
|
|
61
|
-
default: () =>
|
|
62
|
+
default: () => defProps.loadmore.iconColor
|
|
62
63
|
},
|
|
63
64
|
// 上边距
|
|
64
65
|
marginTop: {
|
|
65
66
|
type: [String, Number],
|
|
66
|
-
default: () =>
|
|
67
|
+
default: () => defProps.loadmore.marginTop
|
|
67
68
|
},
|
|
68
69
|
// 下边距
|
|
69
70
|
marginBottom: {
|
|
70
71
|
type: [String, Number],
|
|
71
|
-
default: () =>
|
|
72
|
+
default: () => defProps.loadmore.marginBottom
|
|
72
73
|
},
|
|
73
74
|
// 高度,单位px
|
|
74
75
|
height: {
|
|
75
76
|
type: [String, Number],
|
|
76
|
-
default: () =>
|
|
77
|
+
default: () => defProps.loadmore.height
|
|
77
78
|
},
|
|
78
79
|
// 是否显示左边分割线
|
|
79
80
|
line: {
|
|
80
81
|
type: Boolean,
|
|
81
|
-
default: () =>
|
|
82
|
+
default: () => defProps.loadmore.line
|
|
82
83
|
},
|
|
83
84
|
// 线条颜色
|
|
84
85
|
lineColor: {
|
|
85
86
|
type: String,
|
|
86
|
-
default: () =>
|
|
87
|
+
default: () => defProps.loadmore.lineColor
|
|
87
88
|
},
|
|
88
89
|
// 是否虚线,true-虚线,false-实线
|
|
89
90
|
dashed: {
|
|
90
91
|
type: Boolean,
|
|
91
|
-
default: () =>
|
|
92
|
+
default: () => defProps.loadmore.dashed
|
|
92
93
|
}
|
|
93
94
|
}
|
|
94
95
|
}
|
|
@@ -1,84 +1,85 @@
|
|
|
1
|
+
import defProps from '../../libs/config/props.js';
|
|
1
2
|
export default {
|
|
2
3
|
props: {
|
|
3
4
|
// 是否展示modal
|
|
4
5
|
show: {
|
|
5
6
|
type: Boolean,
|
|
6
|
-
default: () =>
|
|
7
|
+
default: () => defProps.modal.show
|
|
7
8
|
},
|
|
8
9
|
// 标题
|
|
9
10
|
title: {
|
|
10
11
|
type: [String],
|
|
11
|
-
default: () =>
|
|
12
|
+
default: () => defProps.modal.title
|
|
12
13
|
},
|
|
13
14
|
// 弹窗内容
|
|
14
15
|
content: {
|
|
15
16
|
type: String,
|
|
16
|
-
default: () =>
|
|
17
|
+
default: () => defProps.modal.content
|
|
17
18
|
},
|
|
18
19
|
// 确认文案
|
|
19
20
|
confirmText: {
|
|
20
21
|
type: String,
|
|
21
|
-
default: () =>
|
|
22
|
+
default: () => defProps.modal.confirmText
|
|
22
23
|
},
|
|
23
24
|
// 取消文案
|
|
24
25
|
cancelText: {
|
|
25
26
|
type: String,
|
|
26
|
-
default: () =>
|
|
27
|
+
default: () => defProps.modal.cancelText
|
|
27
28
|
},
|
|
28
29
|
// 是否显示确认按钮
|
|
29
30
|
showConfirmButton: {
|
|
30
31
|
type: Boolean,
|
|
31
|
-
default: () =>
|
|
32
|
+
default: () => defProps.modal.showConfirmButton
|
|
32
33
|
},
|
|
33
34
|
// 是否显示取消按钮
|
|
34
35
|
showCancelButton: {
|
|
35
36
|
type: Boolean,
|
|
36
|
-
default: () =>
|
|
37
|
+
default: () => defProps.modal.showCancelButton
|
|
37
38
|
},
|
|
38
39
|
// 确认按钮颜色
|
|
39
40
|
confirmColor: {
|
|
40
41
|
type: String,
|
|
41
|
-
default: () =>
|
|
42
|
+
default: () => defProps.modal.confirmColor
|
|
42
43
|
},
|
|
43
44
|
// 取消文字颜色
|
|
44
45
|
cancelColor: {
|
|
45
46
|
type: String,
|
|
46
|
-
default: () =>
|
|
47
|
+
default: () => defProps.modal.cancelColor
|
|
47
48
|
},
|
|
48
49
|
// 对调确认和取消的位置
|
|
49
50
|
buttonReverse: {
|
|
50
51
|
type: Boolean,
|
|
51
|
-
default: () =>
|
|
52
|
+
default: () => defProps.modal.buttonReverse
|
|
52
53
|
},
|
|
53
54
|
// 是否开启缩放效果
|
|
54
55
|
zoom: {
|
|
55
56
|
type: Boolean,
|
|
56
|
-
default: () =>
|
|
57
|
+
default: () => defProps.modal.zoom
|
|
57
58
|
},
|
|
58
59
|
// 是否异步关闭,只对确定按钮有效
|
|
59
60
|
asyncClose: {
|
|
60
61
|
type: Boolean,
|
|
61
|
-
default: () =>
|
|
62
|
+
default: () => defProps.modal.asyncClose
|
|
62
63
|
},
|
|
63
64
|
// 是否允许点击遮罩关闭modal
|
|
64
65
|
closeOnClickOverlay: {
|
|
65
66
|
type: Boolean,
|
|
66
|
-
default: () =>
|
|
67
|
+
default: () => defProps.modal.closeOnClickOverlay
|
|
67
68
|
},
|
|
68
69
|
// 给一个负的margin-top,往上偏移,避免和键盘重合的情况
|
|
69
70
|
negativeTop: {
|
|
70
71
|
type: [String, Number],
|
|
71
|
-
default: () =>
|
|
72
|
+
default: () => defProps.modal.negativeTop
|
|
72
73
|
},
|
|
73
74
|
// modal宽度,不支持百分比,可以数值,px,rpx单位
|
|
74
75
|
width: {
|
|
75
76
|
type: [String, Number],
|
|
76
|
-
default: () =>
|
|
77
|
+
default: () => defProps.modal.width
|
|
77
78
|
},
|
|
78
79
|
// 确认按钮的样式,circle-圆形,square-方形,如设置,将不会显示取消按钮
|
|
79
80
|
confirmButtonShape: {
|
|
80
81
|
type: String,
|
|
81
|
-
default: () =>
|
|
82
|
+
default: () => defProps.modal.confirmButtonShape
|
|
82
83
|
}
|
|
83
84
|
}
|
|
84
85
|
}
|
|
@@ -1,84 +1,85 @@
|
|
|
1
|
+
import defProps from '../../libs/config/props.js';
|
|
1
2
|
export default {
|
|
2
3
|
props: {
|
|
3
4
|
// 是否开启顶部安全区适配
|
|
4
5
|
safeAreaInsetTop: {
|
|
5
6
|
type: Boolean,
|
|
6
|
-
default: () =>
|
|
7
|
+
default: () => defProps.navbar.safeAreaInsetTop
|
|
7
8
|
},
|
|
8
9
|
// 固定在顶部时,是否生成一个等高元素,以防止塌陷
|
|
9
10
|
placeholder: {
|
|
10
11
|
type: Boolean,
|
|
11
|
-
default: () =>
|
|
12
|
+
default: () => defProps.navbar.placeholder
|
|
12
13
|
},
|
|
13
14
|
// 是否固定在顶部
|
|
14
15
|
fixed: {
|
|
15
16
|
type: Boolean,
|
|
16
|
-
default: () =>
|
|
17
|
+
default: () => defProps.navbar.fixed
|
|
17
18
|
},
|
|
18
19
|
// 是否显示下边框
|
|
19
20
|
border: {
|
|
20
21
|
type: Boolean,
|
|
21
|
-
default: () =>
|
|
22
|
+
default: () => defProps.navbar.border
|
|
22
23
|
},
|
|
23
24
|
// 左边的图标
|
|
24
25
|
leftIcon: {
|
|
25
26
|
type: String,
|
|
26
|
-
default: () =>
|
|
27
|
+
default: () => defProps.navbar.leftIcon
|
|
27
28
|
},
|
|
28
29
|
// 左边的提示文字
|
|
29
30
|
leftText: {
|
|
30
31
|
type: String,
|
|
31
|
-
default: () =>
|
|
32
|
+
default: () => defProps.navbar.leftText
|
|
32
33
|
},
|
|
33
34
|
// 左右的提示文字
|
|
34
35
|
rightText: {
|
|
35
36
|
type: String,
|
|
36
|
-
default: () =>
|
|
37
|
+
default: () => defProps.navbar.rightText
|
|
37
38
|
},
|
|
38
39
|
// 右边的图标
|
|
39
40
|
rightIcon: {
|
|
40
41
|
type: String,
|
|
41
|
-
default: () =>
|
|
42
|
+
default: () => defProps.navbar.rightIcon
|
|
42
43
|
},
|
|
43
44
|
// 标题
|
|
44
45
|
title: {
|
|
45
46
|
type: [String, Number],
|
|
46
|
-
default: () =>
|
|
47
|
+
default: () => defProps.navbar.title
|
|
47
48
|
},
|
|
48
49
|
// 背景颜色
|
|
49
50
|
bgColor: {
|
|
50
51
|
type: String,
|
|
51
|
-
default: () =>
|
|
52
|
+
default: () => defProps.navbar.bgColor
|
|
52
53
|
},
|
|
53
54
|
// 标题的宽度
|
|
54
55
|
titleWidth: {
|
|
55
56
|
type: [String, Number],
|
|
56
|
-
default: () =>
|
|
57
|
+
default: () => defProps.navbar.titleWidth
|
|
57
58
|
},
|
|
58
59
|
// 导航栏高度
|
|
59
60
|
height: {
|
|
60
61
|
type: [String, Number],
|
|
61
|
-
default: () =>
|
|
62
|
+
default: () => defProps.navbar.height
|
|
62
63
|
},
|
|
63
64
|
// 左侧返回图标的大小
|
|
64
65
|
leftIconSize: {
|
|
65
66
|
type: [String, Number],
|
|
66
|
-
default: () =>
|
|
67
|
+
default: () => defProps.navbar.leftIconSize
|
|
67
68
|
},
|
|
68
69
|
// 左侧返回图标的颜色
|
|
69
70
|
leftIconColor: {
|
|
70
71
|
type: String,
|
|
71
|
-
default: () =>
|
|
72
|
+
default: () => defProps.navbar.leftIconColor
|
|
72
73
|
},
|
|
73
74
|
// 点击左侧区域(返回图标),是否自动返回上一页
|
|
74
75
|
autoBack: {
|
|
75
76
|
type: Boolean,
|
|
76
|
-
default: () =>
|
|
77
|
+
default: () => defProps.navbar.autoBack
|
|
77
78
|
},
|
|
78
79
|
// 标题的样式,对象或字符串
|
|
79
80
|
titleStyle: {
|
|
80
81
|
type: [String, Object],
|
|
81
|
-
default: () =>
|
|
82
|
+
default: () => defProps.navbar.titleStyle
|
|
82
83
|
}
|
|
83
84
|
}
|
|
84
85
|
}
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
+
import defProps from '../../libs/config/props.js';
|
|
1
2
|
export default {
|
|
2
3
|
props: {
|
|
3
4
|
// 页面文字提示
|
|
4
5
|
tips: {
|
|
5
6
|
type: String,
|
|
6
|
-
default: () =>
|
|
7
|
+
default: () => defProps.noNetwork.tips
|
|
7
8
|
},
|
|
8
9
|
// 一个z-index值,用于设置没有网络这个组件的层次,因为页面可能会有其他定位的元素层级过高,导致此组件被覆盖
|
|
9
10
|
zIndex: {
|
|
10
11
|
type: [String, Number],
|
|
11
|
-
default: () =>
|
|
12
|
+
default: () => defProps.noNetwork.zIndex
|
|
12
13
|
},
|
|
13
14
|
// image 没有网络的图片提示
|
|
14
15
|
image: {
|
|
15
16
|
type: String,
|
|
16
|
-
default: () =>
|
|
17
|
+
default: () => defProps.noNetwork.image
|
|
17
18
|
}
|
|
18
19
|
}
|
|
19
20
|
}
|
|
@@ -1,70 +1,71 @@
|
|
|
1
|
+
import defProps from '../../libs/config/props.js';
|
|
1
2
|
export default {
|
|
2
3
|
props: {
|
|
3
4
|
// 显示的内容,数组
|
|
4
5
|
text: {
|
|
5
6
|
type: [Array, String],
|
|
6
|
-
default: () =>
|
|
7
|
+
default: () => defProps.noticeBar.text
|
|
7
8
|
},
|
|
8
9
|
// 通告滚动模式,row-横向滚动,column-竖向滚动
|
|
9
10
|
direction: {
|
|
10
11
|
type: String,
|
|
11
|
-
default: () =>
|
|
12
|
+
default: () => defProps.noticeBar.direction
|
|
12
13
|
},
|
|
13
14
|
// direction = row时,是否使用步进形式滚动
|
|
14
15
|
step: {
|
|
15
16
|
type: Boolean,
|
|
16
|
-
default: () =>
|
|
17
|
+
default: () => defProps.noticeBar.step
|
|
17
18
|
},
|
|
18
19
|
// 是否显示左侧的音量图标
|
|
19
20
|
icon: {
|
|
20
21
|
type: String,
|
|
21
|
-
default: () =>
|
|
22
|
+
default: () => defProps.noticeBar.icon
|
|
22
23
|
},
|
|
23
24
|
// 通告模式,link-显示右箭头,closable-显示右侧关闭图标
|
|
24
25
|
mode: {
|
|
25
26
|
type: String,
|
|
26
|
-
default: () =>
|
|
27
|
+
default: () => defProps.noticeBar.mode
|
|
27
28
|
},
|
|
28
29
|
// 文字颜色,各图标也会使用文字颜色
|
|
29
30
|
color: {
|
|
30
31
|
type: String,
|
|
31
|
-
default: () =>
|
|
32
|
+
default: () => defProps.noticeBar.color
|
|
32
33
|
},
|
|
33
34
|
// 背景颜色
|
|
34
35
|
bgColor: {
|
|
35
36
|
type: String,
|
|
36
|
-
default: () =>
|
|
37
|
+
default: () => defProps.noticeBar.bgColor
|
|
37
38
|
},
|
|
38
39
|
// 水平滚动时的滚动速度,即每秒滚动多少px(px),这有利于控制文字无论多少时,都能有一个恒定的速度
|
|
39
40
|
speed: {
|
|
40
41
|
type: [String, Number],
|
|
41
|
-
default: () =>
|
|
42
|
+
default: () => defProps.noticeBar.speed
|
|
42
43
|
},
|
|
43
44
|
// 字体大小
|
|
44
45
|
fontSize: {
|
|
45
46
|
type: [String, Number],
|
|
46
|
-
default: () =>
|
|
47
|
+
default: () => defProps.noticeBar.fontSize
|
|
47
48
|
},
|
|
48
49
|
// 滚动一个周期的时间长,单位ms
|
|
49
50
|
duration: {
|
|
50
51
|
type: [String, Number],
|
|
51
|
-
default: () =>
|
|
52
|
+
default: () => defProps.noticeBar.duration
|
|
52
53
|
},
|
|
53
54
|
// 是否禁止用手滑动切换
|
|
54
55
|
// 目前HX2.6.11,只支持App 2.5.5+、H5 2.5.5+、支付宝小程序、字节跳动小程序
|
|
55
56
|
disableTouch: {
|
|
56
57
|
type: Boolean,
|
|
57
|
-
default: () =>
|
|
58
|
+
default: () => defProps.noticeBar.disableTouch
|
|
58
59
|
},
|
|
59
60
|
// 跳转的页面路径
|
|
60
61
|
url: {
|
|
61
62
|
type: String,
|
|
62
|
-
default: () =>
|
|
63
|
+
default: () => defProps.noticeBar.url
|
|
63
64
|
},
|
|
64
65
|
// 页面跳转的类型
|
|
65
66
|
linkType: {
|
|
66
67
|
type: String,
|
|
67
|
-
default: () =>
|
|
68
|
+
default: () => defProps.noticeBar.linkType
|
|
68
69
|
}
|
|
69
70
|
}
|
|
70
71
|
}
|