Files
aurora-admin/.design_library/kole-ui-mobile/components/mobile-noticebar.json
T
aurora-admin f1fbfc2ddb
Regression / regression (push) Canceled after 0s
feat(品牌标识): 几何 K 图标(favicon/顶栏标记/theme-color) + 并行会话成果入库
## 品牌标识(本次会话)

起因:品牌此前没有任何图形标识 —— 唯一 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 未做部分)
2026-09-21 10:05:48 +08:00

224 lines
6.2 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"schemaVersion": 1,
"sourceKind": "authored-spec",
"provenance": "authored-in-repo",
"specFile": "spec/移动端规格.md",
"confidence": "high",
"specSection": "16 · 通知栏 NoticeBar",
"slug": "mobile-noticebar",
"name": "通知栏 NoticeBar",
"semanticTypeCandidates": [
"notice",
"banner",
"marquee"
],
"variantDimensions": [
{
"name": "tone",
"values": [
"default",
"success",
"warning",
"danger"
]
},
{
"name": "scrollable",
"values": [
"false",
"true"
]
},
{
"name": "closable",
"values": [
"false",
"true"
]
}
],
"representativeVariants": [
{
"tone": "default",
"scrollable": "false",
"closable": "false",
"label": "基础通告"
},
{
"tone": "warning",
"scrollable": "false",
"closable": "true",
"label": "可关闭提醒"
},
{
"tone": "default",
"scrollable": "true",
"closable": "false",
"label": "跑马灯长通告"
},
{
"tone": "success",
"scrollable": "false",
"closable": "false",
"label": "成功语气"
}
],
"anatomy": {
"noticebar": "根容器",
"noticebar__icon": "左侧喇叭图标",
"noticebar__text": "通告文字(可滚动)",
"noticebar__close": "可选关闭按钮"
},
"structurePatterns": {
"tone": "default / success / warning / danger",
"scrollable": "false / true(文字超宽时是否跑马灯)",
"closable": "false / true"
},
"usageHints": [
"在页面顶部或内容区之间横向滚动展示一条通告(如「系统维护通知」)",
"关闭按钮热区不小于 24×24(用负外边距扩展)",
"跑马灯在 prefers-reduced-motion: reduce 下停止滚动并改为换行显示(无障碍硬要求)",
"关闭动作只触发一次事件,是否移除由宿主决定",
"容器 role=\"status\"(读屏会朗读一次通告)",
"跑马灯不得用 aria-live(滚动内容反复朗读会干扰)"
],
"doNotInvent": [
"多条通告的排队 / 轮播",
"滚动速度的可配置项"
],
"unknowns": [
"通告文字的最大长度",
"是否支持富文本"
],
"interaction": [
"关闭按钮热区不小于 24×24(用负外边距扩展)",
"跑马灯在 prefers-reduced-motion: reduce 下停止滚动并改为换行显示(无障碍硬要求)",
"关闭动作只触发一次事件,是否移除由宿主决定"
],
"accessibility": [
"容器 role=\"status\"(读屏会朗读一次通告)",
"关闭按钮为原生 button 并带 aria-label",
"跑马灯不得用 aria-live(滚动内容反复朗读会干扰)"
],
"api": {
"source": "implementation",
"note": "props / events / slots 为 6 端实现的公共接口(说明文字取自规格对应小节)。字段名与各端源码逐名核对:node tools/verify-mobile-docs.mjs",
"requiredNote": "「必传」按严格定义:实现里**没有默认值**时才为 Y(本门禁逐条核对 props 与各端源码的默认值,防止契约与实现脱节)。",
"props": [
{
"name": "tone",
"type": "'default' | 'success' | 'warning' | 'danger'",
"default": "'default'",
"desc": "变体 tone:四种语气(浅底 + 同族深字)(规格 §16.3)",
"required": false
},
{
"name": "scrollable",
"type": "boolean",
"default": "false",
"desc": "变体 scrollable:文字超宽时是否跑马灯(规格 §16.3)",
"required": false
},
{
"name": "closable",
"type": "boolean",
"default": "false",
"desc": "变体 closable:是否显示关闭按钮(规格 §16.3)",
"required": false
},
{
"name": "text",
"type": "string",
"default": "''",
"desc": "通告文字(规格 §16.2 text)",
"required": false
}
],
"events": [
{
"name": "close",
"params": "—",
"desc": "点击关闭按钮时触发;是否移除这条通告由宿主决定(规格 §16.5)"
}
],
"slots": [
{
"name": "default",
"desc": "通告内容(与 text 二选一;text 优先)"
}
]
},
"variantClasses": {
"tone": {
"default": [
".kole-m-noticebar--default"
],
"success": [
".kole-m-noticebar--success"
],
"warning": [
".kole-m-noticebar--warning"
],
"danger": [
".kole-m-noticebar--danger"
]
},
"scrollable": {
"false": [],
"true": [
".kole-m-noticebar--scrollable"
]
},
"closable": {
"false": [],
"true": [
".kole-m-noticebar__close"
]
}
},
"demos": [
{
"id": "basic",
"group": "01 组件类型",
"title": "基础通告",
"desc": "品牌浅底 + 同族深字;容器带 role=status,读屏会朗读一次。",
"variant": "tone=default"
},
{
"id": "closable",
"group": "01 组件类型",
"title": "可关闭",
"desc": "关闭按钮是原生 button、24×24 热区,aria-label 带上通告内容以便区分。",
"variant": "closable=true"
},
{
"id": "scrollable",
"group": "01 组件类型",
"title": "跑马灯",
"desc": "文案超宽时横向循环滚动;系统开启「减少动态效果」时停止滚动并改为换行。",
"variant": "scrollable=true"
},
{
"id": "tone",
"group": "02 组件状态",
"title": "语义语气",
"desc": "成功与失败语气用同族浅底,颜色之外还有图标区分,不只靠色相。",
"variant": "tone=success|danger"
}
],
"related": [
{
"slug": "mobile-toast",
"why": "一次性结果反馈用轻提示;需要常驻在页面里的通告才用通知栏"
},
{
"slug": "mobile-tag",
"why": "很短的状态词用标签;整句通告用通知栏"
},
{
"slug": "mobile-divider",
"why": "通知栏与内容区之间靠浅底与留白分隔,不必再插分割线"
}
]
}