fix(admin): 统一诊金与提成结算等九页的浅色界面

This commit is contained in:
2026-12-02 14:45:52 +08:00
parent fb3a45d120
commit 772e6d08f8
17 changed files with 830 additions and 85 deletions
@@ -106,17 +106,17 @@
/>
<div class="relative flex items-start justify-between gap-3">
<div>
<div class="flex items-center gap-2 text-slate-500 text-xs font-medium">
<div class="po-stat-label flex items-center gap-2 text-slate-500 text-xs font-medium">
<el-icon :size="16" class="text-sky-500"><Calendar /></el-icon>
{{ listStats.orderHeading }}
</div>
<div class="mt-2 space-y-1.5 min-w-0">
<div class="text-2xl sm:text-[28px] font-bold text-sky-700 tabular-nums leading-none">
<div class="po-stat-value text-2xl sm:text-[28px] font-bold text-sky-700 tabular-nums leading-none">
¥{{ listStats.orderPerformanceStr }}
</div>
<div class="flex flex-wrap gap-x-3 gap-y-1 text-xs text-slate-500 tabular-nums">
<div class="po-stat-meta flex flex-wrap gap-x-3 gap-y-1 text-xs text-slate-500 tabular-nums">
<span>合计 ¥{{ listStats.orderStr }}</span>
<span class="text-slate-400">已取消 ¥{{ listStats.orderCancelledStr }}</span>
<span class="po-stat-cancelled text-slate-400">已取消 ¥{{ listStats.orderCancelledStr }}</span>
</div>
</div>
</div>
@@ -126,7 +126,7 @@
<el-icon :size="20"><Document /></el-icon>
</div>
</div>
<p class="relative mt-2 text-xs text-slate-500 leading-relaxed">
<p class="po-stat-meta relative mt-2 text-xs text-slate-500 leading-relaxed">
{{ listStats.periodLine }}
</p>
<!-- <p class="relative mt-1.5 text-xs text-slate-400 leading-relaxed">
@@ -144,17 +144,17 @@
/>
<div class="relative flex items-start justify-between gap-3">
<div>
<div class="flex items-center gap-2 text-slate-500 text-xs font-medium">
<div class="po-stat-label flex items-center gap-2 text-slate-500 text-xs font-medium">
<el-icon :size="16" class="text-emerald-500"><LinkIcon /></el-icon>
{{ listStats.payHeading }}
</div>
<div class="mt-2 space-y-1.5 min-w-0">
<div class="text-2xl sm:text-[28px] font-bold text-emerald-700 tabular-nums leading-none">
<div class="po-stat-value text-2xl sm:text-[28px] font-bold text-emerald-700 tabular-nums leading-none">
¥{{ listStats.payPerformanceStr }}
</div>
<div class="flex flex-wrap gap-x-3 gap-y-1 text-xs text-slate-500 tabular-nums">
<div class="po-stat-meta flex flex-wrap gap-x-3 gap-y-1 text-xs text-slate-500 tabular-nums">
<span>合计 ¥{{ listStats.payStr }}</span>
<span class="text-slate-400">已取消 ¥{{ listStats.payCancelledStr }}</span>
<span class="po-stat-cancelled text-slate-400">已取消 ¥{{ listStats.payCancelledStr }}</span>
</div>
</div>
</div>
@@ -164,7 +164,7 @@
<el-icon :size="20"><Wallet /></el-icon>
</div>
</div>
<p class="relative mt-2 text-xs text-slate-500 leading-relaxed">
<p class="po-stat-meta relative mt-2 text-xs text-slate-500 leading-relaxed">
{{ listStats.periodLine }}
</p>
<!-- <p class="relative mt-1.5 text-xs text-slate-400 leading-relaxed">
@@ -5279,6 +5279,27 @@ async function downloadPrescriptionSlipPdf(command: 'esign' | 'internal' | 'user
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
// Screen only: printing and the standalone H5 order list keep their own presentation.
@media screen {
:root[data-admin-ui='v2'] .po-list-stats {
.po-stat-surface {
border-color: var(--zyt-card-border);
border-radius: var(--zyt-radius);
background: var(--zyt-surface);
box-shadow: var(--zyt-shadow);
}
.po-stat-deco { display: none; }
.po-stat-label, .po-stat-meta, .po-stat-cancelled { color: var(--zyt-text); }
.po-stat-label .el-icon { color: inherit; }
.po-stat-value { color: var(--zyt-ink); }
.stat-icon-wrap {
color: var(--zyt-text);
background: var(--zyt-surface-subtle);
box-shadow: none;
}
}
}
.po-table-card {
border-radius: 8px;
}
+22
View File
@@ -988,3 +988,25 @@ onUnmounted(() => {
color: var(--el-text-color-placeholder);
}
</style>
<style scoped lang="scss">
:root[data-admin-ui='v2']:not(.dark) .dp-page {
background: var(--zyt-canvas);
padding: 0;
.dp-glass {
background: var(--zyt-surface);
border-color: var(--zyt-card-border);
border-radius: var(--zyt-radius);
box-shadow: none;
backdrop-filter: none;
}
.dp-avatar {
color: var(--zyt-text);
background: var(--zyt-surface-subtle);
box-shadow: none;
}
.dp-section-title { color: var(--zyt-ink); }
.dp-section-hint { color: var(--zyt-text); }
}
</style>
@@ -0,0 +1,90 @@
html[data-admin-ui='v2'] {
.cs-page, .cs-dialog {
--cs-ink: var(--zyt-ink);
--cs-text: var(--zyt-text);
--cs-muted: var(--zyt-text);
--cs-faint: var(--zyt-muted);
--cs-line: var(--zyt-card-border);
--cs-line-soft: var(--zyt-card-border);
--cs-surface: var(--zyt-surface);
--cs-surface-alt: var(--zyt-surface-subtle);
--cs-page: var(--zyt-canvas);
--cs-brand: var(--zyt-primary);
--cs-brand-strong: var(--zyt-selected-ink, var(--zyt-primary));
--cs-brand-soft: var(--zyt-accent-soft);
--cs-total-surface: var(--zyt-surface-subtle);
--cs-total-divider: 1px solid var(--zyt-border);
--cs-group-surface: var(--zyt-surface-subtle);
--cs-shadow-sm: none;
--cs-shadow-md: var(--el-box-shadow);
--cs-radius: calc(var(--zyt-radius) + 4px);
--cs-radius-sm: var(--el-border-radius-base);
}
.cs-page {
// The shell already supplies the content gutter.
padding: 0;
.cs-masthead__inner {
display: block;
padding: 16px 20px;
background: var(--cs-surface);
}
.cs-masthead__inner::before, .cs-table-head__title::before { content: none; }
.cs-masthead__eyebrow { display: none; }
.cs-masthead__title { font-size: 22px; font-weight: 600; }
.cs-masthead__desc {
max-width: none;
overflow-wrap: anywhere;
strong { font-weight: 500; }
}
.cs-masthead__stats {
gap: 6px 20px;
margin-top: 12px;
padding: 0;
border: 0;
border-radius: 0;
background: none;
backdrop-filter: none;
}
.cs-stat { flex-flow: row wrap; align-items: baseline; gap: 6px; padding: 0; border: 0; }
.cs-stat__label, .filter-field .lbl { font-size: 13px; font-weight: 400; letter-spacing: normal; }
.cs-stat__value { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.cs-alert { border-radius: var(--cs-radius); }
.cs-alert :deep(.el-alert__icon) { color: var(--cs-text); }
.cs-alert__meta strong { color: var(--cs-ink); font-weight: 600; }
.cs-table-head__title { padding-left: 0; font-weight: 600; }
.cs-table :deep(.el-table__header th.el-table__cell) { font-size: 12px; letter-spacing: normal; }
.cs-reconcile__carry {
padding: 0;
background: none;
border: 0;
strong { color: var(--cs-ink); }
}
.cs-reconcile__tags :deep(.el-tag) { border-radius: var(--el-border-radius-base); }
.filter-actions, .cs-reconcile__toolbar {
:deep(.el-button + .el-button) { margin-left: 0; }
}
.cs-drill-state { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: 100%; }
.cs-drill-state__tag {
max-width: min(320px, 100%);
:deep(.el-tag__content) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
.cs-channel-tag--clickable { cursor: pointer; &:hover { text-decoration: underline; } }
.cs-dept-link:hover .cs-dept-link__icon { color: var(--zyt-on-primary, white); }
}
@media (max-width: 640px) {
.cs-page {
.cs-masthead__inner, .filter-surface { padding: 14px; }
.cs-masthead__title { font-size: 20px; }
.filter-field { flex: 1 1 100%; min-width: 0; }
.filter-month, .filter-datetimerange, .filter-select, .filter-dept-tree-select {
width: 100%;
min-width: 0;
max-width: 100%;
}
}
}
}
+15 -12
View File
@@ -1583,16 +1583,17 @@ onMounted(async () => {
gap: 8px;
margin-left: auto;
}
.filter-btn {
// V2 uses the same native primary/secondary buttons as the rest of the admin.
.filter-btn__icon {
margin-right: 4px;
vertical-align: -2px;
}
:where(html:not([data-admin-ui='v2'])) .filter-btn {
padding: 8px 18px;
font-weight: 600;
font-size: 13px;
border-radius: var(--cs-radius-sm);
transition: all 0.18s ease;
&__icon {
margin-right: 4px;
vertical-align: -2px;
}
&--query {
background: var(--cs-brand);
color: #fff;
@@ -1776,7 +1777,7 @@ onMounted(async () => {
}
/* ============ Drill state ============ */
.cs-drill-state {
:where(html:not([data-admin-ui='v2'])) .cs-drill-state {
display: inline-flex;
align-items: center;
gap: 6px;
@@ -1847,8 +1848,8 @@ onMounted(async () => {
font-weight: 700;
font-size: 13px;
color: var(--cs-ink);
background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%) !important;
border-top: 1.5px solid var(--cs-warning) !important;
background: var(--cs-total-surface, linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%)) !important;
border-top: var(--cs-total-divider, 1.5px solid var(--cs-warning)) !important;
}
}
@@ -1865,7 +1866,7 @@ onMounted(async () => {
.cs-table--grouped {
:deep(.el-table__body tr > td.el-table__cell:nth-child(1)),
:deep(.el-table__body tr > td.el-table__cell:nth-child(2)) {
background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
background: var(--cs-group-surface, linear-gradient(180deg, #ffffff 0%, #fafafa 100%));
font-weight: 600;
color: var(--cs-ink);
vertical-align: middle;
@@ -1880,7 +1881,7 @@ onMounted(async () => {
}
/* 挂号渠道彩色徽标 */
.cs-channel-tag {
:where(html:not([data-admin-ui='v2'])) .cs-channel-tag {
border-radius: 999px !important;
font-weight: 600 !important;
padding: 0 10px !important;
@@ -2018,8 +2019,8 @@ onMounted(async () => {
font-size: 12px;
}
/* ============ Element Plus overrides (scoped via deep) ============ */
.cs-page {
/* Classic control appearance; V2 inherits the application's Element Plus theme. */
:where(html:not([data-admin-ui='v2'])) .cs-page {
:deep(.el-input__wrapper),
:deep(.el-select__wrapper),
:deep(.el-date-editor.el-input__wrapper) {
@@ -2064,3 +2065,5 @@ onMounted(async () => {
.filter-actions { width: 100%; margin-left: 0; }
}
</style>
<style lang="scss" scoped src="./commission-settlement-v2.scss"></style>
+71
View File
@@ -0,0 +1,71 @@
// Match the accepted home page in the V2 light shell. Classic keeps its own stylesheet.
html[data-admin-ui='v2']:not(.dark) .yeji-page {
--yj-page: var(--zyt-canvas);
--yj-font: var(--el-font-family);
--yj-ink: var(--zyt-ink);
--yj-ink-secondary: var(--zyt-text);
--yj-muted: var(--zyt-text);
--yj-surface: var(--zyt-surface);
--yj-surface-muted: var(--zyt-surface-subtle);
--yj-line: var(--zyt-border);
--yj-line-strong: var(--zyt-border);
--yj-radius: calc(var(--zyt-radius) + 4px);
--yj-radius-sm: var(--zyt-radius);
--yj-shadow-sm: var(--zyt-shadow);
--yj-shadow-md: var(--zyt-shadow);
--yj-brand: var(--zyt-primary);
--yj-brand-soft: var(--zyt-accent-soft);
--yj-teal: var(--zyt-text); // range and chart subtitles, not series colors
--yj-teal-soft: var(--zyt-surface-subtle);
--yj-accent-soft: var(--zyt-surface-subtle); // regular totals, not warnings
--yj-dept-col-bg: var(--zyt-surface);
--yj-dept-col-bg-hover: var(--zyt-accent-soft);
--yj-dept-col-border: var(--zyt-border);
--yj-dept-col-head-ink: var(--zyt-text);
padding: 0; // the shell already supplies the content gutter
.yeji-masthead { margin-bottom: 20px; }
.yeji-masthead__inner {
display: block;
padding: 4px 0 0;
border-radius: 0;
background: transparent;
box-shadow: none;
}
.yeji-masthead__title {
color: var(--zyt-ink);
font-size: 24px;
font-weight: 600;
line-height: 1.25;
letter-spacing: -0.02em;
}
.yeji-masthead__desc { margin: 4px 0 0; color: var(--zyt-text); font-size: 13px; }
.yeji-panel { margin-bottom: 16px; border-color: var(--zyt-card-border); }
.yeji-main-tabs-card > :deep(.el-card__body) { padding: 0; }
.doctor-daily-card--nested { margin-bottom: 0; }
.yeji-table-tabs-head, .yeji-view-tabs :deep(.el-tabs__header),
.doctor-daily-card :deep(.el-card__header) { background: var(--zyt-surface); }
.yeji-table-tabs-head__title, .yeji-charts-only-head, .doctor-daily-card__title {
font-size: 17px;
font-weight: 600;
}
.yeji-zyyt-intro { color: var(--zyt-text); }
.tp-matrix-card__head { background: var(--zyt-surface-subtle); }
.filter-btn { border-radius: var(--el-border-radius-base); }
.filter-btn--query, .filter-btn--query:hover { color: var(--el-button-text-color); }
.yeji-view-tabs :deep(.el-tabs__item.is-active), .yeji-lead-cell--link,
.date-pill:hover, .filter-btn--reset:hover { color: var(--zyt-feedback-ink); }
// Keep pinned cells opaque and keep the existing horizontal scroll, hit areas and ROI states.
.yeji-table__body thead th { background: var(--zyt-surface-subtle); }
// The classic leaderboard pins its gradient with !important.
.yeji-table__body--leaderboard thead th.col-rank { background: var(--zyt-surface-subtle) !important; }
.yeji-table__body .col-completed { color: var(--zyt-text); }
.yeji-table__body .total-row td {
background: var(--zyt-surface-subtle);
border-color: var(--zyt-border);
}
}
+2
View File
@@ -5326,3 +5326,5 @@ tbody tr.total-row:hover .yeji-lead-cell--link {
}
}
</style>
<style lang="scss" scoped src="./yeji-v2.scss"></style>
+8 -1
View File
@@ -15,7 +15,7 @@
<!-- 卡片头 -->
<div class="dept-card__header">
<div class="dept-card__avatar" :style="{ background: avatarBg }">
<div class="dept-card__avatar" :style="{ '--classic-dept-avatar': avatarBg }">
{{ node.dept_name.slice(0, 1) }}
</div>
<div class="dept-card__meta">
@@ -292,10 +292,17 @@ function formatMoneyShort(v: number): string {
font-size: 15px;
font-weight: 800;
color: #fff;
background: var(--classic-dept-avatar);
flex-shrink: 0;
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}
:root[data-admin-ui='v2'] .dept-card__avatar {
color: var(--zyt-text);
background: var(--zyt-surface-subtle);
box-shadow: none;
}
.dept-card__meta {
flex: 1;
min-width: 0;
+104 -15
View File
@@ -1,5 +1,5 @@
<template>
<div class="conversion-page" v-loading="loading" element-loading-text="正在汇总权限范围内的数据">
<div class="conversion-page" :style="seriesStyle" v-loading="loading" element-loading-text="正在汇总权限范围内的数据">
<header class="page-heading">
<div>
<h1>综合数据转化</h1>
@@ -266,7 +266,7 @@
:percentage="progressValue(dashboard.target.completion_rate)"
:show-text="false"
:stroke-width="12"
color="#0f9185"
:color="palette?.accentText ?? '#0f9185'"
/>
<small>已完成 {{ formatMoney(dashboard.target.actual_amount) }} / 目标 {{ formatMoney(dashboard.target.target_amount) }}</small>
</div>
@@ -280,7 +280,7 @@
:percentage="progressValue(dashboard.target.current_month_rate)"
:show-text="false"
:stroke-width="12"
color="#2f78df"
:color="palette?.text ?? '#2f78df'"
/>
<small>已完成 {{ formatMoney(dashboard.target.current_month_actual) }} / 目标 {{ formatMoney(dashboard.target.current_month_target) }}</small>
</div>
@@ -376,6 +376,7 @@ import { computed, onMounted, reactive, ref } from 'vue'
import { ElMessage } from 'element-plus'
import { Lock, Refresh } from '@element-plus/icons-vue'
import vCharts from 'vue-echarts'
import { useStatsChartPalette } from '@/hooks/useStatsChartPalette'
import {
firstVisitConversionFansDetail,
firstVisitConversionOverview,
@@ -527,18 +528,45 @@ const detailRangeText = computed(() => {
const detailChannelText = computed(() => dashboard.meta.selected_media_channel_name || '全部渠道')
const totalOrderValue = computed(() => dashboard.rankings.orders.reduce((total, item) => total + Number(item.value || 0), 0))
const totalAmountValue = computed(() => dashboard.rankings.amounts.reduce((total, item) => total + Number(item.value || 0), 0))
const targetChartOption = computed(() => ({
animationDuration: 450,
color: ['#0f9185', '#2f78df'],
tooltip: { trigger: 'axis', valueFormatter: (value: number) => formatMoney(value) },
grid: { left: 62, right: 24, top: 28, bottom: 36 },
xAxis: { type: 'category', boundaryGap: false, data: dashboard.target.months, axisLine: { lineStyle: { color: '#d9e1e9' } }, axisLabel: { color: '#718096' } },
yAxis: { type: 'value', axisLabel: { color: '#718096', formatter: (value: number) => compactNumber(value) }, splitLine: { lineStyle: { color: '#edf1f5' } } },
series: [
{ name: '实际完成', type: 'line', smooth: true, symbol: 'none', lineStyle: { width: 3 }, areaStyle: { color: 'rgba(15,145,133,.08)' }, data: dashboard.target.actual_cumulative },
{ name: '目标值', type: 'line', smooth: true, symbol: 'none', lineStyle: { width: 2, type: 'dashed' }, data: dashboard.target.target_cumulative }
]
}))
const palette = useStatsChartPalette()
const seriesStyle = computed(() => palette.value ? {
'--conversion-mark': palette.value.accentInk,
'--conversion-accent-text': palette.value.accentText
} : undefined)
const targetChartOption = computed(() => {
const skin = palette.value
const actual = skin?.accentInk ?? '#0f9185'
const target = skin?.text ?? '#2f78df'
return {
animationDuration: 450,
color: [actual, target],
tooltip: {
trigger: 'axis', valueFormatter: (value: number) => formatMoney(value),
...(skin && {
confine: true, backgroundColor: skin.surface, borderColor: skin.border,
textStyle: { color: skin.ink }, axisPointer: { lineStyle: { color: skin.muted } }
})
},
grid: { left: 62, right: 24, top: 28, bottom: 36 },
xAxis: {
type: 'category', boundaryGap: false, data: dashboard.target.months,
axisLine: { lineStyle: { color: skin?.border ?? '#d9e1e9' } }, axisLabel: { color: skin?.muted ?? '#718096' }
},
yAxis: {
type: 'value', axisLabel: { color: skin?.muted ?? '#718096', formatter: (value: number) => compactNumber(value) },
splitLine: { lineStyle: { color: skin?.grid ?? '#edf1f5' } }
},
series: [
{
name: '实际完成', type: 'line', smooth: true, symbol: 'none', lineStyle: { width: 3 },
areaStyle: skin ? { color: actual, opacity: .08 } : { color: 'rgba(15,145,133,.08)' },
data: dashboard.target.actual_cumulative
},
{ name: '目标值', type: 'line', smooth: true, symbol: 'none', lineStyle: { width: 2, type: 'dashed' }, data: dashboard.target.target_cumulative }
]
}
})
let latestDashboardRequestId = 0
let latestFansDetailRequestId = 0
@@ -992,4 +1020,65 @@ onMounted(loadDashboard)
.fans-detail-footer { align-items: flex-start; flex-direction: column; }
.fans-detail-footer :deep(.el-pagination) { max-width: 100%; flex-wrap: wrap; justify-content: flex-start; }
}
:root[data-admin-ui='v2'] .conversion-page {
padding: 0;
color: var(--zyt-ink);
background: var(--zyt-canvas);
.page-heading {
flex-wrap: wrap;
padding: 4px 0;
border: 0;
background: transparent;
h1 { font-size: 24px; font-weight: 600; }
}
.heading-meta, .filter-strip, .filter-item--time { flex-wrap: wrap; }
.heading-meta, .page-heading p, .filter-label, .range-text { color: var(--zyt-text); }
.scope-chip {
padding: 3px 7px;
border: 1px solid var(--zyt-card-border);
border-radius: 6px;
color: var(--zyt-text);
background: var(--zyt-surface);
}
.filter-strip, .panel, .metric-card {
border-color: var(--zyt-card-border);
border-radius: var(--zyt-radius);
background: var(--zyt-surface);
}
.filter-strip { row-gap: 12px; }
.metric-card > span { color: var(--zyt-text); font-size: 13px; }
.metric-card strong { color: var(--zyt-ink); font-weight: 600; line-height: 1.2; }
.metric-card small, .panel-heading p, .panel-heading > span, .bar-name, .bar-name b, .bar-row > strong small,
.target-summary span, .progress-block small, .trend-title > div {
color: var(--zyt-text);
font-size: 12px;
}
.panel-heading { flex-wrap: wrap; }
// Bar fills sit on a neutral track, not the chart's surface.
.bar-track, .progress-block :deep(.el-progress-bar__outer) { background: var(--zyt-hover); }
.bar-track i { background: var(--conversion-accent-text, var(--zyt-primary)); }
.legend-line.is-actual { border-color: var(--conversion-mark, var(--zyt-primary)); }
.legend-line.is-target { border-color: var(--zyt-text); }
.target-summary strong.is-teal, .fan-detail-trigger--table { color: var(--conversion-accent-text, var(--zyt-text)); }
.fan-detail-trigger--table:hover { text-decoration: underline; }
.fan-detail-trigger:focus-visible { outline-color: var(--conversion-accent-text, var(--zyt-text)); }
.progress-copy b, .trend-title { color: var(--zyt-ink); }
.target-progress-list { border-color: var(--zyt-card-border); }
.detail-table {
:deep(th.el-table__cell) { color: var(--zyt-ink); background: var(--zyt-surface-subtle); }
:deep(td.el-table__cell), strong.is-member { color: var(--zyt-text); }
:deep(.el-table__row--level-0 > td.el-table__cell) { background: var(--zyt-surface-subtle); }
:deep(.el-table__row:is(:hover, .hover-row) > td.el-table__cell) { background: var(--zyt-hover); }
strong.is-parent { color: var(--zyt-ink); }
}
// The sidebar can leave less room than the classic fixed column minimums.
@media (min-width: 1181px) {
.target-layout { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
}
@media (max-width: 820px) {
.filter-item--time { min-width: 0; overflow-x: auto; }
}
}
</style>
@@ -1365,3 +1365,20 @@ onUnmounted(() => {
}
}
</style>
<style scoped lang="scss">
:root[data-admin-ui='v2']:not(.dark) .reception-page {
--rx-bg-grad: var(--zyt-canvas);
--rx-ink: var(--zyt-ink);
--rx-muted: var(--zyt-text);
--rx-surface: var(--zyt-surface);
.header-title {
background: none;
color: var(--zyt-ink);
-webkit-text-fill-color: currentColor;
}
.queue-title::before, .card-title::before { content: none; }
.card-title { padding-left: 0; }
}
</style>
@@ -133,6 +133,7 @@ import {
type AssistantRevisitRateResult
} from '@/api/stats'
import { hasPermission } from '@/utils/perm'
import { useStatsChartPalette } from '@/hooks/useStatsChartPalette'
const loading = ref(false)
const dateRange = ref<string[]>([])
@@ -169,53 +170,64 @@ const chartHasData = computed(() => {
return overview.chart.dates.length > 0 && overview.chart.amounts.some((v: number) => v > 0)
})
const chartOption = computed(() => ({
tooltip: {
trigger: 'axis',
formatter: (params: any) => {
const p = params[0]
return `${p.axisValue}<br/>${p.marker}${p.seriesName}: ¥${Number(p.value).toFixed(2)}`
}
},
grid: { left: 60, right: 24, top: 36, bottom: 36 },
xAxis: {
type: 'category',
data: overview.chart.dates,
axisLabel: {
interval: overview.chart.dates.length > 15 ? 'auto' : 0,
rotate: overview.chart.dates.length > 10 ? 30 : 0
}
},
yAxis: {
type: 'value',
name: '金额(元)',
axisLabel: {
formatter: (val: number) => val >= 10000 ? (val / 10000).toFixed(1) + '万' : String(val)
}
},
series: [
{
name: '业绩',
type: 'line',
smooth: true,
showSymbol: true,
symbolSize: 6,
lineStyle: { width: 3, color: '#4a78ff' },
itemStyle: { color: '#4a78ff' },
areaStyle: {
color: {
type: 'linear',
x: 0, y: 0, x2: 0, y2: 1,
colorStops: [
{ offset: 0, color: 'rgba(74, 120, 255, 0.25)' },
{ offset: 1, color: 'rgba(74, 120, 255, 0.02)' }
]
}
},
data: overview.chart.amounts
}
]
}))
const chartPalette = useStatsChartPalette()
const chartOption = computed(() => {
const skin = chartPalette.value
const line = skin?.accentInk ?? '#4a78ff'
return {
tooltip: {
trigger: 'axis',
...(skin && { backgroundColor: skin.surface, borderColor: skin.border, textStyle: { color: skin.ink } }),
formatter: (params: any) => {
const p = params[0]
return `${p.axisValue}<br/>${p.marker}${p.seriesName}: ¥${Number(p.value).toFixed(2)}`
}
},
grid: { left: 60, right: 24, top: 36, bottom: 36 },
xAxis: {
type: 'category',
data: overview.chart.dates,
...(skin && { axisLine: { lineStyle: { color: skin.border } } }),
axisLabel: {
...(skin && { color: skin.muted }),
interval: overview.chart.dates.length > 15 ? 'auto' : 0,
rotate: overview.chart.dates.length > 10 ? 30 : 0
}
},
yAxis: {
type: 'value',
name: '金额(元)',
...(skin && { nameTextStyle: { color: skin.muted }, splitLine: { lineStyle: { color: skin.grid } } }),
axisLabel: {
...(skin && { color: skin.muted }),
formatter: (val: number) => val >= 10000 ? (val / 10000).toFixed(1) + '万' : String(val)
}
},
series: [
{
name: '业绩',
type: 'line',
smooth: true,
showSymbol: true,
symbolSize: 6,
lineStyle: { width: 3, color: line },
itemStyle: { color: line },
areaStyle: {
...(skin && { opacity: 0.16 }),
color: {
type: 'linear',
x: 0, y: 0, x2: 0, y2: 1,
colorStops: [
{ offset: 0, color: skin ? line : 'rgba(74, 120, 255, 0.25)' },
{ offset: 1, color: skin?.surface ?? 'rgba(74, 120, 255, 0.02)' }
]
}
},
data: overview.chart.amounts
}
]
}
})
const formatValue = (key: string, type: string) => {
const value = overview.summary?.[key] ?? 0
@@ -463,3 +475,25 @@ onMounted(() => {
color: #909399;
}
</style>
<style scoped lang="scss">
:root[data-admin-ui='v2'] .assistant-performance-page {
padding: 0;
.stats-kpi-card, .revisit-kpi-card, .revisit-kpi-card.is-primary {
background: var(--zyt-surface);
border-color: var(--zyt-card-border);
border-radius: var(--zyt-radius);
box-shadow: none;
}
.card-title, .stats-kpi-card:not(.is-cancelled) .stats-kpi-value,
.revisit-kpi-value, .revisit-kpi-card.is-primary .revisit-kpi-value {
color: var(--zyt-ink);
}
.stats-kpi-label, .card-hint, .revisit-kpi-sub, .revisit-caliber {
color: var(--zyt-text);
}
}
</style>
@@ -367,3 +367,10 @@ const MetricKVItem = (mkvProps: {
border-left: 3px solid var(--rx-accent);
}
</style>
<style scoped lang="scss">
:root[data-admin-ui='v2']:not(.dark) .case-card .card-title {
padding-left: 0;
&::before { content: none; }
}
</style>
@@ -122,3 +122,14 @@ withDefaults(defineProps<Props>(), {
z-index: 1;
}
</style>
<style scoped lang="scss">
:root[data-admin-ui='v2']:not(.dark) .patient-card {
.card-title { padding-left: 0; }
.card-title::before, .patient-hero::after { content: none; }
.patient-hero {
background: var(--zyt-surface-subtle);
border-color: var(--zyt-card-border);
}
}
</style>
@@ -455,3 +455,18 @@ onMounted(fetchDetail)
margin-bottom: 0;
}
</style>
<style scoped lang="scss">
:root[data-admin-ui='v2']:not(.dark) .readonly-page {
--rx-surface: var(--zyt-surface);
--rx-line: var(--zyt-card-border);
--rx-ink: var(--zyt-ink);
--rx-muted: var(--zyt-text);
--rx-shadow-sm: none;
--rx-shadow: none;
.readonly-hero { background: var(--zyt-surface); border-color: var(--zyt-card-border); }
.card-title { padding-left: 0; }
.card-title::before { content: none; }
}
</style>
@@ -0,0 +1,78 @@
const assert = require('node:assert/strict')
const fs = require('node:fs')
const path = require('node:path')
const test = require('node:test')
const { parse, compileStyle, compileScript } = require('@vue/compiler-sfc')
const postcss = require('postcss')
const ts = require('typescript')
const vue = require('vue')
function component(rel) {
const filename = path.join(__dirname, '../src/views', rel)
const { descriptor, errors } = parse(fs.readFileSync(filename, 'utf8'), { filename })
assert.deepEqual(errors, [])
return { filename, descriptor }
}
function overrides(rel) {
const { filename, descriptor } = component(rel)
const block = descriptor.styles.at(-1)
const css = compileStyle({ filename, source: block.content, scoped: block.scoped, id: 'data-v-test', preprocessLang: block.lang })
assert.deepEqual(css.errors, [])
return postcss.parse(css.code)
}
test('就诊页面只统一 V2 浅色装饰,不改待接诊、过号、选中、召回与诊疗状态的选择器', () => {
for (const [page, key, prop, value] of [
['doctor/progress.vue', '.dp-glass', 'background', 'var(--zyt-surface)'],
['patient/reception/index.vue', '.header-title', '-webkit-text-fill-color', 'currentColor'],
['tcm/diagnosis/readonly.vue', '.readonly-hero', 'background', 'var(--zyt-surface)'],
['tcm/diagnosis/components/PatientInfoCard.vue', '.patient-hero', 'background', 'var(--zyt-surface-subtle)'],
['tcm/diagnosis/components/PatientCaseCard.vue', '.card-title', 'padding-left', '0']
]) {
let target = false
overrides(page).walkRules(rule => {
for (const s of rule.selectors) {
assert.match(s, /:root\[data-admin-ui=v2\]:not\(\.dark\)/)
assert.doesNotMatch(s, /queue-row|filter-tab|unserved-|el-radio|status|dp-step|call-action|is-active/)
}
if (rule.selector.includes(key)) rule.walkDecls(prop, d => { if (d.value === value) target = true })
})
assert.ok(target, page + ' ' + key)
}
})
test('医助普通指标和复诊率用相同的中性卡面,不改时间筛选组件', () => {
const css = overrides('stats/assistant-performance/index.vue')
const neutral = []
css.walkRules(rule => {
assert.match(rule.selector, /data-admin-ui=v2/)
assert.doesNotMatch(rule.selector, /el-radio|el-button|el-date|time_type/)
rule.walkDecls('background', d => { if (d.value === 'var(--zyt-surface)') neutral.push(...rule.selectors) })
})
for (const name of ['.stats-kpi-card', '.revisit-kpi-card', '.revisit-kpi-card.is-primary']) {
assert.ok(neutral.some(s => s.includes(name)))
}
})
test('医助趋势的数值与金额提示不受主题切换影响;经典沿用旧色', () => {
const { descriptor } = component('stats/assistant-performance/index.vue')
const js = ts.transpileModule(compileScript(descriptor, { id: 'assistant-style-test' }).content, {
compilerOptions: { module: ts.ModuleKind.CommonJS, target: ts.ScriptTarget.ES2022 }
}).outputText
const skin = vue.shallowRef(null)
const m = { exports: {} }
const libs = { 'vue-echarts': {}, 'element-plus': {}, '@/api/stats': {},
vue: { ...vue, onMounted() {} }, '@/utils/perm': { hasPermission: () => false },
'@/hooks/useStatsChartPalette': { useStatsChartPalette: () => skin } }
new Function('require', 'module', 'exports', js)(k => libs[k] || require(k), m, m.exports)
const page = m.exports.default.setup({}, { expose() {} })
page.overview.chart.dates = ['12-01', '12-02']; page.overview.chart.amounts = [0, 86.75]
const colors = () => page.chartOption.value
assert.equal(colors().series[0].itemStyle.color, '#4a78ff')
for (const accentInk of ['#5d87ff', '#7636ac']) {
skin.value = { accentInk, surface: '#fff', ink: '#323251', muted: '#53596b', border: '#e4e4eb', grid: '#eee' }
assert.equal(colors().series[0].lineStyle.color, accentInk)
assert.deepEqual([...colors().series[0].data], [0, 86.75])
assert.equal(colors().tooltip.textStyle.color, '#323251')
assert.equal(colors().tooltip.formatter([{ axisValue: '12-02', marker: '', seriesName: '业绩', value: 86.75 }]), '12-02<br/>业绩: ¥86.75')
}
skin.value = null
assert.equal(colors().series[0].lineStyle.color, '#4a78ff')
})
@@ -0,0 +1,94 @@
const assert = require('node:assert/strict')
const fs = require('node:fs')
const path = require('node:path')
const test = require('node:test')
const { parse, compileScript, compileTemplate, compileStyle } = require('@vue/compiler-sfc')
const { parseDOM } = require('htmlparser2')
const { is, selectOne } = require('css-select')
const postcss = require('postcss')
const ts = require('typescript')
const vue = require('vue')
const filename = path.resolve(__dirname, '../src/views/fans/commission-settlement.vue')
const id = 'data-v-c03'
const { descriptor, errors } = parse(fs.readFileSync(filename, 'utf8'), { filename })
assert.deepEqual(errors, [])
const script = compileScript(descriptor, { id })
const template = compileTemplate({ filename, id, source: descriptor.template.content, compilerOptions: { bindingMetadata: script.bindings } })
assert.deepEqual(template.errors, [])
// Compile the real scoped styles; inspect only page-level overrides, not Element Plus defaults.
const rules = descriptor.styles.flatMap(block => {
const file = block.src ? path.resolve(path.dirname(filename), block.src) : filename
const source = block.src ? fs.readFileSync(file, 'utf8') : block.content
const result = compileStyle({ filename: file, id, source, scoped: block.scoped, preprocessLang: block.lang })
assert.deepEqual(result.errors, [])
return postcss.parse(result.code).nodes.filter(rule => rule.type === 'rule')
})
function skin(mode) {
const dom = parseDOM(`<html data-admin-ui="${mode}"><body><main class="cs-page" ${id}>
<header class="cs-masthead__inner" ${id}><span class="cs-masthead__eyebrow" ${id}></span></header>
<button class="filter-btn filter-btn--query" ${id}></button>
<button class="filter-btn filter-btn--reset" ${id}></button>
<span class="el-radio-button is-active"><span class="el-radio-button__inner"></span></span>
<div class="cs-table" ${id}><div class="el-table__footer-wrapper"><table><tr><td class="el-table__cell">合计</td></tr></table></div></div>
</main></body></html>`)
return selector => {
const props = {}, node = selectOne(selector, dom)
assert.ok(node, selector)
for (const rule of rules) {
if (rule.selectors.some(s => !s.includes('::') && is(node, s.replace(/:(hover|focus)\b/g, '[data-$1]')))) {
rule.walkDecls(decl => { props[decl.prop] = decl.value })
}
}
return props
}
}
function resolve(value, vars) {
const match = /^var\((--cs-[\w-]+)(?:,\s*([\s\S]+))?\)$/.exec(value || '')
return match ? resolve(vars[match[1]] ?? match[2], vars) : value
}
test('V2 leaves primary, secondary, and selected controls to Element Plus and distinguishes ordinary totals without a warning', () => {
const props = skin('v2'), vars = props('.cs-page')
assert.equal(resolve(props('.cs-masthead__inner').background, vars), 'var(--zyt-surface)')
assert.equal(props('.cs-masthead__eyebrow').display, 'none')
for (const selector of ['.filter-btn--query', '.filter-btn--reset', '.el-radio-button__inner']) {
assert.equal(props(selector).background, undefined, selector)
assert.equal(props(selector).color, undefined, selector)
}
assert.equal(resolve(props('td').background, vars), 'var(--zyt-surface-subtle)')
assert.equal(resolve(props('td')['border-top'], vars), '1px solid var(--zyt-border)')
})
test('classic retains its original header, buttons and totals', () => {
const props = skin('legacy'), vars = props('.cs-page')
assert.match(props('.cs-masthead__inner').background, /radial-gradient/)
assert.equal(resolve(props('.filter-btn--query').background, vars), '#0d9488')
assert.equal(resolve(props('.el-radio-button__inner').background, vars), '#0d9488')
assert.match(resolve(props('td').background, vars), /linear-gradient.*#fffbeb.*#fef3c7/)
})
test('overview still exposes department counts, money, dates and confirmed lock from the response', async () => {
const totals = { completed_order_count: 78, completed_order_amount: 51840, current_period_count: 60,
current_period_amount: 39600, deferred_period_count: 18, deferred_period_amount: 12240 }
const sample = { rows: [{ dept_name: '运营' }, { dept_name: '市场' }, { dept_name: '服务' }], total: totals,
order_month: '2026-11', settlement_month: '2026-12', cutoff_end: '2026-12-07 23:59:59', confirm: { status: 1 } }
const api = { commissionSettlementOverview: async () => sample }
const output = ts.transpileModule(script.content, { compilerOptions: { module: ts.ModuleKind.CommonJS, target: ts.ScriptTarget.ES2022 } }).outputText
const mod = { exports: {} }
new Function('require', 'module', 'exports', output)(
name => name === 'vue' ? { ...vue, onMounted() {} } : name === '@/api/stats' ? api : {},
mod, mod.exports)
const page = mod.exports.default.setup({}, { expose() {} })
await page.loadOverview()
assert.equal(page.rows.value.length, 3)
assert.deepEqual(page.getSummaries({ columns: ['dept_name', ...Object.keys(totals)].map(property => ({ property })), data: page.rows.value }),
['合计', '78', '¥ 51,840.00', '60', '¥ 39,600.00', '18', '¥ 12,240.00'])
assert.equal(page.meta.cutoff_end, sample.cutoff_end)
assert.equal(page.orderWindowLabel.value, sample.order_month)
assert.equal(page.settlementConfirmedLocked.value, true)
sample.confirm = { status: 2 }
await page.loadOverview()
assert.equal(page.settlementConfirmedLocked.value, false)
})
@@ -0,0 +1,113 @@
const assert = require('node:assert/strict')
const { readFileSync } = require('node:fs')
const path = require('node:path')
const test = require('node:test')
const { parse, compileScript, compileStyle } = require('@vue/compiler-sfc')
const { transformSync } = require('esbuild')
const { parseDOM } = require('htmlparser2')
const { is, selectAll, selectOne } = require('css-select')
const postcss = require('postcss')
const vue = require('vue')
const views = path.resolve(__dirname, '../src/views')
const scope = 'data-v-local-summaries'
function view(file) {
const filename = path.join(views, file)
const parsed = parse(readFileSync(filename, 'utf8'), { filename })
assert.deepEqual(parsed.errors, [])
return parsed.descriptor
}
function loadTS(source, imports) {
const mod = { exports: {} }
const { code } = transformSync(source, { loader: 'ts', format: 'cjs' })
new Function('require', 'module', 'exports', code)(name => imports[name] || {}, mod, mod.exports)
return mod.exports
}
const conversion = view('first_visit/conversion/index.vue')
test('一诊目标走势图原地换主色时,实际/目标数据和实线/虚线均保留,经典配色可还原', () => {
const { statsChartPalette } = loadTS(readFileSync(path.join(views, '../hooks/useStatsChartPalette.ts'), 'utf8'), { vue })
const skin = vue.shallowRef(null)
const { default: page } = loadTS(compileScript(conversion, { id: scope }).content, {
vue: { ...vue, onMounted() {} }, '@/hooks/useStatsChartPalette': { useStatsChartPalette: () => skin }
})
const { dashboard, targetChartOption } = page.setup({}, { expose() {} })
Object.assign(dashboard.target, { months: ['1月', '2月', '3月'], actual_cumulative: [10, 15, 45], target_cumulative: [12, 24, 36] })
const chart = require('echarts').init(null, null, { ssr: true, renderer: 'svg', width: 480, height: 220 })
try {
for (const [accent, dark] of [['#5d87ff', false], ['#b48df3', false], ['#b48df3', true], [null, false]]) {
skin.value = accent && statsChartPalette(key => key === '--el-color-primary' ? accent : '', dark)
const option = targetChartOption.value, [actual, target] = option.series
assert.deepEqual([actual.name, target.name], ['实际完成', '目标值'])
assert.deepEqual([actual.data, target.data], [[10, 15, 45], [12, 24, 36]])
assert.equal(option.tooltip.backgroundColor, skin.value?.surface)
assert.equal(option.xAxis.axisLabel.color, skin.value?.muted ?? '#718096')
assert.equal(option.yAxis.splitLine.lineStyle.color, skin.value?.grid ?? '#edf1f5')
chart.setOption({ ...option, animation: false }, { notMerge: true })
const paths = selectAll('path', parseDOM(chart.renderToSVGString())).map(el => el.attribs)
const actualColor = skin.value?.accentInk ?? '#0f9185', targetColor = skin.value?.text ?? '#2f78df'
assert.ok(paths.some(p => p.stroke === actualColor && !p['stroke-dasharray']), '实际完成:主题实线')
assert.ok(paths.some(p => p.stroke === targetColor && p['stroke-dasharray']), '目标值:对照虚线')
}
} finally { chart.dispose() }
})
// Match the compiled, scoped V2 declarations against the actual template's elements.
// This inspects the local override, not Element Plus or Tailwind's own rule set.
function localStyles(descriptor) {
const rules = []
for (const block of descriptor.styles) {
const sheet = compileStyle({ source: block.content, filename: descriptor.filename, id: scope, scoped: block.scoped, preprocessLang: block.lang })
assert.deepEqual(sheet.errors, [])
postcss.parse(sheet.code).walkRules(rule => {
if (rule.selector.includes('data-admin-ui')) rules.push(rule)
})
}
return (selector, mode = 'v2', medium = 'screen') => {
const dom = parseDOM(`<html data-admin-ui="${mode}"><body>${descriptor.template.content}</body></html>`)
for (const el of selectAll('body *', dom)) el.attribs[scope] = ''
const el = selectOne(selector, dom), props = {}
assert.ok(el, selector)
for (const rule of rules) {
if (rule.parent.name === 'media' && rule.parent.params !== medium) continue
if (rule.selectors.some(s => !/::|:hover|:focus/.test(s) && is(el, s))) {
rule.walkDecls(d => { props[d.prop] = d.value })
}
}
return props
}
}
test('一诊说明和权限标签用正文色,本地筛选换行不覆盖选中控件', () => {
const css = localStyles(conversion)
assert.equal(css('.conversion-page').padding, '0')
assert.equal(css('.scope-chip').color, 'var(--zyt-text)')
assert.equal(css('.metric-card small')['font-size'], '12px')
assert.equal(css('.metric-card small').color, 'var(--zyt-text)')
assert.equal(css('.filter-strip')['flex-wrap'], 'wrap')
assert.deepEqual(css('el-segmented'), {})
assert.equal(css('.legend-line.is-target')['border-color'], 'var(--zyt-text)')
assert.deepEqual(css('.metric-card small', 'legacy'), {})
})
test('目标部门首字在新版采用统一无阴影底,经典版和保存标记不受覆盖', () => {
const css = localStyles(view('finance/mubiao-dept-card.vue'))
assert.equal(css('.dept-card__avatar').background, 'var(--zyt-surface-subtle)')
assert.equal(css('.dept-card__avatar')['box-shadow'], 'none')
assert.deepEqual(css('.status-badge--saved'), {})
assert.deepEqual(css('.dept-card__avatar', 'legacy'), {})
})
test('桌面两种金额同面同色;光晕隐藏,状态、经典版和打印不应用指标覆盖', () => {
const css = localStyles(view('consumer/prescription/order_list.vue'))
for (const card of ['.po-stat-surface--order', '.po-stat-surface--pay']) {
assert.equal(css(card).background, 'var(--zyt-surface)')
assert.equal(css(card)['border-color'], 'var(--zyt-card-border)')
assert.equal(css(card + ' .po-stat-value').color, 'var(--zyt-ink)')
assert.equal(css(card + ' .po-stat-deco').display, 'none')
assert.equal(css(card + ' .po-stat-cancelled').color, 'var(--zyt-text)')
assert.deepEqual(css(card, 'v2', 'print'), {})
assert.deepEqual(css(card, 'legacy'), {})
}
assert.deepEqual(css('.po-focus-board'), {})
})
+71
View File
@@ -0,0 +1,71 @@
const test = require('node:test')
const assert = require('node:assert/strict')
const fs = require('node:fs')
const path = require('node:path')
const { parse, compileStyle } = require('@vue/compiler-sfc')
const { parseDOM } = require('htmlparser2')
const { compile, selectAll, selectOne } = require('css-select')
const postcss = require('postcss')
const filename = path.resolve(__dirname, '../src/views/fans/yeji.vue')
const scope = 'data-v-yeji-test'
const { descriptor, errors } = parse(fs.readFileSync(filename, 'utf8'), { filename })
assert.deepEqual(errors, [])
const compiled = descriptor.styles.map(block => {
const file = block.src ? path.resolve(path.dirname(filename), block.src) : filename
const source = block.src ? fs.readFileSync(file, 'utf8') : block.content
const result = compileStyle({ filename: file, source, scoped: block.scoped, id: scope, preprocessLang: block.lang })
assert.deepEqual(result.errors, [])
return postcss.parse(result.code)
})
function fixture(mode, dark = false) {
const dom = parseDOM(`<html data-admin-ui="${mode}" class="${dark ? 'dark' : ''}"><body>${descriptor.template.content}</body></html>`)
for (const el of selectAll('body *', dom)) el.attribs[scope] = ''
return dom
}
function overrides(node) {
assert.ok(node)
const props = {}
for (const sheet of compiled.slice(1)) sheet.walkRules(rule => {
if (compile(rule.selector)(node)) rule.walkDecls(d => { props[d.prop] = d.value })
})
return props
}
test('V2 light: the title is text on the shell canvas and aligns with the filter card', () => {
const dom = fixture('v2')
const at = selector => overrides(selectOne(selector, dom))
assert.equal(at('.yeji-page').padding, '0')
assert.equal(at('.yeji-masthead__inner').background, 'transparent')
assert.equal(at('.yeji-masthead__inner')['box-shadow'], 'none')
assert.equal(at('.yeji-masthead__inner').padding, '4px 0 0')
assert.equal(at('.yeji-masthead__title').color, 'var(--zyt-ink)')
assert.equal(at('.yeji-masthead__desc').color, 'var(--zyt-text)')
assert.ok(selectOne('.filter-actions el-button[type="primary"].filter-btn--query', dom))
assert.equal(at('.yeji-page')['--yj-brand'], 'var(--zyt-primary)')
assert.equal(at('.filter-btn--query').color, 'var(--el-button-text-color)')
})
test('department / leaderboard headers and totals are solid neutral surfaces without changing pinned-column geometry', () => {
const dom = fixture('v2')
for (const selector of ['thead th.col-dept', 'thead th.col-rank', '.total-row td.col-dept', '.total-row td.col-completed']) {
const properties = overrides(selectOne(selector, dom))
assert.equal(properties.background, 'var(--zyt-surface-subtle)', selector)
assert.equal(properties.position, undefined, selector)
assert.equal(properties.left, undefined, selector)
}
const sticky = []
compiled[0].walkDecls('position', d => { if (d.value === 'sticky') sticky.push(d.parent.selector) })
assert.ok(sticky.some(s => s.includes('thead th.col-dept')))
assert.ok(sticky.some(s => s.includes('thead th.col-rank')))
})
test('the light-shell overrides have no matches in classic or V2 dark', () => {
for (const dom of [fixture('legacy'), fixture('v2', true)]) {
for (const sheet of compiled.slice(1)) sheet.walkRules(rule => {
assert.equal(selectAll(rule.selector, dom).length, 0, rule.selector)
})
}
})