25 lines
2.1 KiB
HTML
25 lines
2.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN" data-end="react" data-slug="shortcutpanel">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>shortcutpanel · React 预渲染</title>
|
|
<link rel="stylesheet" href="../../.design_library/kole-ui/colors_and_type.css">
|
|
<link rel="stylesheet" href="../../frameworks/ShortcutPanel.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>
|
|
|
|
</head>
|
|
<body class="kole-end-preview-body">
|
|
<!-- 该端实现(frameworks/ShortcutPanel.jsx)的离线预渲染产物。类名与该端源码一致(tools/build-end-preview.mjs 断言)。 -->
|
|
<div id="kole-end-preview" data-end="react" data-slug="shortcutpanel">
|
|
<div class="kole-shortcut"><input class="kole-shortcut-search" placeholder="搜索快捷键…" value=""/><div class="kole-shortcut-list"><div class="kole-shortcut-item"><span>保存</span><span class="kole-shortcut-key">Ctrl + S</span></div><div class="kole-shortcut-item"><span>搜索</span><span class="kole-shortcut-key">Ctrl + K</span></div><div class="kole-shortcut-item"><span>新建</span><span class="kole-shortcut-key">Ctrl + N</span></div><div class="kole-shortcut-item"><span>刷新</span><span class="kole-shortcut-key">F5</span></div><div class="kole-shortcut-item"><span>关闭页签</span><span class="kole-shortcut-key">Ctrl + W</span></div><div class="kole-shortcut-item"><span>全屏</span><span class="kole-shortcut-key">F11</span></div><div class="kole-shortcut-item"><span>帮助</span><span class="kole-shortcut-key">?</span></div><div class="kole-shortcut-item"><span>命令面板</span><span class="kole-shortcut-key">Ctrl + P</span></div></div></div>
|
|
</div>
|
|
</body>
|
|
</html>
|