Files
aurora-admin/site/end-preview/tabs.vue2.html
T

64 lines
3.9 KiB
HTML

<!DOCTYPE html>
<html lang="zh-CN" data-end="vue2" data-slug="tabs">
<head>
<meta charset="utf-8">
<title>tabs · Vue 2 预渲染</title>
<link rel="stylesheet" href="../../.design_library/kole-ui/colors_and_type.css">
<link rel="stylesheet" href="../../frameworks/Tabs.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-tabs { font-family: var(--font-family, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif); color: #262626; }
.kole-tabs-nav { display: flex; align-items: flex-end; gap: 4px; position: relative; padding: 0 4px; }
.kole-tabs.type-line .kole-tabs-nav { border-bottom: 1px solid #E8ECF1; }
.kole-tabs.type-pill .kole-tabs-nav { background: #F5F7FA; border-radius: 16px; padding: 4px; gap: 4px; }
.kole-tabs-tab { position: relative; box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px;
height: 40px; padding: 0 16px; cursor: pointer; font-size: 14px; line-height: 40px; color: #262626;
border: 1px solid transparent; background: none; transition: color .15s, background .15s, border-color .15s;
user-select: none; white-space: nowrap; }
.kole-tabs-tab:hover:not(.is-active):not(.is-disabled) { color: #2F54EB; }
.kole-tabs.type-line .kole-tabs-tab { border-bottom: 2px solid transparent; margin-bottom: -1px; border-radius: 0; }
.kole-tabs.type-line .kole-tabs-tab.is-active { color: #2F54EB; font-weight: 500; border-bottom-color: #2F54EB; }
.kole-tabs.type-card .kole-tabs-nav { border-bottom: 1px solid #E8ECF1; }
.kole-tabs.type-card .kole-tabs-tab { border: 1px solid #E8ECF1; border-bottom: none; border-radius: 6px 6px 0 0; background: #F5F7FA; }
.kole-tabs.type-card .kole-tabs-tab.is-active { background: #fff; color: #2F54EB; border-color: #E8ECF1; }
.kole-tabs.type-pill .kole-tabs-tab { border: none; border-radius: 14px; height: 32px; line-height: 32px; padding: 0 14px; }
.kole-tabs.type-pill .kole-tabs-tab.is-active { background: #2F54EB; color: #fff; font-weight: 500; }
.kole-tabs-tab.is-disabled { color: #BFBFBF; cursor: not-allowed; }
.kole-tabs.type-card .kole-tabs-tab.is-disabled { background: #F5F5F5; }
.kole-tabs-close { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px;
margin-left: 4px; border-radius: 50%; font-size: 12px; color: #6E6E6E; }
.kole-tabs-close:hover { background: rgba(0,0,0,0.06); color: #262626; }
.kole-tabs.type-pill .kole-tabs-close { color: rgba(255,255,255,0.85); }
.kole-tabs.type-pill .kole-tabs-close:hover { background: rgba(255,255,255,0.25); color: #fff; }
.kole-tabs-add { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
margin-left: 4px; border: 1px dashed #E8ECF1; border-radius: 6px; color: #6E6E6E; cursor: pointer; font-size: 16px; }
.kole-tabs-add:hover { color: #2F54EB; border-color: #2F54EB; }
.kole-tabs-content { padding: 16px; font-size: 14px; color: #262626; }
.kole-tabs.type-card .kole-tabs-content { border: 1px solid #E8ECF1; border-top: none; border-radius: 0 0 6px 6px; }
</style>
</head>
<body class="kole-end-preview-body">
<!-- 该端实现(frameworks/Tabs.vue2.vue)的离线预渲染产物。类名与该端源码一致(tools/build-end-preview.mjs 断言)。 -->
<div id="kole-end-preview" data-end="vue2" data-slug="tabs">
<div data-server-rendered="true" class="kole-tabs type-line"><div class="kole-tabs-nav"> <!----></div> <div class="kole-tabs-content"></div></div>
</div>
</body>
</html>