48 lines
4.0 KiB
HTML
48 lines
4.0 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="zh-CN" data-end="vue2" data-slug="transfer">
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<title>transfer · Vue 2 预渲染</title>
|
||
<link rel="stylesheet" href="../../.design_library/kole-ui/colors_and_type.css">
|
||
<link rel="stylesheet" href="../../frameworks/Transfer.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-transfer { display: inline-flex; align-items: stretch; gap: 12px; font-family: var(--font-family, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif); color: #262626; }
|
||
.kole-transfer-panel { width: 220px; border: 1px solid #E8ECF1; border-radius: 6px; background: #fff; display: flex; flex-direction: column; }
|
||
.kole-transfer-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid #E8ECF1; font-size: 14px; }
|
||
.kole-transfer-head .count { color: #6E6E6E; font-size: 12px; }
|
||
.kole-transfer-search { padding: 8px 12px; border-bottom: 1px solid #E8ECF1; }
|
||
.kole-transfer-search input { width: 100%; box-sizing: border-box; height: 30px; padding: 0 8px; border: 1px solid #E8ECF1; border-radius: 4px; font-size: 13px; outline: none; color: #262626; }
|
||
.kole-transfer-search input:focus { border-color: #2F54EB; box-shadow: 0 0 0 2px rgba(47,84,235,0.2); }
|
||
.kole-transfer-body { flex: 1; min-height: 180px; max-height: 240px; overflow: auto; padding: 4px 0; }
|
||
.kole-transfer-item { display: flex; align-items: center; gap: 8px; padding: 6px 12px; cursor: pointer; font-size: 14px; }
|
||
.kole-transfer-item:hover { background: #F5F7FA; }
|
||
.kole-transfer-item.is-disabled { color: #BFBFBF; cursor: not-allowed; }
|
||
.kole-transfer-item .box { width: 14px; height: 14px; border: 1px solid #E8ECF1; border-radius: 3px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 10px; }
|
||
.kole-transfer-item.is-checked .box { background: #2F54EB; border-color: #2F54EB; }
|
||
.kole-transfer-empty { padding: 32px 12px; text-align: center; color: #767676; font-size: 13px; }
|
||
.kole-transfer-ops { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
|
||
.kole-transfer-ops button { width: 32px; height: 32px; border-radius: 4px; border: 1px solid #E8ECF1; background: #fff; color: #262626; cursor: pointer; font-size: 14px; }
|
||
.kole-transfer-ops button:hover:not(:disabled) { color: #2F54EB; border-color: #2F54EB; }
|
||
.kole-transfer-ops button:disabled { color: #BFBFBF; cursor: not-allowed; }
|
||
|
||
</style>
|
||
</head>
|
||
<body class="kole-end-preview-body">
|
||
<!-- 该端实现(frameworks/Transfer.vue2.vue)的离线预渲染产物。类名与该端源码一致(tools/build-end-preview.mjs 断言)。 -->
|
||
<div id="kole-end-preview" data-end="vue2" data-slug="transfer">
|
||
<div data-server-rendered="true" class="kole-transfer"><div class="kole-transfer-panel"><div class="kole-transfer-head"><span>[</span> <span class="count">0/1</span></div> <div class="kole-transfer-search"><input placeholder="搜索" value=""></div> <div class="kole-transfer-body"><div class="kole-transfer-item"><span class="box"></span>示例二
|
||
</div> <!----></div></div> <div class="kole-transfer-ops"><button disabled="disabled">›</button> <button disabled="disabled">‹</button></div> <div class="kole-transfer-panel"><div class="kole-transfer-head"><span>'</span> <span class="count">0/1</span></div> <div class="kole-transfer-search"><input placeholder="搜索" value=""></div> <div class="kole-transfer-body"><div class="kole-transfer-item"><span class="box"></span>示例一
|
||
</div> <!----></div></div></div>
|
||
</div>
|
||
</body>
|
||
</html>
|