feat(品牌标识): 几何 K 图标(favicon/顶栏标记/theme-color) + 并行会话成果入库
Regression / regression (push) Canceled after 0s
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 未做部分)
This commit is contained in:
+31
-31
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="aa-select" :class="{ 'is-open': open, 'is-disabled': disabled }" ref="root">
|
||||
<div class="aa-select-trigger" @click="toggle" tabindex="0">
|
||||
<div class="kole-select" :class="{ 'is-open': open, 'is-disabled': disabled }" ref="root">
|
||||
<div class="kole-select-trigger" @click="toggle" tabindex="0">
|
||||
<template v-if="multiple">
|
||||
<span v-if="!selectedArr.length" class="placeholder">{{ placeholder }}</span>
|
||||
<span v-for="v in selectedArr" :key="v" class="tag">
|
||||
@@ -12,17 +12,17 @@
|
||||
<span class="caret">▾</span>
|
||||
</div>
|
||||
|
||||
<div class="aa-select-panel" v-show="open">
|
||||
<div v-if="searchable" class="aa-select-search">
|
||||
<div class="kole-select-panel" v-show="open">
|
||||
<div v-if="searchable" class="kole-select-search">
|
||||
<input v-model="keyword" placeholder="输入关键字" @click.stop>
|
||||
</div>
|
||||
|
||||
<template v-if="groups && groups.length">
|
||||
<template v-for="g in filteredGroups">
|
||||
<div class="aa-select-group-label">{{ g.label }}</div>
|
||||
<div class="kole-select-group-label">{{ g.label }}</div>
|
||||
<div
|
||||
v-for="o in g.options" :key="o.value"
|
||||
class="aa-select-option"
|
||||
class="kole-select-option"
|
||||
:class="{ 'is-selected': isSelected(o.value), 'is-disabled': o.disabled }"
|
||||
@click="choose(o)"
|
||||
>
|
||||
@@ -34,7 +34,7 @@
|
||||
<template v-else>
|
||||
<div
|
||||
v-for="o in filteredOptions" :key="o.value"
|
||||
class="aa-select-option"
|
||||
class="kole-select-option"
|
||||
:class="{ 'is-selected': isSelected(o.value), 'is-disabled': o.disabled }"
|
||||
@click="choose(o)"
|
||||
>
|
||||
@@ -42,14 +42,14 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<div v-if="isEmpty" class="aa-select-empty">无匹配选项</div>
|
||||
<div v-if="isEmpty" class="kole-select-empty">无匹配选项</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'AaSelect',
|
||||
name: 'KoleSelect',
|
||||
props: {
|
||||
value: { type: [String, Number, Array], default: null },
|
||||
options: { type: Array, default: () => [] }, // [{ value, label, disabled? }]
|
||||
@@ -127,41 +127,41 @@ export default {
|
||||
|
||||
<!-- 样式对齐 components.css 与 select.json 契约(触发器样式同 Input) -->
|
||||
<style>
|
||||
.aa-select { position: relative; display: inline-block; min-width: 220px; }
|
||||
.aa-select-trigger {
|
||||
.kole-select { position: relative; display: inline-block; min-width: 220px; }
|
||||
.kole-select-trigger {
|
||||
display: flex; align-items: center; gap: 8px; min-height: 32px; height: auto;
|
||||
padding: 2px 28px 2px 12px; background: #fff; border: 1px solid #E8ECF1;
|
||||
border-radius: 4px; box-sizing: border-box; cursor: pointer; transition: border-color .15s, box-shadow .15s;
|
||||
font-size: 14px; color: #262626; flex-wrap: wrap; position: relative;
|
||||
}
|
||||
.aa-select-trigger:hover { border-color: #2F54EB; }
|
||||
.aa-select.is-open .aa-select-trigger { border-color: #2F54EB; box-shadow: 0 0 0 2px rgba(47,84,235,0.2); }
|
||||
.aa-select.is-disabled .aa-select-trigger { background: #F5F5F5; border-color: transparent; color: #BFBFBF; cursor: not-allowed; }
|
||||
.aa-select-trigger .placeholder { color: #767676; }
|
||||
.aa-select-trigger .caret { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); transition: transform .15s; color: #6E6E6E; }
|
||||
.aa-select.is-open .caret { transform: translateY(-50%) rotate(180deg); }
|
||||
.aa-select-trigger .tag {
|
||||
.kole-select-trigger:hover { border-color: #2F54EB; }
|
||||
.kole-select.is-open .kole-select-trigger { border-color: #2F54EB; box-shadow: 0 0 0 2px rgba(47,84,235,0.2); }
|
||||
.kole-select.is-disabled .kole-select-trigger { background: #F5F5F5; border-color: transparent; color: #BFBFBF; cursor: not-allowed; }
|
||||
.kole-select-trigger .placeholder { color: #767676; }
|
||||
.kole-select-trigger .caret { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); transition: transform .15s; color: #6E6E6E; }
|
||||
.kole-select.is-open .caret { transform: translateY(-50%) rotate(180deg); }
|
||||
.kole-select-trigger .tag {
|
||||
display: inline-flex; align-items: center; gap: 4px; background: #F0F5FF; color: #2F54EB;
|
||||
border-radius: 2px; padding: 1px 6px; font-size: 12px; line-height: 20px;
|
||||
}
|
||||
.aa-select-trigger .tag .x { cursor: pointer; }
|
||||
.aa-select-panel {
|
||||
.kole-select-trigger .tag .x { cursor: pointer; }
|
||||
.kole-select-panel {
|
||||
position: absolute; z-index: 10; top: calc(100% + 4px); left: 0; right: 0;
|
||||
background: #fff; border-radius: 4px; box-shadow: 0 4px 16px rgba(0,0,0,0.12);
|
||||
max-height: 256px; overflow-y: auto; padding: 4px 0;
|
||||
}
|
||||
.aa-select-search { padding: 6px 8px; border-bottom: 1px solid #F0F0F0; }
|
||||
.aa-select-search input { width: 100%; box-sizing: border-box; border: 1px solid #E8ECF1; border-radius: 4px; padding: 4px 8px; font-size: 13px; outline: none; }
|
||||
.aa-select-search input:focus { border-color: #2F54EB; }
|
||||
.aa-select-group-label { padding: 6px 12px; font-size: 12px; color: #6E6E6E; }
|
||||
.aa-select-option {
|
||||
.kole-select-search { padding: 6px 8px; border-bottom: 1px solid #F0F0F0; }
|
||||
.kole-select-search input { width: 100%; box-sizing: border-box; border: 1px solid #E8ECF1; border-radius: 4px; padding: 4px 8px; font-size: 13px; outline: none; }
|
||||
.kole-select-search input:focus { border-color: #2F54EB; }
|
||||
.kole-select-group-label { padding: 6px 12px; font-size: 12px; color: #6E6E6E; }
|
||||
.kole-select-option {
|
||||
display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 32px; cursor: pointer;
|
||||
font-size: 14px; color: #262626; box-sizing: border-box;
|
||||
}
|
||||
.aa-select-option:hover { background: #F5F7FA; }
|
||||
.aa-select-option.is-selected { background: #F0F5FF; color: #2F54EB; }
|
||||
.aa-select-option .check { visibility: hidden; margin-left: auto; }
|
||||
.aa-select-option.is-selected .check { visibility: visible; }
|
||||
.aa-select-option.is-disabled { color: #BFBFBF; cursor: not-allowed; }
|
||||
.aa-select-empty { padding: 16px 12px; text-align: center; color: #767676; font-size: 13px; }
|
||||
.kole-select-option:hover { background: #F5F7FA; }
|
||||
.kole-select-option.is-selected { background: #F0F5FF; color: #2F54EB; }
|
||||
.kole-select-option .check { visibility: hidden; margin-left: auto; }
|
||||
.kole-select-option.is-selected .check { visibility: visible; }
|
||||
.kole-select-option.is-disabled { color: #BFBFBF; cursor: not-allowed; }
|
||||
.kole-select-empty { padding: 16px 12px; text-align: center; color: #767676; font-size: 13px; }
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user