三级菜单UI
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
yiqiu
2026-01-11 12:02:28 +08:00
parent 123750e904
commit c1036a3d14
2 changed files with 123 additions and 1 deletions

View File

@@ -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 = `
<div style="display:flex; gap:6px; align-items:start;">
<span style="color:#fa8c16; font-weight:600; font-size:11px;">🏷️ 三级</span>
<div style="flex:1; display:grid; gap:6px;">
<input type="text" class="form-control form-control-sm" data-hnav-grandchild="${navIndex}.${childIndex}.${grandIndex}" data-field="name" value="${grandChild.name || ''}" placeholder="三级菜单名称香港SAS" style="font-size:12px;">
<input type="text" class="form-control form-control-sm" data-hnav-grandchild="${navIndex}.${childIndex}.${grandIndex}" data-field="file_address" value="${grandChild.file_address || ''}" placeholder="链接地址" style="font-size:12px;">