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

44 lines
3.0 KiB
HTML

<!DOCTYPE html>
<html lang="zh-CN" data-end="vue2" data-slug="treetable">
<head>
<meta charset="utf-8">
<title>treetable · Vue 2 预渲染</title>
<link rel="stylesheet" href="../../.design_library/kole-ui/colors_and_type.css">
<link rel="stylesheet" href="../../frameworks/TreeTable.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-tt { width: 100%; border: 1px solid #E8ECF1; border-radius: 8px; overflow: hidden; background: #fff; }
.kole-tt table { width: 100%; border-collapse: collapse; font-size: 14px; color: #262626; }
.kole-tt thead th { background: #FAFAFA; color: #262626; font-weight: 600; height: 48px; text-align: left; padding: 0 16px; border-bottom: 1px solid #E8ECF1; white-space: nowrap; }
.kole-tt tbody td { height: 48px; padding: 0 16px; border-bottom: 1px solid #E8ECF1; text-align: left; }
.kole-tt tbody tr:last-child td { border-bottom: none; }
.kole-tt tbody tr:hover { background: #F5F7FA; }
.kole-tt tbody tr.is-selected { background: #F0F5FF; }
.kole-tt .align-right { text-align: right; }
.kole-tt .col-selection { text-align: center; }
.kole-tt .tree-cell { display: flex; align-items: center; gap: 4px; }
.kole-tt .tt-arrow { width: 16px; height: 16px; font-size: 12px; color: #6E6E6E; transition: transform .15s; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kole-tt .tt-arrow.is-open { transform: rotate(90deg); }
.kole-tt .tt-arrow-placeholder { width: 16px; flex-shrink: 0; }
.kole-tt .tt-check { width: 14px; height: 14px; cursor: pointer; }
.kole-tt .tt-summary { color: #6E6E6E; font-size: 12px; margin-left: 6px; }
.kole-tt tfoot td { height: 44px; padding: 0 16px; background: #FAFAFA; font-weight: 600; border-top: 1px solid #E8ECF1; }
</style>
</head>
<body class="kole-end-preview-body">
<!-- 该端实现(frameworks/TreeTable.vue2.vue)的离线预渲染产物。类名与该端源码一致(tools/build-end-preview.mjs 断言)。 -->
<div id="kole-end-preview" data-end="vue2" data-slug="treetable">
<div data-server-rendered="true" class="kole-tt"><table><thead><tr><th class="col-selection" style="width:48px;"><input type="checkbox" class="tt-check"></th> <th>名称</th></tr></thead> <tbody><tr><td class="col-selection"><input type="checkbox" class="tt-check"></td> <td><div class="tree-cell" style="padding-left:0px;"><span class="tt-arrow-placeholder"></span> <span>示例一</span> <!----></div></td></tr></tbody> <tfoot><tr><td></td> <td>合计</td> </tr></tfoot></table></div>
</div>
</body>
</html>