5 Commits

Author SHA1 Message Date
liuyun
c96151d2ae refactor: convert raw CSS to Tailwind @apply + search collapseCount=3
- ty-search-form 折叠默认数 2 → 3
- login/register/forgot/home/ty-header/ty-sidebar/ty-mixbar/ty-tabs/ty-footer/ty-setting-panel/icon/default 布局裸 CSS 转 @apply
- 修复背景色工具类误写(bg-base→bg-bg-base、bg-page→bg-bg-page)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-11 13:18:45 +08:00
liuyun
c5e044ea42 fix: reduce collapsed sidebar item margin and add popup icon gap
- 折叠时菜单项左右 margin 8px→4px,图标放大到 24px
- 折叠弹出的子菜单(teleport 到 body)用全局样式补图标与文字间距

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-11 00:54:20 +08:00
liuyun
1f06594252 fix: enlarge collapsed sidebar icons and make icon component inherit class
- 侧栏折叠时图标放大到 22px(展开时加图标与文字间距)
- 修复 el-menu-item 叶子项 #title 插槽误用
- icon 组件多根节点不自动继承 class,改为 inheritAttrs:false + v-bind="$attrs",使外部 class/size 生效

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-11 00:48:33 +08:00
liuyun
99650949c0 style: polish admin layout visuals
- 顶栏改柔和阴影,Logo 区与侧栏连成一体(同宽+右边框)
- 侧栏菜单项圆角、主题色高亮、hover 过渡
- 内容区灰底衬白,footer 加顶边框,多页签激活态配色统一

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-11 00:40:11 +08:00
liuyun
6ef0b1121c feat: admin layout shell with Element Plus and configurable theme
- 集成 Element Plus(on-demand resolver + 中文 locale + 暗黑 css-vars)
- 布局壳组件(ty-header/ty-mixbar/ty-sidebar/ty-tabs/ty-breadcrumb/ty-footer/ty-setting/ty-setting-panel),中划线 + ty 前缀 + 自动导入,props/emits 解耦
- 5 种布局/导航模式 + 主题色(#2E7FA3) + 暗黑 + 侧栏折叠/宽度 + 固定顶栏/底栏 + 面包屑/多页签/全屏/手风琴
- 默认值集中配置 src/config/layout.ts;菜单字段对齐后端 resource(src/types/resource.ts + src/config/menu.ts)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-11 00:12:59 +08:00