chore(build): 同步构建产物(site/** + sitemap 公网基址)——含本任务接线后的 data.json/data.js/逐端页,以及并行会话(S10/S9-P3)在途工作的生成物;其源码文件仍留在工作区未提交
This commit is contained in:
@@ -1 +1,39 @@
|
||||
{"slug":"shortcutpanel","mode":"single","examples":[{"id":"shortcutpanel-ex-1","title":"基础用法","titleSrc":"","desc":"","html":"<div class=\"kole-page\">\n <h2 class=\"kole-h2\">ShortcutPanel 快捷键面板</h2>\n <p class=\"kole-desc\">展示全部快捷键,支持搜索过滤。</p>\n <div class=\"kole-demo\">\n <div class=\"kole-shortcut\" role=\"region\">\n <input class=\"kole-shortcut-search\" id=\"search\" role=\"region\" placeholder=\"搜索快捷键…\" />\n <div class=\"kole-shortcut-list\" id=\"list\" role=\"region\"></div>\n </div>\n </div>\n</div>","preview":{"show":[[0]],"hide":[],"mode":"single"},"previewSafe":true,"previewUnsafeReasons":[],"source":"api-derived","code":{"html":"<h2>ShortcutPanel 快捷键面板</h2>\n<p>展示全部快捷键,支持搜索过滤。</p>\n<div class=\"kole-shortcut\" role=\"region\">\n <input class=\"kole-shortcut-search\" role=\"region\" placeholder=\"搜索快捷键…\" />\n <div class=\"kole-shortcut-list\" role=\"region\"></div>\n</div>","jsx":"import { KoleShortcutPanel } from 'kole-ui/react';\n\n<KoleShortcutPanel />","vue3":"<template>\n <KoleShortcutPanel />\n</template>\n\n<script setup>\nimport { KoleShortcutPanel } from 'kole-ui/vue3';\n</script>","vue2":"<template>\n <KoleShortcutPanel />\n</template>\n\n<script>\nimport { KoleShortcutPanel } from 'kole-ui/vue2';\nexport default { components: { KoleShortcutPanel } };\n</script>"},"notes":["演示页标记只含页面结构,未含可映射的组件属性","演示页未含可映射的调用标记,本片段依据组件 API 表推导"]}]}
|
||||
{
|
||||
"slug": "shortcutpanel",
|
||||
"curated": true,
|
||||
"mode": "single",
|
||||
"examples": [
|
||||
{
|
||||
"id": "shortcutpanel-ex-1",
|
||||
"title": "基础用法",
|
||||
"titleSrc": "",
|
||||
"desc": "",
|
||||
"html": "<div class=\"kole-page\">\n <h2 class=\"kole-h2\">ShortcutPanel 快捷键面板</h2>\n <p class=\"kole-desc\">展示全部快捷键,支持搜索过滤。</p>\n <div class=\"kole-demo\">\n <div class=\"kole-shortcut\" role=\"region\">\n <input class=\"kole-shortcut-search\" id=\"search\" role=\"region\" placeholder=\"搜索快捷键…\" />\n <div class=\"kole-shortcut-list\" id=\"list\" role=\"region\"></div>\n </div>\n </div>\n</div>",
|
||||
"preview": {
|
||||
"show": [
|
||||
[
|
||||
0
|
||||
]
|
||||
],
|
||||
"hide": [],
|
||||
"mode": "single"
|
||||
},
|
||||
"previewSafe": true,
|
||||
"previewUnsafeReasons": [],
|
||||
"source": "curated",
|
||||
"code": {
|
||||
"html": "<h2>ShortcutPanel 快捷键面板</h2>\n<p>展示全部快捷键,支持搜索过滤。</p>\n<div class=\"kole-shortcut\" role=\"region\">\n <input class=\"kole-shortcut-search\" role=\"region\" placeholder=\"搜索快捷键…\" />\n <div class=\"kole-shortcut-list\" role=\"region\"></div>\n</div>",
|
||||
"jsx": "import { KoleShortcutPanel } from 'kole-ui/react';\n\nconst items = [\n { name: '保存', key: 'Ctrl + S' },\n { name: '搜索', key: 'Ctrl + K' },\n { name: '新建', key: 'Ctrl + N' },\n { name: '刷新', key: 'F5' },\n { name: '关闭页签', key: 'Ctrl + W' },\n { name: '全屏', key: 'F11' },\n { name: '帮助', key: '?' },\n { name: '命令面板', key: 'Ctrl + P' }\n];\n\nexport default function Demo() {\n return <KoleShortcutPanel items={items} />;\n}",
|
||||
"vue3": "<script setup>\nimport { KoleShortcutPanel } from 'kole-ui/vue3';\n\nconst items = [\n { name: '保存', key: 'Ctrl + S' },\n { name: '搜索', key: 'Ctrl + K' },\n { name: '新建', key: 'Ctrl + N' },\n { name: '刷新', key: 'F5' },\n { name: '关闭页签', key: 'Ctrl + W' },\n { name: '全屏', key: 'F11' },\n { name: '帮助', key: '?' },\n { name: '命令面板', key: 'Ctrl + P' }\n];\n</script>\n\n<template>\n <KoleShortcutPanel :items=\"items\" />\n</template>",
|
||||
"vue2": "<template>\n <KoleShortcutPanel :items=\"items\" />\n</template>\n\n<script>\nimport { KoleShortcutPanel } from 'kole-ui/vue2';\n\nexport default {\n components: { KoleShortcutPanel },\n data() {\n return {\n items: [\n { name: '保存', key: 'Ctrl + S' },\n { name: '搜索', key: 'Ctrl + K' },\n { name: '新建', key: 'Ctrl + N' },\n { name: '刷新', key: 'F5' },\n { name: '关闭页签', key: 'Ctrl + W' },\n { name: '全屏', key: 'F11' },\n { name: '帮助', key: '?' },\n { name: '命令面板', key: 'Ctrl + P' }\n ]\n };\n }\n};\n</script>",
|
||||
"tsx": "import { KoleShortcutPanel } from 'kole-ui/react';\n\nconst items = [\n { name: '保存', key: 'Ctrl + S' },\n { name: '搜索', key: 'Ctrl + K' },\n { name: '新建', key: 'Ctrl + N' },\n { name: '刷新', key: 'F5' },\n { name: '关闭页签', key: 'Ctrl + W' },\n { name: '全屏', key: 'F11' },\n { name: '帮助', key: '?' },\n { name: '命令面板', key: 'Ctrl + P' }\n];\n\nexport default function Demo(): JSX.Element {\n return <KoleShortcutPanel items={items} />;\n}",
|
||||
"vue3ts": "<template>\n\n <KoleShortcutPanel :items=\"items\" />\n</template>\n\n<script setup lang=\"ts\">\nimport { KoleShortcutPanel } from 'kole-ui/vue3';\n\nconst demoTitle = ref<string>('基础用法');\nconst items = [\n { name: '保存', key: 'Ctrl + S' },\n { name: '搜索', key: 'Ctrl + K' },\n { name: '新建', key: 'Ctrl + N' },\n { name: '刷新', key: 'F5' },\n { name: '关闭页签', key: 'Ctrl + W' },\n { name: '全屏', key: 'F11' },\n { name: '帮助', key: '?' },\n { name: '命令面板', key: 'Ctrl + P' }\n];\n</script>",
|
||||
"vue2ts": "<template>\n\n <KoleShortcutPanel :items=\"items\" />\n</template>\n\n<script lang=\"ts\">\nimport Vue from 'vue';\nimport { KoleShortcutPanel } from 'kole-ui/vue2';\n\nexport default {\n components: { KoleShortcutPanel },\n data(): Record<string, unknown> {\n return {\n items: [\n { name: '保存', key: 'Ctrl + S' },\n { name: '搜索', key: 'Ctrl + K' },\n { name: '新建', key: 'Ctrl + N' },\n { name: '刷新', key: 'F5' },\n { name: '关闭页签', key: 'Ctrl + W' },\n { name: '全屏', key: 'F11' },\n { name: '帮助', key: '?' },\n { name: '命令面板', key: 'Ctrl + P' }\n ]\n };\n }\n};\n</script>"
|
||||
},
|
||||
"notes": [
|
||||
"依据 frameworks/ShortcutPanel.html 第 24-33 行的 8 条 items(name + key:保存 Ctrl + S、搜索 Ctrl + K、新建 Ctrl + N、刷新 F5、关闭页签 Ctrl + W、全屏 F11、帮助 ?、命令面板 Ctrl + P)。",
|
||||
"组件对外只有一个 prop items(frameworks/ShortcutPanel.jsx 第 15 行参数表与第 4-13 行 DEFAULT_ITEMS,Vue3 见 ShortcutPanel.vue3.vue 第 16-30 行);搜索框与过滤在组件内部完成(ShortcutPanel.jsx 第 16-21 行),宿主只需给数据。"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user