28 lines
2.1 KiB
HTML
28 lines
2.1 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="zh-CN" data-end="vue3" data-slug="icon">
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<title>icon · Vue 3 预渲染</title>
|
||
<link rel="stylesheet" href="../../.design_library/kole-ui/colors_and_type.css">
|
||
<link rel="stylesheet" href="../../frameworks/Icon.css">
|
||
<style>
|
||
/* 演示页的 body 口径(见 frameworks/*.html 的 <style>):组件 CSS 不写 body 样式,
|
||
而 .btn 这类 inline-flex 元素的高度依赖行高与留白,缺了就会塌成 0 高。 */
|
||
body { margin: 0; padding: 24px; background: var(--kole-color-page-bg); color: var(--kole-color-text-body);
|
||
font-family: var(--kole-font-family); font-size: 14px; line-height: 22px; }
|
||
#kole-end-preview { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
|
||
html.kole-dark body { background: var(--kole-color-page-bg); color: var(--kole-color-text-body); }
|
||
</style>
|
||
|
||
</head>
|
||
<body class="kole-end-preview-body">
|
||
<!-- 该端实现(frameworks/Icon.vue3.vue)的离线预渲染产物。类名与该端源码一致(tools/build-end-preview.mjs 断言)。 -->
|
||
<div id="kole-end-preview" data-end="vue3" data-slug="icon">
|
||
<!--[--><!-- 图标(PC · Vue 3)— IconSpec v1 §四
|
||
查名字 → 解析路径串 → 内联 <svg viewBox width="1em">;
|
||
name 未命中时只渲染默认插槽(不猜图标、不抛错);name 为空且有插槽时用插槽,
|
||
否则回落到历史字段 icon 的字形字符(规格 §六 兼容)。 --><span class="kole-icon-icon kole-icon-icon--small" style="" role="img" aria-label="搜索(small)"><svg class="kole-icon-icon__svg" viewBox="0 0 24 24" width="1em" height="1em" aria-hidden="true" focusable="false"><!--[--><path d="M15.8 15.8L21.11 21.11" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M15.8 15.8C12.87 18.73 8.13 18.73 5.2 15.8C2.27 12.87 2.27 8.13 5.2 5.2C8.13 2.27 12.87 2.27 15.8 5.2C18.73 8.13 18.73 12.87 15.8 15.8Z" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><!--]--></svg></span><!--]-->
|
||
</div>
|
||
</body>
|
||
</html>
|