feat: 导出设置增强 —— 分辨率预设/自定义/历史记忆/日期命名
- 导出设置面板:分辨率预设(原始/1920×1080/1280×720/1024×768/800×600/自定义) - 自定义宽高手动输入,页面实时居中预览导出效果(原图 contain 居中,自动适配深色背景) - 分辨率历史记忆:localStorage 存最近5个,下拉一键复用 - 文件名:默认按日期时间自动命名(每次不同),支持手动命名(自动补扩展名) - 三个模式(图表/表格/双图合并)统一走带分辨率的导出 - 修复:DOMContentLoaded 提前调用 generateCombine 覆盖 chartArea,导致图表模式 echarts canvas 被破坏
This commit is contained in:
@@ -607,3 +607,67 @@ input[type="range"]::-moz-range-thumb {
|
||||
background: #cbd5e1;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
/* ===== 导出设置 ===== */
|
||||
.res-input-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.res-input-row input[type="number"] {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.res-times {
|
||||
color: var(--text-light);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* ===== 导出预览(按分辨率居中展示保存后的图) ===== */
|
||||
.export-preview-box {
|
||||
margin-top: 14px;
|
||||
border: 1px dashed var(--border);
|
||||
border-radius: 10px;
|
||||
background: #ffffff;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.export-preview-title {
|
||||
font-size: 0.85rem;
|
||||
font-weight: 600;
|
||||
color: var(--text-light);
|
||||
margin-bottom: 8px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.export-preview-inner {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 120px;
|
||||
background: repeating-conic-gradient(#f1f5f9 0% 25%, #ffffff 0% 50%) 0 0 / 20px 20px;
|
||||
border-radius: 8px;
|
||||
padding: 12px;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.export-preview-inner img {
|
||||
max-width: 100%;
|
||||
max-height: 300px;
|
||||
box-shadow: 0 4px 14px rgba(0,0,0,0.12);
|
||||
border-radius: 4px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.export-preview-size {
|
||||
font-size: 0.78rem;
|
||||
color: var(--primary);
|
||||
background: #eef2ff;
|
||||
border-radius: 4px;
|
||||
padding: 1px 8px;
|
||||
font-weight: 600;
|
||||
}
|
||||
Reference in New Issue
Block a user