优化附件预览,layui升级到最新版2.8.11
This commit is contained in:
parent
db565e6f6e
commit
c3777594e2
@ -467,7 +467,11 @@ function file_card($file,$view=''){
|
|||||||
$type_icon = 'icon-sucaiguanli';
|
$type_icon = 'icon-sucaiguanli';
|
||||||
$view_btn = '<span class="file-view-img blue" data-href="'.$file['filepath'].'" title="在线查看"><i class="iconfont icon-tupianguanli"></i></span>';
|
$view_btn = '<span class="file-view-img blue" data-href="'.$file['filepath'].'" title="在线查看"><i class="iconfont icon-tupianguanli"></i></span>';
|
||||||
}
|
}
|
||||||
$item = '<div class="file-card file-'.$view.'" id="fileItem'.$file['id'].'">
|
$file_del='';
|
||||||
|
if(!empty($file['delete_time'])){
|
||||||
|
$file_del = 'file-hasdelete';
|
||||||
|
}
|
||||||
|
$item = '<div class="file-card '.$file_del.' file-'.$view.'" id="fileItem'.$file['id'].'">
|
||||||
<i class="file-icon iconfont '.$type_icon.'"></i>
|
<i class="file-icon iconfont '.$type_icon.'"></i>
|
||||||
<div class="file-info">
|
<div class="file-info">
|
||||||
<div class="file-title" title="'.$file['name'].'">'.$file['name'].'</div>
|
<div class="file-title" title="'.$file['name'].'">'.$file['name'].'</div>
|
||||||
|
@ -18,7 +18,7 @@ require __DIR__ . '/../vendor/autoload.php';
|
|||||||
define('CMS_VERSION','4.60.28');
|
define('CMS_VERSION','4.60.28');
|
||||||
|
|
||||||
// 定义Layui版本号
|
// 定义Layui版本号
|
||||||
define('LAYUI_VERSION','2.8.10');
|
define('LAYUI_VERSION','2.8.11');
|
||||||
|
|
||||||
// 定义项目目录
|
// 定义项目目录
|
||||||
define('CMS_ROOT', __DIR__ . '/../');
|
define('CMS_ROOT', __DIR__ . '/../');
|
||||||
|
@ -322,7 +322,7 @@ div.layui-table-main::-webkit-scrollbar-thumb:active{background-color:rgba(0,0,0
|
|||||||
.file-card .file-ops{font-size:12px; color:#aaa;}
|
.file-card .file-ops{font-size:12px; color:#aaa;}
|
||||||
.file-card .file-tool .iconfont{font-size:20px; font-weight:600; padding:4px; display:inline-block; cursor:pointer;}
|
.file-card .file-tool .iconfont{font-size:20px; font-weight:600; padding:4px; display:inline-block; cursor:pointer;}
|
||||||
.file-card.file-view .btn-delete{display:none}
|
.file-card.file-view .btn-delete{display:none}
|
||||||
.file-hasdelete{background:url(../images/delete_icon.png) no-repeat 96% 0; background-size: auto 58px; color:#aaa}
|
.file-hasdelete{background:url(../images/delete_icon.png) no-repeat 99% 0; background-size: auto 58px; color:#aaa}
|
||||||
.file-hasdelete .file-icon{color:#aaa;}
|
.file-hasdelete .file-icon{color:#aaa;}
|
||||||
.file-hasdelete .file-tool{display:none}
|
.file-hasdelete .file-tool{display:none}
|
||||||
/*审批*/
|
/*审批*/
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user