1
0
mirror of https://gitee.com/bookshelfplus/bookshelfplus synced 2025-10-13 19:25:14 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

管理员后台文件管理前端页面完成;一些小调整

This commit is contained in:
2022-04-10 16:50:08 +08:00
parent dc1e8ee810
commit 2912c09098
7 changed files with 86 additions and 32 deletions

View File

@@ -71,12 +71,12 @@
// var mainDivWidth = 70/*vw*/; // 定义div的宽度用于计算表格中的数据的显示长度
// var columnWidth = [60, 40];
// renderData.push({
// 分类: ` <a target="_blank" href="/category?id=${element.id}">
// 分类: `<a target="_blank" href="/category?id=${element.id}">
// <span class="overflow-omit" style="max-width: ${columnWidth[0] * mainDivWidth / 100}vw; max-height: 2em; margin: 0 auto;">
// ${element.name}
// </span>
// </a>`,
// 简介: ` <span class="overflow-omit" style="max-width: ${columnWidth[1] * mainDivWidth / 100}vw; max-height: 2em; margin: 0 auto;">
// 简介: `<span class="overflow-omit" style="max-width: ${columnWidth[1] * mainDivWidth / 100}vw; max-height: 2em; margin: 0 auto;">
// ${element.description}
// </span>`,
// })
@@ -90,12 +90,12 @@
var mainDivWidth = 70/*vw*/; // 定义div的宽度用于计算表格中的数据的显示长度
var columnWidth = [70, 30];
renderData.push({
分类: ` <a target="_blank" href="/category?id=${category.id}">
分类: `<a target="_blank" href="/category?id=${category.id}">
<span class="overflow-omit" style="max-width: ${columnWidth[0] * mainDivWidth / 100}vw; max-height: 2em; text-align: left;">
${"&nbsp;".repeat((category.level-1)*8)}${category.name}
</span>
</a>`,
简介: ` <span class="overflow-omit" style="max-width: ${columnWidth[1] * mainDivWidth / 100}vw; max-height: 2em; text-align: left; text-indent: 1em;">
简介: `<span class="overflow-omit" style="max-width: ${columnWidth[1] * mainDivWidth / 100}vw; max-height: 2em; text-align: left; text-indent: 1em;">
${category.description}
</span>`,
})