uview-plus 3.1.49 → 3.1.50
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/README.md +10 -10
- package/changelog.md +5 -14
- 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-back-top/u-back-top.vue +1 -1
- package/components/u-badge/props.js +15 -14
- package/components/u-badge/u-badge.vue +1 -1
- package/components/u-button/props.js +29 -28
- package/components/u-calendar/month.vue +1 -1
- package/components/u-calendar/props.js +28 -27
- package/components/u-car-keyboard/props.js +1 -0
- package/components/u-car-keyboard/u-car-keyboard.vue +1 -1
- package/components/u-cell/props.js +18 -17
- package/components/u-cell/u-cell.vue +3 -12
- package/components/u-cell-group/props.js +3 -2
- package/components/u-cell-group/u-cell-group.vue +1 -1
- package/components/u-checkbox/props.js +14 -13
- package/components/u-checkbox/u-checkbox.vue +1 -1
- 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/u-code.vue +0 -5
- 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-down/u-count-down.vue +1 -6
- package/components/u-count-to/props.js +12 -11
- package/components/u-datetime-picker/props.js +25 -37
- package/components/u-datetime-picker/u-datetime-picker.vue +3 -22
- 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-empty/props.js +12 -11
- package/components/u-form/props.js +9 -8
- package/components/u-form/u-form.vue +1 -1
- package/components/u-form-item/props.js +9 -13
- package/components/u-form-item/u-form-item.vue +0 -1
- 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-grid-item/u-grid-item.vue +0 -5
- package/components/u-icon/props.js +18 -17
- package/components/u-icon/u-icon.vue +6 -9
- package/components/u-image/props.js +17 -16
- package/components/u-image/u-image.vue +1 -1
- package/components/u-index-anchor/props.js +6 -5
- package/components/u-index-anchor/u-index-anchor.vue +1 -1
- package/components/u-index-item/props.js +1 -0
- package/components/u-index-item/u-index-item.vue +1 -1
- package/components/u-index-list/props.js +6 -5
- package/components/u-index-list/u-index-list.vue +2 -3
- package/components/u-input/props.js +36 -35
- package/components/u-input/u-input.vue +4 -10
- 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-notify/u-notify.vue +0 -5
- package/components/u-number-box/props.js +23 -22
- package/components/u-number-box/u-number-box.vue +1 -21
- 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-parse/u-parse.vue +1 -6
- 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-row-notice/u-row-notice.vue +0 -5
- 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-status-bar/u-status-bar.vue +1 -1
- package/components/u-steps/props.js +8 -7
- package/components/u-steps/u-steps.vue +1 -1
- package/components/u-steps-item/props.js +5 -4
- package/components/u-steps-item/u-steps-item.vue +1 -1
- package/components/u-sticky/props.js +7 -6
- package/components/u-sticky/u-sticky.vue +0 -5
- package/components/u-subsection/props.js +10 -9
- package/components/u-swipe-action/props.js +2 -1
- package/components/u-swipe-action-item/nvue.js +0 -5
- package/components/u-swipe-action-item/props.js +7 -6
- 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 +16 -15
- 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-toast/u-toast.vue +0 -5
- 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-transition/transition.js +9 -8
- package/components/u-transition/u-transition.vue +1 -1
- package/components/u-upload/props.js +23 -22
- package/components/u-upload/u-upload.vue +1 -1
- package/index.js +5 -1
- 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 +0 -1
- 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 +1 -11
- package/libs/css/flex.scss +71 -73
- package/package.json +1 -1
|
@@ -1,84 +1,85 @@
|
|
|
1
|
+
import defprops from '../../libs/config/props';
|
|
1
2
|
export default {
|
|
2
3
|
props: {
|
|
3
4
|
// 键盘的类型,number-数字键盘,card-身份证键盘,car-车牌号键盘
|
|
4
5
|
mode: {
|
|
5
6
|
type: String,
|
|
6
|
-
default:
|
|
7
|
+
default: defprops.keyboard.mode
|
|
7
8
|
},
|
|
8
9
|
// 是否显示键盘的"."符号
|
|
9
10
|
dotDisabled: {
|
|
10
11
|
type: Boolean,
|
|
11
|
-
default:
|
|
12
|
+
default: defprops.keyboard.dotDisabled
|
|
12
13
|
},
|
|
13
14
|
// 是否显示顶部工具条
|
|
14
15
|
tooltip: {
|
|
15
16
|
type: Boolean,
|
|
16
|
-
default:
|
|
17
|
+
default: defprops.keyboard.tooltip
|
|
17
18
|
},
|
|
18
19
|
// 是否显示工具条中间的提示
|
|
19
20
|
showTips: {
|
|
20
21
|
type: Boolean,
|
|
21
|
-
default:
|
|
22
|
+
default: defprops.keyboard.showTips
|
|
22
23
|
},
|
|
23
24
|
// 工具条中间的提示文字
|
|
24
25
|
tips: {
|
|
25
26
|
type: String,
|
|
26
|
-
default:
|
|
27
|
+
default: defprops.keyboard.tips
|
|
27
28
|
},
|
|
28
29
|
// 是否显示工具条左边的"取消"按钮
|
|
29
30
|
showCancel: {
|
|
30
31
|
type: Boolean,
|
|
31
|
-
default:
|
|
32
|
+
default: defprops.keyboard.showCancel
|
|
32
33
|
},
|
|
33
34
|
// 是否显示工具条右边的"完成"按钮
|
|
34
35
|
showConfirm: {
|
|
35
36
|
type: Boolean,
|
|
36
|
-
default:
|
|
37
|
+
default: defprops.keyboard.showConfirm
|
|
37
38
|
},
|
|
38
39
|
// 是否打乱键盘按键的顺序
|
|
39
40
|
random: {
|
|
40
41
|
type: Boolean,
|
|
41
|
-
default:
|
|
42
|
+
default: defprops.keyboard.random
|
|
42
43
|
},
|
|
43
44
|
// 是否开启底部安全区适配,开启的话,会在iPhoneX机型底部添加一定的内边距
|
|
44
45
|
safeAreaInsetBottom: {
|
|
45
46
|
type: Boolean,
|
|
46
|
-
default:
|
|
47
|
+
default: defprops.keyboard.safeAreaInsetBottom
|
|
47
48
|
},
|
|
48
49
|
// 是否允许通过点击遮罩关闭键盘
|
|
49
50
|
closeOnClickOverlay: {
|
|
50
51
|
type: Boolean,
|
|
51
|
-
default:
|
|
52
|
+
default: defprops.keyboard.closeOnClickOverlay
|
|
52
53
|
},
|
|
53
54
|
// 控制键盘的弹出与收起
|
|
54
55
|
show: {
|
|
55
56
|
type: Boolean,
|
|
56
|
-
default:
|
|
57
|
+
default: defprops.keyboard.show
|
|
57
58
|
},
|
|
58
59
|
// 是否显示遮罩,某些时候数字键盘时,用户希望看到自己的数值,所以可能不想要遮罩
|
|
59
60
|
overlay: {
|
|
60
61
|
type: Boolean,
|
|
61
|
-
default:
|
|
62
|
+
default: defprops.keyboard.overlay
|
|
62
63
|
},
|
|
63
64
|
// z-index值
|
|
64
65
|
zIndex: {
|
|
65
66
|
type: [String, Number],
|
|
66
|
-
default:
|
|
67
|
+
default: defprops.keyboard.zIndex
|
|
67
68
|
},
|
|
68
69
|
// 取消按钮的文字
|
|
69
70
|
cancelText: {
|
|
70
71
|
type: String,
|
|
71
|
-
default:
|
|
72
|
+
default: defprops.keyboard.cancelText
|
|
72
73
|
},
|
|
73
74
|
// 确认按钮的文字
|
|
74
75
|
confirmText: {
|
|
75
76
|
type: String,
|
|
76
|
-
default:
|
|
77
|
+
default: defprops.keyboard.confirmText
|
|
77
78
|
},
|
|
78
79
|
// 输入一个中文后,是否自动切换到英文
|
|
79
80
|
autoChange: {
|
|
80
81
|
type: Boolean,
|
|
81
|
-
default:
|
|
82
|
+
default: defprops.keyboard.autoChange
|
|
82
83
|
}
|
|
83
84
|
}
|
|
84
85
|
}
|
|
@@ -1,33 +1,34 @@
|
|
|
1
|
+
import defprops from '../../libs/config/props';
|
|
1
2
|
export default {
|
|
2
3
|
props: {
|
|
3
4
|
color: {
|
|
4
5
|
type: String,
|
|
5
|
-
default:
|
|
6
|
+
default: defprops.line.color
|
|
6
7
|
},
|
|
7
8
|
// 长度,竖向时表现为高度,横向时表现为长度,可以为百分比,带px单位的值等
|
|
8
9
|
length: {
|
|
9
10
|
type: [String, Number],
|
|
10
|
-
default:
|
|
11
|
+
default: defprops.line.length
|
|
11
12
|
},
|
|
12
13
|
// 线条方向,col-竖向,row-横向
|
|
13
14
|
direction: {
|
|
14
15
|
type: String,
|
|
15
|
-
default:
|
|
16
|
+
default: defprops.line.direction
|
|
16
17
|
},
|
|
17
18
|
// 是否显示细边框
|
|
18
19
|
hairline: {
|
|
19
20
|
type: Boolean,
|
|
20
|
-
default:
|
|
21
|
+
default: defprops.line.hairline
|
|
21
22
|
},
|
|
22
23
|
// 线条与上下左右元素的间距,字符串形式,如"30px"、"20px 30px"
|
|
23
24
|
margin: {
|
|
24
25
|
type: [String, Number],
|
|
25
|
-
default:
|
|
26
|
+
default: defprops.line.margin
|
|
26
27
|
},
|
|
27
28
|
// 是否虚线,true-虚线,false-实线
|
|
28
29
|
dashed: {
|
|
29
30
|
type: Boolean,
|
|
30
|
-
default:
|
|
31
|
+
default: defprops.line.dashed
|
|
31
32
|
}
|
|
32
33
|
}
|
|
33
34
|
}
|
|
@@ -1,28 +1,29 @@
|
|
|
1
|
+
import defprops from '../../libs/config/props';
|
|
1
2
|
export default {
|
|
2
3
|
props: {
|
|
3
4
|
// 激活部分的颜色
|
|
4
5
|
activeColor: {
|
|
5
6
|
type: String,
|
|
6
|
-
default:
|
|
7
|
+
default: defprops.lineProgress.activeColor
|
|
7
8
|
},
|
|
8
9
|
inactiveColor: {
|
|
9
10
|
type: String,
|
|
10
|
-
default:
|
|
11
|
+
default: defprops.lineProgress.color
|
|
11
12
|
},
|
|
12
13
|
// 进度百分比,数值
|
|
13
14
|
percentage: {
|
|
14
15
|
type: [String, Number],
|
|
15
|
-
default:
|
|
16
|
+
default: defprops.lineProgress.inactiveColor
|
|
16
17
|
},
|
|
17
18
|
// 是否在进度条内部显示百分比的值
|
|
18
19
|
showText: {
|
|
19
20
|
type: Boolean,
|
|
20
|
-
default:
|
|
21
|
+
default: defprops.lineProgress.showText
|
|
21
22
|
},
|
|
22
23
|
// 进度条的高度,单位px
|
|
23
24
|
height: {
|
|
24
25
|
type: [String, Number],
|
|
25
|
-
default:
|
|
26
|
+
default: defprops.lineProgress.height
|
|
26
27
|
}
|
|
27
28
|
}
|
|
28
29
|
}
|
|
@@ -1,39 +1,40 @@
|
|
|
1
|
+
import defprops from '../../libs/config/props';
|
|
1
2
|
export default {
|
|
2
3
|
props: {
|
|
3
4
|
// 文字颜色
|
|
4
5
|
color: {
|
|
5
6
|
type: String,
|
|
6
|
-
default:
|
|
7
|
+
default: defprops.link.color
|
|
7
8
|
},
|
|
8
9
|
// 字体大小,单位px
|
|
9
10
|
fontSize: {
|
|
10
11
|
type: [String, Number],
|
|
11
|
-
default:
|
|
12
|
+
default: defprops.link.fontSize
|
|
12
13
|
},
|
|
13
14
|
// 是否显示下划线
|
|
14
15
|
underLine: {
|
|
15
16
|
type: Boolean,
|
|
16
|
-
default:
|
|
17
|
+
default: defprops.link.underLine
|
|
17
18
|
},
|
|
18
19
|
// 要跳转的链接
|
|
19
20
|
href: {
|
|
20
21
|
type: String,
|
|
21
|
-
default:
|
|
22
|
+
default: defprops.link.href
|
|
22
23
|
},
|
|
23
24
|
// 小程序中复制到粘贴板的提示语
|
|
24
25
|
mpTips: {
|
|
25
26
|
type: String,
|
|
26
|
-
default:
|
|
27
|
+
default: defprops.link.mpTips
|
|
27
28
|
},
|
|
28
29
|
// 下划线颜色
|
|
29
30
|
lineColor: {
|
|
30
31
|
type: String,
|
|
31
|
-
default:
|
|
32
|
+
default: defprops.link.lineColor
|
|
32
33
|
},
|
|
33
34
|
// 超链接的问题,不使用slot形式传入,是因为nvue下无法修改颜色
|
|
34
35
|
text: {
|
|
35
36
|
type: String,
|
|
36
|
-
default:
|
|
37
|
+
default: defprops.link.text
|
|
37
38
|
}
|
|
38
39
|
}
|
|
39
40
|
}
|
|
@@ -1,74 +1,75 @@
|
|
|
1
|
+
import defprops from '../../libs/config/props';
|
|
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';
|
|
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';
|
|
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';
|
|
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
|
}
|