[{"data":1,"prerenderedAt":442},["ShallowReactive",2],{"quirekit-doc:\u002Fplugins\u002Freference\u002Fclassic-word-paragraph":3},{"id":4,"title":5,"body":6,"description":12,"extension":429,"keywords":430,"locale":433,"meta":434,"navigation":435,"order":436,"path":437,"section":438,"seo":439,"stem":440,"__hash__":441},"docs\u002Fplugins\u002Freference\u002Fclassic-word-paragraph.zh-CN.md","ClassicWordParagraph · Word 段落控件",{"type":7,"value":8,"toc":415},"minimark",[9,13,24,28,34,84,92,95,101,104,111,140,148,151,162,166,169,176,180,183,189,195,199,202,207,212,215,218,223,228,231,238,372,380,383,394,411],[10,11,12],"p",{},"连接 Word 段落格式与产品面板，并支持宿主持久化个人样式默认值。该偏好存储不替代文档中的样式与直接格式。",[10,14,15,19,20],{},[16,17,18],"code",{},"@quirekit\u002Fclassic-docx"," · ",[21,22,23],"strong",{},"Commercial",[25,26,27],"h2",{"id":27},"编辑器适用范围",[10,29,30,31],{},"层次：",[21,32,33],{},"Classic 产品适配",[35,36,37,53],"table",{},[38,39,40],"thead",{},[41,42,43,47,50],"tr",{},[44,45,46],"th",{},"编辑器",[44,48,49],{},"状态",[44,51,52],{},"所需装配与边界",[54,55,56,73],"tbody",{},[41,57,58,62,65],{},[59,60,61],"td",{},"Classic",[59,63,64],{},"直接支持",[59,66,67,72],{},[68,69,71],"a",{"href":70},"\u002Fplugins\u002Freference\u002Fcreate-classic-word-preset","createClassicWordPreset"," — 使用 createClassicWordPreset 装配 Word 模型、布局与产品适配；具体控件、开关、宿主服务及文件支持以本页说明为准。批注、修订和内容控件的完整创作界面另需 Pro。",[41,74,75,78,81],{},[59,76,77],{},"Block",[59,79,80],{},"未支持",[59,82,83],{},"Block 不消费 Classic 产品 contribution、plugins 或分页装配。请使用共享能力和 Block 适配入口，不能直接复制此入口的 Classic 配置。",[10,85,86,87,91],{},"“直接支持”指已有上述产品装配；具体交互、宿主服务和格式支持仍有各自条件。",[68,88,90],{"href":89},"\u002Fplugins\u002Fcompatibility","状态与接入规则","。许可独立显示。",[25,93,94],{"id":94},"接入",[10,96,97,98,100],{},"当前 ",[16,99,18],{}," 的包元数据标为 private。本站使用工作区源码；外部项目需先取得对应分发包，不能把下面的公开导出理解为已经能从公共 npm 安装。",[10,102,103],{},"此入口属于商业组件。使用前先取得相应分发与授权；安装命令仅适用于已配置该分发源的项目。",[10,105,106,107,110],{},"先使用 ",[68,108,109],{"href":70},"Word 预设","。这里的单项适配器用于自定义预设或替换子项；不能向已有装配再追加同名扩展。",[112,113,118],"pre",{"className":114,"code":115,"language":116,"meta":117,"style":117},"language-ts shiki shiki-themes github-light github-light github-dark","import { ClassicWordParagraph } from '@quirekit\u002Fclassic-docx'\n","ts","",[16,119,120],{"__ignoreMap":117},[121,122,125,129,133,136],"span",{"class":123,"line":124},"line",1,[121,126,128],{"class":127},"sDD9d","import",[121,130,132],{"class":131},"sVPnS"," { ClassicWordParagraph } ",[121,134,135],{"class":127},"from",[121,137,139],{"class":138},"s-HEn"," '@quirekit\u002Fclassic-docx'\n",[10,141,142,143,147],{},"安装时按包声明选择兼容版本，外部可用版本以分发源为准。本站使用工作区 Alpha；许可标签来自入口所属包，使用条件见",[68,144,146],{"href":145},"\u002Fsupport","支持与许可","。",[25,149,150],{"id":150},"按编辑器接入",[10,152,153,154,157,158,161],{},"以下片段沿用已挂载的宿主元素 ",[16,155,156],{},"element","，宿主负责容器尺寸与保存；退出页面时调用 ",[16,159,160],{},"instance.destroy()","。已有预设装配的能力不要再重复追加；需要宿主端口的入口应先完成下方配置。",[163,164],"plugin-integration",{"name":165},"ClassicWordParagraph",[25,167,168],{"id":168},"配置",[10,170,171,172,147],{},"下面是扩展自身的默认选项。预设可以覆盖这些值；它们不等于当前文档属性。配置方法见",[68,173,175],{"href":174},"\u002Fplugins\u002Fconfiguration","配置插件",[177,178,179],"h3",{"id":179},"ribbon",[10,181,182],{},"是否向 Classic 功能区贡献控件。直接使用适配器与由预设装配时的值可能不同。",[10,184,185,186],{},"类型：",[16,187,188],{},"boolean",[10,190,191,192],{},"默认：",[16,193,194],{},"false",[177,196,198],{"id":197},"styleuserdefaultsstore","styleUserDefaultsStore",[10,200,201],{},"个人样式默认值的宿主读写接口，未提供时不承诺跨会话保存。",[10,203,185,204],{},[16,205,206],{},"WordParagraphStyleUserDefaultsStore | null",[10,208,191,209],{},[16,210,211],{},"null",[177,213,214],{"id":214},"types",[10,216,217],{},"需要附加此能力的节点或标记类型名，必须与当前 schema 的实际名称一致。",[10,219,185,220],{},[16,221,222],{},"readonly string[]",[10,224,191,225],{},[16,226,227],{},"Object.freeze([ \"paragraph\", \"heading\" ])",[25,229,230],{"id":230},"命令与运行方式",[10,232,233,234,237],{},"以下命令由此扩展直接提供，均在当前 Editor 上调用。命令是否可用由已安装 schema、当前选区与保护策略决定；可以先用 ",[16,235,236],{},"editor.can()"," 查询。",[35,239,240,250],{},[38,241,242],{},[41,243,244,247],{},[44,245,246],{},"命令",[44,248,249],{},"参数签名",[54,251,252,264,276,288,300,312,324,336,348,360],{},[41,253,254,259],{},[59,255,256],{},[16,257,258],{},"insertWordBlankPage",[59,260,261],{},[16,262,263],{},"insertWordBlankPage()",[41,265,266,271],{},[59,267,268],{},[16,269,270],{},"insertWordPageBreak",[59,272,273],{},[16,274,275],{},"insertWordPageBreak(options?: { readonly position?: number; } | undefined)",[41,277,278,283],{},[59,279,280],{},[16,281,282],{},"insertWordColumnBreak",[59,284,285],{},[16,286,287],{},"insertWordColumnBreak(options?: { readonly position?: number; } | undefined)",[41,289,290,295],{},[59,291,292],{},[16,293,294],{},"setWordParagraphProperties",[59,296,297],{},[16,298,299],{},"setWordParagraphProperties(options: SetWordParagraphPropertiesOptions)",[41,301,302,307],{},[59,303,304],{},[16,305,306],{},"setWordParagraphIndentation",[59,308,309],{},[16,310,311],{},"setWordParagraphIndentation(options: SetWordParagraphIndentationOptions)",[41,313,314,319],{},[59,315,316],{},[16,317,318],{},"setWordParagraphSpacingSide",[59,320,321],{},[16,322,323],{},"setWordParagraphSpacingSide(options: SetWordParagraphSpacingSideOptions)",[41,325,326,331],{},[59,327,328],{},[16,329,330],{},"setWordParagraphSpacing",[59,332,333],{},[16,334,335],{},"setWordParagraphSpacing(options: SetWordParagraphSpacingOptions)",[41,337,338,343],{},[59,339,340],{},[16,341,342],{},"setWordParagraphLineSpacing",[59,344,345],{},[16,346,347],{},"setWordParagraphLineSpacing(options: SetWordParagraphLineSpacingOptions)",[41,349,350,355],{},[59,351,352],{},[16,353,354],{},"increaseWordParagraphIndentation",[59,356,357],{},[16,358,359],{},"increaseWordParagraphIndentation()",[41,361,362,367],{},[59,363,364],{},[16,365,366],{},"decreaseWordParagraphIndentation",[59,368,369],{},[16,370,371],{},"decreaseWordParagraphIndentation()",[10,373,374,375,379],{},"这里只展示参数签名。接界面时见",[68,376,378],{"href":377},"\u002Fbuild\u002Fcommands","命令与控件","，正文变更继续经过同一事务与历史。",[25,381,382],{"id":382},"下一步",[10,384,385,386,390,391,393],{},"返回",[68,387,389],{"href":388},"\u002Fplugins","全部插件","，或阅读",[68,392,175],{"href":174},"区分配置、文档属性与命令。",[10,395,396,397,401,402,406,407,147],{},"继续",[68,398,400],{"href":399},"\u002Fclassic\u002Fquick-start","Classic 快速接入","和",[68,403,405],{"href":404},"\u002Fclassic\u002Fconfiguration","配置与生命周期","。开发自己的产品界面与服务时，见",[68,408,410],{"href":409},"\u002Fbuild\u002Fproduct-plugin","产品插件开发",[412,413,414],"style",{},"html pre.shiki code .sDD9d, html code.shiki .sDD9d{--shiki-default:#D73A49;--shiki-light:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sVPnS, html code.shiki .sVPnS{--shiki-default:#24292E;--shiki-light:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .s-HEn, html code.shiki .s-HEn{--shiki-default:#032F62;--shiki-light:#032F62;--shiki-dark:#9ECBFF}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 .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 .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":117,"searchDepth":416,"depth":416,"links":417},2,[418,419,420,421,427,428],{"id":27,"depth":416,"text":27},{"id":94,"depth":416,"text":94},{"id":150,"depth":416,"text":150},{"id":168,"depth":416,"text":168,"children":422},[423,425,426],{"id":179,"depth":424,"text":179},3,{"id":197,"depth":424,"text":198},{"id":214,"depth":424,"text":214},{"id":230,"depth":416,"text":230},{"id":382,"depth":416,"text":382},"md",[165,18,431,432,179,198,214,258,270,282,294,306,318,330,342,354,366,165],"Word 段落控件","classic","zh-CN",{"navigationTitle":165,"license":23},true,60,"\u002Fplugins\u002Freference\u002Fclassic-word-paragraph","Classic 产品扩展",{"title":5,"description":12},"plugins\u002Freference\u002Fclassic-word-paragraph.zh-CN","8g1YF7hk4cIyDPa4DoVDiQGpgMHl3xp1GDuDWrTajvk",1793045221928]