uview-plus 3.1.48 → 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/changelog.md +5 -10
- 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 -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-cell/props.js +18 -17
- package/components/u-cell/u-cell.vue +2 -11
- 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/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 +0 -5
- 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-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-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-index-list/u-index-list.vue +1 -2
- 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-notify/u-notify.vue +0 -5
- 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-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-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-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-upload/props.js +23 -22
- 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,59 +1,60 @@
|
|
|
1
|
+
import defprops from '../../libs/config/props';
|
|
1
2
|
export default {
|
|
2
3
|
props: {
|
|
3
4
|
// 需要显示的提示文字
|
|
4
5
|
text: {
|
|
5
6
|
type: [String, Number],
|
|
6
|
-
default:
|
|
7
|
+
default: defprops.tooltip.text
|
|
7
8
|
},
|
|
8
9
|
// 点击复制按钮时,复制的文本,为空则使用text值
|
|
9
10
|
copyText: {
|
|
10
11
|
type: [String, Number],
|
|
11
|
-
default:
|
|
12
|
+
default: defprops.tooltip.copyText
|
|
12
13
|
},
|
|
13
14
|
// 文本大小
|
|
14
15
|
size: {
|
|
15
16
|
type: [String, Number],
|
|
16
|
-
default:
|
|
17
|
+
default: defprops.tooltip.size
|
|
17
18
|
},
|
|
18
19
|
// 字体颜色
|
|
19
20
|
color: {
|
|
20
21
|
type: String,
|
|
21
|
-
default:
|
|
22
|
+
default: defprops.tooltip.color
|
|
22
23
|
},
|
|
23
24
|
// 弹出提示框时,文本的背景色
|
|
24
25
|
bgColor: {
|
|
25
26
|
type: String,
|
|
26
|
-
default:
|
|
27
|
+
default: defprops.tooltip.bgColor
|
|
27
28
|
},
|
|
28
29
|
// 弹出提示的方向,top-上方,bottom-下方
|
|
29
30
|
direction: {
|
|
30
31
|
type: String,
|
|
31
|
-
default:
|
|
32
|
+
default: defprops.tooltip.direction
|
|
32
33
|
},
|
|
33
34
|
// 弹出提示的z-index,nvue无效
|
|
34
35
|
zIndex: {
|
|
35
36
|
type: [String, Number],
|
|
36
|
-
default:
|
|
37
|
+
default: defprops.tooltip.zIndex
|
|
37
38
|
},
|
|
38
39
|
// 是否显示复制按钮
|
|
39
40
|
showCopy: {
|
|
40
41
|
type: Boolean,
|
|
41
|
-
default:
|
|
42
|
+
default: defprops.tooltip.showCopy
|
|
42
43
|
},
|
|
43
44
|
// 扩展的按钮组
|
|
44
45
|
buttons: {
|
|
45
46
|
type: Array,
|
|
46
|
-
default:
|
|
47
|
+
default: defprops.tooltip.buttons
|
|
47
48
|
},
|
|
48
49
|
// 是否显示透明遮罩以防止触摸穿透
|
|
49
50
|
overlay: {
|
|
50
51
|
type: Boolean,
|
|
51
|
-
default:
|
|
52
|
+
default: defprops.tooltip.overlay
|
|
52
53
|
},
|
|
53
54
|
// 是否显示复制成功或者失败的toast
|
|
54
55
|
showToast: {
|
|
55
56
|
type: Boolean,
|
|
56
|
-
default:
|
|
57
|
+
default: defprops.tooltip.showToast
|
|
57
58
|
}
|
|
58
59
|
}
|
|
59
60
|
}
|
package/components/u-tr/props.js
CHANGED
|
@@ -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.transition.show
|
|
7
8
|
},
|
|
8
9
|
// 使用的动画模式
|
|
9
10
|
mode: {
|
|
10
11
|
type: String,
|
|
11
|
-
default:
|
|
12
|
+
default: defprops.transition.mode
|
|
12
13
|
},
|
|
13
14
|
// 动画的执行时间,单位ms
|
|
14
15
|
duration: {
|
|
15
16
|
type: [String, Number],
|
|
16
|
-
default:
|
|
17
|
+
default: defprops.transition.duration
|
|
17
18
|
},
|
|
18
19
|
// 使用的动画过渡函数
|
|
19
20
|
timingFunction: {
|
|
20
21
|
type: String,
|
|
21
|
-
default:
|
|
22
|
+
default: defprops.transition.timingFunction
|
|
22
23
|
}
|
|
23
24
|
}
|
|
24
25
|
}
|
|
@@ -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,10 +41,11 @@ 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
|
+
// #ifdef H5
|
|
47
47
|
await uni.$u.sleep(20)
|
|
48
|
+
// #endif
|
|
48
49
|
// 标识动画尚未结束
|
|
49
50
|
this.$emit('enter')
|
|
50
51
|
this.transitionEnded = false
|
|
@@ -65,7 +66,7 @@ export default {
|
|
|
65
66
|
// 获得类名
|
|
66
67
|
this.classes = classNames.leave
|
|
67
68
|
|
|
68
|
-
await nextTick();
|
|
69
|
+
await nextTick();
|
|
69
70
|
{
|
|
70
71
|
// 动画正在离场的状态
|
|
71
72
|
this.transitionEnded = false
|
|
@@ -93,7 +94,7 @@ export default {
|
|
|
93
94
|
opacity: 0
|
|
94
95
|
}
|
|
95
96
|
// 等待弹窗内容渲染完成
|
|
96
|
-
await nextTick();
|
|
97
|
+
await nextTick();
|
|
97
98
|
{
|
|
98
99
|
// 合并样式
|
|
99
100
|
this.viewStyle = currentStyle.enter
|
|
@@ -1,44 +1,45 @@
|
|
|
1
|
+
import defprops from '../../libs/config/props';
|
|
1
2
|
export default {
|
|
2
3
|
props: {
|
|
3
4
|
// 接受的文件类型, 可选值为all media image file video
|
|
4
5
|
accept: {
|
|
5
6
|
type: String,
|
|
6
|
-
default:
|
|
7
|
+
default: defprops.upload.accept
|
|
7
8
|
},
|
|
8
9
|
// 图片或视频拾取模式,当accept为image类型时设置capture可选额外camera可以直接调起摄像头
|
|
9
10
|
capture: {
|
|
10
11
|
type: [String, Array],
|
|
11
|
-
default:
|
|
12
|
+
default: defprops.upload.capture
|
|
12
13
|
},
|
|
13
14
|
// 当accept为video时生效,是否压缩视频,默认为true
|
|
14
15
|
compressed: {
|
|
15
16
|
type: Boolean,
|
|
16
|
-
default:
|
|
17
|
+
default: defprops.upload.compressed
|
|
17
18
|
},
|
|
18
19
|
// 当accept为video时生效,可选值为back或front
|
|
19
20
|
camera: {
|
|
20
21
|
type: String,
|
|
21
|
-
default:
|
|
22
|
+
default: defprops.upload.camera
|
|
22
23
|
},
|
|
23
24
|
// 当accept为video时生效,拍摄视频最长拍摄时间,单位秒
|
|
24
25
|
maxDuration: {
|
|
25
26
|
type: Number,
|
|
26
|
-
default:
|
|
27
|
+
default: defprops.upload.maxDuration
|
|
27
28
|
},
|
|
28
29
|
// 上传区域的图标,只能内置图标
|
|
29
30
|
uploadIcon: {
|
|
30
31
|
type: String,
|
|
31
|
-
default:
|
|
32
|
+
default: defprops.upload.uploadIcon
|
|
32
33
|
},
|
|
33
34
|
// 上传区域的图标的颜色,默认
|
|
34
35
|
uploadIconColor: {
|
|
35
36
|
type: String,
|
|
36
|
-
default:
|
|
37
|
+
default: defprops.upload.uploadIconColor
|
|
37
38
|
},
|
|
38
39
|
// 是否开启文件读取前事件
|
|
39
40
|
useBeforeRead: {
|
|
40
41
|
type: Boolean,
|
|
41
|
-
default:
|
|
42
|
+
default: defprops.upload.useBeforeRead
|
|
42
43
|
},
|
|
43
44
|
// 读取后的处理函数
|
|
44
45
|
afterRead: {
|
|
@@ -53,72 +54,72 @@ export default {
|
|
|
53
54
|
// 是否显示组件自带的图片预览功能
|
|
54
55
|
previewFullImage: {
|
|
55
56
|
type: Boolean,
|
|
56
|
-
default:
|
|
57
|
+
default: defprops.upload.previewFullImage
|
|
57
58
|
},
|
|
58
59
|
// 最大上传数量
|
|
59
60
|
maxCount: {
|
|
60
61
|
type: [String, Number],
|
|
61
|
-
default:
|
|
62
|
+
default: defprops.upload.maxCount
|
|
62
63
|
},
|
|
63
64
|
// 是否启用
|
|
64
65
|
disabled: {
|
|
65
66
|
type: Boolean,
|
|
66
|
-
default:
|
|
67
|
+
default: defprops.upload.disabled
|
|
67
68
|
},
|
|
68
69
|
// 预览上传的图片时的裁剪模式,和image组件mode属性一致
|
|
69
70
|
imageMode: {
|
|
70
71
|
type: String,
|
|
71
|
-
default:
|
|
72
|
+
default: defprops.upload.imageMode
|
|
72
73
|
},
|
|
73
74
|
// 标识符,可以在回调函数的第二项参数中获取
|
|
74
75
|
name: {
|
|
75
76
|
type: String,
|
|
76
|
-
default:
|
|
77
|
+
default: defprops.upload.name
|
|
77
78
|
},
|
|
78
79
|
// 所选的图片的尺寸, 可选值为original compressed
|
|
79
80
|
sizeType: {
|
|
80
81
|
type: Array,
|
|
81
|
-
default:
|
|
82
|
+
default: defprops.upload.sizeType
|
|
82
83
|
},
|
|
83
84
|
// 是否开启图片多选,部分安卓机型不支持
|
|
84
85
|
multiple: {
|
|
85
86
|
type: Boolean,
|
|
86
|
-
default:
|
|
87
|
+
default: defprops.upload.multiple
|
|
87
88
|
},
|
|
88
89
|
// 是否展示删除按钮
|
|
89
90
|
deletable: {
|
|
90
91
|
type: Boolean,
|
|
91
|
-
default:
|
|
92
|
+
default: defprops.upload.deletable
|
|
92
93
|
},
|
|
93
94
|
// 文件大小限制,单位为byte
|
|
94
95
|
maxSize: {
|
|
95
96
|
type: [String, Number],
|
|
96
|
-
default:
|
|
97
|
+
default: defprops.upload.maxSize
|
|
97
98
|
},
|
|
98
99
|
// 显示已上传的文件列表
|
|
99
100
|
fileList: {
|
|
100
101
|
type: Array,
|
|
101
|
-
default:
|
|
102
|
+
default: defprops.upload.fileList
|
|
102
103
|
},
|
|
103
104
|
// 上传区域的提示文字
|
|
104
105
|
uploadText: {
|
|
105
106
|
type: String,
|
|
106
|
-
default:
|
|
107
|
+
default: defprops.upload.uploadText
|
|
107
108
|
},
|
|
108
109
|
// 内部预览图片区域和选择图片按钮的区域宽度
|
|
109
110
|
width: {
|
|
110
111
|
type: [String, Number],
|
|
111
|
-
default:
|
|
112
|
+
default: defprops.upload.width
|
|
112
113
|
},
|
|
113
114
|
// 内部预览图片区域和选择图片按钮的区域高度
|
|
114
115
|
height: {
|
|
115
116
|
type: [String, Number],
|
|
116
|
-
default:
|
|
117
|
+
default: defprops.upload.height
|
|
117
118
|
},
|
|
118
119
|
// 是否在上传完成后展示预览图
|
|
119
120
|
previewImage: {
|
|
120
121
|
type: Boolean,
|
|
121
|
-
default:
|
|
122
|
+
default: defprops.upload.previewImage
|
|
122
123
|
}
|
|
123
124
|
}
|
|
124
125
|
}
|
|
@@ -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: ['album', 'camera'],
|
|
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: ['original', 'compressed'],
|
|
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,17 +3,7 @@
|
|
|
3
3
|
/* #ifndef APP-NVUE */
|
|
4
4
|
// 由于uView是基于nvue环境进行开发的,此环境中普通元素默认为flex-direction: column;
|
|
5
5
|
// 所以在非nvue中,需要对元素进行重置为flex-direction: column; 否则可能会表现异常
|
|
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 {
|
|
6
|
+
view, scroll-view, swiper-item {
|
|
17
7
|
display: flex;
|
|
18
8
|
flex-direction: column;
|
|
19
9
|
flex-shrink: 0;
|