uview-plus 3.0.17 → 3.1.0
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 +2 -0
- package/components/u--form/u--form.vue +4 -2
- package/components/u--image/u--image.vue +4 -2
- package/components/u--input/u--input.vue +5 -3
- package/components/u--text/u--text.vue +4 -2
- package/components/u--textarea/u--textarea.vue +4 -2
- package/components/u-action-sheet/props.js +11 -10
- package/components/u-action-sheet/u-action-sheet.vue +3 -1
- package/components/u-album/props.js +12 -11
- package/components/u-album/u-album.vue +4 -2
- package/components/u-alert/props.js +9 -8
- package/components/u-alert/u-alert.vue +3 -1
- package/components/u-avatar/props.js +15 -14
- package/components/u-avatar/u-avatar.vue +3 -1
- package/components/u-avatar-group/props.js +10 -9
- package/components/u-avatar-group/u-avatar-group.vue +3 -1
- package/components/u-back-top/props.js +11 -10
- package/components/u-back-top/u-back-top.vue +2 -0
- package/components/u-badge/props.js +15 -14
- package/components/u-badge/u-badge.vue +3 -1
- package/components/u-button/props.js +29 -28
- package/components/u-button/u-button.vue +4 -2
- package/components/u-calendar/month.vue +1 -1
- package/components/u-calendar/props.js +28 -27
- package/components/u-calendar/u-calendar.vue +3 -1
- package/components/u-car-keyboard/props.js +1 -0
- package/components/u-car-keyboard/u-car-keyboard.vue +4 -2
- package/components/u-cell/props.js +18 -17
- package/components/u-cell/u-cell.vue +3 -1
- package/components/u-cell-group/props.js +3 -2
- package/components/u-cell-group/u-cell-group.vue +3 -1
- package/components/u-checkbox/props.js +14 -13
- package/components/u-checkbox/u-checkbox.vue +3 -1
- package/components/u-checkbox-group/props.js +16 -15
- package/components/u-checkbox-group/u-checkbox-group.vue +3 -1
- package/components/u-circle-progress/props.js +2 -1
- package/components/u-circle-progress/u-circle-progress.vue +3 -1
- package/components/u-code/props.js +7 -6
- package/components/u-code/u-code.vue +3 -1
- package/components/u-code-input/props.js +16 -15
- package/components/u-code-input/u-code-input.vue +3 -1
- package/components/u-col/props.js +6 -5
- package/components/u-col/u-col.vue +3 -1
- package/components/u-collapse/props.js +4 -3
- package/components/u-collapse/u-collapse.vue +3 -1
- package/components/u-collapse-item/props.js +12 -11
- package/components/u-collapse-item/u-collapse-item.vue +15 -13
- package/components/u-column-notice/props.js +11 -10
- package/components/u-column-notice/u-column-notice.vue +3 -1
- package/components/u-count-down/props.js +5 -4
- package/components/u-count-down/u-count-down.vue +5 -3
- package/components/u-count-to/props.js +12 -11
- package/components/u-count-to/u-count-to.vue +3 -1
- package/components/u-datetime-picker/props.js +24 -23
- package/components/u-datetime-picker/u-datetime-picker.vue +3 -1
- package/components/u-divider/props.js +9 -8
- package/components/u-divider/u-divider.vue +3 -1
- package/components/u-dropdown/props.js +5 -4
- package/components/u-dropdown/u-dropdown.vue +4 -2
- package/components/u-dropdown-item/props.js +2 -1
- package/components/u-dropdown-item/u-dropdown-item.vue +4 -2
- package/components/u-empty/props.js +12 -11
- package/components/u-empty/u-empty.vue +3 -2
- package/components/u-form/props.js +9 -8
- package/components/u-form/u-form.vue +13 -11
- package/components/u-form-item/props.js +9 -8
- package/components/u-form-item/u-form-item.vue +3 -1
- package/components/u-gap/props.js +5 -4
- package/components/u-gap/u-gap.vue +3 -1
- package/components/u-grid/props.js +4 -3
- package/components/u-grid/u-grid.vue +3 -1
- package/components/u-grid-item/props.js +3 -2
- package/components/u-grid-item/u-grid-item.vue +3 -1
- package/components/u-icon/props.js +18 -17
- package/components/u-icon/u-icon.vue +4 -2
- package/components/u-image/props.js +18 -17
- package/components/u-image/u-image.vue +3 -1
- package/components/u-index-anchor/props.js +6 -5
- package/components/u-index-anchor/u-index-anchor.vue +3 -1
- package/components/u-index-item/props.js +1 -0
- package/components/u-index-item/u-index-item.vue +3 -1
- package/components/u-index-list/props.js +6 -5
- package/components/u-index-list/u-index-list.vue +3 -1
- package/components/u-input/props.js +36 -35
- package/components/u-input/u-input.vue +3 -1
- package/components/u-keyboard/props.js +17 -16
- package/components/u-keyboard/u-keyboard.vue +3 -1
- package/components/u-line/props.js +7 -6
- package/components/u-line/u-line.vue +3 -1
- package/components/u-line-progress/props.js +6 -5
- package/components/u-line-progress/u-line-progress.vue +3 -1
- package/components/u-link/props.js +8 -7
- package/components/u-link/u-link.vue +3 -1
- package/components/u-list/props.js +15 -14
- package/components/u-list/u-list.vue +3 -1
- package/components/u-list-item/props.js +2 -1
- package/components/u-list-item/u-list-item.vue +3 -1
- package/components/u-loading-icon/props.js +13 -12
- package/components/u-loading-icon/u-loading-icon.vue +4 -2
- package/components/u-loading-page/props.js +10 -9
- package/components/u-loading-page/u-loading-page.vue +3 -1
- package/components/u-loadmore/props.js +19 -18
- package/components/u-loadmore/u-loadmore.vue +3 -1
- package/components/u-modal/props.js +17 -16
- package/components/u-modal/u-modal.vue +4 -2
- package/components/u-navbar/props.js +34 -33
- package/components/u-navbar/u-navbar.vue +3 -1
- package/components/u-no-network/props.js +4 -3
- package/components/u-no-network/u-no-network.vue +3 -1
- package/components/u-notice-bar/props.js +14 -13
- package/components/u-notice-bar/u-notice-bar.vue +3 -1
- package/components/u-notify/props.js +10 -9
- package/components/u-notify/u-notify.vue +3 -1
- package/components/u-number-box/props.js +23 -22
- package/components/u-number-box/u-number-box.vue +3 -1
- package/components/u-number-keyboard/props.js +4 -3
- package/components/u-number-keyboard/u-number-keyboard.vue +3 -1
- package/components/u-overlay/props.js +5 -4
- package/components/u-overlay/u-overlay.vue +3 -1
- package/components/u-parse/props.js +9 -8
- package/components/u-picker/props.js +16 -15
- package/components/u-picker/u-picker.vue +3 -1
- package/components/u-picker-column/props.js +1 -0
- package/components/u-picker-column/u-picker-column.vue +3 -1
- package/components/u-popup/props.js +16 -15
- package/components/u-popup/u-popup.vue +4 -2
- package/components/u-radio/props.js +13 -12
- package/components/u-radio/u-radio.vue +3 -1
- package/components/u-radio-group/props.js +18 -17
- package/components/u-radio-group/u-radio-group.vue +3 -1
- package/components/u-rate/props.js +15 -14
- package/components/u-rate/u-rate.vue +3 -1
- package/components/u-read-more/props.js +9 -8
- package/components/u-read-more/u-read-more.vue +3 -1
- package/components/u-row/props.js +4 -3
- package/components/u-row/u-row.vue +3 -1
- package/components/u-row-notice/props.js +8 -7
- package/components/u-row-notice/u-row-notice.vue +3 -1
- package/components/u-safe-bottom/props.js +1 -0
- package/components/u-safe-bottom/u-safe-bottom.vue +4 -2
- package/components/u-scroll-list/props.js +7 -6
- package/components/u-scroll-list/u-scroll-list.vue +3 -1
- package/components/u-search/props.js +25 -24
- package/components/u-search/u-search.vue +3 -1
- package/components/u-skeleton/props.js +12 -11
- package/components/u-skeleton/u-skeleton.vue +3 -1
- package/components/u-slider/props.js +11 -10
- package/components/u-slider/u-slider.vue +5 -3
- package/components/u-status-bar/props.js +2 -1
- package/components/u-status-bar/u-status-bar.vue +3 -1
- package/components/u-steps/props.js +9 -8
- package/components/u-steps/u-steps.vue +3 -1
- package/components/u-steps-item/props.js +5 -4
- package/components/u-steps-item/u-steps-item.vue +3 -1
- package/components/u-sticky/props.js +7 -6
- package/components/u-sticky/u-sticky.vue +4 -2
- package/components/u-subsection/props.js +10 -9
- package/components/u-subsection/u-subsection.vue +3 -1
- package/components/u-swipe-action/props.js +2 -1
- package/components/u-swipe-action/u-swipe-action.vue +3 -1
- package/components/u-swipe-action-item/props.js +7 -6
- package/components/u-swipe-action-item/u-swipe-action-item.vue +5 -3
- package/components/u-swiper/props.js +25 -24
- package/components/u-swiper/u-swiper.vue +3 -1
- package/components/u-swiper-indicator/props.js +6 -5
- package/components/u-swiper-indicator/u-swiper-indicator.vue +3 -1
- package/components/u-switch/props.js +12 -11
- package/components/u-switch/u-switch.vue +3 -1
- package/components/u-tabbar/props.js +9 -8
- package/components/u-tabbar/u-tabbar.vue +3 -1
- package/components/u-tabbar-item/props.js +7 -6
- package/components/u-tabbar-item/u-tabbar-item.vue +3 -1
- package/components/u-table/props.js +1 -0
- package/components/u-table/u-table.vue +3 -1
- package/components/u-tabs/props.js +13 -12
- package/components/u-tabs/u-tabs.vue +3 -1
- package/components/u-tabs-item/props.js +1 -0
- package/components/u-tabs-item/u-tabs-item.vue +3 -1
- package/components/u-tag/props.js +16 -15
- package/components/u-tag/u-tag.vue +5 -3
- package/components/u-td/props.js +1 -0
- package/components/u-td/u-td.vue +3 -1
- package/components/u-text/props.js +22 -21
- package/components/u-text/u-text.vue +4 -2
- package/components/u-textarea/props.js +24 -23
- package/components/u-textarea/u-textarea.vue +3 -1
- package/components/u-toast/u-toast.vue +3 -1
- package/components/u-toolbar/props.js +7 -6
- package/components/u-toolbar/u-toolbar.vue +3 -1
- package/components/u-tooltip/props.js +12 -11
- package/components/u-tooltip/u-tooltip.vue +3 -1
- package/components/u-tr/props.js +1 -0
- package/components/u-tr/u-tr.vue +3 -1
- package/components/u-transition/props.js +5 -4
- package/components/u-transition/u-transition.vue +3 -1
- package/components/u-upload/props.js +23 -22
- package/components/u-upload/u-upload.vue +4 -2
- 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
|
// 是否开启顶部安全区适配
|
|
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
|
-
},
|
|
63
|
-
// 左侧返回图标的大小
|
|
64
|
-
leftIconSize: {
|
|
65
|
-
type: [String, Number],
|
|
66
|
-
default:
|
|
67
|
-
},
|
|
68
|
-
// 左侧返回图标的颜色
|
|
69
|
-
leftIconColor: {
|
|
70
|
-
type: String,
|
|
71
|
-
default:
|
|
72
|
-
},
|
|
73
|
-
// 点击左侧区域(返回图标),是否自动返回上一页
|
|
74
|
-
autoBack: {
|
|
75
|
-
type: Boolean,
|
|
76
|
-
default:
|
|
77
|
-
},
|
|
78
|
-
// 标题的样式,对象或字符串
|
|
79
|
-
titleStyle: {
|
|
80
|
-
type: [String, Object],
|
|
81
|
-
default:
|
|
62
|
+
default: defprops.navbar.height
|
|
63
|
+
},
|
|
64
|
+
// 左侧返回图标的大小
|
|
65
|
+
leftIconSize: {
|
|
66
|
+
type: [String, Number],
|
|
67
|
+
default: defprops.navbar.leftIconSize
|
|
68
|
+
},
|
|
69
|
+
// 左侧返回图标的颜色
|
|
70
|
+
leftIconColor: {
|
|
71
|
+
type: String,
|
|
72
|
+
default: defprops.navbar.leftIconColor
|
|
73
|
+
},
|
|
74
|
+
// 点击左侧区域(返回图标),是否自动返回上一页
|
|
75
|
+
autoBack: {
|
|
76
|
+
type: Boolean,
|
|
77
|
+
default: defprops.navbar.autoBack
|
|
78
|
+
},
|
|
79
|
+
// 标题的样式,对象或字符串
|
|
80
|
+
titleStyle: {
|
|
81
|
+
type: [String, Object],
|
|
82
|
+
default: defprops.navbar.titleStyle
|
|
82
83
|
}
|
|
83
84
|
}
|
|
84
|
-
}
|
|
85
|
+
}
|
|
@@ -74,6 +74,8 @@
|
|
|
74
74
|
|
|
75
75
|
<script>
|
|
76
76
|
import props from './props.js';
|
|
77
|
+
import mpMixin from '../../libs/mixin/mpMixin.js';
|
|
78
|
+
import mixin from '../../libs/mixin/mixin.js';
|
|
77
79
|
/**
|
|
78
80
|
* Navbar 自定义导航栏
|
|
79
81
|
* @description 此组件一般用于在特殊情况下,需要自定义导航栏的时候用到,一般建议使用uni-app带的导航栏。
|
|
@@ -100,7 +102,7 @@
|
|
|
100
102
|
*/
|
|
101
103
|
export default {
|
|
102
104
|
name: 'u-navbar',
|
|
103
|
-
mixins: [
|
|
105
|
+
mixins: [mpMixin, mixin, props],
|
|
104
106
|
data() {
|
|
105
107
|
return {
|
|
106
108
|
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
+
import defprops from '../../libs/config/props';
|
|
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
|
}
|
|
@@ -44,6 +44,8 @@
|
|
|
44
44
|
|
|
45
45
|
<script>
|
|
46
46
|
import props from './props.js';
|
|
47
|
+
import mpMixin from '../../libs/mixin/mpMixin.js';
|
|
48
|
+
import mixin from '../../libs/mixin/mixin.js';
|
|
47
49
|
|
|
48
50
|
/**
|
|
49
51
|
* noNetwork 无网络提示
|
|
@@ -57,7 +59,7 @@
|
|
|
57
59
|
*/
|
|
58
60
|
export default {
|
|
59
61
|
name: "u-no-network",
|
|
60
|
-
mixins: [
|
|
62
|
+
mixins: [mpMixin, mixin,props],
|
|
61
63
|
data() {
|
|
62
64
|
return {
|
|
63
65
|
isConnected: true, // 是否有网络连接
|
|
@@ -1,70 +1,71 @@
|
|
|
1
|
+
import defprops from '../../libs/config/props';
|
|
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
|
}
|
|
@@ -40,6 +40,8 @@
|
|
|
40
40
|
</template>
|
|
41
41
|
<script>
|
|
42
42
|
import props from './props.js';
|
|
43
|
+
import mpMixin from '../../libs/mixin/mpMixin.js';
|
|
44
|
+
import mixin from '../../libs/mixin/mixin.js';
|
|
43
45
|
|
|
44
46
|
/**
|
|
45
47
|
* noticeBar 滚动通知
|
|
@@ -66,7 +68,7 @@
|
|
|
66
68
|
*/
|
|
67
69
|
export default {
|
|
68
70
|
name: "u-notice-bar",
|
|
69
|
-
mixins: [
|
|
71
|
+
mixins: [mpMixin, mixin,props],
|
|
70
72
|
data() {
|
|
71
73
|
return {
|
|
72
74
|
show: true
|
|
@@ -1,49 +1,50 @@
|
|
|
1
|
+
import defprops from '../../libs/config/props';
|
|
1
2
|
export default {
|
|
2
3
|
props: {
|
|
3
4
|
// 到顶部的距离
|
|
4
5
|
top: {
|
|
5
6
|
type: [String, Number],
|
|
6
|
-
default:
|
|
7
|
+
default: defprops.notify.top
|
|
7
8
|
},
|
|
8
9
|
// 是否展示组件
|
|
9
10
|
// show: {
|
|
10
11
|
// type: Boolean,
|
|
11
|
-
// default:
|
|
12
|
+
// default: defprops.notify.show
|
|
12
13
|
// },
|
|
13
14
|
// type主题,primary,success,warning,error
|
|
14
15
|
type: {
|
|
15
16
|
type: String,
|
|
16
|
-
default:
|
|
17
|
+
default: defprops.notify.type
|
|
17
18
|
},
|
|
18
19
|
// 字体颜色
|
|
19
20
|
color: {
|
|
20
21
|
type: String,
|
|
21
|
-
default:
|
|
22
|
+
default: defprops.notify.color
|
|
22
23
|
},
|
|
23
24
|
// 背景颜色
|
|
24
25
|
bgColor: {
|
|
25
26
|
type: String,
|
|
26
|
-
default:
|
|
27
|
+
default: defprops.notify.bgColor
|
|
27
28
|
},
|
|
28
29
|
// 展示的文字内容
|
|
29
30
|
message: {
|
|
30
31
|
type: String,
|
|
31
|
-
default:
|
|
32
|
+
default: defprops.notify.message
|
|
32
33
|
},
|
|
33
34
|
// 展示时长,为0时不消失,单位ms
|
|
34
35
|
duration: {
|
|
35
36
|
type: [String, Number],
|
|
36
|
-
default:
|
|
37
|
+
default: defprops.notify.duration
|
|
37
38
|
},
|
|
38
39
|
// 字体大小
|
|
39
40
|
fontSize: {
|
|
40
41
|
type: [String, Number],
|
|
41
|
-
default:
|
|
42
|
+
default: defprops.notify.fontSize
|
|
42
43
|
},
|
|
43
44
|
// 是否留出顶部安全距离(状态栏高度)
|
|
44
45
|
safeAreaInsetTop: {
|
|
45
46
|
type: Boolean,
|
|
46
|
-
default:
|
|
47
|
+
default: defprops.notify.safeAreaInsetTop
|
|
47
48
|
}
|
|
48
49
|
}
|
|
49
50
|
}
|
|
@@ -34,6 +34,8 @@
|
|
|
34
34
|
|
|
35
35
|
<script>
|
|
36
36
|
import props from './props.js';
|
|
37
|
+
import mpMixin from '../../libs/mixin/mpMixin.js';
|
|
38
|
+
import mixin from '../../libs/mixin/mixin.js';
|
|
37
39
|
/**
|
|
38
40
|
* notify 顶部提示
|
|
39
41
|
* @description 该组件一般用于页面顶部向下滑出一个提示,尔后自动收起的场景
|
|
@@ -53,7 +55,7 @@
|
|
|
53
55
|
*/
|
|
54
56
|
export default {
|
|
55
57
|
name: 'u-notify',
|
|
56
|
-
mixins: [
|
|
58
|
+
mixins: [mpMixin, mixin,props],
|
|
57
59
|
data() {
|
|
58
60
|
return {
|
|
59
61
|
// 是否展示组件
|
|
@@ -1,118 +1,119 @@
|
|
|
1
|
+
import defprops from '../../libs/config/props';
|
|
1
2
|
export default {
|
|
2
3
|
props: {
|
|
3
4
|
// 步进器标识符,在change回调返回
|
|
4
5
|
name: {
|
|
5
6
|
type: [String, Number],
|
|
6
|
-
default:
|
|
7
|
+
default: defprops.numberBox.name
|
|
7
8
|
},
|
|
8
9
|
// #ifdef VUE2
|
|
9
10
|
// 用于双向绑定的值,初始化时设置设为默认min值(最小值)
|
|
10
11
|
value: {
|
|
11
12
|
type: [String, Number],
|
|
12
|
-
default:
|
|
13
|
+
default: defprops.numberBox.value
|
|
13
14
|
},
|
|
14
15
|
// #endif
|
|
15
16
|
// #ifdef VUE3
|
|
16
17
|
// 用于双向绑定的值,初始化时设置设为默认min值(最小值)
|
|
17
18
|
modelValue: {
|
|
18
19
|
type: [String, Number],
|
|
19
|
-
default:
|
|
20
|
+
default: defprops.numberBox.value
|
|
20
21
|
},
|
|
21
22
|
// #endif
|
|
22
23
|
// 最小值
|
|
23
24
|
min: {
|
|
24
25
|
type: [String, Number],
|
|
25
|
-
default:
|
|
26
|
+
default: defprops.numberBox.min
|
|
26
27
|
},
|
|
27
28
|
// 最大值
|
|
28
29
|
max: {
|
|
29
30
|
type: [String, Number],
|
|
30
|
-
default:
|
|
31
|
+
default: defprops.numberBox.max
|
|
31
32
|
},
|
|
32
33
|
// 加减的步长,可为小数
|
|
33
34
|
step: {
|
|
34
35
|
type: [String, Number],
|
|
35
|
-
default:
|
|
36
|
+
default: defprops.numberBox.step
|
|
36
37
|
},
|
|
37
38
|
// 是否只允许输入整数
|
|
38
39
|
integer: {
|
|
39
40
|
type: Boolean,
|
|
40
|
-
default:
|
|
41
|
+
default: defprops.numberBox.integer
|
|
41
42
|
},
|
|
42
43
|
// 是否禁用,包括输入框,加减按钮
|
|
43
44
|
disabled: {
|
|
44
45
|
type: Boolean,
|
|
45
|
-
default:
|
|
46
|
+
default: defprops.numberBox.disabled
|
|
46
47
|
},
|
|
47
48
|
// 是否禁用输入框
|
|
48
49
|
disabledInput: {
|
|
49
50
|
type: Boolean,
|
|
50
|
-
default:
|
|
51
|
+
default: defprops.numberBox.disabledInput
|
|
51
52
|
},
|
|
52
53
|
// 是否开启异步变更,开启后需要手动控制输入值
|
|
53
54
|
asyncChange: {
|
|
54
55
|
type: Boolean,
|
|
55
|
-
default:
|
|
56
|
+
default: defprops.numberBox.asyncChange
|
|
56
57
|
},
|
|
57
58
|
// 输入框宽度,单位为px
|
|
58
59
|
inputWidth: {
|
|
59
60
|
type: [String, Number],
|
|
60
|
-
default:
|
|
61
|
+
default: defprops.numberBox.inputWidth
|
|
61
62
|
},
|
|
62
63
|
// 是否显示减少按钮
|
|
63
64
|
showMinus: {
|
|
64
65
|
type: Boolean,
|
|
65
|
-
default:
|
|
66
|
+
default: defprops.numberBox.showMinus
|
|
66
67
|
},
|
|
67
68
|
// 是否显示增加按钮
|
|
68
69
|
showPlus: {
|
|
69
70
|
type: Boolean,
|
|
70
|
-
default:
|
|
71
|
+
default: defprops.numberBox.showPlus
|
|
71
72
|
},
|
|
72
73
|
// 显示的小数位数
|
|
73
74
|
decimalLength: {
|
|
74
75
|
type: [String, Number, null],
|
|
75
|
-
default:
|
|
76
|
+
default: defprops.numberBox.decimalLength
|
|
76
77
|
},
|
|
77
78
|
// 是否开启长按加减手势
|
|
78
79
|
longPress: {
|
|
79
80
|
type: Boolean,
|
|
80
|
-
default:
|
|
81
|
+
default: defprops.numberBox.longPress
|
|
81
82
|
},
|
|
82
83
|
// 输入框文字和加减按钮图标的颜色
|
|
83
84
|
color: {
|
|
84
85
|
type: String,
|
|
85
|
-
default:
|
|
86
|
+
default: defprops.numberBox.color
|
|
86
87
|
},
|
|
87
88
|
// 按钮大小,宽高等于此值,单位px,输入框高度和此值保持一致
|
|
88
89
|
buttonSize: {
|
|
89
90
|
type: [String, Number],
|
|
90
|
-
default:
|
|
91
|
+
default: defprops.numberBox.buttonSize
|
|
91
92
|
},
|
|
92
93
|
// 输入框和按钮的背景颜色
|
|
93
94
|
bgColor: {
|
|
94
95
|
type: String,
|
|
95
|
-
default:
|
|
96
|
+
default: defprops.numberBox.bgColor
|
|
96
97
|
},
|
|
97
98
|
// 指定光标于键盘的距离,避免键盘遮挡输入框,单位px
|
|
98
99
|
cursorSpacing: {
|
|
99
100
|
type: [String, Number],
|
|
100
|
-
default:
|
|
101
|
+
default: defprops.numberBox.cursorSpacing
|
|
101
102
|
},
|
|
102
103
|
// 是否禁用增加按钮
|
|
103
104
|
disablePlus: {
|
|
104
105
|
type: Boolean,
|
|
105
|
-
default:
|
|
106
|
+
default: defprops.numberBox.disablePlus
|
|
106
107
|
},
|
|
107
108
|
// 是否禁用减少按钮
|
|
108
109
|
disableMinus: {
|
|
109
110
|
type: Boolean,
|
|
110
|
-
default:
|
|
111
|
+
default: defprops.numberBox.disableMinus
|
|
111
112
|
},
|
|
112
113
|
// 加减按钮图标的样式
|
|
113
114
|
iconStyle: {
|
|
114
115
|
type: [Object, String],
|
|
115
|
-
default:
|
|
116
|
+
default: defprops.numberBox.iconStyle
|
|
116
117
|
}
|
|
117
118
|
}
|
|
118
119
|
}
|
|
@@ -76,6 +76,8 @@
|
|
|
76
76
|
|
|
77
77
|
<script>
|
|
78
78
|
import props from './props.js';
|
|
79
|
+
import mpMixin from '../../libs/mixin/mpMixin.js';
|
|
80
|
+
import mixin from '../../libs/mixin/mixin.js';
|
|
79
81
|
/**
|
|
80
82
|
* numberBox 步进器
|
|
81
83
|
* @description 该组件一般用于商城购物选择物品数量的场景。
|
|
@@ -110,7 +112,7 @@
|
|
|
110
112
|
*/
|
|
111
113
|
export default {
|
|
112
114
|
name: 'u-number-box',
|
|
113
|
-
mixins: [
|
|
115
|
+
mixins: [mpMixin, mixin, props],
|
|
114
116
|
data() {
|
|
115
117
|
return {
|
|
116
118
|
// 输入框实际操作的值
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
+
import defprops from '../../libs/config/props';
|
|
1
2
|
export default {
|
|
2
3
|
props: {
|
|
3
4
|
// 键盘的类型,number-数字键盘,card-身份证键盘
|
|
4
5
|
mode: {
|
|
5
6
|
type: String,
|
|
6
|
-
default:
|
|
7
|
+
default: defprops.numberKeyboard.value
|
|
7
8
|
},
|
|
8
9
|
// 是否显示键盘的"."符号
|
|
9
10
|
dotDisabled: {
|
|
10
11
|
type: Boolean,
|
|
11
|
-
default:
|
|
12
|
+
default: defprops.numberKeyboard.dotDisabled
|
|
12
13
|
},
|
|
13
14
|
// 是否打乱键盘按键的顺序
|
|
14
15
|
random: {
|
|
15
16
|
type: Boolean,
|
|
16
|
-
default:
|
|
17
|
+
default: defprops.numberKeyboard.random
|
|
17
18
|
}
|
|
18
19
|
}
|
|
19
20
|
}
|
|
@@ -40,6 +40,8 @@
|
|
|
40
40
|
|
|
41
41
|
<script>
|
|
42
42
|
import props from './props.js';
|
|
43
|
+
import mpMixin from '../../libs/mixin/mpMixin.js';
|
|
44
|
+
import mixin from '../../libs/mixin/mixin.js';
|
|
43
45
|
|
|
44
46
|
/**
|
|
45
47
|
* keyboard 键盘组件
|
|
@@ -53,7 +55,7 @@
|
|
|
53
55
|
* @example
|
|
54
56
|
*/
|
|
55
57
|
export default {
|
|
56
|
-
mixins: [
|
|
58
|
+
mixins: [mpMixin, mixin, props],
|
|
57
59
|
data() {
|
|
58
60
|
return {
|
|
59
61
|
backspace: 'backspace', // 退格键内容
|
|
@@ -1,24 +1,25 @@
|
|
|
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.overlay.show
|
|
7
8
|
},
|
|
8
9
|
// 层级z-index
|
|
9
10
|
zIndex: {
|
|
10
11
|
type: [String, Number],
|
|
11
|
-
default:
|
|
12
|
+
default: defprops.overlay.zIndex
|
|
12
13
|
},
|
|
13
14
|
// 遮罩的过渡时间,单位为ms
|
|
14
15
|
duration: {
|
|
15
16
|
type: [String, Number],
|
|
16
|
-
default:
|
|
17
|
+
default: defprops.overlay.duration
|
|
17
18
|
},
|
|
18
19
|
// 不透明度值,当做rgba的第四个参数
|
|
19
20
|
opacity: {
|
|
20
21
|
type: [String, Number],
|
|
21
|
-
default:
|
|
22
|
+
default: defprops.overlay.opacity
|
|
22
23
|
}
|
|
23
24
|
}
|
|
24
25
|
}
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
|
|
13
13
|
<script>
|
|
14
14
|
import props from './props.js';
|
|
15
|
+
import mpMixin from '../../libs/mixin/mpMixin.js';
|
|
16
|
+
import mixin from '../../libs/mixin/mixin.js';
|
|
15
17
|
|
|
16
18
|
/**
|
|
17
19
|
* overlay 遮罩
|
|
@@ -27,7 +29,7 @@
|
|
|
27
29
|
*/
|
|
28
30
|
export default {
|
|
29
31
|
name: "u-overlay",
|
|
30
|
-
mixins: [
|
|
32
|
+
mixins: [mpMixin, mixin,props],
|
|
31
33
|
computed: {
|
|
32
34
|
overlayStyle() {
|
|
33
35
|
const style = {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import defprops from '../../libs/config/props';
|
|
1
2
|
export default {
|
|
2
3
|
props: {
|
|
3
4
|
// #ifdef APP-PLUS-NVUE
|
|
@@ -6,38 +7,38 @@ export default {
|
|
|
6
7
|
content: String,
|
|
7
8
|
copyLink: {
|
|
8
9
|
type: Boolean,
|
|
9
|
-
default:
|
|
10
|
+
default: defprops.parse.copyLink
|
|
10
11
|
},
|
|
11
12
|
domain: String,
|
|
12
13
|
errorImg: {
|
|
13
14
|
type: String,
|
|
14
|
-
default:
|
|
15
|
+
default: defprops.parse.errorImg
|
|
15
16
|
},
|
|
16
17
|
lazyLoad: {
|
|
17
18
|
type: Boolean,
|
|
18
|
-
default:
|
|
19
|
+
default: defprops.parse.lazyLoad
|
|
19
20
|
},
|
|
20
21
|
loadingImg: {
|
|
21
22
|
type: String,
|
|
22
|
-
default:
|
|
23
|
+
default: defprops.parse.loadingImg
|
|
23
24
|
},
|
|
24
25
|
pauseVideo: {
|
|
25
26
|
type: Boolean,
|
|
26
|
-
default:
|
|
27
|
+
default: defprops.parse.pauseVideo
|
|
27
28
|
},
|
|
28
29
|
previewImg: {
|
|
29
30
|
type: Boolean,
|
|
30
|
-
default:
|
|
31
|
+
default: defprops.parse.previewImg
|
|
31
32
|
},
|
|
32
33
|
scrollTable: Boolean,
|
|
33
34
|
selectable: Boolean,
|
|
34
35
|
setTitle: {
|
|
35
36
|
type: Boolean,
|
|
36
|
-
default:
|
|
37
|
+
default: defprops.parse.setTitle
|
|
37
38
|
},
|
|
38
39
|
showImgMenu: {
|
|
39
40
|
type: Boolean,
|
|
40
|
-
default:
|
|
41
|
+
default: defprops.parse.showImgMenu
|
|
41
42
|
},
|
|
42
43
|
tagStyle: Object,
|
|
43
44
|
useAnchor: null
|