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

43 lines
2.6 KiB
HTML

<!DOCTYPE html>
<html lang="zh-CN" data-end="vue2" data-slug="popconfirm">
<head>
<meta charset="utf-8">
<title>popconfirm · Vue 2 预渲染</title>
<link rel="stylesheet" href="../../.design_library/kole-ui/colors_and_type.css">
<link rel="stylesheet" href="../../frameworks/Popconfirm.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-popconfirm { position: relative; display: inline-block; }
.kole-popconfirm-pop { position: absolute; z-index: 100; min-width: 220px; background: #fff; border: 1px solid #E8ECF1;
border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,0.12); padding: 12px 14px; }
.kole-popconfirm-pop.placement-bottom { top: calc(100% + 8px); left: 0; }
.kole-popconfirm-pop.placement-top { bottom: calc(100% + 8px); left: 0; }
.kole-popconfirm-inner { display: flex; gap: 8px; }
.kole-popconfirm-icon { flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%; background: #8C5A00; color: #fff;
display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; margin-top: 2px; }
.kole-popconfirm-title { font-size: 14px; color: #262626; line-height: 1.5; }
.kole-popconfirm-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.kole-popconfirm-btn { height: 28px; padding: 0 12px; border-radius: 4px; font-size: 13px; cursor: pointer;
border: 1px solid #E8ECF1; background: #fff; color: #262626; transition: border-color .15s, color .15s; }
.kole-popconfirm-btn:hover { color: #2F54EB; border-color: #2F54EB; }
.kole-popconfirm-btn.primary { background: #2F54EB; border-color: #2F54EB; color: #fff; }
.kole-popconfirm-btn.primary:hover { background: #1D39C4; border-color: #1D39C4; color: #fff; }
</style>
</head>
<body class="kole-end-preview-body">
<!-- 该端实现(frameworks/Popconfirm.vue2.vue)的离线预渲染产物。类名与该端源码一致(tools/build-end-preview.mjs 断言)。 -->
<div id="kole-end-preview" data-end="vue2" data-slug="popconfirm">
<span data-server-rendered="true" class="kole-popconfirm"><span></span> <!----></span>
</div>
</body>
</html>