mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-11-08 20:10:50 +08:00
feat(table): 形态感知工具栏与卡片设置面板(pro#5)
TABLE_CARD_SETTING 图标注入与形态联动 卡片设置面板:配置开关与排序循环(升→降→取消),显式 where 传参 setLayoutForm 排序箭头修复 settings 上下文暴露与操作按钮三态显隐
This commit is contained in:
@@ -859,6 +859,81 @@ table样式
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* 卡片操作按钮三态显隐:卡片网格内默认隐藏(保占位防 footer 跳动)、
|
||||
hover 显示;设置面板开关写入容器的 ua-card-operat-always 类后常显
|
||||
(admin-table.js 两条渲染路径挂类);触屏设备无 hover 能力恒显。 */
|
||||
.ua-layout-cards .ua-data-card-operat {
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
transition: opacity 0.2s, visibility 0.2s;
|
||||
}
|
||||
|
||||
.ua-data-card:hover .ua-data-card-operat {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
.ua-card-operat-always .ua-data-card-operat {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
@media (hover: none) {
|
||||
.ua-layout-cards .ua-data-card-operat {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
|
||||
.ua-card-setting-panel {
|
||||
min-width: 200px;
|
||||
}
|
||||
|
||||
.ua-card-setting-title {
|
||||
padding: 10px 18px 2px;
|
||||
color: #999;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.ua-card-setting-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
padding: 8px 18px;
|
||||
}
|
||||
.ua-card-setting-item:hover {
|
||||
background-color: #f8f8f8;
|
||||
}
|
||||
|
||||
.ua-card-setting-switch {
|
||||
position: relative;
|
||||
flex: none;
|
||||
width: 36px;
|
||||
height: 18px;
|
||||
border-radius: 9px;
|
||||
background-color: #d2d2d2;
|
||||
cursor: pointer;
|
||||
transition: background-color 0.2s;
|
||||
}
|
||||
.ua-card-setting-switch::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
left: 2px;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
border-radius: 50%;
|
||||
background-color: #fff;
|
||||
transition: left 0.2s;
|
||||
}
|
||||
.ua-card-setting-switch.on {
|
||||
background-color: rgb(22, 183, 119);
|
||||
}
|
||||
.ua-card-setting-switch.on::after {
|
||||
left: 20px;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.ua-layout-cards {
|
||||
grid-template-columns: 1fr;
|
||||
|
||||
Reference in New Issue
Block a user