42 lines
2.2 KiB
HTML
42 lines
2.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN" data-end="vue3" data-slug="card">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>card · Vue 3 预渲染</title>
|
|
<link rel="stylesheet" href="../../.design_library/kole-ui/colors_and_type.css">
|
|
<link rel="stylesheet" href="../../frameworks/Card.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>
|
|
<style>
|
|
|
|
.kole-card {
|
|
background: #fff; border-radius: 8px; box-sizing: border-box;
|
|
min-width: 280px; max-width: 360px;
|
|
}
|
|
.kole-card--bordered { border: 1px solid #E8ECF1; }
|
|
.kole-card--shadowed { box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
|
|
.kole-card__header {
|
|
display: flex; align-items: center; justify-content: space-between; gap: 8px;
|
|
font-weight: 600; color: #1F2329;
|
|
}
|
|
.kole-card__title { font-size: 16px; }
|
|
.kole-card__extra { color: #2F54EB; font-size: 14px; cursor: pointer; }
|
|
.kole-card__body { color: #262626; font-size: 14px; line-height: 22px; }
|
|
.kole-card__actions { display: flex; justify-content: flex-end; gap: 8px; }
|
|
|
|
</style>
|
|
</head>
|
|
<body class="kole-end-preview-body">
|
|
<!-- 该端实现(frameworks/Card.vue3.vue)的离线预渲染产物。类名与该端源码一致(tools/build-end-preview.mjs 断言)。 -->
|
|
<div id="kole-end-preview" data-end="vue3" data-slug="card">
|
|
<div class="kole-card kole-card--bordered" style="padding:16;" text="用于轻量内容承载,1px 边框区分卡片边界。" children="用于轻量内容承载,1px 边框区分卡片边界。" data-v-card><div class="kole-card__header" data-v-card><div class="kole-card__title" data-v-card><!--[-->边框卡片<!--]--></div><!----></div><div class="kole-card__body" data-v-card><!--[--><!--]--></div><!----></div>
|
|
</div>
|
|
</body>
|
|
</html>
|