feat(S9-P7): CSS 端接线为样式底座——11 页 H5 内联组件样式并入 CSS 文件并 link 接线(单一样式真源);PLATFORMS 将 css 列重定义为样式层/交付物;值冲突按 components.css 裁决(令牌/逻辑属性优先),顺带修复 Select 定位与选择列居中两处内联版缺陷

This commit is contained in:
aurora-admin
2026-09-25 04:22:03 +08:00
parent b59247231a
commit f07f38b09d
20 changed files with 2482 additions and 2113 deletions
+2 -17
View File
@@ -5,27 +5,12 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Kole UI · Tree (H5)</title>
<link rel="stylesheet" href="../.design_library/kole-ui/colors_and_type.css">
<link rel="stylesheet" href="./Tree.css">
<style>
/* 对齐 组件2.txt Tree 规范:节点高32px、缩进16px/级、箭头12px、选中 #F0F5FF/#2F54EB */
/* 演示页布局脚手架 —— 组件样式已并入 Tree.css(S9-P7 单一样式真源) */
.demo { padding: 24px; background: var(--kole-color-page-bg); color: var(--kole-color-text-body); font-family: var(--font-family); }
h1 { font-size: 20px; margin: 0 0 4px; }
.sub { color: var(--kole-color-text-secondary); margin: 0 0 24px; font-size: 12px; }
.kole-tree { min-width: 240px; border: 1px solid var(--kole-color-border); border-radius: 8px; padding: 4px; background: var(--kole-color-card-bg); }
.kole-tree-node {
display: flex; align-items: center; gap: 4px; height: 32px; border-radius: 4px;
cursor: pointer; user-select: none; font-size: 14px; color: var(--kole-color-text-body); padding-right: 8px;
}
.kole-tree-node:hover { background: var(--kole-color-page-bg); }
.kole-tree-node.is-selected { background: var(--kole-color-brand-bg); color: var(--kole-color-brand); }
.kole-tree-arrow {
display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px;
font-size: 12px; color: var(--kole-color-text-secondary); transition: transform .15s; flex-shrink: 0;
}
.kole-tree-arrow.is-open { transform: rotate(90deg); }
.kole-tree-arrow-placeholder { width: 16px; flex-shrink: 0; }
.kole-tree-check { width: 14px; height: 14px; flex-shrink: 0; cursor: pointer; }
.kole-tree-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
</style>
</head>
<body>