[{"data":1,"prerenderedAt":727},["ShallowReactive",2],{"navigation_docs_zh":3,"-zh-getting-started-installation":237,"-zh-getting-started-installation-surround":722},[4,23,61,91,163],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":22},"快速开始","i-lucide-rocket","\u002Fzh\u002Fgetting-started","zh\u002F01.getting-started",[10,14,18],{"title":11,"path":12,"stem":13},"简介","\u002Fzh\u002Fgetting-started\u002Fintroduction","zh\u002F01.getting-started\u002F01.introduction",{"title":15,"path":16,"stem":17},"安装","\u002Fzh\u002Fgetting-started\u002Finstallation","zh\u002F01.getting-started\u002F02.installation",{"title":19,"path":20,"stem":21},"AI 集成","\u002Fzh\u002Fgetting-started\u002Fai-integration","zh\u002F01.getting-started\u002F03.ai-integration",false,{"title":24,"icon":25,"path":26,"stem":27,"children":28,"page":22},"CORE","i-lucide-box","\u002Fzh\u002Fcore","zh\u002F02.core",[29,33,37,41,45,49,53,57],{"title":30,"path":31,"stem":32},"@office-open\u002Fcore","\u002Fzh\u002Fcore\u002Foverview","zh\u002F02.core\u002F01.overview",{"title":34,"path":35,"stem":36},"XML 组件","\u002Fzh\u002Fcore\u002Fxml-components","zh\u002F02.core\u002F02.xml-components",{"title":38,"path":39,"stem":40},"值与验证","\u002Fzh\u002Fcore\u002Fvalues","zh\u002F02.core\u002F03.values",{"title":42,"path":43,"stem":44},"单位转换器","\u002Fzh\u002Fcore\u002Fconverters","zh\u002F02.core\u002F04.converters",{"title":46,"path":47,"stem":48},"Formatter","\u002Fzh\u002Fcore\u002Fformatter","zh\u002F02.core\u002F05.formatter",{"title":50,"path":51,"stem":52},"Parser","\u002Fzh\u002Fcore\u002Fparser","zh\u002F02.core\u002F06.parser",{"title":54,"path":55,"stem":56},"Archive","\u002Fzh\u002Fcore\u002Farchive","zh\u002F02.core\u002F07.archive",{"title":58,"path":59,"stem":60},"Charts","\u002Fzh\u002Fcore\u002Fcharts","zh\u002F02.core\u002F08.charts",{"title":62,"icon":63,"path":64,"stem":65,"children":66,"page":22},"XML","i-lucide-code-xml","\u002Fzh\u002Fxml","zh\u002F03.xml",[67,71,75,79,83,87],{"title":68,"path":69,"stem":70},"@office-open\u002Fxml","\u002Fzh\u002Fxml\u002Foverview","zh\u002F03.xml\u002F01.overview",{"title":72,"path":73,"stem":74},"解析","\u002Fzh\u002Fxml\u002Fparsing","zh\u002F03.xml\u002F02.parsing",{"title":76,"path":77,"stem":78},"序列化","\u002Fzh\u002Fxml\u002Fserialization","zh\u002F03.xml\u002F03.serialization",{"title":80,"path":81,"stem":82},"查询工具","\u002Fzh\u002Fxml\u002Fquery-utilities","zh\u002F03.xml\u002F04.query-utilities",{"title":84,"path":85,"stem":86},"XML 转义","\u002Fzh\u002Fxml\u002Fescape","zh\u002F03.xml\u002F05.escape",{"title":88,"path":89,"stem":90},"类型参考","\u002Fzh\u002Fxml\u002Ftypes","zh\u002F03.xml\u002F06.types",{"title":92,"icon":93,"path":94,"stem":95,"children":96,"page":22},"DOCX","i-lucide-file-text","\u002Fzh\u002Fdocx","zh\u002F04.docx",[97,101,104,108,112,116,120,124,128,132,136,140,144,148,152,156,160],{"title":98,"path":99,"stem":100},"@office-open\u002Fdocx","\u002Fzh\u002Fdocx\u002Foverview","zh\u002F04.docx\u002F01.overview",{"title":5,"path":102,"stem":103},"\u002Fzh\u002Fdocx\u002Fquickstart","zh\u002F04.docx\u002F02.quickstart",{"title":105,"path":106,"stem":107},"文本与段落","\u002Fzh\u002Fdocx\u002Ftext-and-paragraphs","zh\u002F04.docx\u002F03.text-and-paragraphs",{"title":109,"path":110,"stem":111},"表格","\u002Fzh\u002Fdocx\u002Ftables","zh\u002F04.docx\u002F04.tables",{"title":113,"path":114,"stem":115},"图片","\u002Fzh\u002Fdocx\u002Fimages","zh\u002F04.docx\u002F05.images",{"title":117,"path":118,"stem":119},"图表","\u002Fzh\u002Fdocx\u002Fcharts","zh\u002F04.docx\u002F06.charts",{"title":121,"path":122,"stem":123},"SmartArt","\u002Fzh\u002Fdocx\u002Fsmartart","zh\u002F04.docx\u002F07.smartart",{"title":125,"path":126,"stem":127},"媒体","\u002Fzh\u002Fdocx\u002Fmedia","zh\u002F04.docx\u002F08.media",{"title":129,"path":130,"stem":131},"链接","\u002Fzh\u002Fdocx\u002Flinks","zh\u002F04.docx\u002F09.links",{"title":133,"path":134,"stem":135},"页眉与页脚","\u002Fzh\u002Fdocx\u002Fheaders-and-footers","zh\u002F04.docx\u002F10.headers-and-footers",{"title":137,"path":138,"stem":139},"公式与符号","\u002Fzh\u002Fdocx\u002Fequations-and-symbols","zh\u002F04.docx\u002F11.equations-and-symbols",{"title":141,"path":142,"stem":143},"样式与主题","\u002Fzh\u002Fdocx\u002Fstyles-and-themes","zh\u002F04.docx\u002F12.styles-and-themes",{"title":145,"path":146,"stem":147},"页面布局","\u002Fzh\u002Fdocx\u002Fpage-layout","zh\u002F04.docx\u002F13.page-layout",{"title":149,"path":150,"stem":151},"引用","\u002Fzh\u002Fdocx\u002Freferences","zh\u002F04.docx\u002F14.references",{"title":153,"path":154,"stem":155},"批注与修订","\u002Fzh\u002Fdocx\u002Fcomments-and-revisions","zh\u002F04.docx\u002F15.comments-and-revisions",{"title":157,"path":158,"stem":159},"导出","\u002Fzh\u002Fdocx\u002Fexport","zh\u002F04.docx\u002F16.export",{"title":72,"path":161,"stem":162},"\u002Fzh\u002Fdocx\u002Fparsing","zh\u002F04.docx\u002F17.parsing",{"title":164,"icon":165,"path":166,"stem":167,"children":168,"page":22},"PPTX","i-lucide-presentation","\u002Fzh\u002Fpptx","zh\u002F05.pptx",[169,173,176,180,183,186,189,192,195,198,201,204,208,211,215,219,223,227,230,233],{"title":170,"path":171,"stem":172},"@office-open\u002Fpptx","\u002Fzh\u002Fpptx\u002Foverview","zh\u002F05.pptx\u002F01.overview",{"title":5,"path":174,"stem":175},"\u002Fzh\u002Fpptx\u002Fquickstart","zh\u002F05.pptx\u002F02.quickstart",{"title":177,"path":178,"stem":179},"形状与文本","\u002Fzh\u002Fpptx\u002Fshapes-and-text","zh\u002F05.pptx\u002F03.shapes-and-text",{"title":109,"path":181,"stem":182},"\u002Fzh\u002Fpptx\u002Ftables","zh\u002F05.pptx\u002F04.tables",{"title":113,"path":184,"stem":185},"\u002Fzh\u002Fpptx\u002Fimages","zh\u002F05.pptx\u002F05.images",{"title":117,"path":187,"stem":188},"\u002Fzh\u002Fpptx\u002Fcharts","zh\u002F05.pptx\u002F06.charts",{"title":121,"path":190,"stem":191},"\u002Fzh\u002Fpptx\u002Fsmartart","zh\u002F05.pptx\u002F07.smartart",{"title":125,"path":193,"stem":194},"\u002Fzh\u002Fpptx\u002Fmedia","zh\u002F05.pptx\u002F08.media",{"title":129,"path":196,"stem":197},"\u002Fzh\u002Fpptx\u002Flinks","zh\u002F05.pptx\u002F09.links",{"title":133,"path":199,"stem":200},"\u002Fzh\u002Fpptx\u002Fheaders-and-footers","zh\u002F05.pptx\u002F10.headers-and-footers",{"title":137,"path":202,"stem":203},"\u002Fzh\u002Fpptx\u002Fequations-and-symbols","zh\u002F05.pptx\u002F11.equations-and-symbols",{"title":205,"path":206,"stem":207},"线条与连接符","\u002Fzh\u002Fpptx\u002Flines-and-connectors","zh\u002F05.pptx\u002F12.lines-and-connectors",{"title":141,"path":209,"stem":210},"\u002Fzh\u002Fpptx\u002Fstyles-and-themes","zh\u002F05.pptx\u002F13.styles-and-themes",{"title":212,"path":213,"stem":214},"效果与填充","\u002Fzh\u002Fpptx\u002Feffects-and-fills","zh\u002F05.pptx\u002F14.effects-and-fills",{"title":216,"path":217,"stem":218},"幻灯片布局","\u002Fzh\u002Fpptx\u002Fslide-layout","zh\u002F05.pptx\u002F15.slide-layout",{"title":220,"path":221,"stem":222},"切换效果","\u002Fzh\u002Fpptx\u002Ftransitions","zh\u002F05.pptx\u002F16.transitions",{"title":224,"path":225,"stem":226},"动画效果","\u002Fzh\u002Fpptx\u002Fanimations","zh\u002F05.pptx\u002F17.animations",{"title":157,"path":228,"stem":229},"\u002Fzh\u002Fpptx\u002Fexport","zh\u002F05.pptx\u002F18.export",{"title":72,"path":231,"stem":232},"\u002Fzh\u002Fpptx\u002Fparsing","zh\u002F05.pptx\u002F19.parsing",{"title":234,"path":235,"stem":236},"批注","\u002Fzh\u002Fpptx\u002Fcomments","zh\u002F05.pptx\u002F20.comments",{"id":238,"title":15,"body":239,"description":716,"extension":717,"links":718,"meta":719,"navigation":298,"path":16,"seo":720,"stem":17,"__hash__":721},"docs_zh\u002Fzh\u002F01.getting-started\u002F02.installation.md",{"type":240,"value":241,"toc":710},"minimark",[242,246,250,356,369,372,375,474,477,481,488,687,690,706],[243,244,245],"h2",{"id":245},"包管理器",[247,248,249],"p",{},"安装你需要的文档类型对应的包：",[251,252,257],"pre",{"className":253,"code":254,"language":255,"meta":256,"style":256},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# pnpm\npnpm add @office-open\u002Fdocx\npnpm add @office-open\u002Fpptx\n\n# npm\nnpm install @office-open\u002Fdocx\nnpm install @office-open\u002Fpptx\n\n# yarn\nyarn add @office-open\u002Fdocx\nyarn add @office-open\u002Fpptx\n","bash","",[258,259,260,269,283,293,300,306,317,326,331,337,347],"code",{"__ignoreMap":256},[261,262,265],"span",{"class":263,"line":264},"line",1,[261,266,268],{"class":267},"sHwdD","# pnpm\n",[261,270,272,276,280],{"class":263,"line":271},2,[261,273,275],{"class":274},"sBMFI","pnpm",[261,277,279],{"class":278},"sfazB"," add",[261,281,282],{"class":278}," @office-open\u002Fdocx\n",[261,284,286,288,290],{"class":263,"line":285},3,[261,287,275],{"class":274},[261,289,279],{"class":278},[261,291,292],{"class":278}," @office-open\u002Fpptx\n",[261,294,296],{"class":263,"line":295},4,[261,297,299],{"emptyLinePlaceholder":298},true,"\n",[261,301,303],{"class":263,"line":302},5,[261,304,305],{"class":267},"# npm\n",[261,307,309,312,315],{"class":263,"line":308},6,[261,310,311],{"class":274},"npm",[261,313,314],{"class":278}," install",[261,316,282],{"class":278},[261,318,320,322,324],{"class":263,"line":319},7,[261,321,311],{"class":274},[261,323,314],{"class":278},[261,325,292],{"class":278},[261,327,329],{"class":263,"line":328},8,[261,330,299],{"emptyLinePlaceholder":298},[261,332,334],{"class":263,"line":333},9,[261,335,336],{"class":267},"# yarn\n",[261,338,340,343,345],{"class":263,"line":339},10,[261,341,342],{"class":274},"yarn",[261,344,279],{"class":278},[261,346,282],{"class":278},[261,348,350,352,354],{"class":263,"line":349},11,[261,351,342],{"class":274},[261,353,279],{"class":278},[261,355,292],{"class":278},[247,357,358,359,362,363,365,366,368],{},"没有单一的 ",[258,360,361],{},"office-open"," 包——只需安装你需要的特定包。共享依赖（",[258,364,30],{},"、",[258,367,68],{},"）会自动引入。",[243,370,371],{"id":371},"浏览器",[247,373,374],{},"在浏览器中使用时，直接从支持 ESM 的 CDN 导入：",[251,376,380],{"className":377,"code":378,"language":379,"meta":256,"style":256},"language-html shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript type=\"module\">\n    import { Document, Packer, Paragraph, TextRun } from \"https:\u002F\u002Fesm.sh\u002F@office-open\u002Fdocx\";\n\n    \u002F\u002F ... 创建并导出你的文档\n\u003C\u002Fscript>\n","html",[258,381,382,410,456,460,465],{"__ignoreMap":256},[261,383,384,388,392,396,399,402,405,407],{"class":263,"line":264},[261,385,387],{"class":386},"sMK4o","\u003C",[261,389,391],{"class":390},"swJcz","script",[261,393,395],{"class":394},"spNyl"," type",[261,397,398],{"class":386},"=",[261,400,401],{"class":386},"\"",[261,403,404],{"class":278},"module",[261,406,401],{"class":386},[261,408,409],{"class":386},">\n",[261,411,412,416,419,423,426,429,431,434,436,439,442,445,448,451,453],{"class":263,"line":271},[261,413,415],{"class":414},"s7zQu","    import",[261,417,418],{"class":386}," {",[261,420,422],{"class":421},"sTEyZ"," Document",[261,424,425],{"class":386},",",[261,427,428],{"class":421}," Packer",[261,430,425],{"class":386},[261,432,433],{"class":421}," Paragraph",[261,435,425],{"class":386},[261,437,438],{"class":421}," TextRun",[261,440,441],{"class":386}," }",[261,443,444],{"class":414}," from",[261,446,447],{"class":386}," \"",[261,449,450],{"class":278},"https:\u002F\u002Fesm.sh\u002F@office-open\u002Fdocx",[261,452,401],{"class":386},[261,454,455],{"class":386},";\n",[261,457,458],{"class":263,"line":285},[261,459,299],{"emptyLinePlaceholder":298},[261,461,462],{"class":263,"line":295},[261,463,464],{"class":267},"    \u002F\u002F ... 创建并导出你的文档\n",[261,466,467,470,472],{"class":263,"line":302},[261,468,469],{"class":386},"\u003C\u002F",[261,471,391],{"class":390},[261,473,409],{"class":386},[247,475,476],{},"或使用打包工具（Vite、Webpack 等）——这些包以标准 ESM 模块发布，开箱即用。",[243,478,480],{"id":479},"typescript","TypeScript",[247,482,483,484,487],{},"所有包均使用 TypeScript 编写，并附带内置类型定义。无需安装额外的 ",[258,485,486],{},"@types"," 包。",[251,489,493],{"className":490,"code":491,"language":492,"meta":256,"style":256},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { Document, Packer, Paragraph, TextRun } from \"@office-open\u002Fdocx\";\n\n\u002F\u002F 完整的类型支持和自动补全\nconst doc = new Document({\n    sections: [\n        {\n            children: [\n                new Paragraph({\n                    children: [new TextRun({ text: \"Hello, World!\", bold: true })],\n                }),\n            ],\n        },\n    ],\n});\n","ts",[258,494,495,528,532,537,559,570,575,584,595,646,656,663,669,677],{"__ignoreMap":256},[261,496,497,500,502,504,506,508,510,512,514,516,518,520,522,524,526],{"class":263,"line":264},[261,498,499],{"class":414},"import",[261,501,418],{"class":386},[261,503,422],{"class":421},[261,505,425],{"class":386},[261,507,428],{"class":421},[261,509,425],{"class":386},[261,511,433],{"class":421},[261,513,425],{"class":386},[261,515,438],{"class":421},[261,517,441],{"class":386},[261,519,444],{"class":414},[261,521,447],{"class":386},[261,523,98],{"class":278},[261,525,401],{"class":386},[261,527,455],{"class":386},[261,529,530],{"class":263,"line":271},[261,531,299],{"emptyLinePlaceholder":298},[261,533,534],{"class":263,"line":285},[261,535,536],{"class":267},"\u002F\u002F 完整的类型支持和自动补全\n",[261,538,539,542,545,547,550,553,556],{"class":263,"line":295},[261,540,541],{"class":394},"const",[261,543,544],{"class":421}," doc ",[261,546,398],{"class":386},[261,548,549],{"class":386}," new",[261,551,422],{"class":552},"s2Zo4",[261,554,555],{"class":421},"(",[261,557,558],{"class":386},"{\n",[261,560,561,564,567],{"class":263,"line":302},[261,562,563],{"class":390},"    sections",[261,565,566],{"class":386},":",[261,568,569],{"class":421}," [\n",[261,571,572],{"class":263,"line":308},[261,573,574],{"class":386},"        {\n",[261,576,577,580,582],{"class":263,"line":319},[261,578,579],{"class":390},"            children",[261,581,566],{"class":386},[261,583,569],{"class":421},[261,585,586,589,591,593],{"class":263,"line":328},[261,587,588],{"class":386},"                new",[261,590,433],{"class":552},[261,592,555],{"class":421},[261,594,558],{"class":386},[261,596,597,600,602,605,608,610,612,615,618,620,622,625,627,629,632,634,638,640,643],{"class":263,"line":333},[261,598,599],{"class":390},"                    children",[261,601,566],{"class":386},[261,603,604],{"class":421}," [",[261,606,607],{"class":386},"new",[261,609,438],{"class":552},[261,611,555],{"class":421},[261,613,614],{"class":386},"{",[261,616,617],{"class":390}," text",[261,619,566],{"class":386},[261,621,447],{"class":386},[261,623,624],{"class":278},"Hello, World!",[261,626,401],{"class":386},[261,628,425],{"class":386},[261,630,631],{"class":390}," bold",[261,633,566],{"class":386},[261,635,637],{"class":636},"sfNiH"," true",[261,639,441],{"class":386},[261,641,642],{"class":421},")]",[261,644,645],{"class":386},",\n",[261,647,648,651,654],{"class":263,"line":339},[261,649,650],{"class":386},"                }",[261,652,653],{"class":421},")",[261,655,645],{"class":386},[261,657,658,661],{"class":263,"line":349},[261,659,660],{"class":421},"            ]",[261,662,645],{"class":386},[261,664,666],{"class":263,"line":665},12,[261,667,668],{"class":386},"        },\n",[261,670,672,675],{"class":263,"line":671},13,[261,673,674],{"class":421},"    ]",[261,676,645],{"class":386},[261,678,680,683,685],{"class":263,"line":679},14,[261,681,682],{"class":386},"}",[261,684,653],{"class":421},[261,686,455],{"class":386},[243,688,689],{"id":689},"环境要求",[691,692,693,701],"ul",{},[694,695,696,700],"li",{},[697,698,699],"strong",{},"Node.js"," >= 18",[694,702,703,705],{},[697,704,480],{}," >= 5.0（可选，但推荐）",[707,708,709],"style",{},"html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}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);}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}",{"title":256,"searchDepth":271,"depth":271,"links":711},[712,713,714,715],{"id":245,"depth":271,"text":245},{"id":371,"depth":271,"text":371},{"id":479,"depth":271,"text":480},{"id":689,"depth":271,"text":689},"如何安装 office-open 包","md",null,{},{"title":15,"description":716},"1lrWHNAtRUomHGiVRQ1pF-VrSAe9F8PT97ESEmUUOc0",[723,725],{"title":11,"path":12,"stem":13,"description":724,"children":-1},"office-open 项目及其包的概述",{"title":19,"path":20,"stem":21,"description":726,"children":-1},"通过 MCP、Skills 和 LLMs.txt 将 Office Open 与 AI 代理配合使用",1778862987107]