feat: 冻结系统化待办类型和内容列 #723
@ -62,6 +62,7 @@
|
||||
.sys-todo-table { width:108rem; min-width:108rem; table-layout:fixed; border-collapse:separate; border-spacing:0; font-size:.75rem; }
|
||||
.sys-todo-table th { position:sticky; top:0; z-index:4; padding:.55rem .7rem; border-bottom:1px solid var(--sys-border); background:#f3ece0; color:#3d3a35; text-align:left; white-space:nowrap; }
|
||||
.sys-todo-table th:first-child { left:0; z-index:8; width:var(--sys-todo-type-width,5.4rem); text-align:center; box-shadow:1px 0 0 #e5ddcf; }
|
||||
.sys-todo-table th:nth-child(2) { left:var(--sys-todo-type-width,5.4rem); z-index:8; width:var(--sys-todo-content-width,13.25rem); box-shadow:1px 0 0 #e5ddcf; }
|
||||
.sys-todo-table td { padding:.72rem .7rem; border-bottom:1px solid #eee7da; background:#fff; color:#2f2a23; line-height:1.5; vertical-align:top; overflow-wrap:anywhere; }
|
||||
.sys-todo-table tbody tr:hover td { background:#fdfbf6; }
|
||||
.sys-todo-table tbody tr.is-highlighted td { background:#fff4cf !important; }
|
||||
@ -132,6 +133,7 @@
|
||||
.sys-todo-table__group-text { min-width:0; white-space:pre-line; overflow-wrap:anywhere; }
|
||||
.sys-todo-table__level { display:inline-flex; flex:0 0 auto; align-items:center; justify-content:center; min-width:1.35rem; height:1.35rem; margin-top:.05rem; border:1px solid #d8c9aa; border-radius:999px; background:#fffaf0; color:var(--sys-gold); font-size:.68rem; font-weight:700; font-variant-numeric:tabular-nums; }
|
||||
.sys-todo-table__type { position:sticky; left:0; z-index:3; width:var(--sys-todo-type-width,5.4rem); text-align:center; white-space:normal; box-shadow:1px 0 0 #e5ddcf; }
|
||||
.sys-todo-table__section { position:sticky; left:var(--sys-todo-type-width,5.4rem); z-index:3; width:var(--sys-todo-content-width,13.25rem); box-shadow:1px 0 0 #e5ddcf; }
|
||||
.sys-todo-table__type .sys-todo-table__group-text { white-space:normal; }
|
||||
.sys-todo-table__title { font-weight:600; line-height:1.5; white-space:pre-line; overflow-wrap:anywhere; }
|
||||
.sys-todo-table__inline-add { display:inline-flex; align-items:center; justify-content:center; gap:.15rem; min-height:1.65rem; margin-top:.45rem; padding:0 .45rem; border:1px solid #d8c9aa; border-radius:999px; background:#fffaf0; color:#6d5630; font:inherit; font-size:.68rem; font-weight:500; white-space:nowrap; cursor:pointer; }
|
||||
@ -579,7 +581,7 @@
|
||||
</div>
|
||||
|
||||
<div class="sys-todo-table-wrap" tabindex="0" aria-label="待办列表,可横向滚动查看全部内容" data-sys-todo-table-wrap>
|
||||
<table class="sys-todo-table" aria-label="财务系统化待办清单" style="--sys-todo-type-width:94px"
|
||||
<table class="sys-todo-table" aria-label="财务系统化待办清单" style="--sys-todo-type-width:94px;--sys-todo-content-width:212px"
|
||||
data-sys-todo-grid
|
||||
data-sys-todo-grid-save-url="{{ $todoRoutes['gridCells'] }}"
|
||||
data-sys-todo-grid-create-url="{{ $todoRoutes['gridCreate'] }}">
|
||||
@ -1395,6 +1397,7 @@
|
||||
todoTable.style.width = total + 'px';
|
||||
todoTable.style.minWidth = total + 'px';
|
||||
todoTable.style.setProperty('--sys-todo-type-width', columnWidths[0] + 'px');
|
||||
todoTable.style.setProperty('--sys-todo-content-width', columnWidths[1] + 'px');
|
||||
if (persist) {
|
||||
persistColumnWidths(columnWidths);
|
||||
}
|
||||
|
||||
@ -77,6 +77,9 @@ class SystemizationTodosTest extends FeatureTestCase
|
||||
->assertSeeText('单击单元格直接编辑')
|
||||
->assertSeeText('将 Excel 内容粘贴进来')
|
||||
->assertSee('.sys-todo-table__type .sys-todo-table__inline-actions', false)
|
||||
->assertSee('.sys-todo-table th:nth-child(2)', false)
|
||||
->assertSee('.sys-todo-table__section { position:sticky', false)
|
||||
->assertSee("todoTable.style.setProperty('--sys-todo-content-width'", false)
|
||||
->assertSee('tr:hover .sys-todo-table__index-actions > .sys-todo-table__insert-after', false)
|
||||
->assertSee('tr:has(.sys-todo-grid-value.is-selected) .sys-todo-table__row-actions', false)
|
||||
->assertSee('.sys-todo-table [data-sys-todo-grid-upload] { display:none;', false)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user