iov-design 2.15.48 → 2.15.49
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/lib/alert.js +2 -2
- package/lib/aside.js +2 -2
- package/lib/autocomplete.js +2 -2
- package/lib/avatar.js +2 -2
- package/lib/backtop.js +9 -9
- package/lib/badge.js +2 -2
- package/lib/breadcrumb-item.js +2 -2
- package/lib/breadcrumb.js +2 -2
- package/lib/button-group.js +2 -2
- package/lib/button.js +2 -2
- package/lib/calendar.js +2 -2
- package/lib/card.js +2 -2
- package/lib/carousel-item.js +2 -2
- package/lib/carousel.js +2 -2
- package/lib/cascader-panel.js +4 -4
- package/lib/cascader.js +11 -11
- package/lib/checkbox-button.js +2 -2
- package/lib/checkbox-group.js +2 -2
- package/lib/checkbox.js +2 -2
- package/lib/col.js +2 -2
- package/lib/collapse-item.js +2 -2
- package/lib/collapse.js +2 -2
- package/lib/color-picker.js +2 -2
- package/lib/container.js +2 -2
- package/lib/date-picker.js +90 -69
- package/lib/descriptions-item.js +2 -2
- package/lib/descriptions.js +2 -2
- package/lib/dialog.js +3 -2
- package/lib/divider.js +2 -2
- package/lib/drawer.js +2 -2
- package/lib/dropdown-item.js +2 -2
- package/lib/dropdown-menu.js +2 -2
- package/lib/dropdown.js +9 -9
- package/lib/empty.js +12 -12
- package/lib/footer.js +2 -2
- package/lib/form-item.js +4 -4
- package/lib/form.js +2 -2
- package/lib/header.js +2 -2
- package/lib/icon.js +2 -2
- package/lib/image.js +9 -9
- package/lib/index.js +1 -1
- package/lib/infinite-scroll.js +2 -2
- package/lib/input-number.js +2 -2
- package/lib/input.js +2 -2
- package/lib/iov-design.common.js +131 -106
- package/lib/link.js +9 -3
- package/lib/loading.js +9 -9
- package/lib/main.js +2 -2
- package/lib/menu-item-group.js +2 -2
- package/lib/menu-item.js +2 -2
- package/lib/menu.js +2 -2
- package/lib/message-box.js +11 -11
- package/lib/message.js +2 -2
- package/lib/notification.js +9 -9
- package/lib/option-group.js +2 -2
- package/lib/option.js +2 -2
- package/lib/page-header.js +2 -2
- package/lib/pagination.js +6 -6
- package/lib/popconfirm.js +4 -4
- package/lib/popover.js +9 -9
- package/lib/progress.js +2 -2
- package/lib/radio-button.js +9 -9
- package/lib/radio-group.js +9 -9
- package/lib/radio.js +14 -6
- package/lib/rate.js +2 -2
- package/lib/result.js +2 -2
- package/lib/row.js +2 -2
- package/lib/scrollbar.js +2 -2
- package/lib/select.js +9 -9
- package/lib/skeleton-item.js +2 -2
- package/lib/skeleton.js +2 -2
- package/lib/slider.js +4 -4
- package/lib/spinner.js +2 -2
- package/lib/statistic.js +2 -2
- package/lib/step.js +2 -2
- package/lib/steps.js +2 -2
- package/lib/submenu.js +2 -2
- package/lib/switch.js +9 -9
- package/lib/tab-pane.js +2 -2
- package/lib/table-column.js +2 -2
- package/lib/table.js +25 -21
- package/lib/tabs.js +2 -2
- package/lib/tag.js +2 -2
- package/lib/theme-chalk/button.css +1 -1
- package/lib/theme-chalk/calendar.css +1 -1
- package/lib/theme-chalk/cascader-panel.css +1 -1
- package/lib/theme-chalk/cascader.css +1 -1
- package/lib/theme-chalk/dropdown.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/link.css +1 -1
- package/lib/theme-chalk/message-box.css +1 -1
- package/lib/theme-chalk/message.css +1 -1
- package/lib/theme-chalk/radio.css +1 -1
- package/lib/theme-chalk/table-column.css +1 -1
- package/lib/theme-chalk/table.css +1 -1
- package/lib/theme-chalk/transfer.css +1 -1
- package/lib/theme-chalk/upload.css +1 -1
- package/lib/time-picker.js +9 -9
- package/lib/time-select.js +2 -2
- package/lib/timeline-item.js +2 -2
- package/lib/timeline.js +2 -2
- package/lib/tooltip.js +2 -2
- package/lib/transfer.js +9 -9
- package/lib/tree.js +2 -2
- package/lib/upload.js +61 -69
- package/package.json +1 -1
- package/packages/dialog/src/component.vue +1 -0
- package/packages/empty/src/index.vue +10 -10
- package/packages/link/src/main.vue +6 -1
- package/packages/radio/src/radio.vue +4 -2
- package/packages/table/src/table.vue +18 -2
- package/packages/theme-chalk/src/button.scss +2 -1
- package/packages/theme-chalk/src/link.scss +13 -0
- package/packages/theme-chalk/src/message.scss +1 -1
- package/packages/theme-chalk/src/radio.scss +7 -7
- package/packages/theme-chalk/src/table-column.scss +1 -0
- package/packages/theme-chalk/src/table.scss +11 -3
- package/packages/theme-chalk/src/upload.scss +2 -2
- package/packages/upload/src/index.vue +14 -0
- package/packages/upload/src/upload-file.vue +11 -3
- package/packages/upload/src/upload-list.vue +11 -3
- package/packages/upload/src/upload-picture.vue +9 -1
- package/packages/upload/src/utils.js +10 -9
- package/src/index.js +1 -1
- package/lib/static/excel.dc22a8c4.png +0 -1
- package/lib/static/excel.f44318e.png +0 -0
- package/lib/static/excel.f44318e0.png +0 -0
- package/lib/static/file.4ed3551.png +0 -0
- package/lib/static/file.4ed35511.png +0 -0
- package/lib/static/file.c0509952.png +0 -1
- package/lib/static/img.8229bb3e.png +0 -1
- package/lib/static/img.cd179e5.png +0 -0
- package/lib/static/img.cd179e5b.png +0 -0
- package/lib/static/pdf.79cb57f.png +0 -0
- package/lib/static/pdf.79cb57f8.png +0 -0
- package/lib/static/pdf.f5235ea1.png +0 -1
- package/lib/static/ppt.5eedddef.png +0 -1
- package/lib/static/ppt.eed4918.png +0 -0
- package/lib/static/ppt.eed4918e.png +0 -0
- package/lib/static/word.35070ef.png +0 -0
- package/lib/static/word.35070ef0.png +0 -0
- package/lib/static/word.5fe9189c.png +0 -1
- package/lib/static/zip.dca21a8.png +0 -0
- package/lib/static/zip.dca21a88.png +0 -0
- package/lib/static/zip.e2bfc796.png +0 -1
package/lib/upload.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 58);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -210,56 +210,7 @@ module.exports = require("iov-design/lib/progress");
|
|
|
210
210
|
|
|
211
211
|
/***/ }),
|
|
212
212
|
|
|
213
|
-
/***/ 45:
|
|
214
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
215
|
-
|
|
216
|
-
module.exports = __webpack_require__.p + "static/zip.e2bfc796.png";
|
|
217
|
-
|
|
218
|
-
/***/ }),
|
|
219
|
-
|
|
220
|
-
/***/ 57:
|
|
221
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
222
|
-
|
|
223
|
-
module.exports = __webpack_require__.p + "static/img.8229bb3e.png";
|
|
224
|
-
|
|
225
|
-
/***/ }),
|
|
226
|
-
|
|
227
213
|
/***/ 58:
|
|
228
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
229
|
-
|
|
230
|
-
module.exports = __webpack_require__.p + "static/pdf.f5235ea1.png";
|
|
231
|
-
|
|
232
|
-
/***/ }),
|
|
233
|
-
|
|
234
|
-
/***/ 59:
|
|
235
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
236
|
-
|
|
237
|
-
module.exports = __webpack_require__.p + "static/excel.dc22a8c4.png";
|
|
238
|
-
|
|
239
|
-
/***/ }),
|
|
240
|
-
|
|
241
|
-
/***/ 60:
|
|
242
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
243
|
-
|
|
244
|
-
module.exports = __webpack_require__.p + "static/ppt.5eedddef.png";
|
|
245
|
-
|
|
246
|
-
/***/ }),
|
|
247
|
-
|
|
248
|
-
/***/ 61:
|
|
249
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
250
|
-
|
|
251
|
-
module.exports = __webpack_require__.p + "static/word.5fe9189c.png";
|
|
252
|
-
|
|
253
|
-
/***/ }),
|
|
254
|
-
|
|
255
|
-
/***/ 62:
|
|
256
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
257
|
-
|
|
258
|
-
module.exports = __webpack_require__.p + "static/file.c0509952.png";
|
|
259
|
-
|
|
260
|
-
/***/ }),
|
|
261
|
-
|
|
262
|
-
/***/ 65:
|
|
263
214
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
264
215
|
|
|
265
216
|
"use strict";
|
|
@@ -329,10 +280,10 @@ var upload_listvue_type_template_id_173fedf5_render = function() {
|
|
|
329
280
|
"el-image",
|
|
330
281
|
{
|
|
331
282
|
attrs: {
|
|
332
|
-
src: file.
|
|
283
|
+
src: file[_vm.fileUrlAlias],
|
|
333
284
|
"preview-src-list": _vm.handlePreview
|
|
334
285
|
? []
|
|
335
|
-
: [file.
|
|
286
|
+
: [file[_vm.fileUrlAlias]],
|
|
336
287
|
fit: "contain"
|
|
337
288
|
}
|
|
338
289
|
},
|
|
@@ -355,13 +306,13 @@ var upload_listvue_type_template_id_173fedf5_render = function() {
|
|
|
355
306
|
: ["text"].includes(_vm.listType)
|
|
356
307
|
? _c("i", {
|
|
357
308
|
staticClass: "el-upload-list__icon",
|
|
358
|
-
style: _vm.iconStyle(file.
|
|
309
|
+
style: _vm.iconStyle(file[_vm.fileNameAlias])
|
|
359
310
|
})
|
|
360
311
|
: _vm._e(),
|
|
361
312
|
["text", "picture"].includes(_vm.listType)
|
|
362
313
|
? _c("div", { staticClass: "el-upload-list__name" }, [
|
|
363
314
|
_c("span", { staticClass: "file-name" }, [
|
|
364
|
-
_vm._v(_vm._s(file.
|
|
315
|
+
_vm._v(_vm._s(file[_vm.fileNameAlias]))
|
|
365
316
|
])
|
|
366
317
|
])
|
|
367
318
|
: _vm._e()
|
|
@@ -485,18 +436,19 @@ var progress_default = /*#__PURE__*/__webpack_require__.n(progress_);
|
|
|
485
436
|
|
|
486
437
|
// CONCATENATED MODULE: ./packages/upload/src/utils.js
|
|
487
438
|
var ICON_MAP = {
|
|
488
|
-
img:
|
|
489
|
-
pdf:
|
|
490
|
-
excel:
|
|
491
|
-
zip:
|
|
492
|
-
rar:
|
|
493
|
-
'7z':
|
|
494
|
-
ppt:
|
|
495
|
-
word:
|
|
496
|
-
default:
|
|
439
|
+
img: '//obs-helf.cucloud.cn/prod-common-public/iov-design/img.png', // require('./assets/img.png'),
|
|
440
|
+
pdf: '//obs-helf.cucloud.cn/prod-common-public/iov-design/pdf.png', // require('./assets/pdf.png'),
|
|
441
|
+
excel: '//obs-helf.cucloud.cn/prod-common-public/iov-design/excel.png', // require('./assets/excel.png'),
|
|
442
|
+
zip: '//obs-helf.cucloud.cn/prod-common-public/iov-design/zip.png', // require('./assets/zip.png'),
|
|
443
|
+
rar: '//obs-helf.cucloud.cn/prod-common-public/iov-design/zip.png', // require('./assets/zip.png'),
|
|
444
|
+
'7z': '//obs-helf.cucloud.cn/prod-common-public/iov-design/zip.png', // require('./assets/zip.png'),
|
|
445
|
+
ppt: '//obs-helf.cucloud.cn/prod-common-public/iov-design/ppt.png', // require('./assets/ppt.png'),
|
|
446
|
+
word: '//obs-helf.cucloud.cn/prod-common-public/iov-design/word.png', // require('./assets/word.png'),
|
|
447
|
+
default: '//obs-helf.cucloud.cn/prod-common-public/iov-design/file.png' // require('./assets/file.png')
|
|
497
448
|
};
|
|
498
449
|
|
|
499
450
|
function iconStyle(fileName) {
|
|
451
|
+
if (!fileName) return;
|
|
500
452
|
var suffixMap = {
|
|
501
453
|
img: ['png', 'jpg', 'jpeg'],
|
|
502
454
|
word: ['doc', 'docx'],
|
|
@@ -620,6 +572,14 @@ function iconStyle(fileName) {
|
|
|
620
572
|
return [];
|
|
621
573
|
}
|
|
622
574
|
},
|
|
575
|
+
fileNameAlias: {
|
|
576
|
+
type: String,
|
|
577
|
+
default: 'name'
|
|
578
|
+
},
|
|
579
|
+
fileUrlAlias: {
|
|
580
|
+
type: String,
|
|
581
|
+
default: 'url'
|
|
582
|
+
},
|
|
623
583
|
disabled: {
|
|
624
584
|
type: Boolean,
|
|
625
585
|
default: false
|
|
@@ -721,8 +681,10 @@ var upload_filevue_type_template_id_c998d85a_render = function() {
|
|
|
721
681
|
"el-image",
|
|
722
682
|
{
|
|
723
683
|
attrs: {
|
|
724
|
-
src: file.
|
|
725
|
-
"preview-src-list": [
|
|
684
|
+
src: file[_vm.fileUrlAlias],
|
|
685
|
+
"preview-src-list": [
|
|
686
|
+
file[_vm.fileUrlAlias]
|
|
687
|
+
],
|
|
726
688
|
fit: "contain"
|
|
727
689
|
}
|
|
728
690
|
},
|
|
@@ -745,7 +707,7 @@ var upload_filevue_type_template_id_c998d85a_render = function() {
|
|
|
745
707
|
: ["text"].includes(_vm.listType)
|
|
746
708
|
? _c("i", {
|
|
747
709
|
staticClass: "el-upload-list__icon",
|
|
748
|
-
style: _vm.iconStyle(file.
|
|
710
|
+
style: _vm.iconStyle(file[_vm.fileNameAlias]),
|
|
749
711
|
on: {
|
|
750
712
|
click: function($event) {
|
|
751
713
|
_vm.handleClick(file)
|
|
@@ -765,7 +727,7 @@ var upload_filevue_type_template_id_c998d85a_render = function() {
|
|
|
765
727
|
},
|
|
766
728
|
[
|
|
767
729
|
_c("span", { staticClass: "file-name" }, [
|
|
768
|
-
_vm._v(_vm._s(file.
|
|
730
|
+
_vm._v(_vm._s(file[_vm.fileNameAlias]))
|
|
769
731
|
])
|
|
770
732
|
]
|
|
771
733
|
),
|
|
@@ -913,6 +875,14 @@ upload_filevue_type_template_id_c998d85a_render._withStripped = true
|
|
|
913
875
|
return [];
|
|
914
876
|
}
|
|
915
877
|
},
|
|
878
|
+
fileNameAlias: {
|
|
879
|
+
type: String,
|
|
880
|
+
default: 'name'
|
|
881
|
+
},
|
|
882
|
+
fileUrlAlias: {
|
|
883
|
+
type: String,
|
|
884
|
+
default: 'url'
|
|
885
|
+
},
|
|
916
886
|
disabled: {
|
|
917
887
|
type: Boolean,
|
|
918
888
|
default: false
|
|
@@ -1021,10 +991,10 @@ var upload_picturevue_type_template_id_4be68a77_render = function() {
|
|
|
1021
991
|
"el-image",
|
|
1022
992
|
{
|
|
1023
993
|
attrs: {
|
|
1024
|
-
src: file.
|
|
994
|
+
src: file[_vm.fileUrlAlias],
|
|
1025
995
|
"preview-src-list": _vm.handlePreview
|
|
1026
996
|
? []
|
|
1027
|
-
: [file.
|
|
997
|
+
: [file[_vm.fileUrlAlias]],
|
|
1028
998
|
fit: "contain"
|
|
1029
999
|
}
|
|
1030
1000
|
},
|
|
@@ -1196,6 +1166,14 @@ upload_picturevue_type_template_id_4be68a77_render._withStripped = true
|
|
|
1196
1166
|
return [];
|
|
1197
1167
|
}
|
|
1198
1168
|
},
|
|
1169
|
+
fileNameAlias: {
|
|
1170
|
+
type: String,
|
|
1171
|
+
default: 'name'
|
|
1172
|
+
},
|
|
1173
|
+
fileUrlAlias: {
|
|
1174
|
+
type: String,
|
|
1175
|
+
default: 'url'
|
|
1176
|
+
},
|
|
1199
1177
|
disabled: {
|
|
1200
1178
|
type: Boolean,
|
|
1201
1179
|
default: false
|
|
@@ -1836,6 +1814,14 @@ function noop() {}
|
|
|
1836
1814
|
return [];
|
|
1837
1815
|
}
|
|
1838
1816
|
},
|
|
1817
|
+
fileNameAlias: {
|
|
1818
|
+
type: String,
|
|
1819
|
+
name: 'name'
|
|
1820
|
+
},
|
|
1821
|
+
fileUrlAlias: {
|
|
1822
|
+
type: String,
|
|
1823
|
+
name: 'url'
|
|
1824
|
+
},
|
|
1839
1825
|
autoUpload: {
|
|
1840
1826
|
type: Boolean,
|
|
1841
1827
|
default: true
|
|
@@ -2032,6 +2018,8 @@ function noop() {}
|
|
|
2032
2018
|
upload_file,
|
|
2033
2019
|
{
|
|
2034
2020
|
attrs: {
|
|
2021
|
+
fileNameAlias: this.fileNameAlias,
|
|
2022
|
+
fileUrlAlias: this.fileUrlAlias,
|
|
2035
2023
|
disabled: this.uploadDisabled,
|
|
2036
2024
|
listType: this.listType,
|
|
2037
2025
|
files: this.uploadFiles,
|
|
@@ -2056,6 +2044,8 @@ function noop() {}
|
|
|
2056
2044
|
upload_picture,
|
|
2057
2045
|
{
|
|
2058
2046
|
attrs: {
|
|
2047
|
+
fileNameAlias: this.fileNameAlias,
|
|
2048
|
+
fileUrlAlias: this.fileUrlAlias,
|
|
2059
2049
|
disabled: this.uploadDisabled,
|
|
2060
2050
|
listType: this.listType,
|
|
2061
2051
|
files: this.uploadFiles,
|
|
@@ -2079,6 +2069,8 @@ function noop() {}
|
|
|
2079
2069
|
upload_list,
|
|
2080
2070
|
{
|
|
2081
2071
|
attrs: {
|
|
2072
|
+
fileNameAlias: this.fileNameAlias,
|
|
2073
|
+
fileUrlAlias: this.fileUrlAlias,
|
|
2082
2074
|
disabled: this.uploadDisabled,
|
|
2083
2075
|
listType: this.listType,
|
|
2084
2076
|
files: this.uploadFiles,
|
package/package.json
CHANGED
|
@@ -18,16 +18,16 @@
|
|
|
18
18
|
|
|
19
19
|
<script>
|
|
20
20
|
const IMG = {
|
|
21
|
-
0: '//
|
|
22
|
-
1: '//
|
|
23
|
-
2: '//
|
|
24
|
-
3: '//
|
|
25
|
-
4: '//
|
|
26
|
-
5: '//
|
|
27
|
-
6: '//
|
|
28
|
-
7: '//
|
|
29
|
-
8: '//
|
|
30
|
-
9: '//
|
|
21
|
+
0: '//obs-helf.cucloud.cn/prod-common-public/iov-design/empty_0.png', // require('./img/0.png'),
|
|
22
|
+
1: '//obs-helf.cucloud.cn/prod-common-public/iov-design/empty_1.png', // require('./img/1.png'),
|
|
23
|
+
2: '//obs-helf.cucloud.cn/prod-common-public/iov-design/empty_2.png', // require('./img/2.png'),
|
|
24
|
+
3: '//obs-helf.cucloud.cn/prod-common-public/iov-design/empty_3.png', // require('./img/4.png'),
|
|
25
|
+
4: '//obs-helf.cucloud.cn/prod-common-public/iov-design/empty_4.png', // require('./img/4.png'),
|
|
26
|
+
5: '//obs-helf.cucloud.cn/prod-common-public/iov-design/empty_5.png', // require('./img/5.png'),
|
|
27
|
+
6: '//obs-helf.cucloud.cn/prod-common-public/iov-design/empty_6.png', // require('./img/6.png'),
|
|
28
|
+
7: '//obs-helf.cucloud.cn/prod-common-public/iov-design/empty_7.png', // require('./img/7.png'),
|
|
29
|
+
8: '//obs-helf.cucloud.cn/prod-common-public/iov-design/empty_8.png', // require('./img/8.png'),
|
|
30
|
+
9: '//obs-helf.cucloud.cn/prod-common-public/iov-design/empty_9.png' // require('./img/9.png')
|
|
31
31
|
};
|
|
32
32
|
import { t } from 'iov-design/src/locale';
|
|
33
33
|
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
:class="[
|
|
4
4
|
'el-link',
|
|
5
5
|
type ? `el-link--${type}` : '',
|
|
6
|
+
size ? `el-link--${size}` : '',
|
|
6
7
|
disabled && 'is-disabled',
|
|
7
8
|
underline && !disabled && 'is-underline'
|
|
8
9
|
]"
|
|
@@ -37,7 +38,11 @@ export default {
|
|
|
37
38
|
},
|
|
38
39
|
disabled: Boolean,
|
|
39
40
|
href: String,
|
|
40
|
-
icon: String
|
|
41
|
+
icon: String,
|
|
42
|
+
size: {
|
|
43
|
+
type: String,
|
|
44
|
+
default: 'small'
|
|
45
|
+
}
|
|
41
46
|
},
|
|
42
47
|
|
|
43
48
|
methods: {
|
|
@@ -42,8 +42,10 @@
|
|
|
42
42
|
>
|
|
43
43
|
</span>
|
|
44
44
|
<span class="el-radio__label" @keydown.stop>
|
|
45
|
-
<
|
|
46
|
-
|
|
45
|
+
<span class="el-radio__name">
|
|
46
|
+
<slot></slot>
|
|
47
|
+
<template v-if="!$slots.default">{{label}}</template>
|
|
48
|
+
</span>
|
|
47
49
|
<p v-if="desc" class="el-radio__desc">{{ desc }}</p>
|
|
48
50
|
</span>
|
|
49
51
|
</label>
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
:style="emptyBlockStyle">
|
|
54
54
|
<div class="el-table__empty-text" >
|
|
55
55
|
<slot name="empty">
|
|
56
|
-
<el-empty ref="emptyText" :description="emptyText || t('el.table.emptyText')" :type="1" :image-size="
|
|
56
|
+
<el-empty ref="emptyText" :description="emptyText || t('el.table.emptyText')" :type="1" :image-size="emptySize"></el-empty>
|
|
57
57
|
</slot>
|
|
58
58
|
</div>
|
|
59
59
|
</div>
|
|
@@ -517,6 +517,16 @@
|
|
|
517
517
|
return this.size || (this.$ELEMENT || {}).size;
|
|
518
518
|
},
|
|
519
519
|
|
|
520
|
+
emptySize() {
|
|
521
|
+
const sizeMap = {
|
|
522
|
+
mini: 70,
|
|
523
|
+
small: 86,
|
|
524
|
+
medium: 86,
|
|
525
|
+
large: 108
|
|
526
|
+
};
|
|
527
|
+
return sizeMap[this.tableSize] || 108;
|
|
528
|
+
},
|
|
529
|
+
|
|
520
530
|
bodyWrapper() {
|
|
521
531
|
return this.$refs.bodyWrapper;
|
|
522
532
|
},
|
|
@@ -595,7 +605,13 @@
|
|
|
595
605
|
|
|
596
606
|
emptyBlockStyle() {
|
|
597
607
|
if (this.data && this.data.length) return null;
|
|
598
|
-
|
|
608
|
+
const heightMap = {
|
|
609
|
+
large: '153px',
|
|
610
|
+
medium: '153px',
|
|
611
|
+
small: '131px',
|
|
612
|
+
mini: '99px'
|
|
613
|
+
};
|
|
614
|
+
let height = heightMap[this.tableSize] || '153px';
|
|
599
615
|
if (this.layout.appendHeight) {
|
|
600
616
|
height = `calc(100% - ${this.layout.appendHeight}px)`;
|
|
601
617
|
}
|
|
@@ -231,7 +231,7 @@
|
|
|
231
231
|
&.el-button--text {
|
|
232
232
|
padding: 0 4px;
|
|
233
233
|
height: 22px;
|
|
234
|
-
line-height:
|
|
234
|
+
line-height: 20px;
|
|
235
235
|
}
|
|
236
236
|
@include when(icon-only) {
|
|
237
237
|
font-size: $--button-icon-only-size;
|
|
@@ -242,6 +242,7 @@
|
|
|
242
242
|
border-color: transparent;
|
|
243
243
|
color: $--color-primary-6;
|
|
244
244
|
background: transparent;
|
|
245
|
+
font-weight: 400;
|
|
245
246
|
|
|
246
247
|
&:hover {
|
|
247
248
|
color: $--color-primary-6;
|
|
@@ -32,6 +32,19 @@ $typeMap: (
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
@include m(large) {
|
|
36
|
+
font-size: 16px;
|
|
37
|
+
}
|
|
38
|
+
@include m(medium) {
|
|
39
|
+
font-size: 14px;
|
|
40
|
+
}
|
|
41
|
+
@include m(small) {
|
|
42
|
+
font-size: 13px;
|
|
43
|
+
}
|
|
44
|
+
@include m(mini) {
|
|
45
|
+
font-size: 12px;
|
|
46
|
+
}
|
|
47
|
+
|
|
35
48
|
@include when(disabled) {
|
|
36
49
|
cursor: not-allowed;
|
|
37
50
|
}
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
}
|
|
59
59
|
@include when(card) {
|
|
60
60
|
margin-right: 12px;
|
|
61
|
-
padding: 12px;
|
|
61
|
+
padding: 12px 14px;
|
|
62
62
|
border-radius: $--border-radius-base;
|
|
63
63
|
border: 1px solid $--color-line-2;
|
|
64
64
|
box-sizing: border-box;
|
|
@@ -77,16 +77,16 @@
|
|
|
77
77
|
.el-radio__label {
|
|
78
78
|
font-weight: 600;
|
|
79
79
|
font-size: 13px;
|
|
80
|
-
line-height:
|
|
81
|
-
color: $--color-text-
|
|
80
|
+
line-height: 18px;
|
|
81
|
+
color: $--color-text-5;
|
|
82
82
|
float: left;
|
|
83
83
|
overflow: hidden;
|
|
84
84
|
}
|
|
85
85
|
.el-radio__desc {
|
|
86
|
-
margin:
|
|
86
|
+
margin: 4px 0 0;
|
|
87
87
|
font-weight: 400;
|
|
88
88
|
font-size: 12px;
|
|
89
|
-
line-height:
|
|
89
|
+
line-height: 17px;
|
|
90
90
|
color: $--color-text-3;
|
|
91
91
|
}
|
|
92
92
|
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
&.is-checked {
|
|
112
|
-
border-color: $--color-primary-
|
|
112
|
+
border-color: $--color-primary-3;
|
|
113
113
|
background: $--color-primary-1;
|
|
114
114
|
&:after {
|
|
115
115
|
content: '';
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
right: -1px;
|
|
123
123
|
}
|
|
124
124
|
&.is-disabled {
|
|
125
|
-
border-color: $--color-primary-
|
|
125
|
+
border-color: $--color-primary-3;
|
|
126
126
|
background: $--color-primary-1;
|
|
127
127
|
// &:after {
|
|
128
128
|
// opacity: .25;
|
|
@@ -168,19 +168,27 @@
|
|
|
168
168
|
|
|
169
169
|
@include m(medium) {
|
|
170
170
|
.el-table__cell {
|
|
171
|
-
padding:
|
|
171
|
+
padding: 10px 0;
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
@include m(small) {
|
|
176
176
|
.el-table__cell {
|
|
177
|
-
padding:
|
|
177
|
+
padding: 7px 0;
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
@include m(mini) {
|
|
182
|
+
.el-table__header {
|
|
183
|
+
th {
|
|
184
|
+
&.el-table__cell {
|
|
185
|
+
background: $--color-primary-1;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
182
189
|
.el-table__cell {
|
|
183
|
-
padding:
|
|
190
|
+
padding: 7px 0;
|
|
191
|
+
font-size: 12px;
|
|
184
192
|
}
|
|
185
193
|
}
|
|
186
194
|
|
|
@@ -521,11 +521,11 @@
|
|
|
521
521
|
|
|
522
522
|
.el-image__placeholder {
|
|
523
523
|
display: inline-block;
|
|
524
|
-
background: $--color-fill-1 url(
|
|
524
|
+
background: $--color-fill-1 url(//obs-helf.cucloud.cn/prod-common-public/iov-design/img_placeholder.png) no-repeat center center / 20px 20px;
|
|
525
525
|
}
|
|
526
526
|
.el-image__error {
|
|
527
527
|
display: inline-block;
|
|
528
|
-
background: $--color-fill-3 url(
|
|
528
|
+
background: $--color-fill-3 url(//obs-helf.cucloud.cn/prod-common-public/iov-design/img_fail.png) no-repeat center center / 20px 20px;
|
|
529
529
|
}
|
|
530
530
|
|
|
531
531
|
// 图片列表缩略图
|
|
@@ -93,6 +93,14 @@ export default {
|
|
|
93
93
|
return [];
|
|
94
94
|
}
|
|
95
95
|
},
|
|
96
|
+
fileNameAlias: {
|
|
97
|
+
type: String,
|
|
98
|
+
name: 'name'
|
|
99
|
+
},
|
|
100
|
+
fileUrlAlias: {
|
|
101
|
+
type: String,
|
|
102
|
+
name: 'url'
|
|
103
|
+
},
|
|
96
104
|
autoUpload: {
|
|
97
105
|
type: Boolean,
|
|
98
106
|
default: true
|
|
@@ -278,6 +286,8 @@ export default {
|
|
|
278
286
|
let uploadList;
|
|
279
287
|
let uploadFile = (
|
|
280
288
|
<UploadFile
|
|
289
|
+
fileNameAlias={this.fileNameAlias}
|
|
290
|
+
fileUrlAlias={this.fileUrlAlias}
|
|
281
291
|
disabled={this.uploadDisabled}
|
|
282
292
|
listType={this.listType}
|
|
283
293
|
files={this.uploadFiles}
|
|
@@ -299,6 +309,8 @@ export default {
|
|
|
299
309
|
);
|
|
300
310
|
let uploadPicture = (
|
|
301
311
|
<UploadPicture
|
|
312
|
+
fileNameAlias={this.fileNameAlias}
|
|
313
|
+
fileUrlAlias={this.fileUrlAlias}
|
|
302
314
|
disabled={this.uploadDisabled}
|
|
303
315
|
listType={this.listType}
|
|
304
316
|
files={this.uploadFiles}
|
|
@@ -319,6 +331,8 @@ export default {
|
|
|
319
331
|
if (this.showFileList) {
|
|
320
332
|
uploadList = (
|
|
321
333
|
<UploadList
|
|
334
|
+
fileNameAlias={this.fileNameAlias}
|
|
335
|
+
fileUrlAlias={this.fileUrlAlias}
|
|
322
336
|
disabled={this.uploadDisabled}
|
|
323
337
|
listType={this.listType}
|
|
324
338
|
files={this.uploadFiles}
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
<div class="el-upload-list__file">
|
|
20
20
|
<div v-if="file.status === 'success'" class="el-upload-list__item-name">
|
|
21
21
|
<span v-if="['picture-card', 'picture'].includes(listType)" class="el-upload-list__item-thumbnail">
|
|
22
|
-
<el-image :src="file
|
|
22
|
+
<el-image :src="file[fileUrlAlias]" :preview-src-list="[file[fileUrlAlias]]" fit="contain">
|
|
23
23
|
<i slot="placeholder" class="el-image__placeholder"></i>
|
|
24
24
|
<i slot="error" class="el-image__error"></i>
|
|
25
25
|
</el-image>
|
|
26
26
|
</span>
|
|
27
|
-
<i v-else-if="['text'].includes(listType)" class="el-upload-list__icon" @click="handleClick(file)" :style="iconStyle(file
|
|
27
|
+
<i v-else-if="['text'].includes(listType)" class="el-upload-list__icon" @click="handleClick(file)" :style="iconStyle(file[fileNameAlias])"></i>
|
|
28
28
|
<div class="el-upload-list__name" @click="handleClick(file)">
|
|
29
|
-
<span class="file-name">{{file
|
|
29
|
+
<span class="file-name">{{file[fileNameAlias]}}</span>
|
|
30
30
|
</div>
|
|
31
31
|
<el-button v-if="size === 'medium'" class="el-upload__btn" round size="small" slot="trigger">重新上传</el-button>
|
|
32
32
|
</div>
|
|
@@ -68,6 +68,14 @@
|
|
|
68
68
|
return [];
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
|
+
fileNameAlias: {
|
|
72
|
+
type: String,
|
|
73
|
+
default: 'name'
|
|
74
|
+
},
|
|
75
|
+
fileUrlAlias: {
|
|
76
|
+
type: String,
|
|
77
|
+
default: 'url'
|
|
78
|
+
},
|
|
71
79
|
disabled: {
|
|
72
80
|
type: Boolean,
|
|
73
81
|
default: false
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
<div class="el-upload-list__file">
|
|
22
22
|
<div class="el-upload-list__item-name" @click="handleClick(file)">
|
|
23
23
|
<span v-if="['picture-card', 'picture'].includes(listType)" class="el-upload-list__item-thumbnail">
|
|
24
|
-
<el-image :src="file
|
|
24
|
+
<el-image :src="file[fileUrlAlias]" :preview-src-list="handlePreview ? [] : [file[fileUrlAlias]]" fit="contain">
|
|
25
25
|
<i slot="placeholder" class="el-image__placeholder"></i>
|
|
26
26
|
<i slot="error" class="el-image__error"></i>
|
|
27
27
|
</el-image>
|
|
28
28
|
</span>
|
|
29
|
-
<i v-else-if="['text'].includes(listType)" class="el-upload-list__icon" :style="iconStyle(file
|
|
29
|
+
<i v-else-if="['text'].includes(listType)" class="el-upload-list__icon" :style="iconStyle(file[fileNameAlias])"></i>
|
|
30
30
|
<div v-if="['text', 'picture'].includes(listType)" class="el-upload-list__name">
|
|
31
|
-
<span class="file-name">{{file
|
|
31
|
+
<span class="file-name">{{file[fileNameAlias]}}</span>
|
|
32
32
|
</div>
|
|
33
33
|
</div>
|
|
34
34
|
<div v-if="['text', 'picture'].includes(listType)" class="el-upload-list__item-status-label">
|
|
@@ -87,6 +87,14 @@
|
|
|
87
87
|
return [];
|
|
88
88
|
}
|
|
89
89
|
},
|
|
90
|
+
fileNameAlias: {
|
|
91
|
+
type: String,
|
|
92
|
+
default: 'name'
|
|
93
|
+
},
|
|
94
|
+
fileUrlAlias: {
|
|
95
|
+
type: String,
|
|
96
|
+
default: 'url'
|
|
97
|
+
},
|
|
90
98
|
disabled: {
|
|
91
99
|
type: Boolean,
|
|
92
100
|
default: false
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
<div class="el-upload-list__file">
|
|
22
22
|
<div v-if="file.status === 'success'" class="el-upload-list__item-name" @click="handleClick(file)">
|
|
23
23
|
<span class="el-upload-list__item-thumbnail">
|
|
24
|
-
<el-image :src="file
|
|
24
|
+
<el-image :src="file[fileUrlAlias]" :preview-src-list="handlePreview ? [] : [file[fileUrlAlias]]" fit="contain">
|
|
25
25
|
<i slot="placeholder" class="el-image__placeholder"></i>
|
|
26
26
|
<i slot="error" class="el-image__error"></i>
|
|
27
27
|
</el-image>
|
|
@@ -70,6 +70,14 @@
|
|
|
70
70
|
return [];
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
|
+
fileNameAlias: {
|
|
74
|
+
type: String,
|
|
75
|
+
default: 'name'
|
|
76
|
+
},
|
|
77
|
+
fileUrlAlias: {
|
|
78
|
+
type: String,
|
|
79
|
+
default: 'url'
|
|
80
|
+
},
|
|
73
81
|
disabled: {
|
|
74
82
|
type: Boolean,
|
|
75
83
|
default: false
|