uview-plus 3.1.50 → 3.1.51
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 +15 -1
- 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-back-top/u-back-top.vue +1 -1
- package/components/u-badge/props.js +14 -15
- package/components/u-badge/u-badge.vue +1 -1
- package/components/u-button/props.js +28 -29
- package/components/u-button/vue.scss +8 -7
- 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-car-keyboard/u-car-keyboard.vue +1 -1
- package/components/u-cell/props.js +17 -18
- package/components/u-cell/u-cell.vue +12 -3
- package/components/u-cell-group/props.js +2 -3
- package/components/u-cell-group/u-cell-group.vue +1 -1
- package/components/u-checkbox/props.js +13 -14
- package/components/u-checkbox/u-checkbox.vue +1 -1
- 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 +6 -1
- package/components/u-count-to/props.js +11 -12
- package/components/u-datetime-picker/props.js +37 -25
- package/components/u-datetime-picker/u-datetime-picker.vue +58 -3
- 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-image/u-image.vue +1 -1
- package/components/u-index-anchor/props.js +5 -6
- package/components/u-index-anchor/u-index-anchor.vue +1 -1
- package/components/u-index-item/props.js +0 -1
- package/components/u-index-item/u-index-item.vue +1 -1
- package/components/u-index-list/props.js +5 -6
- package/components/u-index-list/u-index-list.vue +3 -2
- package/components/u-input/props.js +35 -36
- package/components/u-input/u-input.vue +10 -4
- 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-box/u-number-box.vue +21 -1
- 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-qrcode/qrcode.js +1206 -0
- package/components/u-qrcode/u-qrcode.vue +199 -0
- 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-status-bar/u-status-bar.vue +1 -1
- package/components/u-steps/props.js +7 -8
- package/components/u-steps/u-steps.vue +1 -1
- package/components/u-steps-item/props.js +4 -5
- package/components/u-steps-item/u-steps-item.vue +1 -1
- 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-subsection/u-subsection.vue +2 -2
- 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-tooltip/u-tooltip.vue +0 -28
- 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-transition/u-transition.vue +1 -1
- package/components/u-upload/props.js +22 -23
- package/components/u-upload/u-upload.vue +1 -1
- package/index.js +1 -5
- 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 +3 -2
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import defprops from '../../libs/config/props';
|
|
2
1
|
export default {
|
|
3
2
|
props: {
|
|
4
3
|
containerStyle: {
|
|
@@ -8,38 +7,38 @@ export default {
|
|
|
8
7
|
content: String,
|
|
9
8
|
copyLink: {
|
|
10
9
|
type: Boolean,
|
|
11
|
-
default:
|
|
10
|
+
default: () => uni.$u.props.parse.copyLink
|
|
12
11
|
},
|
|
13
12
|
domain: String,
|
|
14
13
|
errorImg: {
|
|
15
14
|
type: String,
|
|
16
|
-
default:
|
|
15
|
+
default: () => uni.$u.props.parse.errorImg
|
|
17
16
|
},
|
|
18
17
|
lazyLoad: {
|
|
19
18
|
type: Boolean,
|
|
20
|
-
default:
|
|
19
|
+
default: () => uni.$u.props.parse.lazyLoad
|
|
21
20
|
},
|
|
22
21
|
loadingImg: {
|
|
23
22
|
type: String,
|
|
24
|
-
default:
|
|
23
|
+
default: () => uni.$u.props.parse.loadingImg
|
|
25
24
|
},
|
|
26
25
|
pauseVideo: {
|
|
27
26
|
type: Boolean,
|
|
28
|
-
default:
|
|
27
|
+
default: () => uni.$u.props.parse.pauseVideo
|
|
29
28
|
},
|
|
30
29
|
previewImg: {
|
|
31
30
|
type: Boolean,
|
|
32
|
-
default:
|
|
31
|
+
default: () => uni.$u.props.parse.previewImg
|
|
33
32
|
},
|
|
34
33
|
scrollTable: Boolean,
|
|
35
34
|
selectable: Boolean,
|
|
36
35
|
setTitle: {
|
|
37
36
|
type: Boolean,
|
|
38
|
-
default:
|
|
37
|
+
default: () => uni.$u.props.parse.setTitle
|
|
39
38
|
},
|
|
40
39
|
showImgMenu: {
|
|
41
40
|
type: Boolean,
|
|
42
|
-
default:
|
|
41
|
+
default: () => uni.$u.props.parse.showImgMenu
|
|
43
42
|
},
|
|
44
43
|
tagStyle: Object,
|
|
45
44
|
useAnchor: null
|
|
@@ -126,7 +126,12 @@ export default {
|
|
|
126
126
|
this.setContent(this.content)
|
|
127
127
|
}
|
|
128
128
|
},
|
|
129
|
-
|
|
129
|
+
// #ifdef VUE2
|
|
130
|
+
beforeDestroy() {
|
|
131
|
+
// #endif
|
|
132
|
+
// #ifdef VUE3
|
|
133
|
+
beforeUnmount() {
|
|
134
|
+
// #endif
|
|
130
135
|
this._hook('onDetached')
|
|
131
136
|
},
|
|
132
137
|
methods: {
|
|
@@ -1,85 +1,84 @@
|
|
|
1
|
-
import defprops from '../../libs/config/props';
|
|
2
1
|
export default {
|
|
3
2
|
props: {
|
|
4
3
|
// 是否展示picker弹窗
|
|
5
4
|
show: {
|
|
6
5
|
type: Boolean,
|
|
7
|
-
default:
|
|
6
|
+
default: () => uni.$u.props.picker.show
|
|
8
7
|
},
|
|
9
8
|
// 弹出的方向,可选值为 top bottom right left center
|
|
10
9
|
popupMode: {
|
|
11
10
|
type: String,
|
|
12
|
-
default:
|
|
11
|
+
default: () => uni.$u.props.picker.popupMode
|
|
13
12
|
},
|
|
14
13
|
// 是否展示顶部的操作栏
|
|
15
14
|
showToolbar: {
|
|
16
15
|
type: Boolean,
|
|
17
|
-
default:
|
|
16
|
+
default: () => uni.$u.props.picker.showToolbar
|
|
18
17
|
},
|
|
19
18
|
// 顶部标题
|
|
20
19
|
title: {
|
|
21
20
|
type: String,
|
|
22
|
-
default:
|
|
21
|
+
default: () => uni.$u.props.picker.title
|
|
23
22
|
},
|
|
24
23
|
// 对象数组,设置每一列的数据
|
|
25
24
|
columns: {
|
|
26
25
|
type: Array,
|
|
27
|
-
default:
|
|
26
|
+
default: () => uni.$u.props.picker.columns
|
|
28
27
|
},
|
|
29
28
|
// 是否显示加载中状态
|
|
30
29
|
loading: {
|
|
31
30
|
type: Boolean,
|
|
32
|
-
default:
|
|
31
|
+
default: () => uni.$u.props.picker.loading
|
|
33
32
|
},
|
|
34
33
|
// 各列中,单个选项的高度
|
|
35
34
|
itemHeight: {
|
|
36
35
|
type: [String, Number],
|
|
37
|
-
default:
|
|
36
|
+
default: () => uni.$u.props.picker.itemHeight
|
|
38
37
|
},
|
|
39
38
|
// 取消按钮的文字
|
|
40
39
|
cancelText: {
|
|
41
40
|
type: String,
|
|
42
|
-
default:
|
|
41
|
+
default: () => uni.$u.props.picker.cancelText
|
|
43
42
|
},
|
|
44
43
|
// 确认按钮的文字
|
|
45
44
|
confirmText: {
|
|
46
45
|
type: String,
|
|
47
|
-
default:
|
|
46
|
+
default: () => uni.$u.props.picker.confirmText
|
|
48
47
|
},
|
|
49
48
|
// 取消按钮的颜色
|
|
50
49
|
cancelColor: {
|
|
51
50
|
type: String,
|
|
52
|
-
default:
|
|
51
|
+
default: () => uni.$u.props.picker.cancelColor
|
|
53
52
|
},
|
|
54
53
|
// 确认按钮的颜色
|
|
55
54
|
confirmColor: {
|
|
56
55
|
type: String,
|
|
57
|
-
default:
|
|
56
|
+
default: () => uni.$u.props.picker.confirmColor
|
|
58
57
|
},
|
|
59
58
|
// 每列中可见选项的数量
|
|
60
59
|
visibleItemCount: {
|
|
61
60
|
type: [String, Number],
|
|
62
|
-
default:
|
|
61
|
+
default: () => uni.$u.props.picker.visibleItemCount
|
|
63
62
|
},
|
|
64
63
|
// 选项对象中,需要展示的属性键名
|
|
65
64
|
keyName: {
|
|
66
65
|
type: String,
|
|
67
|
-
default:
|
|
66
|
+
default: () => uni.$u.props.picker.keyName
|
|
68
67
|
},
|
|
69
68
|
// 是否允许点击遮罩关闭选择器
|
|
70
69
|
closeOnClickOverlay: {
|
|
71
70
|
type: Boolean,
|
|
72
|
-
default:
|
|
71
|
+
default: () => uni.$u.props.picker.closeOnClickOverlay
|
|
73
72
|
},
|
|
74
73
|
// 各列的默认索引
|
|
75
74
|
defaultIndex: {
|
|
76
75
|
type: Array,
|
|
77
|
-
default:
|
|
76
|
+
default: () => uni.$u.props.picker.defaultIndex
|
|
78
77
|
},
|
|
79
78
|
// 是否在手指松开时立即触发 change 事件。若不开启则会在滚动动画结束后触发 change 事件,只在微信2.21.1及以上有效
|
|
80
79
|
immediateChange: {
|
|
81
80
|
type: Boolean,
|
|
82
|
-
default:
|
|
81
|
+
default: () => uni.$u.props.picker.immediateChange
|
|
83
82
|
}
|
|
84
83
|
}
|
|
85
84
|
}
|
|
@@ -1,80 +1,79 @@
|
|
|
1
|
-
import defprops from '../../libs/config/props';
|
|
2
1
|
export default {
|
|
3
2
|
props: {
|
|
4
3
|
// 是否展示弹窗
|
|
5
4
|
show: {
|
|
6
5
|
type: Boolean,
|
|
7
|
-
default:
|
|
6
|
+
default: () => uni.$u.props.popup.show
|
|
8
7
|
},
|
|
9
8
|
// 是否显示遮罩
|
|
10
9
|
overlay: {
|
|
11
10
|
type: Boolean,
|
|
12
|
-
default:
|
|
11
|
+
default: () => uni.$u.props.popup.overlay
|
|
13
12
|
},
|
|
14
13
|
// 弹出的方向,可选值为 top bottom right left center
|
|
15
14
|
mode: {
|
|
16
15
|
type: String,
|
|
17
|
-
default:
|
|
16
|
+
default: () => uni.$u.props.popup.mode
|
|
18
17
|
},
|
|
19
18
|
// 动画时长,单位ms
|
|
20
19
|
duration: {
|
|
21
20
|
type: [String, Number],
|
|
22
|
-
default:
|
|
21
|
+
default: () => uni.$u.props.popup.duration
|
|
23
22
|
},
|
|
24
23
|
// 是否显示关闭图标
|
|
25
24
|
closeable: {
|
|
26
25
|
type: Boolean,
|
|
27
|
-
default:
|
|
26
|
+
default: () => uni.$u.props.popup.closeable
|
|
28
27
|
},
|
|
29
28
|
// 自定义遮罩的样式
|
|
30
29
|
overlayStyle: {
|
|
31
30
|
type: [Object, String],
|
|
32
|
-
default:
|
|
31
|
+
default: () => uni.$u.props.popup.overlayStyle
|
|
33
32
|
},
|
|
34
33
|
// 点击遮罩是否关闭弹窗
|
|
35
34
|
closeOnClickOverlay: {
|
|
36
35
|
type: Boolean,
|
|
37
|
-
default:
|
|
36
|
+
default: () => uni.$u.props.popup.closeOnClickOverlay
|
|
38
37
|
},
|
|
39
38
|
// 层级
|
|
40
39
|
zIndex: {
|
|
41
40
|
type: [String, Number],
|
|
42
|
-
default:
|
|
41
|
+
default: () => uni.$u.props.popup.zIndex
|
|
43
42
|
},
|
|
44
43
|
// 是否为iPhoneX留出底部安全距离
|
|
45
44
|
safeAreaInsetBottom: {
|
|
46
45
|
type: Boolean,
|
|
47
|
-
default:
|
|
46
|
+
default: () => uni.$u.props.popup.safeAreaInsetBottom
|
|
48
47
|
},
|
|
49
48
|
// 是否留出顶部安全距离(状态栏高度)
|
|
50
49
|
safeAreaInsetTop: {
|
|
51
50
|
type: Boolean,
|
|
52
|
-
default:
|
|
51
|
+
default: () => uni.$u.props.popup.safeAreaInsetTop
|
|
53
52
|
},
|
|
54
53
|
// 自定义关闭图标位置,top-left为左上角,top-right为右上角,bottom-left为左下角,bottom-right为右下角
|
|
55
54
|
closeIconPos: {
|
|
56
55
|
type: String,
|
|
57
|
-
default:
|
|
56
|
+
default: () => uni.$u.props.popup.closeIconPos
|
|
58
57
|
},
|
|
59
58
|
// 是否显示圆角
|
|
60
59
|
round: {
|
|
61
60
|
type: [Boolean, String, Number],
|
|
62
|
-
default:
|
|
61
|
+
default: () => uni.$u.props.popup.round
|
|
63
62
|
},
|
|
64
63
|
// mode=center,也即中部弹出时,是否使用缩放模式
|
|
65
64
|
zoom: {
|
|
66
65
|
type: Boolean,
|
|
67
|
-
default:
|
|
66
|
+
default: () => uni.$u.props.popup.zoom
|
|
68
67
|
},
|
|
69
68
|
// 弹窗背景色,设置为transparent可去除白色背景
|
|
70
69
|
bgColor: {
|
|
71
70
|
type: String,
|
|
72
|
-
default:
|
|
71
|
+
default: () => uni.$u.props.popup.bgColor
|
|
73
72
|
},
|
|
74
73
|
// 遮罩的透明度,0-1之间
|
|
75
74
|
overlayOpacity: {
|
|
76
75
|
type: [Number, String],
|
|
77
|
-
default:
|
|
76
|
+
default: () => uni.$u.props.popup.overlayOpacity
|
|
78
77
|
}
|
|
79
78
|
}
|
|
80
79
|
}
|