feat(table): 列筛选显隐按页记忆,卡片设置入口移至左侧工具栏

- 列筛选面板勾选状态按页 localStorage 记忆,刷新后表格/卡片两侧一致恢复
- 卡片设置按钮由右侧图标区移至左侧操作按钮区,面板向下展开不再超出视口
- 入口改按钮直绑点击并抽出 toggleCardSettingPanel 复用,不再走 defaultToolbar 注入
This commit is contained in:
augushong
2026-10-05 02:12:23 +00:00
parent f688eef43e
commit faf00f324f
4 changed files with 204 additions and 135 deletions

View File

@@ -903,8 +903,28 @@ table样式
color: rgb(22, 183, 119);
}
/* 卡片设置面板(admin-table.js toggleCardSettingPanel 产出;面板骨架复用上方
.ul-nav-block 基类,此处补面板本体定位与视觉(与 .table-tpl-container 视图
切换下拉同语言)、配置行与自绘开关)。入口按钮 .ua-card-setting-btn 由受控
接线追加至左侧工具栏容器 .layui-table-tool-temp 末尾,position:relative 供
面板相对按钮向下展开锚定;按钮不带 lay-event,点击直调开关函数 */
.ua-card-setting-btn {
position: relative;
margin-left: 10px;
}
.ua-card-setting-panel {
position: absolute;
left: 0;
top: 100%;
z-index: 999;
min-width: 200px;
border: 1px solid #d2d2d2;
background-color: #fff;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
white-space: nowrap;
overflow-y: auto;
text-align: left;
}
.ua-card-setting-title {

View File

@@ -926,10 +926,28 @@ table样式
}
}
// 卡片设置面板(admin-table.js listenToolbar case 'TABLE_CARD_SETTING' 产出;
// 面板骨架复用上方 .ul-nav-block 基类,此处只补面板本体、配置行与自绘开关)
// 卡片设置面板(admin-table.js toggleCardSettingPanel 产出;面板骨架复用上方
// .ul-nav-block 基类,此处补面板本体定位与视觉(与 .table-tpl-container 视图
// 切换下拉同语言)、配置行与自绘开关)。入口按钮 .ua-card-setting-btn 由受控
// 接线追加至左侧工具栏容器 .layui-table-tool-temp 末尾,position:relative 供
// 面板相对按钮向下展开锚定;按钮不带 lay-event,点击直调开关函数
.ua-card-setting-btn {
position: relative;
margin-left: 10px;
}
.ua-card-setting-panel {
position: absolute;
left: 0;
top: 100%;
z-index: 999;
min-width: 200px;
border: 1px solid #d2d2d2;
background-color: #fff;
box-shadow: 0 2px 4px rgba(0, 0, 0, .12);
white-space: nowrap;
overflow-y: auto;
text-align: left;
}
.ua-card-setting-title {