[{"data":1,"prerenderedAt":1128},["ShallowReactive",2],{"docs-navigation-zh-CN":3,"mdc--tctnej-key":338,"docs--docs-components-component-code":351,"surround--docs-components-component-code":849,"component-meta-UBadge":852,"component-meta-ComponentCode":853,"-docs-components-component-code-description":978,"component-code-UBadge-pUzTEGfeIAN-dNyDshbApcpco6_Q58BcA1uaEI0tbU8":995,"-docs-components-component-code-prop-prettier-description":1112,"-docs-components-component-code-prop-collapse-description":1120},[4],{"title":5,"path":6,"stem":7,"children":8,"page":113},"Docs","\u002Fdocs","docs",[9,38,114,150,191,239],{"title":10,"path":11,"stem":12,"children":13,"category":16,"description":16,"icon":37},"开始","\u002Fdocs\u002Fgetting-started","docs\u002F1.getting-started\u002F1.index",[14,19,25,31],{"title":15,"path":11,"stem":12,"category":16,"description":17,"icon":18},"简介",null,"Movk Nuxt Docs 是一个可以直接 extends 的 Nuxt Layer，提供文档站所需的排版、导航、搜索、SEO 与 AI 能力。本页说明它适合什么项目、默认包含哪些功能、哪些功能按需开启。","i-lucide-book-open",{"title":20,"path":21,"stem":22,"category":16,"description":23,"icon":24},"安装","\u002Fdocs\u002Fgetting-started\u002Finstallation","docs\u002F1.getting-started\u002F2.installation","用官方模板从零创建文档站，或把 @movk\u002Fnuxt-docs 作为 Layer 接入现有 Nuxt 项目。本页列出 default、i18n、module 三套模板的区别、运行环境要求与必须安装的依赖。","i-lucide-download",{"title":26,"path":27,"stem":28,"category":16,"description":29,"icon":30},"项目结构","\u002Fdocs\u002Fgetting-started\u002Fproject-structure","docs\u002F1.getting-started\u002F3.project-structure","说明使用 Movk Nuxt Docs 的项目中各目录与文件的职责：内容放在哪里、路由如何生成、哪些文件会被自动识别为版本发布页与案例页，以及两份配置文件分别管什么。","i-lucide-folder-tree",{"title":32,"path":33,"stem":34,"category":16,"description":35,"icon":36},"从 v2 迁移","\u002Fdocs\u002Fgetting-started\u002Fmigration","docs\u002F1.getting-started\u002F4.migration","逐条列出从 @movk\u002Fnuxt-docs v2 升级到 v3 的破坏性变更，每项给出 v2 与 v3 写法对比。按顺序检查依赖与功能开关、内容目录、配置字段、视觉默认值和组件覆盖，即可完成升级。","i-lucide-arrow-right-left","i-lucide-square-play",{"title":39,"category":16,"description":16,"icon":40,"path":41,"stem":42,"children":43,"page":113},"指南","i-lucide-compass","\u002Fdocs\u002Fguide","docs\u002F2.guide",[44,51,58,64,70,76,82,89,95,101,107],{"title":45,"path":46,"stem":47,"category":48,"description":49,"icon":50},"配置总览","\u002Fdocs\u002Fguide\u002Fconfiguration","docs\u002F2.guide\u002F1.configuration","basics","Movk Nuxt Docs 的配置分为 nuxt.config.ts 与 app.config.ts 两处：前者在构建期决定启用哪些模块与功能，后者在运行时控制界面、文案与导航。本页说明两者的分工、生效时机，以及常见需求应该改哪一处。","i-lucide-settings",{"title":52,"path":53,"stem":54,"category":55,"description":56,"icon":57},"故障排查","\u002Fdocs\u002Fguide\u002Ftroubleshooting","docs\u002F2.guide\u002F10.troubleshooting","shipping","汇总可选依赖缺失、AI Chat 与 MCP 依赖关系、文档 404、多语言配置、pnpm 构建脚本审批与提交记录问题的解决办法。","i-lucide-life-buoy",{"title":59,"path":60,"stem":61,"category":55,"description":62,"icon":63},"常见问题","\u002Fdocs\u002Fguide\u002Ffaq","docs\u002F2.guide\u002F11.faq","关于 Movk Nuxt Docs 的常见疑问：与 Nuxt UI 文档模板的关系、包管理器与 Node.js 版本、单语言站点、关闭 GitHub 集成、接入其他 AI 厂商、升级与组件覆盖、静态部署的限制等，每条都链接到详细说明。","i-lucide-circle-help",{"title":65,"path":66,"stem":67,"category":48,"description":68,"icon":69},"主题与字体","\u002Fdocs\u002Fguide\u002Ftheme","docs\u002F2.guide\u002F2.theme","默认主题采用编辑风：暖灰纸面、朱红强调色、衬线标题与等宽元信息。本页说明默认配色与字体、如何通过 app.config 切换颜色与标题字体、引入中文衬线字体，以及访客主题面板与动效偏好的行为。","i-lucide-palette",{"title":71,"path":72,"stem":73,"category":48,"description":74,"icon":75},"导航与分类","\u002Fdocs\u002Fguide\u002Fnavigation","docs\u002F2.guide\u002F3.navigation","页头导航、移动端菜单与侧栏分组都在 app.config 中声明，文档目录结构则决定栏目条与侧栏的内容和顺序。本页说明各类导航的数据来源、多语言文案与链接前缀、侧栏分组规则，以及导航过滤与 ⌘K 搜索。","i-lucide-map",{"title":77,"path":78,"stem":79,"category":48,"description":80,"icon":81},"功能开关","\u002Fdocs\u002Fguide\u002Ffeatures","docs\u002F2.guide\u002F4.features","组件文档、Mermaid、AI Chat、无障碍检查等可选功能都由 nuxt.config 中的开关控制，默认关闭的功能不会打包任何相关依赖。本页列出每个开关的默认值、启用后需要安装的依赖，以及关闭时的降级行为。","i-lucide-toggle-right",{"title":83,"path":84,"stem":85,"category":86,"description":87,"icon":88},"自定义","\u002Fdocs\u002Fguide\u002Fcustomization","docs\u002F2.guide\u002F5.customization","customization","在项目组件目录中创建与内置组件同名的 Vue 文件，即可替换页头、侧栏、页脚等界面区域。本页列出 v3 承诺稳定的可覆盖组件、各自的挂载位置，并为每个组件给出最小覆盖示例。","i-lucide-paintbrush",{"title":90,"path":91,"stem":92,"category":86,"description":93,"icon":94},"页面与布局","\u002Fdocs\u002Fguide\u002Fpages","docs\u002F2.guide\u002F6.pages","除文档页外，Layer 会根据 content 目录中的文件自动生成首页、版本发布页与案例页，你也可以在 app\u002Fpages 中编写任意 Vue 页面。本页说明各内置路由的生成条件与内容格式、自定义页面的页头页脚开关，以及内置布局。","i-lucide-layout-panel-top",{"title":96,"path":97,"stem":98,"category":86,"description":99,"icon":100},"国际化","\u002Fdocs\u002Fguide\u002Fi18n","docs\u002F2.guide\u002F7.i18n","用 @nuxtjs\u002Fi18n 为文档站开启多语言：安装与配置、内容目录约定、按语言生成的内容集合、界面文案覆盖与 hreflang SEO。未配置时站点按单语言运行，也可只切换界面语言。","i-lucide-languages",{"title":102,"path":103,"stem":104,"category":86,"description":105,"icon":106},"OG 图片","\u002Fdocs\u002Fguide\u002Fog-image","docs\u002F2.guide\u002F8.og-image","每个文档页在构建时自动生成社交分享图片（OG 图片）。本页说明内置模板读取哪些字段、如何在自定义页面中生成、如何替换模板，以及关闭该功能后的行为。","i-lucide-image",{"title":108,"path":109,"stem":110,"category":55,"description":111,"icon":112},"部署","\u002Fdocs\u002Fguide\u002Fdeployment","docs\u002F2.guide\u002F9.deployment","把文档站部署到 Vercel、Netlify、Cloudflare 或任意 Node.js 服务器，也可以生成纯静态站点。本页列出构建命令、环境变量、各平台的注意事项，以及静态部署下不可用的功能。","i-lucide-rocket",false,{"title":115,"category":16,"description":16,"icon":116,"path":117,"stem":118,"children":119,"page":113},"AI","i-lucide-sparkles","\u002Fdocs\u002Fai","docs\u002F3.ai",[120,126,132,138,144],{"title":121,"path":122,"stem":123,"category":16,"description":124,"icon":125},"AI Chat","\u002Fdocs\u002Fai\u002Fai-chat","docs\u002F3.ai\u002F1.ai-chat","为文档站启用内置 AI 助手：说明启用条件与依赖安装、模型与端点路由的配置方式、如何接入其他厂商，以及组件与组合式函数的 API，帮助你在几分钟内让读者直接向文档提问。","i-lucide-bot",{"title":127,"path":128,"stem":129,"category":16,"description":130,"icon":131},"MCP Server","\u002Fdocs\u002Fai\u002Fmcp","docs\u002F3.ai\u002F2.mcp","每个文档站默认在 \u002Fmcp 提供 Model Context Protocol 服务。本页列出内置的工具、资源与提示词，说明如何在 Claude Code、Cursor、VS Code 等客户端接入，以及如何关闭、限制或扩展服务器。","i-lucide-plug",{"title":133,"path":134,"stem":135,"category":16,"description":136,"icon":137},"Agent Skills","\u002Fdocs\u002Fai\u002Fskills","docs\u002F3.ai\u002F3.skills","把项目根目录 skills\u002F 下的 Agent Skills 随文档站一起发布到 \u002F.well-known\u002Fskills\u002F，读者一条命令即可安装到 Claude Code、Cursor 等助手。本页说明目录结构、命名规则、发布方式与内置的两个 Skill。","i-lucide-wand-sparkles",{"title":139,"path":140,"stem":141,"category":16,"description":142,"icon":143},"llms.txt","\u002Fdocs\u002Fai\u002Fllms-txt","docs\u002F3.ai\u002F4.llms-txt","文档站自动生成 \u002Fllms.txt 与 \u002Fllms-full.txt，为大语言模型提供站点目录与全文。本页说明默认值从哪里来、如何配置标题与分组、它们与每页 Markdown 表示的关系，以及在 Cursor 等工具中的用法。","i-lucide-file-text",{"title":145,"path":146,"stem":147,"category":16,"description":148,"icon":149},"代理发现","\u002Fdocs\u002Fai\u002Fagent-discovery","docs\u002F3.ai\u002F5.agent-discovery","文档站默认为 AI 代理提供每页的 Markdown 表示、Markdown 站点地图与一组 \u002F.well-known 发现文档，代理无需解析 HTML 就能找到并读取内容。本页列出全部端点、内容协商规则与 layer 的补充实现。","i-lucide-radar",{"title":151,"category":16,"description":16,"icon":152,"path":153,"stem":154,"children":155,"page":113},"写作","i-lucide-square-pilcrow","\u002Fdocs\u002Fwriting","docs\u002F4.writing",[156,162,168,174,179,185],{"title":157,"path":158,"stem":159,"category":16,"description":160,"icon":161},"Markdown 语法","\u002Fdocs\u002Fwriting\u002Fmarkdown-syntax","docs\u002F4.writing\u002F1.markdown-syntax","文档页面使用标准 Markdown 编写：标题决定目录与锚点，配合强调、链接、列表、表格与引用组织内容。本页列出常用语法及其在 Movk Nuxt Docs 中的渲染效果。","i-lucide-heading",{"title":163,"path":164,"stem":165,"category":16,"description":166,"icon":167},"代码块","\u002Fdocs\u002Fwriting\u002Fcode-blocks","docs\u002F4.writing\u002F2.code-blocks","代码块默认使用 github-light \u002F github-dark 高亮，支持文件名、行高亮、复制按钮与颜色、图标预览；用 code-group、code-tree 等组件组织多文件与长代码示例。","i-lucide-square-code",{"title":169,"path":170,"stem":171,"category":16,"description":172,"icon":173},"MDC 组件","\u002Fdocs\u002Fwriting\u002Fmdc-components","docs\u002F4.writing\u002F3.mdc-components","在 Markdown 中用 MDC 语法嵌入 Nuxt UI 的 Prose 组件：提示块、徽标、卡片、折叠面板、选项卡、步骤、字段说明、图标与按键，无需编写 Vue 代码即可组织更有层次的文档内容。","i-lucide-puzzle",{"title":175,"path":176,"stem":177,"category":16,"description":178,"icon":106},"图片与视频","\u002Fdocs\u002Fwriting\u002Fmedia","docs\u002F4.writing\u002F4.media","用 Markdown 图片语法插入远程或本地图片，用 `u-color-mode-image` 为亮色与暗色模式分别提供截图，用 `:video` 嵌入视频；本页同时说明图片放置位置与替代文本的写法。",{"title":180,"path":181,"stem":182,"category":16,"description":183,"icon":184},"Mermaid 图表","\u002Fdocs\u002Fwriting\u002Fmermaid","docs\u002F4.writing\u002F5.mermaid","开启 `movkNuxtDocs.mermaid` 并安装 mermaid 与 dompurify 后，语言为 `mermaid` 的代码块渲染为流程图、时序图、类图等图表，随亮暗主题切换，进入视口时才加载，并提供复制与全屏查看。","i-lucide-workflow",{"title":186,"path":187,"stem":188,"category":16,"description":189,"icon":190},"内容组件","\u002Fdocs\u002Fwriting\u002Fcontent-components","docs\u002F4.writing\u002F6.content-components","layer 在 Nuxt UI Prose 组件之外提供的内容组件：为元素添加入场动画的 Motion、动态星空背景 StarsBg，以及编辑式落地页使用的 LandingCover、LandingSection 等组件，均可直接在 Markdown 中使用。","i-lucide-sparkle",{"title":192,"category":16,"description":16,"icon":193,"path":194,"stem":195,"children":196,"page":113},"组件","i-lucide-component","\u002Fdocs\u002Fcomponents","docs\u002F5.components",[197,203,209,215,221,227,233],{"title":198,"path":199,"stem":200,"category":16,"description":201,"icon":202},"ComponentProps","\u002Fdocs\u002Fcomponents\u002Fcomponent-props","docs\u002F5.components\u002F1.component-props","在 Markdown 中用一行 `:component-props` 生成 Vue 组件的 Props 表格，名称、默认值、类型与 JSDoc 说明均来自 nuxt-component-meta 提取的元数据，组件改动后文档自动同步。","i-lucide-list",{"title":204,"path":205,"stem":206,"category":16,"description":207,"icon":208},"ComponentSlots","\u002Fdocs\u002Fcomponents\u002Fcomponent-slots","docs\u002F5.components\u002F2.component-slots","用一行 `:component-slots` 列出 Vue 组件的全部插槽，插槽名、作用域参数类型与 JSDoc 说明来自 `defineSlots` 的类型定义，无需手写插槽文档。","i-lucide-layout-panel-left",{"title":210,"path":211,"stem":212,"category":16,"description":213,"icon":214},"ComponentEmits","\u002Fdocs\u002Fcomponents\u002Fcomponent-emits","docs\u002F5.components\u002F3.component-emits","用一行 `:component-emits` 列出 Vue 组件的全部事件，事件名、参数签名与 JSDoc 说明来自 `defineEmits` 的类型定义，与 Props、Slots 表格配套组成完整 API 文档。","i-lucide-radio-tower",{"title":216,"path":217,"stem":218,"category":16,"description":219,"icon":220},"ComponentExample","\u002Fdocs\u002Fcomponents\u002Fcomponent-example","docs\u002F5.components\u002F4.component-example","用 `:component-example` 把示例目录中的 Vue 文件渲染为实时预览，并在下方展示带高亮的源码；支持行高亮、折叠、可调参数与仅客户端渲染，适合展示组件在真实场景下的组合用法。","i-lucide-app-window",{"title":222,"path":223,"stem":224,"category":16,"description":225,"icon":226},"ComponentCode","\u002Fdocs\u002Fcomponents\u002Fcomponent-code","docs\u002F5.components\u002F5.component-code","用 `::component-code` 以属性矩阵驱动任意已注册的 Vue 组件实时渲染，读者在预览上方切换属性值，下方的 Vue 代码片段同步更新，可直接复制使用。","i-lucide-sliders-horizontal",{"title":228,"path":229,"stem":230,"category":16,"description":231,"icon":232},"CommitChangelog","\u002Fdocs\u002Fcomponents\u002Fcommit-changelog","docs\u002F5.components\u002F6.commit-changelog","用 `:commit-changelog` 从 GitHub 拉取组件或源文件的提交记录，按版本分组展示为时间线；文件路径由组件名推导，可按目录、扩展名、命名格式与作者调整，一篇文档也可关联多个文件。","i-lucide-git-commit-horizontal",{"title":234,"path":235,"stem":236,"category":16,"description":237,"icon":238},"PageLastCommit","\u002Fdocs\u002Fcomponents\u002Fpage-last-commit","docs\u002F5.components\u002F7.page-last-commit","文档页导语下方的元信息行会显示当前 Markdown 文件的最后一次提交，包括时间、作者与提交信息；本页说明它的启用条件、日期格式配置与 PR squash merge 的作者识别。","i-lucide-history",{"title":240,"category":16,"description":16,"icon":241,"path":242,"stem":243,"children":244,"page":113},"参考","i-lucide-book-marked","\u002Fdocs\u002Freference","docs\u002F6.reference",[245,251,257,332],{"title":246,"path":247,"stem":248,"category":16,"description":249,"icon":250},"app.config 参考","\u002Fdocs\u002Freference\u002Fapp-config","docs\u002F6.reference\u002F1.app-config","app.config.ts 全部配置项的字段、类型、默认值与说明，由 layer 的 nuxt.schema.ts 自动生成，与发布版本保持一致。需要了解某一项的用法时，从这里跳转到对应指南。","i-lucide-file-cog",{"title":252,"path":253,"stem":254,"category":16,"description":255,"icon":256},"nuxt.config 选项","\u002Fdocs\u002Freference\u002Fnuxt-config","docs\u002F6.reference\u002F2.nuxt-config","Layer 在构建期读取的全部 nuxt.config 选项与环境变量，包括功能开关、AI Chat、组件元数据、MCP、llms.txt、代理发现与站点信息。修改这些选项后需要重新构建或重启开发服务器。","i-lucide-settings-2",{"title":258,"category":16,"description":16,"icon":259,"path":260,"stem":261,"children":262,"page":113},"组合式函数","i-lucide-square-function","\u002Fdocs\u002Freference\u002Fcomposables","docs\u002F6.reference\u002F3.composables",[263,268,274,280,286,292,298,304,310,315,321,327],{"title":264,"path":265,"stem":266,"category":16,"description":267,"icon":100},"useMovkI18n","\u002Fdocs\u002Freference\u002Fcomposables\u002Fuse-movk-i18n","docs\u002F6.reference\u002F3.composables\u002F1.use-movk-i18n","统一的多语言访问入口。无论是否启用 @nuxtjs\u002Fi18n，都能用同一套 API 读取当前语言、翻译文案、生成带语言前缀的链接，并拿到当前语言对应的内容集合名与文档根路径。",{"title":269,"path":270,"stem":271,"category":16,"description":272,"icon":273},"useLocaleSeo","\u002Fdocs\u002Freference\u002Fcomposables\u002Fuse-locale-seo","docs\u002F6.reference\u002F3.composables\u002F10.use-locale-seo","为多语言站点注入 hreflang alternate 链接、x-default 与 og:locale，让搜索引擎正确识别各语言版本。layer 的 app.vue 已全局调用；只有在项目中重写 app.vue 时需要自行调用。","i-lucide-globe",{"title":275,"path":276,"stem":277,"category":16,"description":278,"icon":279},"useFetchComponentMeta","\u002Fdocs\u002Freference\u002Fcomposables\u002Fuse-fetch-component-meta","docs\u002F6.reference\u002F3.composables\u002F11.use-fetch-component-meta","读取 nuxt-component-meta 生成的组件元数据，包括 Props、Slots、Events 的类型与说明。ComponentProps 等组件文档组件都基于它实现，需要自行渲染组件 API 表格时直接调用。仅在开启组件文档功能时可用。","i-lucide-braces",{"title":281,"path":282,"stem":283,"category":16,"description":284,"icon":285},"useFetchComponentExample","\u002Fdocs\u002Freference\u002Fcomposables\u002Fuse-fetch-component-example","docs\u002F6.reference\u002F3.composables\u002F12.use-fetch-component-example","读取 components\u002Fcontent\u002Fexamples 下示例组件的源码、文件路径与组件名。ComponentExample 用它展示示例代码，需要在自定义组件中显示示例源码时直接调用。仅在开启组件文档功能时可用。","i-lucide-file-code",{"title":287,"path":288,"stem":289,"category":16,"description":290,"icon":291},"useDocsNavigation","\u002Fdocs\u002Freference\u002Fcomposables\u002Fuse-docs-navigation","docs\u002F6.reference\u002F3.composables\u002F2.use-docs-navigation","读取外壳预先加载好的文档导航树。页头栏目条、侧栏和文档页都从这里拿导航数据，自定义组件调用它即可复用同一份数据，不会再次查询内容集合。","i-lucide-list-tree",{"title":293,"path":294,"stem":295,"category":16,"description":296,"icon":297},"useNavigation","\u002Fdocs\u002Freference\u002Fcomposables\u002Fuse-navigation","docs\u002F6.reference\u002F3.composables\u002F3.use-navigation","把文档导航树加工成侧栏需要的形态：取出顶层栏目、把当前栏目的页面按 docs.categories 分组，并为任意路径生成面包屑。自定义侧栏或目录组件时用它保持与默认实现一致的分组规则。","i-lucide-panel-left",{"title":299,"path":300,"stem":301,"category":16,"description":302,"icon":303},"useHeader","\u002Fdocs\u002Freference\u002Fcomposables\u002Fuse-header","docs\u002F6.reference\u002F3.composables\u002F4.use-header","提供页头桌面端与移动端导航链接。推荐直接在 app.config 的 header.nav 与 header.mobileNav 中声明；需要按运行时状态动态生成链接时，再在项目中创建同名 composable 覆盖它。","i-lucide-panel-top",{"title":305,"path":306,"stem":307,"category":16,"description":308,"icon":309},"useCategory","\u002Fdocs\u002Freference\u002Fcomposables\u002Fuse-category","docs\u002F6.reference\u002F3.composables\u002F5.use-category","提供侧栏分类定义，决定栏目内带 category 的页面如何分组、按什么顺序显示。推荐在 app.config 的 docs.categories 中声明；只有分类需要在运行时计算时，才在项目中创建同名 composable 覆盖。","i-lucide-folders",{"title":311,"path":312,"stem":313,"category":16,"description":314,"icon":69},"useTheme","\u002Fdocs\u002Freference\u002Fcomposables\u002Fuse-theme","docs\u002F6.reference\u002F3.composables\u002F6.use-theme","主题面板背后的状态与操作：主色、中性色、圆角、图标集、黑色主色与颜色模式，访客的选择保存在 localStorage，并能导出为 app.config 或 CSS 片段。自定义主题面板或在页面中切换主题时使用。",{"title":316,"path":317,"stem":318,"category":16,"description":319,"icon":320},"useDocsRoute","\u002Fdocs\u002Freference\u002Fcomposables\u002Fuse-docs-route","docs\u002F6.reference\u002F3.composables\u002F7.use-docs-route","判断当前路由是否是文档子页面，兼容默认语言的 \u002Fdocs\u002F* 与其他语言的 \u002F{locale}\u002Fdocs\u002F*。自定义页头、页脚等全站组件需要只在文档页显示某些内容时使用。","i-lucide-route",{"title":322,"path":323,"stem":324,"category":16,"description":325,"icon":326},"useDocsFilterConfig","\u002Fdocs\u002Freference\u002Fcomposables\u002Fuse-docs-filter-config","docs\u002F6.reference\u002F3.composables\u002F8.use-docs-filter-config","侧栏导航过滤框的配置、显示条件与过滤函数，对应 app.config 的 aside.filter。自定义侧栏顶部或侧栏主体组件时，用这些函数保持与默认过滤行为一致。","i-lucide-list-filter",{"title":328,"path":329,"stem":330,"category":16,"description":331,"icon":220},"useDocsShell","\u002Fdocs\u002Freference\u002Fcomposables\u002Fuse-docs-shell","docs\u002F6.reference\u002F3.composables\u002F9.use-docs-shell","app.vue 与 error.vue 共用的站点外壳：按当前语言加载导航树与搜索索引，注入 html 语言、方向、字体与颗粒属性，并向组件树提供导航。只有在项目中完全重写 app.vue 或 error.vue 时才需要直接调用它。",{"title":333,"path":334,"stem":335,"category":16,"description":336,"icon":337},"A–Z 索引","\u002Fdocs\u002Freference\u002Fa-z","docs\u002F6.reference\u002F9.a-z","按英文标题首字母列出全部文档页面，记得功能名称却不确定它在哪个分区时，从这里直接跳转；中文页面同时显示英文标题以便按字母查找。","i-lucide-list-ordered",{"data":339,"body":340},{},{"type":341,"children":342},"root",[343],{"type":344,"tag":345,"props":346,"children":347},"element","p",{},[348],{"type":349,"value":350},"text","Copyright © 2024 - 2026",{"id":352,"title":222,"body":353,"category":16,"description":225,"difficulty":16,"extension":837,"index":113,"keywords":16,"links":838,"meta":843,"navigation":844,"path":223,"requires":16,"seo":845,"sitemap":847,"stem":224,"__hash__":848},"docs\u002Fdocs\u002F5.components\u002F5.component-code.md",{"type":354,"value":355,"toc":829},"minimark",[356,362,374,378,392,570,581,584,674,780,797,806,810,814,817,821,825],[345,357,358,361],{},[359,360,222],"code",{}," 不需要单独的示例文件：在 frontmatter 中给出组件名与初始 props，即可得到可交互的预览和对应的 Vue 代码。",[363,364,365,366,369,370,373],"note",{"to":199},"需要开启 ",[359,367,368],{},"movkNuxtDocs.componentDocs","，前置条件与 ",[371,372,198],"a",{"href":199}," 相同。",[375,376,377],"h2",{"id":377},"用法",[345,379,380,383,384,387,388,391],{},[359,381,382],{},"name"," 为 PascalCase 的组件名，可以是 Nuxt UI 组件或项目中自动导入的组件。",[359,385,386],{},"props"," 中的每个键都会生成一个控件，",[359,389,390],{},"items"," 为对应的键提供可选值：",[393,394,395,401],"code-preview",{},[396,397],"component-code",{":items":398,":props":399,"name":400},"{\"color\":[\"primary\",\"secondary\",\"success\",\"warning\",\"error\",\"neutral\"],\"variant\":[\"solid\",\"outline\",\"soft\",\"subtle\"]}","{\"label\":\"New\",\"color\":\"primary\",\"variant\":\"solid\"}","UBadge",[402,403,405],"template",{"v-slot:code":404},"",[406,407,411],"pre",{"className":408,"code":409,"language":410,"meta":404,"style":404},"language-mdc shiki shiki-themes github-light github-light github-dark","::component-code\n---\nname: UBadge\nprops:\n  label: New\n  color: primary\n  variant: solid\nitems:\n  color: [primary, secondary, success, warning, error, neutral]\n  variant: [solid, outline, soft, subtle]\n---\n::\n","mdc",[359,412,413,426,432,444,452,463,474,485,492,532,559,564],{"__ignoreMap":404},[414,415,418,422],"span",{"class":416,"line":417},"line",1,[414,419,421],{"class":420},"sxrX7","::",[414,423,425],{"class":424},"sovSZ","component-code\n",[414,427,429],{"class":416,"line":428},2,[414,430,431],{"class":420},"---\n",[414,433,435,437,440],{"class":416,"line":434},3,[414,436,382],{"class":424},[414,438,439],{"class":420},": ",[414,441,443],{"class":442},"sIIMD","UBadge\n",[414,445,447,449],{"class":416,"line":446},4,[414,448,386],{"class":424},[414,450,451],{"class":420},":\n",[414,453,455,458,460],{"class":416,"line":454},5,[414,456,457],{"class":424},"  label",[414,459,439],{"class":420},[414,461,462],{"class":442},"New\n",[414,464,466,469,471],{"class":416,"line":465},6,[414,467,468],{"class":424},"  color",[414,470,439],{"class":420},[414,472,473],{"class":442},"primary\n",[414,475,477,480,482],{"class":416,"line":476},7,[414,478,479],{"class":424},"  variant",[414,481,439],{"class":420},[414,483,484],{"class":442},"solid\n",[414,486,488,490],{"class":416,"line":487},8,[414,489,390],{"class":424},[414,491,451],{"class":420},[414,493,495,497,500,503,506,509,511,514,516,519,521,524,526,529],{"class":416,"line":494},9,[414,496,468],{"class":424},[414,498,499],{"class":420},": [",[414,501,502],{"class":442},"primary",[414,504,505],{"class":420},", ",[414,507,508],{"class":442},"secondary",[414,510,505],{"class":420},[414,512,513],{"class":442},"success",[414,515,505],{"class":420},[414,517,518],{"class":442},"warning",[414,520,505],{"class":420},[414,522,523],{"class":442},"error",[414,525,505],{"class":420},[414,527,528],{"class":442},"neutral",[414,530,531],{"class":420},"]\n",[414,533,535,537,539,542,544,547,549,552,554,557],{"class":416,"line":534},10,[414,536,479],{"class":424},[414,538,499],{"class":420},[414,540,541],{"class":442},"solid",[414,543,505],{"class":420},[414,545,546],{"class":442},"outline",[414,548,505],{"class":420},[414,550,551],{"class":442},"soft",[414,553,505],{"class":420},[414,555,556],{"class":442},"subtle",[414,558,531],{"class":420},[414,560,562],{"class":416,"line":561},11,[414,563,431],{"class":420},[414,565,567],{"class":416,"line":566},12,[414,568,569],{"class":420},"::\n",[345,571,572,573,576,577,580],{},"布尔类型的 prop 自动提供 ",[359,574,575],{},"true"," \u002F ",[359,578,579],{},"false"," 两个选项，数字类型显示数字输入框，其余显示文本框。代码片段会省略与组件默认值相同的布尔与字符串属性。",[375,582,583],{"id":583},"控制生成的代码",[585,586,587,600],"table",{},[588,589,590],"thead",{},[591,592,593,597],"tr",{},[594,595,596],"th",{},"字段",[594,598,599],{},"作用",[601,602,603,614,624,642,664],"tbody",{},[591,604,605,611],{},[606,607,608],"td",{},[359,609,610],{},"ignore",[606,612,613],{},"不生成控件，但仍写入代码，适合固定不变的属性",[591,615,616,621],{},[606,617,618],{},[359,619,620],{},"hide",[606,622,623],{},"既不生成控件，也不写入代码，适合只影响预览的属性",[591,625,626,631],{},[606,627,628],{},[359,629,630],{},"external",[606,632,633,634,637,638,641],{},"在 ",[359,635,636],{},"\u003Cscript setup>"," 中声明为 ",[359,639,640],{},"ref","，模板中以变量绑定",[591,643,644,649],{},[606,645,646],{},[359,647,648],{},"model",[606,650,651,652,655,656,659,660,663],{},"以 ",[359,653,654],{},"v-model:{key}"," 绑定；",[359,657,658],{},"modelValue"," 始终以 ",[359,661,662],{},"v-model"," 绑定",[591,665,666,671],{},[606,667,668],{},[359,669,670],{},"slots",[606,672,673],{},"插槽内容，键为插槽名，值为模板字符串",[406,675,677],{"className":408,"code":676,"language":410,"meta":404,"style":404},"::component-code\n---\nname: UInput\nprops:\n  modelValue: ''\n  placeholder: 搜索文档\n  class: w-64\nexternal: [modelValue]\nhide: [class]\nslots:\n  trailing: \u003CUKbd value=\"\u002F\" \u002F>\n---\n::\n",[359,678,679,685,689,698,704,714,724,734,744,755,761,771,775],{"__ignoreMap":404},[414,680,681,683],{"class":416,"line":417},[414,682,421],{"class":420},[414,684,425],{"class":424},[414,686,687],{"class":416,"line":428},[414,688,431],{"class":420},[414,690,691,693,695],{"class":416,"line":434},[414,692,382],{"class":424},[414,694,439],{"class":420},[414,696,697],{"class":442},"UInput\n",[414,699,700,702],{"class":416,"line":446},[414,701,386],{"class":424},[414,703,451],{"class":420},[414,705,706,709,711],{"class":416,"line":454},[414,707,708],{"class":424},"  modelValue",[414,710,439],{"class":420},[414,712,713],{"class":442},"''\n",[414,715,716,719,721],{"class":416,"line":465},[414,717,718],{"class":424},"  placeholder",[414,720,439],{"class":420},[414,722,723],{"class":442},"搜索文档\n",[414,725,726,729,731],{"class":416,"line":476},[414,727,728],{"class":424},"  class",[414,730,439],{"class":420},[414,732,733],{"class":442},"w-64\n",[414,735,736,738,740,742],{"class":416,"line":487},[414,737,630],{"class":424},[414,739,499],{"class":420},[414,741,658],{"class":442},[414,743,531],{"class":420},[414,745,746,748,750,753],{"class":416,"line":494},[414,747,620],{"class":424},[414,749,499],{"class":420},[414,751,752],{"class":442},"class",[414,754,531],{"class":420},[414,756,757,759],{"class":416,"line":534},[414,758,670],{"class":424},[414,760,451],{"class":420},[414,762,763,766,768],{"class":416,"line":561},[414,764,765],{"class":424},"  trailing",[414,767,439],{"class":420},[414,769,770],{"class":442},"\u003CUKbd value=\"\u002F\" \u002F>\n",[414,772,773],{"class":416,"line":566},[414,774,431],{"class":420},[414,776,778],{"class":416,"line":777},13,[414,779,569],{"class":420},[345,781,782,783,785,786,789,790,793,794,796],{},"上例生成的代码中，",[359,784,658],{}," 声明为 ",[359,787,788],{},"const value = ref(\"\")"," 并以 ",[359,791,792],{},"v-model=\"value\""," 绑定，",[359,795,752],{}," 只作用于预览。",[798,799,801,802,805],"tip",{"to":800},"\u002Fdocs\u002Fcomponents\u002Fcomponent-example#扩展示例容器","ComponentCode 与 ComponentExample 共用 ",[359,803,804],{},"ComponentExampleExtras"," 扩展组件。",[375,807,809],{"id":808},"api","API",[811,812,813],"h3",{"id":386},"Props",[815,816],"component-props",{},[375,818,820],{"id":819},"changelog","Changelog",[822,823],"commit-changelog",{"commit-path":824},"layer\u002Fmodules\u002Fcomponent-docs\u002Fruntime\u002Fcomponents",[826,827,828],"style",{},"html pre.shiki code .sxrX7, html code.shiki .sxrX7{--shiki-light:#24292E;--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sovSZ, html code.shiki .sovSZ{--shiki-light:#22863A;--shiki-default:#22863A;--shiki-dark:#85E89D}html pre.shiki code .sIIMD, html code.shiki .sIIMD{--shiki-light:#032F62;--shiki-default:#032F62;--shiki-dark:#9ECBFF}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":404,"searchDepth":428,"depth":428,"links":830},[831,832,833,836],{"id":377,"depth":428,"text":377},{"id":583,"depth":428,"text":583},{"id":808,"depth":428,"text":809,"children":834},[835],{"id":386,"depth":434,"text":813},{"id":819,"depth":428,"text":820},"md",[839],{"label":840,"icon":841,"to":842},"GitHub","i-simple-icons-github","https:\u002F\u002Fgithub.com\u002Fmhaibaraai\u002Fmovk-nuxt-docs\u002Fblob\u002Fmain\u002Flayer\u002Fmodules\u002Fcomponent-docs\u002Fruntime\u002Fcomponents\u002FComponentCode.vue",{},{"icon":226},{"title":222,"description":846},"Render any registered Vue component live from a props matrix and keep a copy-paste Vue snippet in sync as readers tweak props.",{"loc":223},"0-rHpUf-8lgwTv3-BSUZoTfODO_akvgFLwUJDK2N0uw",[850,851],{"title":216,"path":217,"stem":218,"description":219,"icon":220,"children":-1},{"title":228,"path":229,"stem":230,"description":231,"icon":232,"children":-1},{},{"mode":854,"global":855,"prefetch":113,"preload":113,"filePath":856,"declarationPath":857,"pascalName":222,"kebabName":396,"chunkName":858,"priority":859,"_scanned":855,"meta":860},"all",true,"..\u002Flayer\u002Fmodules\u002Fcomponent-docs\u002Fruntime\u002Fcomponents\u002FComponentCode.vue","\u002Fopt\u002Fbuildhome\u002Frepo\u002Flayer\u002Fmodules\u002Fcomponent-docs\u002Fruntime\u002Fcomponents\u002FComponentCode.vue","components\u002Fcomponent-code",0,{"type":417,"props":861,"slots":974,"events":975,"exposed":976,"hash":977},[862,865,874,881,891,897,903,909,913,922,953,964,969],{"name":382,"global":113,"description":404,"tags":863,"required":855,"type":864,"schema":864},[],"string",{"name":386,"global":113,"description":404,"tags":866,"required":113,"type":867,"schema":868},[],"undefined | Record\u003Cstring, any>",{"kind":869,"type":870,"schema":871},"enum","Record\u003Cstring, any> | undefined",{"0":872,"1":873},"undefined","Record\u003Cstring, any>",{"name":390,"global":113,"description":404,"tags":875,"required":113,"type":876,"schema":877},[],"undefined | Record\u003Cstring, any[]>",{"kind":869,"type":878,"schema":879},"Record\u003Cstring, any[]> | undefined",{"0":872,"1":880},"Record\u003Cstring, any[]>",{"name":648,"global":113,"description":404,"tags":882,"required":113,"type":883,"schema":884},[],"undefined | string[]",{"kind":869,"type":885,"schema":886},"string[] | undefined",{"0":872,"1":887},{"kind":888,"type":889,"schema":890},"array","string[]",[864],{"name":630,"global":113,"description":404,"tags":892,"required":113,"type":885,"schema":893},[],{"kind":869,"type":885,"schema":894},{"0":872,"1":895},{"kind":888,"type":889,"schema":896},[864],{"name":620,"global":113,"description":404,"tags":898,"required":113,"type":883,"schema":899},[],{"kind":869,"type":885,"schema":900},{"0":872,"1":901},{"kind":888,"type":889,"schema":902},[864],{"name":610,"global":113,"description":404,"tags":904,"required":113,"type":883,"schema":905},[],{"kind":869,"type":885,"schema":906},{"0":872,"1":907},{"kind":888,"type":889,"schema":908},[864],{"name":670,"global":113,"description":404,"tags":910,"required":113,"type":867,"schema":911},[],{"kind":869,"type":870,"schema":912},{"0":872,"1":873},{"name":914,"global":113,"default":579,"description":915,"tags":916,"required":113,"type":919,"schema":920},"prettier","是否使用 Prettier 格式化代码",[917],{"name":918,"text":579},"defaultValue","boolean | undefined",{"kind":869,"type":919,"schema":921},{"0":872,"1":579,"2":575},{"name":923,"global":113,"description":924,"tags":925,"required":113,"type":927,"schema":928,"default":579},"collapse","是否折叠代码块",[926],{"name":918,"text":579},"boolean | { icon?: string | undefined; name?: string | undefined; openText?: string | undefined; closeText?: string | undefined; open?: boolean | undefined; } | undefined",{"kind":869,"type":927,"schema":929},{"0":872,"1":579,"2":575,"3":930},{"kind":931,"type":932,"schema":933},"object","{ icon?: string | undefined; name?: string | undefined; openText?: string | undefined; closeText?: string | undefined; open?: boolean | undefined; }",{"icon":934,"name":940,"openText":942,"closeText":945,"open":948},{"name":935,"global":113,"description":404,"tags":936,"required":113,"type":937,"schema":938},"icon",[],"string | undefined",{"kind":869,"type":937,"schema":939},{"0":872,"1":864},{"name":382,"global":113,"description":404,"tags":941,"required":113,"type":937,"schema":937},[],{"name":943,"global":113,"description":404,"tags":944,"required":113,"type":937,"schema":937},"openText",[],{"name":946,"global":113,"description":404,"tags":947,"required":113,"type":937,"schema":937},"closeText",[],{"name":949,"global":113,"description":404,"tags":950,"required":113,"type":919,"schema":951},"open",[],{"kind":869,"type":919,"schema":952},{"0":872,"1":579,"2":575},{"name":954,"global":113,"description":404,"tags":955,"required":113,"type":956,"schema":957},"highlights",[],"undefined | number[]",{"kind":869,"type":958,"schema":959},"number[] | undefined",{"0":872,"1":960},{"kind":888,"type":961,"schema":962},"number[]",[963],"number",{"name":965,"global":113,"description":404,"tags":966,"required":113,"type":919,"schema":967},"overflowHidden",[],{"kind":869,"type":919,"schema":968},{"0":872,"1":579,"2":575},{"name":970,"global":113,"description":404,"tags":971,"required":113,"type":919,"schema":972},"elevated",[],{"kind":869,"type":919,"schema":973},{"0":872,"1":579,"2":575},[],[],[],"simx_R7yFUwQU0Q3ZqDiiONljRoO6TRTubnWumr0giw",{"data":979,"body":980},{},{"type":341,"children":981},[982],{"type":344,"tag":345,"props":983,"children":984},{},[985,987,993],{"type":349,"value":986},"用 ",{"type":344,"tag":359,"props":988,"children":990},{"className":989},[],[991],{"type":349,"value":992},"::component-code",{"type":349,"value":994}," 以属性矩阵驱动任意已注册的 Vue 组件实时渲染，读者在预览上方切换属性值，下方的 Vue 代码片段同步更新，可直接复制使用。",{"data":996,"body":997,"toc":1110},{"title":404,"description":404},{"type":341,"children":998},[999,1105],{"type":344,"tag":406,"props":1000,"children":1004},{"className":1001,"code":1002,"language":1003,"meta":404,"style":404},"language-vue shiki shiki-themes github-light github-light github-dark","\u003Ctemplate>\n  \u003CUBadge label=\"New\" color=\"primary\" variant=\"solid\" \u002F>\n\u003C\u002Ftemplate>\n","vue",[1005],{"type":344,"tag":359,"props":1006,"children":1007},{"__ignoreMap":404},[1008,1027,1089],{"type":344,"tag":414,"props":1009,"children":1010},{"class":416,"line":417},[1011,1017,1022],{"type":344,"tag":414,"props":1012,"children":1014},{"style":1013},"--shiki-light:#24292E;--shiki-default:#24292E;--shiki-dark:#E1E4E8",[1015],{"type":349,"value":1016},"\u003C",{"type":344,"tag":414,"props":1018,"children":1020},{"style":1019},"--shiki-light:#22863A;--shiki-default:#22863A;--shiki-dark:#85E89D",[1021],{"type":349,"value":402},{"type":344,"tag":414,"props":1023,"children":1024},{"style":1013},[1025],{"type":349,"value":1026},">\n",{"type":344,"tag":414,"props":1028,"children":1029},{"class":416,"line":428},[1030,1035,1039,1045,1050,1056,1061,1065,1070,1075,1079,1084],{"type":344,"tag":414,"props":1031,"children":1032},{"style":1013},[1033],{"type":349,"value":1034},"  \u003C",{"type":344,"tag":414,"props":1036,"children":1037},{"style":1019},[1038],{"type":349,"value":400},{"type":344,"tag":414,"props":1040,"children":1042},{"style":1041},"--shiki-light:#6F42C1;--shiki-default:#6F42C1;--shiki-dark:#B392F0",[1043],{"type":349,"value":1044}," label",{"type":344,"tag":414,"props":1046,"children":1047},{"style":1013},[1048],{"type":349,"value":1049},"=",{"type":344,"tag":414,"props":1051,"children":1053},{"style":1052},"--shiki-light:#032F62;--shiki-default:#032F62;--shiki-dark:#9ECBFF",[1054],{"type":349,"value":1055},"\"New\"",{"type":344,"tag":414,"props":1057,"children":1058},{"style":1041},[1059],{"type":349,"value":1060}," color",{"type":344,"tag":414,"props":1062,"children":1063},{"style":1013},[1064],{"type":349,"value":1049},{"type":344,"tag":414,"props":1066,"children":1067},{"style":1052},[1068],{"type":349,"value":1069},"\"primary\"",{"type":344,"tag":414,"props":1071,"children":1072},{"style":1041},[1073],{"type":349,"value":1074}," variant",{"type":344,"tag":414,"props":1076,"children":1077},{"style":1013},[1078],{"type":349,"value":1049},{"type":344,"tag":414,"props":1080,"children":1081},{"style":1052},[1082],{"type":349,"value":1083},"\"solid\"",{"type":344,"tag":414,"props":1085,"children":1086},{"style":1013},[1087],{"type":349,"value":1088}," \u002F>\n",{"type":344,"tag":414,"props":1090,"children":1091},{"class":416,"line":434},[1092,1097,1101],{"type":344,"tag":414,"props":1093,"children":1094},{"style":1013},[1095],{"type":349,"value":1096},"\u003C\u002F",{"type":344,"tag":414,"props":1098,"children":1099},{"style":1019},[1100],{"type":349,"value":402},{"type":344,"tag":414,"props":1102,"children":1103},{"style":1013},[1104],{"type":349,"value":1026},{"type":344,"tag":826,"props":1106,"children":1107},{},[1108],{"type":349,"value":1109},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":404,"searchDepth":428,"depth":428,"links":1111},[],{"data":1113,"body":1114},{},{"type":341,"children":1115},[1116],{"type":344,"tag":345,"props":1117,"children":1118},{},[1119],{"type":349,"value":915},{"data":1121,"body":1122},{},{"type":341,"children":1123},[1124],{"type":344,"tag":345,"props":1125,"children":1126},{},[1127],{"type":349,"value":924},1794996154157]