fix(market): 1.修复模型超市 模糊搜索-模型名称异常的问题
feat(table): 2.新增三中心表格统一策略: - 覆盖 `/user-center/*`、`/org/*`、`/console/*`,包含系统设置。 - 自动识别最后一列的创建、查看、编辑、测试、详情、删除、设置、弹窗、API 回调等交互。 - 操作列统一显示“操作”,固定在右侧。 - 根据按钮和文字实际宽度测量,保持操作文字单行显示。 - 非操作宽表自动固定右侧末 4 / 3 / 2 / 1 列。 - 保留 Ant Design 官方横向滚动行为,不隐藏滚动条。
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
.center-action-table {
|
||||
min-width: 0;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.center-action-table .ant-table-tbody > tr > .center-fixed-cell {
|
||||
z-index: 2;
|
||||
background: var(--center-table-bg);
|
||||
background-clip: padding-box;
|
||||
}
|
||||
|
||||
.center-action-table .ant-table-thead > tr > .center-fixed-cell {
|
||||
z-index: 3;
|
||||
background: var(--ur-head-bg, var(--center-table-head-bg));
|
||||
background-clip: padding-box;
|
||||
}
|
||||
|
||||
.center-action-table .ant-table-tbody > tr:hover > .center-fixed-cell {
|
||||
background: var(--center-table-hover-bg);
|
||||
}
|
||||
|
||||
.center-action-table
|
||||
.ant-table-tbody
|
||||
> tr.ant-table-row-selected
|
||||
> .center-fixed-cell {
|
||||
background: var(--center-table-selected-bg);
|
||||
}
|
||||
|
||||
.center-action-table .center-fixed-cell {
|
||||
white-space: normal;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.center-action-table .center-action-cell {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.center-action-table
|
||||
.center-action-cell
|
||||
:where(
|
||||
.ant-space,
|
||||
.ant-flex,
|
||||
.flex,
|
||||
.km-actions,
|
||||
.oc-row-actions,
|
||||
.org-row-actions,
|
||||
.console-module-row-actions,
|
||||
.console-channel-key-actions,
|
||||
.console-channel-model-actions,
|
||||
.admin-tokens-row-actions,
|
||||
.website-insights-row-actions
|
||||
) {
|
||||
flex-wrap: nowrap;
|
||||
max-width: none;
|
||||
}
|
||||
Reference in New Issue
Block a user