Files
aurora-admin/site/end-preview/table.vue3.html
T

55 lines
3.6 KiB
HTML

<!DOCTYPE html>
<html lang="zh-CN" data-end="vue3" data-slug="table">
<head>
<meta charset="utf-8">
<title>table · Vue 3 预渲染</title>
<link rel="stylesheet" href="../../.design_library/kole-ui/colors_and_type.css">
<link rel="stylesheet" href="../../frameworks/Table.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-table { width: 100%; border: 1px solid #E8ECF1; border-radius: 8px; overflow: hidden; background: #fff; position: relative; }
.kole-table table { width: 100%; border-collapse: collapse; font-size: 14px; color: #262626; }
.kole-table 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-table tbody td { height: 48px; padding: 0 16px; border-bottom: 1px solid #E8ECF1; text-align: left; }
.kole-table tbody tr:last-child td { border-bottom: none; }
.kole-table tbody tr:hover { background: #F5F7FA; }
.kole-table tbody tr.is-selected { background: #F0F5FF; }
.kole-table .align-right { text-align: right; }
.kole-table .sortable { cursor: pointer; user-select: none; }
.kole-table .sort-ind { color: #767676; margin-left: 4px; }
.kole-table .sort-ind.active { color: #2F54EB; }
.kole-table .col-action { text-align: right; }
.kole-table .col-selection { text-align: center; }
.kole-table .checkbox { width: 16px; height: 16px; cursor: pointer; vertical-align: middle; }
.kole-table .empty { padding: 48px 16px; text-align: center; color: #767676; font-size: 14px; }
.kole-table .loading-mask {
position: absolute; inset: 0; background: rgba(255,255,255,0.7); display: flex;
align-items: center; justify-content: center; z-index: 2;
}
.kole-table .spinner {
width: 20px; height: 20px; border: 2px solid #2F54EB; border-top-color: transparent;
border-radius: 50%; animation: kole-tbl-spin .6s linear infinite;
}
@keyframes kole-tbl-spin { to { transform: rotate(360deg); } }
</style>
</head>
<body class="kole-end-preview-body">
<!-- 该端实现(frameworks/Table.vue3.vue)的离线预渲染产物。类名与该端源码一致(tools/build-end-preview.mjs 断言)。 -->
<div id="kole-end-preview" data-end="vue3" data-slug="table">
<div class="kole-table" vmodel="true" sortchange="onSortChange" text="编辑" children="编辑" data-v-table><table data-v-table><thead data-v-table><tr data-v-table><th class="col-selection" style="width:48px;" data-v-table><input type="checkbox" class="checkbox" indeterminate="false" data-v-table></th><!--[--><th class="" style="" data-v-table>名称 <!----></th><!--]--></tr></thead><tbody data-v-table><!----><!--[--><tr class="" data-v-table><td class="col-selection" data-v-table><input type="checkbox" class="checkbox" data-v-table></td><!--[--><td class="" data-v-table><!--[-->示例一<!--]--></td><!--]--></tr><tr class="" data-v-table><td class="col-selection" data-v-table><input type="checkbox" class="checkbox" data-v-table></td><!--[--><td class="" data-v-table><!--[-->示例二<!--]--></td><!--]--></tr><!--]--></tbody></table><!----></div>
</div>
</body>
</html>