Files
aurora-admin/site/end-preview/steps.vue3.html

45 lines
3.4 KiB
HTML

<!DOCTYPE html>
<html lang="zh-CN" data-end="vue3" data-slug="steps">
<head>
<meta charset="utf-8">
<title>steps · Vue 3 预渲染</title>
<link rel="stylesheet" href="../../.design_library/kole-ui/colors_and_type.css">
<link rel="stylesheet" href="../../frameworks/Steps.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-steps { font-family: var(--font-family, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif); color: #262626; }
.kole-steps.horizontal { display: flex; }
.kole-steps.vertical { display: inline-flex; flex-direction: column; }
.kole-step { position: relative; display: flex; gap: 12px; flex: 1; }
.kole-steps.vertical .kole-step { flex-direction: column; }
.kole-step-icon { position: relative; width: 32px; height: 32px; border-radius: 50%; border: 2px solid #E8ECF1; display: flex; align-items: center; justify-content: center; font-size: 14px; background: #fff; color: #6E6E6E; flex-shrink: 0; z-index: 1; }
.kole-step.is-finish .kole-step-icon { border-color: #2F54EB; color: #2F54EB; background: #F0F5FF; }
.kole-step.is-process .kole-step-icon { border-color: #2F54EB; color: #fff; background: #2F54EB; }
.kole-step.is-error .kole-step-icon { border-color: #CF1322; color: #CF1322; background: #FFF1F0; }
.kole-step-title { font-size: 14px; font-weight: 500; line-height: 32px; }
.kole-step.is-wait .kole-step-title { color: #6E6E6E; }
.kole-step-desc { font-size: 12px; color: #6E6E6E; margin-top: 2px; }
.kole-steps.horizontal .kole-step:not(:last-child) .kole-step-icon::after { content: ''; position: absolute; top: 15px; left: 38px; right: -12px; height: 2px; background: #E8ECF1; }
.kole-steps.horizontal .kole-step.is-finish:not(:last-child) .kole-step-icon::after { background: #2F54EB; }
.kole-steps.vertical .kole-step-body { padding-bottom: 24px; }
.kole-steps.vertical .kole-step:not(:last-child) .kole-step-icon::after { content: ''; position: absolute; top: 40px; left: 15px; bottom: -12px; width: 2px; background: #E8ECF1; }
.kole-steps.vertical .kole-step.is-finish:not(:last-child) .kole-step-icon::after { background: #2F54EB; }
</style>
</head>
<body class="kole-end-preview-body">
<!-- 该端实现(frameworks/Steps.vue3.vue)的离线预渲染产物。类名与该端源码一致(tools/build-end-preview.mjs 断言)。 -->
<div id="kole-end-preview" data-end="vue3" data-slug="steps">
<div class="kole-steps horizontal" data-v-steps><!--[--><div class="is-finish kole-step" data-v-steps><div class="kole-step-icon" data-v-steps>✓</div><div class="kole-step-body" data-v-steps><div class="kole-step-title" data-v-steps>第一步</div><!----></div></div><div class="is-wait kole-step" data-v-steps><div class="kole-step-icon" data-v-steps>2</div><div class="kole-step-body" data-v-steps><div class="kole-step-title" data-v-steps>第二步</div><!----></div></div><!--]--></div>
</div>
</body>
</html>