Regression / regression (push) Canceled after 0s
## 品牌标识(本次会话) 起因:品牌此前没有任何图形标识 —— 唯一 favicon 是内联 data-URI 里的字母「A」, 那是 v2.0.0「Aurora Admin → Kole UI」改名漏掉的一处(PC 顶栏也是「A」, 移动端站已是「K」;移动端文档站则完全没有 favicon)。 - 几何:24 网格三个互不接触的笔画(竖 + 两斜),圆头描边; 描边 2.25 → 16px 标签页尺寸下正好 1.5px = 规范原文「描边1.5px」 - 取色分两套(刻意):favicon 硬编码品牌蓝/白(渲染在浏览器标签栏,不继承 kole-dark); 顶栏标记走 currentColor(实测暗色下自动转 rgb(20,22,28)) - 新增 theme-color 双条(light #FFFFFF / dark #1C1F26,取 --kole-color-card-bg) - 修 site/app.js hero 标语 KOLE ADMIN → KOLE UI(改名变形残留) - 移动端 7 个模板补 favicon(此前计数 0) 验收:门禁 9 条全 OK(site-routing/site-routes/mobile-docs/mobile-site/isolation/ theme/nav/i18n/icons);PC 回归 1464/1464 · 移动端 807/807,各连跑 8 次一致; 两端 favicon 405 字节逐字节一致;PC 站控制台错误 1→0。 ## 并行会话成果(本次一并入库) - 图标系统:2576 图标(TDesign/Element Plus,MIT)+ 11 端注入 + 5 个构建门禁工具 + IconPreview 预览页 + ICON-SPEC.md 冻结规格 - 移动端平台:47 组件 × 6 端 + 文档站 53 页 + 隔离门禁 - PC 组件:103 个大后台组件 / 组件11 批次 - uni-app:PC 端试点 + 移动端端实现 + 真实编译验证 ## 工程 - .gitignore 补 .scratch/ 与 .zcode-preexisting-*.txt(会话中间产物,实测 9.1MB,不入库) - CHANGELOG 补品牌标识条目 - ROADMAP 登 S8-P4(品牌标识任务包 + og:image/apple-touch-icon 未做部分)
150 lines
4.0 KiB
Vue
150 lines
4.0 KiB
Vue
<template>
|
||
<view class="kole-m-steps" :class="stepsClass" role="list">
|
||
<view
|
||
v-for="(s, i) in steps"
|
||
:key="i"
|
||
class="kole-m-steps__item"
|
||
:class="itemClass(s)"
|
||
role="listitem"
|
||
:aria-current="s && s.status === 'process' ? 'step' : ''"
|
||
>
|
||
<text class="kole-m-steps__dot">{{ dotOf(s) }}</text>
|
||
<view class="kole-m-steps__content"><text class="kole-m-steps__label">{{ s && s.label }}</text></view>
|
||
</view>
|
||
<slot></slot>
|
||
</view>
|
||
</template>
|
||
|
||
<script setup>
|
||
/* uni-app 端 · 步骤条(移动端)— 规格 §15
|
||
跨端差异:用 view / text(ol/li 不是 uni 基础组件),列表语义靠 role="list"/"listitem";
|
||
尺寸用 rpx(2rpx ≈ 1px);纯展示组件,无手势与点击。 */
|
||
import { computed } from 'vue';
|
||
|
||
const props = defineProps({
|
||
direction: { type: String, default: 'horizontal' },
|
||
steps: { type: Array, default: () => [] }
|
||
});
|
||
|
||
const stepsClass = computed(() => [props.direction === 'vertical' ? 'kole-m-steps--vertical' : ''].filter(Boolean));
|
||
|
||
function itemClass(s) {
|
||
if (!s) return [];
|
||
const out = [];
|
||
if (s.status === 'process') out.push('kole-m-steps__item--process');
|
||
if (s.status === 'finish') out.push('kole-m-steps__item--finish');
|
||
if (s.status === 'error') out.push('kole-m-steps__item--error');
|
||
return out;
|
||
}
|
||
|
||
/* 状态不只靠颜色:已完成用勾选字符,失败用感叹号(规格 §15.6) */
|
||
function dotOf(s) {
|
||
if (!s) return '';
|
||
if (s.status === 'finish') return '✓';
|
||
if (s.status === 'error') return '!';
|
||
return String(s.index || 0);
|
||
}
|
||
</script>
|
||
|
||
<style>
|
||
.kole-m-steps {
|
||
--kole-m-steps-dot-size: 48rpx;
|
||
--kole-m-font-size-label: 28rpx;
|
||
--kole-m-font-size-caption: 22rpx;
|
||
--kole-m-gutter: 32rpx;
|
||
display: flex;
|
||
align-items: flex-start;
|
||
padding: 32rpx var(--kole-m-gutter);
|
||
background-color: var(--kole-color-card-bg);
|
||
font-size: var(--kole-m-font-size-label);
|
||
}
|
||
|
||
.kole-m-steps__item {
|
||
position: relative;
|
||
flex: 1;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
min-width: 144rpx;
|
||
color: var(--kole-color-text-secondary);
|
||
text-align: center;
|
||
}
|
||
|
||
.kole-m-steps__dot {
|
||
box-sizing: border-box;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
width: var(--kole-m-steps-dot-size);
|
||
height: var(--kole-m-steps-dot-size);
|
||
border: 2rpx solid var(--kole-color-border);
|
||
border-radius: 50%;
|
||
background-color: var(--kole-color-card-bg);
|
||
color: var(--kole-color-text-secondary);
|
||
font-size: var(--kole-m-font-size-caption);
|
||
line-height: 1;
|
||
}
|
||
|
||
.kole-m-steps__label {
|
||
margin-top: 16rpx;
|
||
font-size: var(--kole-m-font-size-label);
|
||
}
|
||
|
||
/* 连接线:由每项的 ::after 画到下一项(最后一项不画) */
|
||
.kole-m-steps__item:not(:last-child)::after {
|
||
content: '';
|
||
position: absolute;
|
||
top: 24rpx;
|
||
left: calc(50% + 28rpx);
|
||
width: calc(100% - 48rpx);
|
||
height: 2rpx;
|
||
background-color: var(--kole-color-border);
|
||
}
|
||
|
||
.kole-m-steps__item--process { color: var(--kole-color-brand); }
|
||
|
||
.kole-m-steps__item--process .kole-m-steps__dot {
|
||
border-color: var(--kole-color-brand);
|
||
background-color: var(--kole-color-brand);
|
||
color: var(--kole-color-text-inverse);
|
||
}
|
||
|
||
.kole-m-steps__item--finish { color: var(--kole-color-text-body); }
|
||
|
||
.kole-m-steps__item--finish .kole-m-steps__dot {
|
||
border-color: var(--kole-color-brand);
|
||
color: var(--kole-color-brand);
|
||
}
|
||
|
||
.kole-m-steps__item--finish:not(:last-child)::after { background-color: var(--kole-color-brand); }
|
||
|
||
.kole-m-steps__item--error { color: var(--kole-color-error); }
|
||
|
||
.kole-m-steps__item--error .kole-m-steps__dot {
|
||
border-color: var(--kole-color-error);
|
||
color: var(--kole-color-error);
|
||
}
|
||
|
||
.kole-m-steps--vertical {
|
||
flex-direction: column;
|
||
}
|
||
|
||
.kole-m-steps--vertical .kole-m-steps__item {
|
||
flex-direction: row;
|
||
align-items: flex-start;
|
||
width: 100%;
|
||
min-width: 0;
|
||
margin-bottom: 32rpx;
|
||
text-align: left;
|
||
}
|
||
|
||
.kole-m-steps--vertical .kole-m-steps__item:not(:last-child)::after {
|
||
top: 56rpx;
|
||
left: 24rpx;
|
||
width: 2rpx;
|
||
height: calc(100% - 48rpx);
|
||
}
|
||
|
||
.kole-m-steps__content { flex: 1; }
|
||
</style>
|