uview-plus 3.1.45 → 3.1.47
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 +8 -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 +41 -39
- package/package.json +1 -1
|
@@ -1,60 +1,59 @@
|
|
|
1
|
-
import defprops from '../../libs/config/props';
|
|
2
1
|
export default {
|
|
3
2
|
props: {
|
|
4
3
|
// 需要显示的提示文字
|
|
5
4
|
text: {
|
|
6
5
|
type: [String, Number],
|
|
7
|
-
default:
|
|
6
|
+
default: () => uni.$u.props.tooltip.text
|
|
8
7
|
},
|
|
9
8
|
// 点击复制按钮时,复制的文本,为空则使用text值
|
|
10
9
|
copyText: {
|
|
11
10
|
type: [String, Number],
|
|
12
|
-
default:
|
|
11
|
+
default: () => uni.$u.props.tooltip.copyText
|
|
13
12
|
},
|
|
14
13
|
// 文本大小
|
|
15
14
|
size: {
|
|
16
15
|
type: [String, Number],
|
|
17
|
-
default:
|
|
16
|
+
default: () => uni.$u.props.tooltip.size
|
|
18
17
|
},
|
|
19
18
|
// 字体颜色
|
|
20
19
|
color: {
|
|
21
20
|
type: String,
|
|
22
|
-
default:
|
|
21
|
+
default: () => uni.$u.props.tooltip.color
|
|
23
22
|
},
|
|
24
23
|
// 弹出提示框时,文本的背景色
|
|
25
24
|
bgColor: {
|
|
26
25
|
type: String,
|
|
27
|
-
default:
|
|
26
|
+
default: () => uni.$u.props.tooltip.bgColor
|
|
28
27
|
},
|
|
29
28
|
// 弹出提示的方向,top-上方,bottom-下方
|
|
30
29
|
direction: {
|
|
31
30
|
type: String,
|
|
32
|
-
default:
|
|
31
|
+
default: () => uni.$u.props.tooltip.direction
|
|
33
32
|
},
|
|
34
33
|
// 弹出提示的z-index,nvue无效
|
|
35
34
|
zIndex: {
|
|
36
35
|
type: [String, Number],
|
|
37
|
-
default:
|
|
36
|
+
default: () => uni.$u.props.tooltip.zIndex
|
|
38
37
|
},
|
|
39
38
|
// 是否显示复制按钮
|
|
40
39
|
showCopy: {
|
|
41
40
|
type: Boolean,
|
|
42
|
-
default:
|
|
41
|
+
default: () => uni.$u.props.tooltip.showCopy
|
|
43
42
|
},
|
|
44
43
|
// 扩展的按钮组
|
|
45
44
|
buttons: {
|
|
46
45
|
type: Array,
|
|
47
|
-
default:
|
|
46
|
+
default: () => uni.$u.props.tooltip.buttons
|
|
48
47
|
},
|
|
49
48
|
// 是否显示透明遮罩以防止触摸穿透
|
|
50
49
|
overlay: {
|
|
51
50
|
type: Boolean,
|
|
52
|
-
default:
|
|
51
|
+
default: () => uni.$u.props.tooltip.overlay
|
|
53
52
|
},
|
|
54
53
|
// 是否显示复制成功或者失败的toast
|
|
55
54
|
showToast: {
|
|
56
55
|
type: Boolean,
|
|
57
|
-
default:
|
|
56
|
+
default: () => uni.$u.props.tooltip.showToast
|
|
58
57
|
}
|
|
59
58
|
}
|
|
60
59
|
}
|
package/components/u-tr/props.js
CHANGED
|
@@ -1,25 +1,24 @@
|
|
|
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.transition.show
|
|
8
7
|
},
|
|
9
8
|
// 使用的动画模式
|
|
10
9
|
mode: {
|
|
11
10
|
type: String,
|
|
12
|
-
default:
|
|
11
|
+
default: () => uni.$u.props.transition.mode
|
|
13
12
|
},
|
|
14
13
|
// 动画的执行时间,单位ms
|
|
15
14
|
duration: {
|
|
16
15
|
type: [String, Number],
|
|
17
|
-
default:
|
|
16
|
+
default: () => uni.$u.props.transition.duration
|
|
18
17
|
},
|
|
19
18
|
// 使用的动画过渡函数
|
|
20
19
|
timingFunction: {
|
|
21
20
|
type: String,
|
|
22
|
-
default:
|
|
21
|
+
default: () => uni.$u.props.transition.timingFunction
|
|
23
22
|
}
|
|
24
23
|
}
|
|
25
24
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// 定义一个一定时间后自动成功的promise,让调用nextTick方法处,进入下一个then方法
|
|
2
2
|
const waitTick = () => new Promise(resolve => setTimeout(resolve, 1000 / 50))
|
|
3
3
|
// nvue动画模块实现细节抽离在外部文件
|
|
4
|
-
// #ifdef APP-NVUE
|
|
5
|
-
import animationMap from './nvue-ani-map.js'
|
|
4
|
+
// #ifdef APP-NVUE
|
|
5
|
+
import animationMap from './nvue-ani-map.js'
|
|
6
6
|
// #endif
|
|
7
7
|
|
|
8
8
|
// #ifndef APP-NVUE
|
|
@@ -20,8 +20,8 @@ const getClassNames = (name) => ({
|
|
|
20
20
|
// https://weex.apache.org/zh/docs/modules/animation.html#transition
|
|
21
21
|
const animation = uni.requireNativePlugin('animation')
|
|
22
22
|
const getStyle = (name) => animationMap[name]
|
|
23
|
-
// #endif
|
|
24
|
-
|
|
23
|
+
// #endif
|
|
24
|
+
|
|
25
25
|
import { nextTick } from 'vue'
|
|
26
26
|
|
|
27
27
|
export default {
|
|
@@ -41,11 +41,10 @@ export default {
|
|
|
41
41
|
this.inited = true
|
|
42
42
|
this.display = true
|
|
43
43
|
this.classes = classNames.enter
|
|
44
|
-
await nextTick();
|
|
44
|
+
await nextTick();
|
|
45
45
|
{
|
|
46
|
-
|
|
46
|
+
// https://github.com/umicro/uView2.0/issues/545
|
|
47
47
|
await uni.$u.sleep(20)
|
|
48
|
-
// #endif
|
|
49
48
|
// 标识动画尚未结束
|
|
50
49
|
this.$emit('enter')
|
|
51
50
|
this.transitionEnded = false
|
|
@@ -66,7 +65,7 @@ export default {
|
|
|
66
65
|
// 获得类名
|
|
67
66
|
this.classes = classNames.leave
|
|
68
67
|
|
|
69
|
-
await nextTick();
|
|
68
|
+
await nextTick();
|
|
70
69
|
{
|
|
71
70
|
// 动画正在离场的状态
|
|
72
71
|
this.transitionEnded = false
|
|
@@ -94,7 +93,7 @@ export default {
|
|
|
94
93
|
opacity: 0
|
|
95
94
|
}
|
|
96
95
|
// 等待弹窗内容渲染完成
|
|
97
|
-
await nextTick();
|
|
96
|
+
await nextTick();
|
|
98
97
|
{
|
|
99
98
|
// 合并样式
|
|
100
99
|
this.viewStyle = currentStyle.enter
|
|
@@ -1,45 +1,44 @@
|
|
|
1
|
-
import defprops from '../../libs/config/props';
|
|
2
1
|
export default {
|
|
3
2
|
props: {
|
|
4
3
|
// 接受的文件类型, 可选值为all media image file video
|
|
5
4
|
accept: {
|
|
6
5
|
type: String,
|
|
7
|
-
default:
|
|
6
|
+
default: () => uni.$u.props.upload.accept
|
|
8
7
|
},
|
|
9
8
|
// 图片或视频拾取模式,当accept为image类型时设置capture可选额外camera可以直接调起摄像头
|
|
10
9
|
capture: {
|
|
11
10
|
type: [String, Array],
|
|
12
|
-
default:
|
|
11
|
+
default: () => uni.$u.props.upload.capture
|
|
13
12
|
},
|
|
14
13
|
// 当accept为video时生效,是否压缩视频,默认为true
|
|
15
14
|
compressed: {
|
|
16
15
|
type: Boolean,
|
|
17
|
-
default:
|
|
16
|
+
default: () => uni.$u.props.upload.compressed
|
|
18
17
|
},
|
|
19
18
|
// 当accept为video时生效,可选值为back或front
|
|
20
19
|
camera: {
|
|
21
20
|
type: String,
|
|
22
|
-
default:
|
|
21
|
+
default: () => uni.$u.props.upload.camera
|
|
23
22
|
},
|
|
24
23
|
// 当accept为video时生效,拍摄视频最长拍摄时间,单位秒
|
|
25
24
|
maxDuration: {
|
|
26
25
|
type: Number,
|
|
27
|
-
default:
|
|
26
|
+
default: () => uni.$u.props.upload.maxDuration
|
|
28
27
|
},
|
|
29
28
|
// 上传区域的图标,只能内置图标
|
|
30
29
|
uploadIcon: {
|
|
31
30
|
type: String,
|
|
32
|
-
default:
|
|
31
|
+
default: () => uni.$u.props.upload.uploadIcon
|
|
33
32
|
},
|
|
34
33
|
// 上传区域的图标的颜色,默认
|
|
35
34
|
uploadIconColor: {
|
|
36
35
|
type: String,
|
|
37
|
-
default:
|
|
36
|
+
default: () => uni.$u.props.upload.uploadIconColor
|
|
38
37
|
},
|
|
39
38
|
// 是否开启文件读取前事件
|
|
40
39
|
useBeforeRead: {
|
|
41
40
|
type: Boolean,
|
|
42
|
-
default:
|
|
41
|
+
default: () => uni.$u.props.upload.useBeforeRead
|
|
43
42
|
},
|
|
44
43
|
// 读取后的处理函数
|
|
45
44
|
afterRead: {
|
|
@@ -54,72 +53,72 @@ export default {
|
|
|
54
53
|
// 是否显示组件自带的图片预览功能
|
|
55
54
|
previewFullImage: {
|
|
56
55
|
type: Boolean,
|
|
57
|
-
default:
|
|
56
|
+
default: () => uni.$u.props.upload.previewFullImage
|
|
58
57
|
},
|
|
59
58
|
// 最大上传数量
|
|
60
59
|
maxCount: {
|
|
61
60
|
type: [String, Number],
|
|
62
|
-
default:
|
|
61
|
+
default: () => uni.$u.props.upload.maxCount
|
|
63
62
|
},
|
|
64
63
|
// 是否启用
|
|
65
64
|
disabled: {
|
|
66
65
|
type: Boolean,
|
|
67
|
-
default:
|
|
66
|
+
default: () => uni.$u.props.upload.disabled
|
|
68
67
|
},
|
|
69
68
|
// 预览上传的图片时的裁剪模式,和image组件mode属性一致
|
|
70
69
|
imageMode: {
|
|
71
70
|
type: String,
|
|
72
|
-
default:
|
|
71
|
+
default: () => uni.$u.props.upload.imageMode
|
|
73
72
|
},
|
|
74
73
|
// 标识符,可以在回调函数的第二项参数中获取
|
|
75
74
|
name: {
|
|
76
75
|
type: String,
|
|
77
|
-
default:
|
|
76
|
+
default: () => uni.$u.props.upload.name
|
|
78
77
|
},
|
|
79
78
|
// 所选的图片的尺寸, 可选值为original compressed
|
|
80
79
|
sizeType: {
|
|
81
80
|
type: Array,
|
|
82
|
-
default:
|
|
81
|
+
default: () => uni.$u.props.upload.sizeType
|
|
83
82
|
},
|
|
84
83
|
// 是否开启图片多选,部分安卓机型不支持
|
|
85
84
|
multiple: {
|
|
86
85
|
type: Boolean,
|
|
87
|
-
default:
|
|
86
|
+
default: () => uni.$u.props.upload.multiple
|
|
88
87
|
},
|
|
89
88
|
// 是否展示删除按钮
|
|
90
89
|
deletable: {
|
|
91
90
|
type: Boolean,
|
|
92
|
-
default:
|
|
91
|
+
default: () => uni.$u.props.upload.deletable
|
|
93
92
|
},
|
|
94
93
|
// 文件大小限制,单位为byte
|
|
95
94
|
maxSize: {
|
|
96
95
|
type: [String, Number],
|
|
97
|
-
default:
|
|
96
|
+
default: () => uni.$u.props.upload.maxSize
|
|
98
97
|
},
|
|
99
98
|
// 显示已上传的文件列表
|
|
100
99
|
fileList: {
|
|
101
100
|
type: Array,
|
|
102
|
-
default:
|
|
101
|
+
default: () => uni.$u.props.upload.fileList
|
|
103
102
|
},
|
|
104
103
|
// 上传区域的提示文字
|
|
105
104
|
uploadText: {
|
|
106
105
|
type: String,
|
|
107
|
-
default:
|
|
106
|
+
default: () => uni.$u.props.upload.uploadText
|
|
108
107
|
},
|
|
109
108
|
// 内部预览图片区域和选择图片按钮的区域宽度
|
|
110
109
|
width: {
|
|
111
110
|
type: [String, Number],
|
|
112
|
-
default:
|
|
111
|
+
default: () => uni.$u.props.upload.width
|
|
113
112
|
},
|
|
114
113
|
// 内部预览图片区域和选择图片按钮的区域高度
|
|
115
114
|
height: {
|
|
116
115
|
type: [String, Number],
|
|
117
|
-
default:
|
|
116
|
+
default: () => uni.$u.props.upload.height
|
|
118
117
|
},
|
|
119
118
|
// 是否在上传完成后展示预览图
|
|
120
119
|
previewImage: {
|
|
121
120
|
type: Boolean,
|
|
122
|
-
default:
|
|
121
|
+
default: () => uni.$u.props.upload.previewImage
|
|
123
122
|
}
|
|
124
123
|
}
|
|
125
124
|
}
|
|
@@ -16,7 +16,7 @@ export default {
|
|
|
16
16
|
mode: 'single',
|
|
17
17
|
startText: '开始',
|
|
18
18
|
endText: '结束',
|
|
19
|
-
customList:
|
|
19
|
+
customList: [],
|
|
20
20
|
color: '#3c9cff',
|
|
21
21
|
minDate: 0,
|
|
22
22
|
maxDate: 0,
|
|
@@ -35,8 +35,8 @@ export default {
|
|
|
35
35
|
maxRange: Number.MAX_SAFE_INTEGER, // Infinity
|
|
36
36
|
rangePrompt: '',
|
|
37
37
|
showRangePrompt: true,
|
|
38
|
-
allowSameDay: false,
|
|
39
|
-
round: 0,
|
|
38
|
+
allowSameDay: false,
|
|
39
|
+
round: 0,
|
|
40
40
|
monthNum: 3
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
export default {
|
|
11
11
|
// form 组件
|
|
12
12
|
form: {
|
|
13
|
-
model:
|
|
14
|
-
rules:
|
|
13
|
+
model: {},
|
|
14
|
+
rules: {},
|
|
15
15
|
errorType: 'message',
|
|
16
16
|
borderBottom: true,
|
|
17
17
|
labelPosition: 'left',
|
|
18
18
|
labelWidth: 45,
|
|
19
19
|
labelAlign: 'left',
|
|
20
|
-
labelStyle:
|
|
20
|
+
labelStyle: {}
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -14,7 +14,7 @@ export default {
|
|
|
14
14
|
popupMode: 'bottom',
|
|
15
15
|
showToolbar: true,
|
|
16
16
|
title: '',
|
|
17
|
-
columns:
|
|
17
|
+
columns: [],
|
|
18
18
|
loading: false,
|
|
19
19
|
itemHeight: 44,
|
|
20
20
|
cancelText: '取消',
|
|
@@ -24,7 +24,7 @@ export default {
|
|
|
24
24
|
visibleItemCount: 5,
|
|
25
25
|
keyName: 'text',
|
|
26
26
|
closeOnClickOverlay: false,
|
|
27
|
-
defaultIndex:
|
|
27
|
+
defaultIndex: [],
|
|
28
28
|
immediateChange: false
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -16,10 +16,10 @@ export default {
|
|
|
16
16
|
clearabled: true,
|
|
17
17
|
focus: false,
|
|
18
18
|
showAction: true,
|
|
19
|
-
actionStyle:
|
|
19
|
+
actionStyle: {},
|
|
20
20
|
actionText: '搜索',
|
|
21
21
|
inputAlign: 'left',
|
|
22
|
-
inputStyle:
|
|
22
|
+
inputStyle: {},
|
|
23
23
|
disabled: false,
|
|
24
24
|
borderColor: 'transparent',
|
|
25
25
|
searchIconColor: '#909399',
|
|
@@ -11,20 +11,20 @@ export default {
|
|
|
11
11
|
//
|
|
12
12
|
tabs: {
|
|
13
13
|
duration: 300,
|
|
14
|
-
list:
|
|
14
|
+
list: [],
|
|
15
15
|
lineColor: '#3c9cff',
|
|
16
|
-
activeStyle:
|
|
16
|
+
activeStyle: {
|
|
17
17
|
color: '#303133'
|
|
18
|
-
}
|
|
19
|
-
inactiveStyle:
|
|
18
|
+
},
|
|
19
|
+
inactiveStyle: {
|
|
20
20
|
color: '#606266'
|
|
21
|
-
}
|
|
21
|
+
},
|
|
22
22
|
lineWidth: 20,
|
|
23
23
|
lineHeight: 3,
|
|
24
24
|
lineBgSize: 'cover',
|
|
25
|
-
itemStyle:
|
|
25
|
+
itemStyle: {
|
|
26
26
|
height: '44px'
|
|
27
|
-
}
|
|
27
|
+
},
|
|
28
28
|
scrollable: true,
|
|
29
29
|
current: 0,
|
|
30
30
|
keyName: 'name'
|
|
@@ -11,7 +11,7 @@ export default {
|
|
|
11
11
|
// upload组件
|
|
12
12
|
upload: {
|
|
13
13
|
accept: 'image',
|
|
14
|
-
capture:
|
|
14
|
+
capture: ['album', 'camera'],
|
|
15
15
|
compressed: true,
|
|
16
16
|
camera: 'back',
|
|
17
17
|
maxDuration: 60,
|
|
@@ -23,11 +23,11 @@ export default {
|
|
|
23
23
|
disabled: false,
|
|
24
24
|
imageMode: 'aspectFill',
|
|
25
25
|
name: '',
|
|
26
|
-
sizeType:
|
|
26
|
+
sizeType: ['original', 'compressed'],
|
|
27
27
|
multiple: false,
|
|
28
28
|
deletable: true,
|
|
29
29
|
maxSize: Number.MAX_VALUE,
|
|
30
|
-
fileList:
|
|
30
|
+
fileList: [],
|
|
31
31
|
uploadText: '',
|
|
32
32
|
width: 80,
|
|
33
33
|
height: 80,
|
package/libs/css/components.scss
CHANGED
|
@@ -3,7 +3,17 @@
|
|
|
3
3
|
/* #ifndef APP-NVUE */
|
|
4
4
|
// 由于uView是基于nvue环境进行开发的,此环境中普通元素默认为flex-direction: column;
|
|
5
5
|
// 所以在非nvue中,需要对元素进行重置为flex-direction: column; 否则可能会表现异常
|
|
6
|
-
view,
|
|
6
|
+
view,
|
|
7
|
+
scroll-view,
|
|
8
|
+
swiper-item,
|
|
9
|
+
.u-empty,
|
|
10
|
+
.u-empty__wrap,
|
|
11
|
+
.u-tabs,
|
|
12
|
+
.u-tabs__wrapper,
|
|
13
|
+
.u-tabs__wrapper__scroll-view-wrapper,
|
|
14
|
+
.u-tabs__wrapper__scroll-view,
|
|
15
|
+
.u-tabs__wrapper__nav,
|
|
16
|
+
.u-tabs__wrapper__nav__line {
|
|
7
17
|
display: flex;
|
|
8
18
|
flex-direction: column;
|
|
9
19
|
flex-shrink: 0;
|