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