feat(admin): 新增图片预览功能

- 新增图片预览脚本 image-preview.js
- 新增预览关闭按钮样式
- 新增测试用例
- 为图片链接添加预览类名
- 修复图片点击打开逻辑
- 调整图片预览层级显示
这个提交包含在:
2026-11-20 10:18:23 +08:00
父节点 18dada4f23
当前提交 3d86db0bf4
共有 17 个文件被更改,包括 137 次插入 和 11 次删除

查看文件

@@ -20,6 +20,16 @@
<link href="__CDN__/assets/css/theme-qibing-orange.css?v={$Think.config.site.version|htmlentities}" rel="stylesheet">
<style>
/* The image viewer sits above existing dialogs and has its own close control. */
.layui-layer-photos .layui-layer-setwin { top: 12px; right: 12px; z-index: 2; }
.layui-layer-photos .layui-layer-setwin .layui-layer-close2,
.layui-layer-photos .layui-layer-setwin .layui-layer-close2:hover {
position: relative; top: 0; right: 0; width: 40px; height: 40px; margin: 0;
border-radius: 50%; background: rgba(0, 0, 0, .66) url('__CDN__/assets/img/admin-preview-close.svg') center / 24px 24px no-repeat;
cursor: pointer;
}
.layui-layer-photos .layui-layer-setwin .layui-layer-close2:hover { background-color: rgba(0, 0, 0, .85); }
.layui-layer-photos .layui-layer-setwin .layui-layer-close2:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* Keep actions visible inside the table's own horizontal scroll area. */
.bootstrap-table .fixed-table-body table { border-collapse: separate; border-spacing: 0; }
.bootstrap-table .fixed-table-body th.yjyf-table-operate,