升级bootstrap-fileinput到最新版本5.1.2

pull/216/MERGE
RuoYi 2020-09-24 20:11:28 +08:00
parent 0c93087b58
commit 613a21edd0
5 changed files with 1100 additions and 593 deletions

View File

@ -1,11 +1,11 @@
/*! /*!
* bootstrap-fileinput v5.0.4 * bootstrap-fileinput v5.1.2
* http://plugins.krajee.com/file-input * http://plugins.krajee.com/file-input
* *
* Krajee default styling for bootstrap-fileinput. * Krajee default styling for bootstrap-fileinput.
* *
* Author: Kartik Visweswaran * Author: Kartik Visweswaran
* Copyright: 2014 - 2019, Kartik Visweswaran, Krajee.com * Copyright: 2014 - 2020, Kartik Visweswaran, Krajee.com
* *
* Licensed under the BSD-3-Clause * Licensed under the BSD-3-Clause
* https://github.com/kartik-v/bootstrap-fileinput/blob/master/LICENSE.md * https://github.com/kartik-v/bootstrap-fileinput/blob/master/LICENSE.md
@ -60,10 +60,9 @@
height: 16px; height: 16px;
} }
.krajee-default .file-thumb-progress .progress, .krajee-default .file-thumb-progress .progress-bar { .file-thumb-progress .progress, .file-thumb-progress .progress-bar {
height: 20px;
font-family: Verdana, Helvetica, sans-serif; font-family: Verdana, Helvetica, sans-serif;
font-size: 9px; font-size: 0.7rem;
} }
.krajee-default .file-thumb-progress .progress, .kv-upload-progress .progress { .krajee-default .file-thumb-progress .progress, .kv-upload-progress .progress {
@ -205,8 +204,8 @@
.krajee-default.file-preview-frame { .krajee-default.file-preview-frame {
margin: 8px; margin: 8px;
border: 1px solid rgba(0,0,0,0.2); border: 1px solid rgba(0, 0, 0, 0.2);
box-shadow: 0 0 10px 0 rgba(0,0,0,0.2); box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
padding: 6px; padding: 6px;
float: left; float: left;
text-align: center; text-align: center;
@ -237,8 +236,8 @@
} }
.krajee-default.file-preview-frame:not(.file-preview-error):hover { .krajee-default.file-preview-frame:not(.file-preview-error):hover {
border: 1px solid rgba(0,0,0,0.3); border: 1px solid rgba(0, 0, 0, 0.3);
box-shadow: 0 0 10px 0 rgba(0,0,0,0.4); box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.4);
} }
.krajee-default .file-preview-text { .krajee-default .file-preview-text {
@ -292,7 +291,6 @@
} }
.krajee-default .file-thumb-progress { .krajee-default .file-thumb-progress {
height: 11px;
top: 37px; top: 37px;
left: 0; left: 0;
right: 0; right: 0;
@ -318,7 +316,7 @@
} }
.kv-upload-progress .progress-bar { .kv-upload-progress .progress-bar {
height: 20px; height: 11px;
font-family: Verdana, Helvetica, sans-serif; font-family: Verdana, Helvetica, sans-serif;
} }
@ -340,13 +338,13 @@
.file-zoom-dialog .btn-navigate { .file-zoom-dialog .btn-navigate {
padding: 0; padding: 0;
margin: 0; margin: -60px 0 0;
font-size: 60px;
background: transparent; background: transparent;
text-decoration: none; text-decoration: none;
outline: none; outline: none;
opacity: 0.7; opacity: 0.7;
top: 45%; top: 50%;
font-size: 4em;
color: #1c94c4; color: #1c94c4;
} }
@ -402,6 +400,7 @@
.file-drop-zone { .file-drop-zone {
border: 1px dashed #aaa; border: 1px dashed #aaa;
min-height: 260px;
border-radius: 4px; border-radius: 4px;
text-align: center; text-align: center;
vertical-align: middle; vertical-align: middle;
@ -424,6 +423,7 @@
.file-drop-zone-title { .file-drop-zone-title {
color: #aaa; color: #aaa;
font-size: 1.6em; font-size: 1.6em;
text-align:center;
padding: 85px 10px; padding: 85px 10px;
cursor: default; cursor: default;
} }
@ -467,8 +467,8 @@
} }
.file-zoom-content { .file-zoom-content {
height: 480px;
text-align: center; text-align: center;
min-height: 300px;
} }
.file-zoom-content .file-preview-image { .file-zoom-content .file-preview-image {
@ -532,19 +532,29 @@
padding-right: 20px; padding-right: 20px;
} }
.file-sortable .file-drag-handle { .clickable .file-drop-zone-title {
cursor: move; cursor: pointer;
opacity: 1;
} }
.file-sortable .file-drag-handle:hover { .file-sortable .file-drag-handle:hover {
opacity: 0.7; opacity: 0.7;
} }
.clickable .file-drop-zone-title { .file-sortable .file-drag-handle {
cursor: pointer; cursor: grab;
opacity: 1;
} }
.file-preview-initial.sortable-chosen { .file-grabbing, .file-grabbing * {
cursor: not-allowed !important;
}
.file-grabbing .file-preview-thumbnails * {
cursor: grabbing !important;
}
.file-preview-frame.sortable-chosen {
background-color: #d9edf7; background-color: #d9edf7;
border-color: #17a2b8;
box-shadow: none !important;
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -49,6 +49,14 @@
"/img/profile.jpg" "/img/profile.jpg"
] ]
}); });
$("#fileinput-demo-1").on("fileuploaded", function(event, data, proviewId, index) {
console.info(event);
console.info(data);
console.info(proviewId);
console.info(index);
});
}); });
</script> </script>
</body> </body>