fusions-ui 1.2.4 → 1.2.7
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/components/fu-avatar/fu-avatar.vue +4 -2
- package/components/fu-avatar/props.js +52 -15
- package/components/fu-avatar-group/fu-avatar-group.vue +3 -2
- package/components/fu-avatar-group/props.js +31 -9
- package/components/fu-badge/fu-badge.vue +8 -14
- package/components/fu-badge/props.js +56 -16
- package/components/fu-banner-arc/fu-banner-arc.vue +4 -5
- package/components/fu-banner-arc/props.js +15 -4
- package/components/fu-button/fu-button.vue +18 -20
- package/components/fu-button/props.js +108 -35
- package/components/fu-cell/fu-cell.vue +9 -8
- package/components/fu-cell-group/fu-cell-group.vue +2 -1
- package/components/fu-cell-group/props.js +7 -2
- package/components/fu-checkbox/fu-checkbox.vue +5 -4
- package/components/fu-checkbox/props.js +51 -14
- package/components/fu-code-input/fu-code-input.vue +10 -6
- package/components/fu-code-input/props.js +66 -17
- package/components/fu-code-verify/fu-code-verify.vue +9 -5
- package/components/fu-code-verify/props.js +64 -17
- package/components/fu-collapse/fu-collapse.vue +10 -3
- package/components/fu-collapse/props.js +9 -3
- package/components/fu-collapse-item/fu-collapse-item.vue +45 -31
- package/components/fu-collapse-item/props.js +49 -16
- package/components/fu-countdown/fu-countdown.vue +2 -1
- package/components/fu-countdown/props.js +15 -4
- package/components/fu-datetime-picker/fu-datetime-picker.vue +6 -5
- package/components/fu-datetime-picker/props.js +91 -25
- package/components/fu-form/fu-form.vue +2 -1
- package/components/fu-form/props.js +34 -6
- package/components/fu-form-item/fu-form-item.vue +26 -33
- package/components/fu-form-item/props.js +30 -8
- package/components/fu-grid/fu-grid.vue +16 -17
- package/components/fu-grid/props.js +20 -5
- package/components/fu-grid-item/fu-grid-item.vue +31 -35
- package/components/fu-grid-item/props.js +11 -3
- package/components/fu-icon/fu-icon.vue +110 -0
- package/components/fu-icon/fuicon.css +584 -0
- package/components/{fu-icons/icons.js → fu-icon/fuicon.js} +1031 -1031
- package/components/{fu-icons/fuicons.ttf → fu-icon/fuicon.ttf} +0 -0
- package/components/fu-icon/props.js +55 -0
- package/components/fu-image/fu-image.vue +15 -10
- package/components/fu-image/props.js +69 -18
- package/components/fu-index-anchor/fu-index-anchor.vue +6 -5
- package/components/fu-index-anchor/props.js +20 -6
- package/components/fu-index-item/fu-index-item.vue +4 -4
- package/components/fu-index-list/fu-index-list.vue +9 -9
- package/components/fu-index-list/props.js +19 -6
- package/components/fu-input/fu-input.vue +54 -68
- package/components/fu-input/props.js +145 -53
- package/components/fu-keyboard/fu-keyboard.vue +19 -9
- package/components/fu-keyboard/keyboard-car.vue +33 -22
- package/components/fu-keyboard/keyboard-number.vue +17 -9
- package/components/fu-keyboard/props.js +66 -17
- package/components/fu-line/fu-line.vue +17 -13
- package/components/fu-line/props.js +30 -5
- package/components/fu-link/fu-link.vue +14 -8
- package/components/fu-link/props.js +22 -7
- package/components/fu-loading/fu-loading.vue +32 -27
- package/components/fu-loading/props.js +28 -8
- package/components/fu-loading-more/fu-loading-more.vue +19 -23
- package/components/fu-loading-more/props.js +27 -13
- package/components/fu-modal/fu-modal.vue +11 -6
- package/components/fu-modal/props.js +61 -17
- package/components/{fu-nav-bar/fu-nav-bar.vue → fu-navbar/fu-navbar.vue} +37 -44
- package/components/fu-notice-bar/fu-notice-bar.vue +10 -8
- package/components/fu-notice-bar/notice-column.vue +187 -122
- package/components/fu-notice-bar/notice-row.vue +85 -28
- package/components/fu-notice-bar/props.js +83 -22
- package/components/fu-number-box/fu-number-box.vue +26 -28
- package/components/fu-number-box/props.js +37 -11
- package/components/fu-parse/fu-parse.vue +0 -1
- package/components/fu-picker/fu-picker.vue +22 -17
- package/components/fu-picker/props.js +70 -19
- package/components/fu-popup/fu-popup.vue +38 -43
- package/components/fu-popup/props.js +34 -9
- package/components/fu-progress/fu-progress.vue +3 -2
- package/components/fu-progress/props.js +36 -9
- package/components/fu-rate/fu-rate.vue +40 -32
- package/components/fu-rate/props.js +47 -13
- package/components/fu-read-more/fu-read-more.vue +19 -14
- package/components/fu-read-more/props.js +68 -46
- package/components/fu-ribbon/fu-ribbon.vue +8 -7
- package/components/fu-ribbon/props.js +15 -4
- package/components/fu-scroll-list/fu-scroll-list.vue +18 -34
- package/components/fu-scroll-list/props.js +19 -10
- package/components/fu-search/fu-search.vue +13 -18
- package/components/fu-search/props.js +69 -17
- package/components/fu-section/fu-section.vue +19 -22
- package/components/fu-section/props.js +30 -4
- package/components/fu-sign-board/fu-sign-board.vue +34 -17
- package/components/fu-sign-board/props.js +15 -5
- package/components/fu-skeleton/fu-skeleton.vue +8 -12
- package/components/fu-skeleton/props.js +15 -4
- package/components/fu-steps/fu-steps.vue +3 -2
- package/components/fu-steps/props.js +23 -7
- package/components/fu-steps-item/fu-steps-item.vue +3 -3
- package/components/fu-steps-item/props.js +15 -5
- package/components/fu-sticky/fu-sticky.vue +3 -3
- package/components/fu-sticky/props.js +21 -7
- package/components/fu-subsection/fu-subsection.vue +29 -22
- package/components/fu-subsection/props.js +40 -10
- package/components/fu-swipe-action-item/bindingx.js +1 -1
- package/components/fu-swipe-action-item/fu-swipe-action-item.vue +134 -123
- package/components/fu-swipe-action-item/mpwxs.js +1 -1
- package/components/fu-swipe-action-item/props.js +22 -6
- package/components/fu-swiper/fu-swiper.vue +29 -27
- package/components/fu-swiper/props.js +81 -25
- package/components/fu-switch/fu-switch.vue +20 -12
- package/components/fu-switch/props.js +48 -13
- package/components/fu-tabs/fu-tabs.vue +36 -33
- package/components/fu-tabs/props.js +46 -13
- package/components/fu-tag/fu-tag.vue +24 -21
- package/components/fu-tag/props.js +63 -17
- package/components/fu-text/fu-text.vue +72 -33
- package/components/fu-text/props.js +85 -27
- package/components/fu-text/value.js +6 -6
- package/components/fu-textarea/fu-textarea.vue +13 -17
- package/components/fu-textarea/props.js +103 -30
- package/components/fu-timeaxis/fu-timeaxis.vue +1 -1
- package/components/fu-timeaxis-item/fu-timeaxis-item.vue +8 -4
- package/components/fu-transition/fu-transition.vue +48 -49
- package/components/fu-transition/props.js +21 -0
- package/components/fu-upload/fu-upload.vue +3 -1
- package/components/fu-upload/props.js +67 -19
- package/components/fu-upload/upload-file.vue +31 -18
- package/components/fu-upload/upload-image.vue +37 -19
- package/components/fu-vtabs/fu-vtabs.vue +6 -4
- package/components/fu-vtabs/props.js +50 -15
- package/components/fu-waterfall/fu-waterfall.vue +11 -9
- package/components/fu-waterfall/props.js +37 -15
- package/index.js +17 -24
- package/index.scss +9 -7
- package/libs/config/config.js +16 -9
- package/libs/function/applyEven.js +9 -9
- package/libs/function/check.js +81 -89
- package/libs/function/{index.js → common.js} +5 -5
- package/libs/function/message.js +0 -27
- package/libs/mixin/mixin.js +26 -21
- package/libs/{utils/min.router.config.js → route/min.route.config.js} +7 -7
- package/libs/{utils/router.config.js → route/route.config.js} +10 -11
- package/libs/{css/main.scss → style/common.scss} +50 -87
- package/libs/style/style.h5.scss +8 -0
- package/libs/style/style.mp.scss +15 -0
- package/package.json +1 -1
- package/components/fu-calendar/calendar-item.vue +0 -214
- package/components/fu-calendar/calendar.js +0 -546
- package/components/fu-calendar/fu-calendar.vue +0 -536
- package/components/fu-calendar/i18n/en.json +0 -12
- package/components/fu-calendar/i18n/index.js +0 -8
- package/components/fu-calendar/i18n/zh-Hans.json +0 -12
- package/components/fu-calendar/i18n/zh-Hant.json +0 -12
- package/components/fu-calendar/util.js +0 -360
- package/components/fu-date-picker/calendar-item.vue +0 -177
- package/components/fu-date-picker/calendar.vue +0 -917
- package/components/fu-date-picker/fu-date-picker.vue +0 -1069
- package/components/fu-date-picker/i18n/en.json +0 -22
- package/components/fu-date-picker/i18n/index.js +0 -8
- package/components/fu-date-picker/i18n/zh-Hans.json +0 -22
- package/components/fu-date-picker/i18n/zh-Hant.json +0 -22
- package/components/fu-date-picker/props.js +0 -68
- package/components/fu-date-picker/time-picker.vue +0 -924
- package/components/fu-date-picker/util.js +0 -419
- package/components/fu-icons/fu-icons.vue +0 -102
- package/components/fu-icons/fuicons.css +0 -585
- package/components/fu-landscape/fu-landscape.vue +0 -167
- package/components/fu-landscape/props.js +0 -64
- package/components/fu-tabbar/fu-tabbar.vue +0 -333
- package/components/fu-tabbar/props.js +0 -78
- package/libs/css/style.h5.scss +0 -35
- package/libs/css/style.mp.scss +0 -50
- package/libs/utils/util.js +0 -58
- /package/components/{fu-nav-bar → fu-navbar}/props.js +0 -0
- /package/components/{fu-nav-bar → fu-navbar}/status-bar.vue +0 -0
- /package/{components/fu-datetime-picker → libs/function}/dayjs.js +0 -0
- /package/libs/{css → style}/color.scss +0 -0
- /package/libs/{css/component.scss → style/components.scss} +0 -0
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
props: {
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* @description value 组件数据,通常用来回显 ,类型由return-type属性决定
|
|
5
|
+
*/
|
|
4
6
|
value: {
|
|
5
7
|
type: [Array,Object],
|
|
6
8
|
default () {
|
|
@@ -13,49 +15,74 @@ export default {
|
|
|
13
15
|
return []
|
|
14
16
|
}
|
|
15
17
|
},
|
|
16
|
-
|
|
18
|
+
/**
|
|
19
|
+
* @description 组件禁用
|
|
20
|
+
* @default false
|
|
21
|
+
*/
|
|
17
22
|
disabled: {
|
|
18
23
|
type: Boolean,
|
|
19
24
|
default: false
|
|
20
25
|
},
|
|
21
|
-
|
|
26
|
+
/**
|
|
27
|
+
* @description 禁用图片预览,仅mode为grid时生效
|
|
28
|
+
* @default false
|
|
29
|
+
*/
|
|
22
30
|
disablePreview: {
|
|
23
31
|
type: Boolean,
|
|
24
32
|
default: false
|
|
25
33
|
},
|
|
26
|
-
|
|
34
|
+
/**
|
|
35
|
+
* @description 是否显示删除按钮
|
|
36
|
+
* @default true
|
|
37
|
+
*/
|
|
27
38
|
delIcon: {
|
|
28
39
|
type: Boolean,
|
|
29
40
|
default: true
|
|
30
41
|
},
|
|
31
|
-
|
|
42
|
+
/**
|
|
43
|
+
* @description 是否自动上传,值为true则只触发@select,可自行上传
|
|
44
|
+
* @default false
|
|
45
|
+
*/
|
|
32
46
|
autoUpload: {
|
|
33
47
|
type: Boolean,
|
|
34
48
|
default: false
|
|
35
49
|
},
|
|
36
|
-
|
|
50
|
+
/**
|
|
51
|
+
* @description 最大选择个数,h5会自动忽略多选的部分
|
|
52
|
+
* @default 9
|
|
53
|
+
*/
|
|
37
54
|
maxCount: {
|
|
38
55
|
type: [String,Number],
|
|
39
56
|
default: 9
|
|
40
57
|
},
|
|
41
|
-
|
|
58
|
+
/**
|
|
59
|
+
* @description 选择文件类型,可选值:image/video/all
|
|
60
|
+
* @default 'image'
|
|
61
|
+
*/
|
|
42
62
|
fileType: {
|
|
43
63
|
type: String,
|
|
44
64
|
default: 'image'
|
|
45
65
|
},
|
|
46
|
-
|
|
66
|
+
/**
|
|
67
|
+
* @description 选择文件后的文件列表样式,可选值:grid/list
|
|
68
|
+
* @default 'grid'
|
|
69
|
+
*/
|
|
47
70
|
mode: {
|
|
48
71
|
type: String,
|
|
49
72
|
default: 'grid'
|
|
50
73
|
},
|
|
51
|
-
|
|
74
|
+
/**
|
|
75
|
+
* @description 选择文件后缀,根据 fileType 属性而不同
|
|
76
|
+
*/
|
|
52
77
|
fileExtname: {
|
|
53
78
|
type: [Array,String],
|
|
54
79
|
default () {
|
|
55
80
|
return []
|
|
56
81
|
}
|
|
57
82
|
},
|
|
58
|
-
|
|
83
|
+
/**
|
|
84
|
+
* @description 定义列表样式,mode为list时的样式
|
|
85
|
+
*/
|
|
59
86
|
listStyles: {
|
|
60
87
|
type: Object,
|
|
61
88
|
default () {
|
|
@@ -69,7 +96,9 @@ export default {
|
|
|
69
96
|
}
|
|
70
97
|
}
|
|
71
98
|
},
|
|
72
|
-
|
|
99
|
+
/**
|
|
100
|
+
* @description 自定义图片样式 选择文件后缀,根据 fileType 属性而不同
|
|
101
|
+
*/
|
|
73
102
|
imageStyles: {
|
|
74
103
|
type: Object,
|
|
75
104
|
default () {
|
|
@@ -79,42 +108,61 @@ export default {
|
|
|
79
108
|
}
|
|
80
109
|
}
|
|
81
110
|
},
|
|
82
|
-
|
|
111
|
+
/**
|
|
112
|
+
* @description 是否只读
|
|
113
|
+
* @default false
|
|
114
|
+
*/
|
|
83
115
|
readonly: {
|
|
84
116
|
type: Boolean,
|
|
85
117
|
default: false
|
|
86
118
|
},
|
|
87
|
-
|
|
119
|
+
/**
|
|
120
|
+
* @description 返回类型数据格式,当为 object 时,只能单选,且会覆盖,可选值:array/object
|
|
121
|
+
* @default 'array'
|
|
122
|
+
*/
|
|
88
123
|
returnType: {
|
|
89
124
|
type: String,
|
|
90
125
|
default: 'array'
|
|
91
126
|
},
|
|
92
|
-
|
|
127
|
+
/**
|
|
128
|
+
* @description original原图,compressed 压缩图,默认二者都有
|
|
129
|
+
*/
|
|
93
130
|
sizeType: {
|
|
94
131
|
type: Array,
|
|
95
132
|
default () {
|
|
96
133
|
return ['original', 'compressed']
|
|
97
134
|
}
|
|
98
135
|
},
|
|
99
|
-
|
|
100
|
-
|
|
136
|
+
/**
|
|
137
|
+
* @description album 从相册选图,camera 使用相机,默认二者都有。如需直接开相机或直接选相册,请只使用一个选项
|
|
138
|
+
* 注意:sourceType 值在 H5 平台根据浏览器的不同而表现不同,一般不可限制仅使用相册,部分浏览器也无法限制是否使用相机
|
|
139
|
+
*/
|
|
101
140
|
sourceType: {
|
|
102
141
|
type: Array,
|
|
103
142
|
default () {
|
|
104
143
|
return ['album', 'camera']
|
|
105
144
|
}
|
|
106
145
|
},
|
|
107
|
-
|
|
146
|
+
/**
|
|
147
|
+
* @description 相机类型,仅fileType为video有效,可选值:front/back
|
|
148
|
+
* @default 'back'
|
|
149
|
+
*/
|
|
108
150
|
camera: {
|
|
109
151
|
type: String,
|
|
110
152
|
default: 'back'
|
|
111
153
|
},
|
|
112
|
-
|
|
154
|
+
/**
|
|
155
|
+
* @description 是否压缩所选视频源文件,仅fileType为video有效
|
|
156
|
+
* @default true
|
|
157
|
+
*/
|
|
113
158
|
compressed: {
|
|
114
159
|
type: Boolean,
|
|
115
160
|
default: true
|
|
116
161
|
},
|
|
117
|
-
|
|
162
|
+
/**
|
|
163
|
+
* @description 是否显示已上传的文件列表
|
|
164
|
+
* @default true
|
|
165
|
+
*/
|
|
118
166
|
showFileList: {
|
|
119
167
|
type: Boolean,
|
|
120
168
|
default: true
|
|
@@ -46,27 +46,39 @@
|
|
|
46
46
|
name: "uploadFile",
|
|
47
47
|
emits:['uploadFiles', 'choose', 'delFile'],
|
|
48
48
|
props: {
|
|
49
|
-
|
|
49
|
+
/**
|
|
50
|
+
* @description 数组
|
|
51
|
+
*/
|
|
50
52
|
fileList: {
|
|
51
53
|
type: Array,
|
|
52
54
|
default: () => []
|
|
53
55
|
},
|
|
54
|
-
|
|
56
|
+
/**
|
|
57
|
+
* @description 是否禁用
|
|
58
|
+
* @default false
|
|
59
|
+
*/
|
|
55
60
|
disabled: {
|
|
56
61
|
type: Boolean,
|
|
57
62
|
default: false
|
|
58
63
|
},
|
|
59
|
-
|
|
64
|
+
/**
|
|
65
|
+
* @description 是否显示删除图标
|
|
66
|
+
*/
|
|
60
67
|
delIcon: {
|
|
61
68
|
type: Boolean,
|
|
62
69
|
default: true
|
|
63
70
|
},
|
|
64
|
-
|
|
71
|
+
/**
|
|
72
|
+
* @description 最大限制数量
|
|
73
|
+
* @default 9
|
|
74
|
+
*/
|
|
65
75
|
maxCount: {
|
|
66
76
|
type: [Number, String],
|
|
67
77
|
default: 9
|
|
68
78
|
},
|
|
69
|
-
|
|
79
|
+
/**
|
|
80
|
+
* @description list样式
|
|
81
|
+
*/
|
|
70
82
|
listStyles: {
|
|
71
83
|
type: Object,
|
|
72
84
|
default () {
|
|
@@ -80,12 +92,18 @@
|
|
|
80
92
|
}
|
|
81
93
|
}
|
|
82
94
|
},
|
|
83
|
-
|
|
95
|
+
/**
|
|
96
|
+
* @description 是否只读
|
|
97
|
+
* @default false
|
|
98
|
+
*/
|
|
84
99
|
readonly:{
|
|
85
100
|
type:Boolean,
|
|
86
101
|
default: false
|
|
87
102
|
},
|
|
88
|
-
|
|
103
|
+
/**
|
|
104
|
+
* @description 是否显示已上传的文件列表
|
|
105
|
+
* @default true
|
|
106
|
+
*/
|
|
89
107
|
showFileList: {
|
|
90
108
|
type: Boolean,
|
|
91
109
|
default: true
|
|
@@ -185,11 +203,10 @@
|
|
|
185
203
|
</script>
|
|
186
204
|
|
|
187
205
|
<style lang="scss" scoped>
|
|
206
|
+
@import '../../libs/style/components.scss';
|
|
207
|
+
|
|
188
208
|
.fu-file-picker__files {
|
|
189
|
-
|
|
190
|
-
display: flex;
|
|
191
|
-
/* #endif */
|
|
192
|
-
flex-direction: column;
|
|
209
|
+
@include flex(column);
|
|
193
210
|
justify-content: flex-start;
|
|
194
211
|
}
|
|
195
212
|
|
|
@@ -200,9 +217,7 @@
|
|
|
200
217
|
}
|
|
201
218
|
|
|
202
219
|
.file-picker__mask {
|
|
203
|
-
|
|
204
|
-
display: flex;
|
|
205
|
-
/* #endif */
|
|
220
|
+
@include flex;
|
|
206
221
|
justify-content: center;
|
|
207
222
|
align-items: center;
|
|
208
223
|
position: absolute;
|
|
@@ -220,9 +235,7 @@
|
|
|
220
235
|
}
|
|
221
236
|
|
|
222
237
|
.fu-file-picker__item {
|
|
223
|
-
|
|
224
|
-
display: flex;
|
|
225
|
-
/* #endif */
|
|
238
|
+
@include flex;
|
|
226
239
|
align-items: center;
|
|
227
240
|
padding: 8px 10px;
|
|
228
241
|
padding-right: 5px;
|
|
@@ -287,8 +300,8 @@
|
|
|
287
300
|
}
|
|
288
301
|
|
|
289
302
|
.icon-del-box {
|
|
303
|
+
@include flex;
|
|
290
304
|
/* #ifndef APP-NVUE */
|
|
291
|
-
display: flex;
|
|
292
305
|
margin: auto 0;
|
|
293
306
|
/* #endif */
|
|
294
307
|
align-items: center;
|
|
@@ -41,27 +41,40 @@
|
|
|
41
41
|
name: "UploadImage",
|
|
42
42
|
emits: ['choose', 'uploadFiles', 'delFile'],
|
|
43
43
|
props: {
|
|
44
|
-
|
|
44
|
+
/**
|
|
45
|
+
* @description 数组
|
|
46
|
+
*/
|
|
45
47
|
list: {
|
|
46
48
|
type: Array,
|
|
47
49
|
default: () => []
|
|
48
50
|
},
|
|
49
|
-
|
|
51
|
+
/**
|
|
52
|
+
* @description 是否禁用
|
|
53
|
+
* @default false
|
|
54
|
+
*/
|
|
50
55
|
disabled: {
|
|
51
56
|
type: Boolean,
|
|
52
57
|
default: false
|
|
53
58
|
},
|
|
54
|
-
|
|
59
|
+
/**
|
|
60
|
+
* @description 是否禁用预览
|
|
61
|
+
* @default false
|
|
62
|
+
*/
|
|
55
63
|
disablePreview: {
|
|
56
64
|
type: Boolean,
|
|
57
65
|
default: false
|
|
58
66
|
},
|
|
59
|
-
|
|
67
|
+
/**
|
|
68
|
+
* @description 最大限制数量
|
|
69
|
+
* @default 9
|
|
70
|
+
*/
|
|
60
71
|
maxCount: {
|
|
61
72
|
type: [Number, String],
|
|
62
73
|
default: 9
|
|
63
74
|
},
|
|
64
|
-
|
|
75
|
+
/**
|
|
76
|
+
* @description 自定义样式
|
|
77
|
+
*/
|
|
65
78
|
imageStyles: {
|
|
66
79
|
type: Object,
|
|
67
80
|
default () {
|
|
@@ -72,17 +85,26 @@
|
|
|
72
85
|
}
|
|
73
86
|
}
|
|
74
87
|
},
|
|
75
|
-
|
|
88
|
+
/**
|
|
89
|
+
* @description 是否显示删除图标
|
|
90
|
+
* @default true
|
|
91
|
+
*/
|
|
76
92
|
delIcon: {
|
|
77
93
|
type: Boolean,
|
|
78
94
|
default: true
|
|
79
95
|
},
|
|
80
|
-
|
|
96
|
+
/**
|
|
97
|
+
* @description 是否只读
|
|
98
|
+
* @default false
|
|
99
|
+
*/
|
|
81
100
|
readonly:{
|
|
82
101
|
type: Boolean,
|
|
83
102
|
default: false
|
|
84
103
|
},
|
|
85
|
-
|
|
104
|
+
/**
|
|
105
|
+
* @description 是否显示已上传的文件列表
|
|
106
|
+
* @default true
|
|
107
|
+
*/
|
|
86
108
|
showFileList: {
|
|
87
109
|
type: Boolean,
|
|
88
110
|
default: true
|
|
@@ -94,7 +116,7 @@
|
|
|
94
116
|
width: 'auto',
|
|
95
117
|
height: 'auto',
|
|
96
118
|
border: {}
|
|
97
|
-
}
|
|
119
|
+
};
|
|
98
120
|
return this.$fu.deepMerge(styles, this.$fu.addStyle(this.imageStyles))
|
|
99
121
|
},
|
|
100
122
|
boxStyle() {
|
|
@@ -183,9 +205,11 @@
|
|
|
183
205
|
</script>
|
|
184
206
|
|
|
185
207
|
<style lang="scss" scoped>
|
|
208
|
+
@import '../../libs/style/components.scss';
|
|
209
|
+
|
|
186
210
|
.fu-upload-image {
|
|
211
|
+
@include flex;
|
|
187
212
|
/* #ifndef APP-NVUE */
|
|
188
|
-
display: flex;
|
|
189
213
|
box-sizing: border-box;
|
|
190
214
|
/* #endif */
|
|
191
215
|
flex-wrap: wrap;
|
|
@@ -226,9 +250,7 @@
|
|
|
226
250
|
}
|
|
227
251
|
|
|
228
252
|
&__mask {
|
|
229
|
-
|
|
230
|
-
display: flex;
|
|
231
|
-
/* #endif */
|
|
253
|
+
@include flex;
|
|
232
254
|
justify-content: center;
|
|
233
255
|
align-items: center;
|
|
234
256
|
position: absolute;
|
|
@@ -248,9 +270,7 @@
|
|
|
248
270
|
}
|
|
249
271
|
|
|
250
272
|
.add-wrap {
|
|
251
|
-
|
|
252
|
-
display: flex;
|
|
253
|
-
/* #endif */
|
|
273
|
+
@include flex;
|
|
254
274
|
align-items: center;
|
|
255
275
|
justify-content: center;
|
|
256
276
|
}
|
|
@@ -261,9 +281,7 @@
|
|
|
261
281
|
}
|
|
262
282
|
|
|
263
283
|
.icon-del-box {
|
|
264
|
-
|
|
265
|
-
display: flex;
|
|
266
|
-
/* #endif */
|
|
284
|
+
@include flex;
|
|
267
285
|
align-items: center;
|
|
268
286
|
justify-content: center;
|
|
269
287
|
position: absolute;
|
|
@@ -99,6 +99,8 @@
|
|
|
99
99
|
* @property {Object} barItemActiveLineStyle 左侧选项区域选中选项竖线条的自定义样式
|
|
100
100
|
* @property {Object} barItemBadgeStyle 左侧选项区域选中选项徽标的自定义样式,主要用于设置位置
|
|
101
101
|
* @property {Object} contentStyle 右侧区域自定义样式
|
|
102
|
+
* @property {Object,String} customStyle 定义需要用到的外部样式
|
|
103
|
+
*
|
|
102
104
|
* @event {Function} change 选项改变时触发
|
|
103
105
|
* @event {Function} scrolltolower 内容滚动到底部触发
|
|
104
106
|
* @example <fu-vtabs :list="list"><fu-vtabs-item>...</fu-vtabs-item></fu-vtabs>
|
|
@@ -361,7 +363,7 @@
|
|
|
361
363
|
current(newVal){
|
|
362
364
|
if(!this.touching)
|
|
363
365
|
this.$nextTick(()=>{
|
|
364
|
-
this.init(newVal?newVal:0);
|
|
366
|
+
this.init(newVal? newVal: 0);
|
|
365
367
|
})
|
|
366
368
|
},
|
|
367
369
|
list(newVal) {
|
|
@@ -375,15 +377,15 @@
|
|
|
375
377
|
if(!this.chain) {// 解决:非联动,内容过多的情况,滚动一段距离,再切换未滚动到顶部的BUG
|
|
376
378
|
this.contentScrollTopTwo = 0 - Math.random() * 4 - 4;
|
|
377
379
|
}
|
|
378
|
-
this.$emit('change',newVal);
|
|
380
|
+
this.$emit('change', newVal);
|
|
379
381
|
}
|
|
380
382
|
}
|
|
381
383
|
}
|
|
382
384
|
</script>
|
|
383
385
|
|
|
384
386
|
<style lang="scss" scoped>
|
|
385
|
-
@import '../../libs/
|
|
386
|
-
@import '../../libs/
|
|
387
|
+
@import '../../libs/style/components.scss';
|
|
388
|
+
@import '../../libs/style/color.scss';
|
|
387
389
|
|
|
388
390
|
.fu-vtabs {
|
|
389
391
|
@include flex;
|
|
@@ -1,76 +1,111 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
props: {
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* @description 列表数据
|
|
5
|
+
*/
|
|
4
6
|
list: {
|
|
5
7
|
type: Array,
|
|
6
8
|
default: () => []
|
|
7
9
|
},
|
|
8
|
-
|
|
10
|
+
/**
|
|
11
|
+
* @description 从list元素对象中读取的键名
|
|
12
|
+
* @default 'name'
|
|
13
|
+
*/
|
|
9
14
|
keyName: {
|
|
10
15
|
type: String,
|
|
11
16
|
default: 'name'
|
|
12
17
|
},
|
|
13
|
-
|
|
18
|
+
/**
|
|
19
|
+
* @description 当前选中项
|
|
20
|
+
*/
|
|
14
21
|
current: {
|
|
15
22
|
type: [String,Number],
|
|
16
23
|
default: 0
|
|
17
24
|
},
|
|
18
|
-
|
|
25
|
+
/**
|
|
26
|
+
* @description 头部内容的高度
|
|
27
|
+
*/
|
|
19
28
|
hdHeight: {
|
|
20
29
|
type: [String,Number],
|
|
21
30
|
default: 0
|
|
22
31
|
},
|
|
23
|
-
|
|
32
|
+
/**
|
|
33
|
+
* @description 是否联动,默认开启联动
|
|
34
|
+
* @default true
|
|
35
|
+
*/
|
|
24
36
|
chain: {
|
|
25
37
|
type: Boolean,
|
|
26
38
|
default: true
|
|
27
39
|
},
|
|
28
|
-
|
|
40
|
+
/**
|
|
41
|
+
* @description 整个列表的高度,默认auto屏幕高度
|
|
42
|
+
* @default 'auto'
|
|
43
|
+
*/
|
|
29
44
|
height: {
|
|
30
45
|
type: [String,Number],
|
|
31
46
|
default: 'auto'
|
|
32
47
|
},
|
|
33
|
-
|
|
48
|
+
/**
|
|
49
|
+
* @description 左边列表的宽度
|
|
50
|
+
* @default '180rpx'
|
|
51
|
+
*/
|
|
34
52
|
barWidth: {
|
|
35
53
|
type: [String,Number],
|
|
36
54
|
default: '180rpx'
|
|
37
55
|
},
|
|
38
|
-
|
|
56
|
+
/**
|
|
57
|
+
* @description 左边列表是否允许滚动
|
|
58
|
+
* @default true
|
|
59
|
+
*/
|
|
39
60
|
barScrollable: {
|
|
40
61
|
type: Boolean,
|
|
41
62
|
default: true
|
|
42
63
|
},
|
|
43
|
-
|
|
64
|
+
/**
|
|
65
|
+
* @description 背景颜色
|
|
66
|
+
*/
|
|
44
67
|
barBgColor: {
|
|
45
68
|
type: String,
|
|
46
69
|
default: ''
|
|
47
70
|
},
|
|
48
|
-
|
|
71
|
+
/**
|
|
72
|
+
* @description 左边列表的自定义样式
|
|
73
|
+
*/
|
|
49
74
|
barStyle: {
|
|
50
75
|
type: [String,Object],
|
|
51
76
|
default: ''
|
|
52
77
|
},
|
|
53
|
-
|
|
78
|
+
/**
|
|
79
|
+
* @description 左边列表项的自定义样式
|
|
80
|
+
*/
|
|
54
81
|
barItemStyle: {
|
|
55
82
|
type: [String,Object],
|
|
56
83
|
default: ''
|
|
57
84
|
},
|
|
58
|
-
|
|
85
|
+
/**
|
|
86
|
+
* @description 左边选择项激活时的自定义样式
|
|
87
|
+
*/
|
|
59
88
|
barItemActiveStyle: {
|
|
60
89
|
type: [String,Object],
|
|
61
90
|
default: ''
|
|
62
91
|
},
|
|
63
|
-
|
|
92
|
+
/**
|
|
93
|
+
* @description 左边选择项激活时的左边线条自定义样式
|
|
94
|
+
*/
|
|
64
95
|
barItemActiveLineStyle: {
|
|
65
96
|
type: [String,Object],
|
|
66
97
|
default: ''
|
|
67
98
|
},
|
|
68
|
-
|
|
99
|
+
/**
|
|
100
|
+
* @description 菜单项中的徽标自定义样式,比如定位位置
|
|
101
|
+
*/
|
|
69
102
|
barItemBadgeStyle: {
|
|
70
103
|
type: [String,Object],
|
|
71
104
|
default: ''
|
|
72
105
|
},
|
|
73
|
-
|
|
106
|
+
/**
|
|
107
|
+
* @description 右边区域自定义样式
|
|
108
|
+
*/
|
|
74
109
|
contentStyle: {
|
|
75
110
|
type: [String,Object],
|
|
76
111
|
default: ''
|
|
@@ -41,13 +41,14 @@
|
|
|
41
41
|
* @property {Array} value/modelValue 瀑布流数组数据,仅vue生效 (默认 [] )
|
|
42
42
|
* @property {String} idKey 数据的id值,根据id值对数据执行删除操作
|
|
43
43
|
* @property {String} idPrefix 前置标识
|
|
44
|
-
* @property {Number} addTime
|
|
45
|
-
* @property {String,Number} columnCount
|
|
46
|
-
* @property {String,Number} columnGap
|
|
44
|
+
* @property {Number} addTime 每次插入数据的事件间隔,间隔越长能保证两列高度相近,但是用户体验不好,单位ms(默认 200)
|
|
45
|
+
* @property {String,Number} columnCount 瀑布流的列数(默认2)
|
|
46
|
+
* @property {String,Number} columnGap 列与列的间(默认 15)
|
|
47
47
|
* @property {Boolean} showScrollbar = [true|false] 是否显示滚动条,仅nvue生效(默认 false)
|
|
48
|
-
* @property {String,Number} columnWidth 列宽,单位px,仅nvue生效(默认
|
|
48
|
+
* @property {String,Number} columnWidth 列宽,单位px,仅nvue生效(默认 'auto')
|
|
49
49
|
* @property {String,Number} width 瀑布流的宽度,仅nvue生效
|
|
50
50
|
* @property {String,Number} height 瀑布流的高度,仅nvue生效
|
|
51
|
+
*
|
|
51
52
|
* @event {Function} changeList 处理数据时触发,为了兼容某些端不支持插槽回传参数的情况(仅vue生效)例:列表数据,columnCount=2时、第一次返回{list1:{...}},第二次返回{list2:{...}}...;返回后需要手动追加对应的列数据
|
|
52
53
|
* @event {Function} finish 瀑布流加载完成触发事件(vue生效)
|
|
53
54
|
* @event {Function} clear 清空数据列表触发事件(vue生效)
|
|
@@ -105,8 +106,8 @@
|
|
|
105
106
|
|
|
106
107
|
/**
|
|
107
108
|
* 计算列
|
|
108
|
-
* @param {Object} size
|
|
109
|
-
* @param {Object} isCreate
|
|
109
|
+
* @param {Object} size 列数
|
|
110
|
+
* @param {Object} isCreate 是否初始化创建(created生命周期)
|
|
110
111
|
*/
|
|
111
112
|
calculateColumn: function(size) {
|
|
112
113
|
this.colunmList = [];
|
|
@@ -214,10 +215,11 @@
|
|
|
214
215
|
</script>
|
|
215
216
|
|
|
216
217
|
<style lang="scss" scoped>
|
|
218
|
+
@import '../../libs/style/components.scss';
|
|
219
|
+
|
|
217
220
|
/* 瀑布流最外层 */
|
|
218
221
|
.fu-waterfall {
|
|
219
|
-
|
|
220
|
-
flex-direction: row;
|
|
222
|
+
@include flex(row);
|
|
221
223
|
align-items: flex-start;
|
|
222
224
|
|
|
223
225
|
&__column {
|
|
@@ -225,8 +227,8 @@
|
|
|
225
227
|
flex: 1;
|
|
226
228
|
// #ifndef APP-NVUE
|
|
227
229
|
height: auto;
|
|
228
|
-
// #endif
|
|
229
230
|
overflow: hidden;
|
|
231
|
+
// #endif
|
|
230
232
|
}
|
|
231
233
|
}
|
|
232
234
|
|