From c1036a3d14dd467470273851e5eefac4faabef94 Mon Sep 17 00:00:00 2001 From: yiqiu Date: Sun, 11 Jan 2026 12:02:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=89=E7=BA=A7=E8=8F=9C=E5=8D=95UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../template/admin/index.html | 3 +- .../template/admin/nav-config-table.css | 121 ++++++++++++++++++ 2 files changed, 123 insertions(+), 1 deletion(-) create mode 100644 plugins/addon/theme_configurator/template/admin/nav-config-table.css diff --git a/plugins/addon/theme_configurator/template/admin/index.html b/plugins/addon/theme_configurator/template/admin/index.html index d6e1b61..9292484 100644 --- a/plugins/addon/theme_configurator/template/admin/index.html +++ b/plugins/addon/theme_configurator/template/admin/index.html @@ -761,7 +761,7 @@ grandChildren.forEach((grandChild, grandIndex) => { const item = document.createElement('div'); - item.style.cssText = 'padding:8px; margin-bottom:6px; background:#fafafa; border-radius:3px; border-left:2px solid #52c41a;'; + item.style.cssText = 'padding:8px; margin-bottom:6px; margin-left:24px; background:#fff7e6; border-radius:3px; border-left:3px solid #fa8c16;'; // 生成地区选项(只使用方形图标,排除-y后缀的圆形图标) const countryOptions = getCountryOptions(); @@ -775,6 +775,7 @@ item.innerHTML = `
+ 🏷️ 三级
diff --git a/plugins/addon/theme_configurator/template/admin/nav-config-table.css b/plugins/addon/theme_configurator/template/admin/nav-config-table.css new file mode 100644 index 0000000..75f423f --- /dev/null +++ b/plugins/addon/theme_configurator/template/admin/nav-config-table.css @@ -0,0 +1,121 @@ +/* 导航配置表格样式 */ +.nav-config-table { + width: 100%; + border-collapse: collapse; + background: #fff; + font-size: 13px; + margin-top: 12px; +} + +.nav-config-table thead th { + background: #f5f5f5; + padding: 10px 8px; + text-align: left; + font-weight: 600; + border: 1px solid #e0e0e0; + font-size: 12px; +} + +.nav-config-table tbody td { + padding: 8px; + border: 1px solid #e8e8e8; + vertical-align: middle; +} + +.nav-config-table input[type="text"], +.nav-config-table select { + width: 100%; + padding: 4px 8px; + border: 1px solid #d9d9d9; + border-radius: 2px; + font-size: 12px; +} + +.nav-config-table input[type="text"]:focus, +.nav-config-table select:focus { + border-color: #1890ff; + outline: none; +} + +.nav-config-table input[type="checkbox"] { + margin-right: 4px; +} + +/* 层级缩进样式 */ +.nav-level-1 { + padding-left: 8px !important; + background: #fafafa; +} + +.nav-level-2 { + padding-left: 32px !important; + background: #f0f7ff; +} + +.nav-level-3 { + padding-left: 56px !important; + background: #f6ffed; +} + +/* 层级标签 */ +.level-badge { + display: inline-block; + padding: 2px 6px; + border-radius: 3px; + font-size: 11px; + font-weight: 600; + margin-right: 6px; +} + +.level-badge-1 { + background: #52c41a; + color: #fff; +} + +.level-badge-2 { + background: #1890ff; + color: #fff; +} + +.level-badge-3 { + background: #fa8c16; + color: #fff; +} + +/* 操作按钮 */ +.nav-action-btn { + padding: 2px 8px; + border: none; + border-radius: 2px; + cursor: pointer; + font-size: 11px; + margin: 0 2px; + transition: all 0.2s; +} + +.nav-action-btn-add { + background: #52c41a; + color: #fff; +} + +.nav-action-btn-add:hover { + background: #389e0d; +} + +.nav-action-btn-remove { + background: #ff4d4f; + color: #fff; +} + +.nav-action-btn-remove:hover { + background: #cf1322; +} + +.nav-action-btn-toggle { + background: #1890ff; + color: #fff; +} + +.nav-action-btn-toggle:hover { + background: #096dd9; +} \ No newline at end of file