uview-plus 3.1.45 → 3.1.48
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 +10 -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 +73 -71
- package/package.json +1 -1
|
@@ -1,91 +1,90 @@
|
|
|
1
|
-
import defprops from '../../libs/config/props';
|
|
2
1
|
export default {
|
|
3
2
|
props: {
|
|
4
3
|
// 标识符
|
|
5
4
|
name: {
|
|
6
5
|
type: String,
|
|
7
|
-
default:
|
|
6
|
+
default: () => uni.$u.props.checkboxGroup.name
|
|
8
7
|
},
|
|
9
8
|
// #ifdef VUE3
|
|
10
9
|
// 绑定的值
|
|
11
10
|
modelValue: {
|
|
12
11
|
type: Array,
|
|
13
|
-
default:
|
|
12
|
+
default: () => uni.$u.props.checkboxGroup.value
|
|
14
13
|
},
|
|
15
14
|
// #endif
|
|
16
15
|
// #ifdef VUE2
|
|
17
16
|
// 绑定的值
|
|
18
17
|
value: {
|
|
19
18
|
type: Array,
|
|
20
|
-
default:
|
|
19
|
+
default: () => uni.$u.props.checkboxGroup.value
|
|
21
20
|
},
|
|
22
21
|
// #endif
|
|
23
22
|
// 形状,circle-圆形,square-方形
|
|
24
23
|
shape: {
|
|
25
24
|
type: String,
|
|
26
|
-
default:
|
|
25
|
+
default: () => uni.$u.props.checkboxGroup.shape
|
|
27
26
|
},
|
|
28
27
|
// 是否禁用全部checkbox
|
|
29
28
|
disabled: {
|
|
30
29
|
type: Boolean,
|
|
31
|
-
default:
|
|
30
|
+
default: () => uni.$u.props.checkboxGroup.disabled
|
|
32
31
|
},
|
|
33
32
|
|
|
34
33
|
// 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值
|
|
35
34
|
activeColor: {
|
|
36
35
|
type: String,
|
|
37
|
-
default:
|
|
36
|
+
default: () => uni.$u.props.checkboxGroup.activeColor
|
|
38
37
|
},
|
|
39
38
|
// 未选中的颜色
|
|
40
39
|
inactiveColor: {
|
|
41
40
|
type: String,
|
|
42
|
-
default:
|
|
41
|
+
default: () => uni.$u.props.checkboxGroup.inactiveColor
|
|
43
42
|
},
|
|
44
43
|
|
|
45
44
|
// 整个组件的尺寸,默认px
|
|
46
45
|
size: {
|
|
47
46
|
type: [String, Number],
|
|
48
|
-
default:
|
|
47
|
+
default: () => uni.$u.props.checkboxGroup.size
|
|
49
48
|
},
|
|
50
49
|
// 布局方式,row-横向,column-纵向
|
|
51
50
|
placement: {
|
|
52
51
|
type: String,
|
|
53
|
-
default:
|
|
52
|
+
default: () => uni.$u.props.checkboxGroup.placement
|
|
54
53
|
},
|
|
55
54
|
// label的字体大小,px单位
|
|
56
55
|
labelSize: {
|
|
57
56
|
type: [String, Number],
|
|
58
|
-
default:
|
|
57
|
+
default: () => uni.$u.props.checkboxGroup.labelSize
|
|
59
58
|
},
|
|
60
59
|
// label的字体颜色
|
|
61
60
|
labelColor: {
|
|
62
61
|
type: [String],
|
|
63
|
-
default:
|
|
62
|
+
default: () => uni.$u.props.checkboxGroup.labelColor
|
|
64
63
|
},
|
|
65
64
|
// 是否禁止点击文本操作
|
|
66
65
|
labelDisabled: {
|
|
67
66
|
type: Boolean,
|
|
68
|
-
default:
|
|
67
|
+
default: () => uni.$u.props.checkboxGroup.labelDisabled
|
|
69
68
|
},
|
|
70
69
|
// 图标颜色
|
|
71
70
|
iconColor: {
|
|
72
71
|
type: String,
|
|
73
|
-
default:
|
|
72
|
+
default: () => uni.$u.props.checkboxGroup.iconColor
|
|
74
73
|
},
|
|
75
74
|
// 图标的大小,单位px
|
|
76
75
|
iconSize: {
|
|
77
76
|
type: [String, Number],
|
|
78
|
-
default:
|
|
77
|
+
default: () => uni.$u.props.checkboxGroup.iconSize
|
|
79
78
|
},
|
|
80
79
|
// 勾选图标的对齐方式,left-左边,right-右边
|
|
81
80
|
iconPlacement: {
|
|
82
81
|
type: String,
|
|
83
|
-
default:
|
|
82
|
+
default: () => uni.$u.props.checkboxGroup.iconPlacement
|
|
84
83
|
},
|
|
85
84
|
// 竖向配列时,是否显示下划线
|
|
86
85
|
borderBottom: {
|
|
87
86
|
type: Boolean,
|
|
88
|
-
default:
|
|
87
|
+
default: () => uni.$u.props.checkboxGroup.borderBottom
|
|
89
88
|
}
|
|
90
89
|
|
|
91
90
|
}
|
|
@@ -1,35 +1,34 @@
|
|
|
1
|
-
import defprops from '../../libs/config/props';
|
|
2
1
|
export default {
|
|
3
2
|
props: {
|
|
4
3
|
// 倒计时总秒数
|
|
5
4
|
seconds: {
|
|
6
5
|
type: [String, Number],
|
|
7
|
-
default:
|
|
6
|
+
default: () => uni.$u.props.code.seconds
|
|
8
7
|
},
|
|
9
8
|
// 尚未开始时提示
|
|
10
9
|
startText: {
|
|
11
10
|
type: String,
|
|
12
|
-
default:
|
|
11
|
+
default: () => uni.$u.props.code.startText
|
|
13
12
|
},
|
|
14
13
|
// 正在倒计时中的提示
|
|
15
14
|
changeText: {
|
|
16
15
|
type: String,
|
|
17
|
-
default:
|
|
16
|
+
default: () => uni.$u.props.code.changeText
|
|
18
17
|
},
|
|
19
18
|
// 倒计时结束时的提示
|
|
20
19
|
endText: {
|
|
21
20
|
type: String,
|
|
22
|
-
default:
|
|
21
|
+
default: () => uni.$u.props.code.endText
|
|
23
22
|
},
|
|
24
23
|
// 是否在H5刷新或各端返回再进入时继续倒计时
|
|
25
24
|
keepRunning: {
|
|
26
25
|
type: Boolean,
|
|
27
|
-
default:
|
|
26
|
+
default: () => uni.$u.props.code.keepRunning
|
|
28
27
|
},
|
|
29
28
|
// 为了区分多个页面,或者一个页面多个倒计时组件本地存储的继续倒计时变了
|
|
30
29
|
uniqueKey: {
|
|
31
30
|
type: String,
|
|
32
|
-
default:
|
|
31
|
+
default: () => uni.$u.props.code.uniqueKey
|
|
33
32
|
}
|
|
34
33
|
}
|
|
35
34
|
}
|
|
@@ -119,7 +119,12 @@
|
|
|
119
119
|
}
|
|
120
120
|
},
|
|
121
121
|
// 组件销毁的时候,清除定时器,否则定时器会继续存在,系统不会自动清除
|
|
122
|
+
// #ifdef VUE2
|
|
122
123
|
beforeDestroy() {
|
|
124
|
+
// #endif
|
|
125
|
+
// #ifdef VUE3
|
|
126
|
+
beforeUnmount() {
|
|
127
|
+
// #endif
|
|
123
128
|
this.setTimeToStorage()
|
|
124
129
|
clearTimeout(this.timer)
|
|
125
130
|
this.timer = null
|
|
@@ -1,89 +1,88 @@
|
|
|
1
|
-
import defprops from '../../libs/config/props';
|
|
2
1
|
export default {
|
|
3
2
|
props: {
|
|
4
3
|
// 键盘弹起时,是否自动上推页面
|
|
5
4
|
adjustPosition: {
|
|
6
5
|
type: Boolean,
|
|
7
|
-
default:
|
|
6
|
+
default: () => uni.$u.props.codeInput.adjustPosition
|
|
8
7
|
},
|
|
9
8
|
// 最大输入长度
|
|
10
9
|
maxlength: {
|
|
11
10
|
type: [String, Number],
|
|
12
|
-
default:
|
|
11
|
+
default: () => uni.$u.props.codeInput.maxlength
|
|
13
12
|
},
|
|
14
13
|
// 是否用圆点填充
|
|
15
14
|
dot: {
|
|
16
15
|
type: Boolean,
|
|
17
|
-
default:
|
|
16
|
+
default: () => uni.$u.props.codeInput.dot
|
|
18
17
|
},
|
|
19
18
|
// 显示模式,box-盒子模式,line-底部横线模式
|
|
20
19
|
mode: {
|
|
21
20
|
type: String,
|
|
22
|
-
default:
|
|
21
|
+
default: () => uni.$u.props.codeInput.mode
|
|
23
22
|
},
|
|
24
23
|
// 是否细边框
|
|
25
24
|
hairline: {
|
|
26
25
|
type: Boolean,
|
|
27
|
-
default:
|
|
26
|
+
default: () => uni.$u.props.codeInput.hairline
|
|
28
27
|
},
|
|
29
28
|
// 字符间的距离
|
|
30
29
|
space: {
|
|
31
30
|
type: [String, Number],
|
|
32
|
-
default:
|
|
31
|
+
default: () => uni.$u.props.codeInput.space
|
|
33
32
|
},
|
|
34
33
|
// #ifdef VUE3
|
|
35
34
|
// 预置值
|
|
36
35
|
modelValue: {
|
|
37
36
|
type: [String, Number],
|
|
38
|
-
default:
|
|
37
|
+
default: () => uni.$u.props.codeInput.value
|
|
39
38
|
},
|
|
40
39
|
// #endif
|
|
41
40
|
// #ifdef VUE2
|
|
42
41
|
// 预置值
|
|
43
42
|
value: {
|
|
44
43
|
type: [String, Number],
|
|
45
|
-
default:
|
|
44
|
+
default: () => uni.$u.props.codeInput.value
|
|
46
45
|
},
|
|
47
46
|
// #endif
|
|
48
47
|
// 是否自动获取焦点
|
|
49
48
|
focus: {
|
|
50
49
|
type: Boolean,
|
|
51
|
-
default:
|
|
50
|
+
default: () => uni.$u.props.codeInput.focus
|
|
52
51
|
},
|
|
53
52
|
// 字体是否加粗
|
|
54
53
|
bold: {
|
|
55
54
|
type: Boolean,
|
|
56
|
-
default:
|
|
55
|
+
default: () => uni.$u.props.codeInput.bold
|
|
57
56
|
},
|
|
58
57
|
// 字体颜色
|
|
59
58
|
color: {
|
|
60
59
|
type: String,
|
|
61
|
-
default:
|
|
60
|
+
default: () => uni.$u.props.codeInput.color
|
|
62
61
|
},
|
|
63
62
|
// 字体大小
|
|
64
63
|
fontSize: {
|
|
65
64
|
type: [String, Number],
|
|
66
|
-
default:
|
|
65
|
+
default: () => uni.$u.props.codeInput.fontSize
|
|
67
66
|
},
|
|
68
67
|
// 输入框的大小,宽等于高
|
|
69
68
|
size: {
|
|
70
69
|
type: [String, Number],
|
|
71
|
-
default:
|
|
70
|
+
default: () => uni.$u.props.codeInput.size
|
|
72
71
|
},
|
|
73
72
|
// 是否隐藏原生键盘,如果想用自定义键盘的话,需设置此参数为true
|
|
74
73
|
disabledKeyboard: {
|
|
75
74
|
type: Boolean,
|
|
76
|
-
default:
|
|
75
|
+
default: () => uni.$u.props.codeInput.disabledKeyboard
|
|
77
76
|
},
|
|
78
77
|
// 边框和线条颜色
|
|
79
78
|
borderColor: {
|
|
80
79
|
type: String,
|
|
81
|
-
default:
|
|
80
|
+
default: () => uni.$u.props.codeInput.borderColor
|
|
82
81
|
},
|
|
83
82
|
// 是否禁止输入"."符号
|
|
84
83
|
disabledDot: {
|
|
85
84
|
type: Boolean,
|
|
86
|
-
default:
|
|
85
|
+
default: () => uni.$u.props.codeInput.disabledDot
|
|
87
86
|
}
|
|
88
87
|
}
|
|
89
88
|
}
|
|
@@ -1,30 +1,29 @@
|
|
|
1
|
-
import defprops from '../../libs/config/props';
|
|
2
1
|
export default {
|
|
3
2
|
props: {
|
|
4
3
|
// 占父容器宽度的多少等分,总分为12份
|
|
5
4
|
span: {
|
|
6
5
|
type: [String, Number],
|
|
7
|
-
default:
|
|
6
|
+
default: () => uni.$u.props.col.span
|
|
8
7
|
},
|
|
9
8
|
// 指定栅格左侧的间隔数(总12栏)
|
|
10
9
|
offset: {
|
|
11
10
|
type: [String, Number],
|
|
12
|
-
default:
|
|
11
|
+
default: () => uni.$u.props.col.offset
|
|
13
12
|
},
|
|
14
13
|
// 水平排列方式,可选值为`start`(或`flex-start`)、`end`(或`flex-end`)、`center`、`around`(或`space-around`)、`between`(或`space-between`)
|
|
15
14
|
justify: {
|
|
16
15
|
type: String,
|
|
17
|
-
default:
|
|
16
|
+
default: () => uni.$u.props.col.justify
|
|
18
17
|
},
|
|
19
18
|
// 垂直对齐方式,可选值为top、center、bottom、stretch
|
|
20
19
|
align: {
|
|
21
20
|
type: String,
|
|
22
|
-
default:
|
|
21
|
+
default: () => uni.$u.props.col.align
|
|
23
22
|
},
|
|
24
23
|
// 文字对齐方式
|
|
25
24
|
textAlign: {
|
|
26
25
|
type: String,
|
|
27
|
-
default:
|
|
26
|
+
default: () => uni.$u.props.col.textAlign
|
|
28
27
|
}
|
|
29
28
|
}
|
|
30
29
|
}
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import defprops from '../../libs/config/props';
|
|
2
1
|
export default {
|
|
3
2
|
props: {
|
|
4
3
|
// 当前展开面板的name,非手风琴模式:[<string | number>],手风琴模式:string | number
|
|
5
4
|
value: {
|
|
6
5
|
type: [String, Number, Array, null],
|
|
7
|
-
default:
|
|
6
|
+
default: () => uni.$u.props.collapse.value
|
|
8
7
|
},
|
|
9
8
|
// 是否手风琴模式
|
|
10
9
|
accordion: {
|
|
11
10
|
type: Boolean,
|
|
12
|
-
default:
|
|
11
|
+
default: () => uni.$u.props.collapse.accordion
|
|
13
12
|
},
|
|
14
13
|
// 是否显示外边框
|
|
15
14
|
border: {
|
|
16
15
|
type: Boolean,
|
|
17
|
-
default:
|
|
16
|
+
default: () => uni.$u.props.collapse.border
|
|
18
17
|
}
|
|
19
18
|
}
|
|
20
19
|
}
|
|
@@ -1,60 +1,59 @@
|
|
|
1
|
-
import defprops from '../../libs/config/props';
|
|
2
1
|
export default {
|
|
3
2
|
props: {
|
|
4
3
|
// 标题
|
|
5
4
|
title: {
|
|
6
5
|
type: String,
|
|
7
|
-
default:
|
|
6
|
+
default: () => uni.$u.props.collapseItem.title
|
|
8
7
|
},
|
|
9
8
|
// 标题右侧内容
|
|
10
9
|
value: {
|
|
11
10
|
type: String,
|
|
12
|
-
default:
|
|
11
|
+
default: () => uni.$u.props.collapseItem.value
|
|
13
12
|
},
|
|
14
13
|
// 标题下方的描述信息
|
|
15
14
|
label: {
|
|
16
15
|
type: String,
|
|
17
|
-
default:
|
|
16
|
+
default: () => uni.$u.props.collapseItem.label
|
|
18
17
|
},
|
|
19
18
|
// 是否禁用折叠面板
|
|
20
19
|
disabled: {
|
|
21
20
|
type: Boolean,
|
|
22
|
-
default:
|
|
21
|
+
default: () => uni.$u.props.collapseItem.disabled
|
|
23
22
|
},
|
|
24
23
|
// 是否展示右侧箭头并开启点击反馈
|
|
25
24
|
isLink: {
|
|
26
25
|
type: Boolean,
|
|
27
|
-
default:
|
|
26
|
+
default: () => uni.$u.props.collapseItem.isLink
|
|
28
27
|
},
|
|
29
28
|
// 是否开启点击反馈
|
|
30
29
|
clickable: {
|
|
31
30
|
type: Boolean,
|
|
32
|
-
default:
|
|
31
|
+
default: () => uni.$u.props.collapseItem.clickable
|
|
33
32
|
},
|
|
34
33
|
// 是否显示内边框
|
|
35
34
|
border: {
|
|
36
35
|
type: Boolean,
|
|
37
|
-
default:
|
|
36
|
+
default: () => uni.$u.props.collapseItem.border
|
|
38
37
|
},
|
|
39
38
|
// 标题的对齐方式
|
|
40
39
|
align: {
|
|
41
40
|
type: String,
|
|
42
|
-
default:
|
|
41
|
+
default: () => uni.$u.props.collapseItem.align
|
|
43
42
|
},
|
|
44
43
|
// 唯一标识符
|
|
45
44
|
name: {
|
|
46
45
|
type: [String, Number],
|
|
47
|
-
default:
|
|
46
|
+
default: () => uni.$u.props.collapseItem.name
|
|
48
47
|
},
|
|
49
48
|
// 标题左侧图片,可为绝对路径的图片或内置图标
|
|
50
49
|
icon: {
|
|
51
50
|
type: String,
|
|
52
|
-
default:
|
|
51
|
+
default: () => uni.$u.props.collapseItem.icon
|
|
53
52
|
},
|
|
54
53
|
// 面板展开收起的过渡时间,单位ms
|
|
55
54
|
duration: {
|
|
56
55
|
type: Number,
|
|
57
|
-
default:
|
|
56
|
+
default: () => uni.$u.props.collapseItem.duration
|
|
58
57
|
}
|
|
59
58
|
}
|
|
60
59
|
}
|
|
@@ -1,56 +1,55 @@
|
|
|
1
|
-
import defprops from '../../libs/config/props';
|
|
2
1
|
export default {
|
|
3
2
|
props: {
|
|
4
3
|
// 显示的内容,字符串
|
|
5
4
|
text: {
|
|
6
5
|
type: [Array],
|
|
7
|
-
default:
|
|
6
|
+
default: () => uni.$u.props.columnNotice.text
|
|
8
7
|
},
|
|
9
8
|
// 是否显示左侧的音量图标
|
|
10
9
|
icon: {
|
|
11
10
|
type: String,
|
|
12
|
-
default:
|
|
11
|
+
default: () => uni.$u.props.columnNotice.icon
|
|
13
12
|
},
|
|
14
13
|
// 通告模式,link-显示右箭头,closable-显示右侧关闭图标
|
|
15
14
|
mode: {
|
|
16
15
|
type: String,
|
|
17
|
-
default:
|
|
16
|
+
default: () => uni.$u.props.columnNotice.mode
|
|
18
17
|
},
|
|
19
18
|
// 文字颜色,各图标也会使用文字颜色
|
|
20
19
|
color: {
|
|
21
20
|
type: String,
|
|
22
|
-
default:
|
|
21
|
+
default: () => uni.$u.props.columnNotice.color
|
|
23
22
|
},
|
|
24
23
|
// 背景颜色
|
|
25
24
|
bgColor: {
|
|
26
25
|
type: String,
|
|
27
|
-
default:
|
|
26
|
+
default: () => uni.$u.props.columnNotice.bgColor
|
|
28
27
|
},
|
|
29
28
|
// 字体大小,单位px
|
|
30
29
|
fontSize: {
|
|
31
30
|
type: [String, Number],
|
|
32
|
-
default:
|
|
31
|
+
default: () => uni.$u.props.columnNotice.fontSize
|
|
33
32
|
},
|
|
34
33
|
// 水平滚动时的滚动速度,即每秒滚动多少px(px),这有利于控制文字无论多少时,都能有一个恒定的速度
|
|
35
34
|
speed: {
|
|
36
35
|
type: [String, Number],
|
|
37
|
-
default:
|
|
36
|
+
default: () => uni.$u.props.columnNotice.speed
|
|
38
37
|
},
|
|
39
38
|
// direction = row时,是否使用步进形式滚动
|
|
40
39
|
step: {
|
|
41
40
|
type: Boolean,
|
|
42
|
-
default:
|
|
41
|
+
default: () => uni.$u.props.columnNotice.step
|
|
43
42
|
},
|
|
44
43
|
// 滚动一个周期的时间长,单位ms
|
|
45
44
|
duration: {
|
|
46
45
|
type: [String, Number],
|
|
47
|
-
default:
|
|
46
|
+
default: () => uni.$u.props.columnNotice.duration
|
|
48
47
|
},
|
|
49
48
|
// 是否禁止用手滑动切换
|
|
50
49
|
// 目前HX2.6.11,只支持App 2.5.5+、H5 2.5.5+、支付宝小程序、字节跳动小程序
|
|
51
50
|
disableTouch: {
|
|
52
51
|
type: Boolean,
|
|
53
|
-
default:
|
|
52
|
+
default: () => uni.$u.props.columnNotice.disableTouch
|
|
54
53
|
}
|
|
55
54
|
}
|
|
56
55
|
}
|
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
import defprops from '../../libs/config/props';
|
|
2
1
|
export default {
|
|
3
2
|
props: {
|
|
4
3
|
// 倒计时时长,单位ms
|
|
5
4
|
time: {
|
|
6
5
|
type: [String, Number],
|
|
7
|
-
default:
|
|
6
|
+
default: () => uni.$u.props.countDown.time
|
|
8
7
|
},
|
|
9
8
|
// 时间格式,DD-日,HH-时,mm-分,ss-秒,SSS-毫秒
|
|
10
9
|
format: {
|
|
11
10
|
type: String,
|
|
12
|
-
default:
|
|
11
|
+
default: () => uni.$u.props.countDown.format
|
|
13
12
|
},
|
|
14
13
|
// 是否自动开始倒计时
|
|
15
14
|
autoStart: {
|
|
16
15
|
type: Boolean,
|
|
17
|
-
default:
|
|
16
|
+
default: () => uni.$u.props.countDown.autoStart
|
|
18
17
|
},
|
|
19
18
|
// 是否展示毫秒倒计时
|
|
20
19
|
millisecond: {
|
|
21
20
|
type: Boolean,
|
|
22
|
-
default:
|
|
21
|
+
default: () => uni.$u.props.countDown.millisecond
|
|
23
22
|
}
|
|
24
23
|
}
|
|
25
24
|
}
|
|
@@ -1,60 +1,59 @@
|
|
|
1
|
-
import defprops from '../../libs/config/props';
|
|
2
1
|
export default {
|
|
3
2
|
props: {
|
|
4
3
|
// 开始的数值,默认从0增长到某一个数
|
|
5
4
|
startVal: {
|
|
6
5
|
type: [String, Number],
|
|
7
|
-
default:
|
|
6
|
+
default: () => uni.$u.props.countTo.startVal
|
|
8
7
|
},
|
|
9
8
|
// 要滚动的目标数值,必须
|
|
10
9
|
endVal: {
|
|
11
10
|
type: [String, Number],
|
|
12
|
-
default:
|
|
11
|
+
default: () => uni.$u.props.countTo.endVal
|
|
13
12
|
},
|
|
14
13
|
// 滚动到目标数值的动画持续时间,单位为毫秒(ms)
|
|
15
14
|
duration: {
|
|
16
15
|
type: [String, Number],
|
|
17
|
-
default:
|
|
16
|
+
default: () => uni.$u.props.countTo.duration
|
|
18
17
|
},
|
|
19
18
|
// 设置数值后是否自动开始滚动
|
|
20
19
|
autoplay: {
|
|
21
20
|
type: Boolean,
|
|
22
|
-
default:
|
|
21
|
+
default: () => uni.$u.props.countTo.autoplay
|
|
23
22
|
},
|
|
24
23
|
// 要显示的小数位数
|
|
25
24
|
decimals: {
|
|
26
25
|
type: [String, Number],
|
|
27
|
-
default:
|
|
26
|
+
default: () => uni.$u.props.countTo.decimals
|
|
28
27
|
},
|
|
29
28
|
// 是否在即将到达目标数值的时候,使用缓慢滚动的效果
|
|
30
29
|
useEasing: {
|
|
31
30
|
type: Boolean,
|
|
32
|
-
default:
|
|
31
|
+
default: () => uni.$u.props.countTo.useEasing
|
|
33
32
|
},
|
|
34
33
|
// 十进制分割
|
|
35
34
|
decimal: {
|
|
36
35
|
type: [String, Number],
|
|
37
|
-
default:
|
|
36
|
+
default: () => uni.$u.props.countTo.decimal
|
|
38
37
|
},
|
|
39
38
|
// 字体颜色
|
|
40
39
|
color: {
|
|
41
40
|
type: String,
|
|
42
|
-
default:
|
|
41
|
+
default: () => uni.$u.props.countTo.color
|
|
43
42
|
},
|
|
44
43
|
// 字体大小
|
|
45
44
|
fontSize: {
|
|
46
45
|
type: [String, Number],
|
|
47
|
-
default:
|
|
46
|
+
default: () => uni.$u.props.countTo.fontSize
|
|
48
47
|
},
|
|
49
48
|
// 是否加粗字体
|
|
50
49
|
bold: {
|
|
51
50
|
type: Boolean,
|
|
52
|
-
default:
|
|
51
|
+
default: () => uni.$u.props.countTo.bold
|
|
53
52
|
},
|
|
54
53
|
// 千位分隔符,类似金额的分割(¥23,321.05中的",")
|
|
55
54
|
separator: {
|
|
56
55
|
type: String,
|
|
57
|
-
default:
|
|
56
|
+
default: () => uni.$u.props.countTo.separator
|
|
58
57
|
}
|
|
59
58
|
}
|
|
60
59
|
}
|