[{"data":1,"prerenderedAt":250},["ShallowReactive",2],{"quirekit-doc:\u002Fplugins\u002Freference\u002Fdelete":3},{"id":4,"title":5,"body":6,"description":12,"extension":237,"keywords":238,"locale":241,"meta":242,"navigation":243,"order":244,"path":245,"section":246,"seo":247,"stem":248,"__hash__":249},"docs\u002Fplugins\u002Freference\u002Fdelete.zh-CN.md","Delete · 删除事件观察",{"type":7,"value":8,"toc":224},"minimark",[9,13,24,28,34,77,86,89,105,116,124,127,138,142,145,152,156,159,165,171,175,178,183,188,191,194,197,208,220],[10,11,12],"p",{},"观察已提交事务并发出节点或标记删除事件。filterTransaction 只过滤事件通知，不拦截实际删除。",[10,14,15,19,20],{},[16,17,18],"code",{},"@quirekit\u002Fcore"," · ",[21,22,23],"strong",{},"MIT",[25,26,27],"h2",{"id":27},"编辑器适用范围",[10,29,30,31],{},"层次：",[21,32,33],{},"Core 内置能力",[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,68],"tbody",{},[41,57,58,62,65],{},[59,60,61],"td",{},"Classic",[59,63,64],{},"直接支持",[59,66,67],{},"由产品创建的 Core 自动安装，通过 Core 的 enableCoreExtensions 和 coreExtensionOptions 管理，不重复追加。视图事件的具体行为仍以当前 View 为准。",[41,69,70,73,75],{},[59,71,72],{},"Block",[59,74,64],{},[59,76,67],{},[10,78,79,80,85],{},"“直接支持”指已有上述产品装配；具体交互、宿主服务和格式支持仍有各自条件。",[81,82,84],"a",{"href":83},"\u002Fplugins\u002Fcompatibility","状态与接入规则","。许可独立显示。",[25,87,88],{"id":88},"接入",[90,91,96],"pre",{"className":92,"code":93,"language":94,"meta":95,"style":95},"language-sh shiki shiki-themes github-light github-light github-dark","pnpm add @quirekit\u002Fcore@alpha\n","sh","",[16,97,98],{"__ignoreMap":95},[99,100,103],"span",{"class":101,"line":102},"line",1,[99,104,93],{},[10,106,107,108,111,112,115],{},"Editor 默认安装此内置扩展。使用 ",[16,109,110],{},"enableCoreExtensions"," 控制启用，特定选项放在 ",[16,113,114],{},"coreExtensionOptions","；不要再次追加同名扩展。",[10,117,118,119,123],{},"安装时按包声明选择兼容版本，外部可用版本以分发源为准。本站使用工作区 Alpha；许可标签来自入口所属包，使用条件见",[81,120,122],{"href":121},"\u002Fsupport","支持与许可","。",[25,125,126],{"id":126},"按编辑器接入",[10,128,129,130,133,134,137],{},"以下片段沿用已挂载的宿主元素 ",[16,131,132],{},"element","，宿主负责容器尺寸与保存；退出页面时调用 ",[16,135,136],{},"instance.destroy()","。已有预设装配的能力不要再重复追加；需要宿主端口的入口应先完成下方配置。",[139,140],"plugin-integration",{"name":141},"Delete",[25,143,144],{"id":144},"配置",[10,146,147,148,123],{},"下面是扩展自身的默认选项。预设可以覆盖这些值；它们不等于当前文档属性。配置方法见",[81,149,151],{"href":150},"\u002Fplugins\u002Fconfiguration","配置插件",[153,154,155],"h3",{"id":155},"async",[10,157,158],{},"是否异步发出删除事件，不改变实际文档事务的提交方式。",[10,160,161,162],{},"类型：",[16,163,164],{},"boolean",[10,166,167,168],{},"默认：",[16,169,170],{},"true",[153,172,174],{"id":173},"filtertransaction","filterTransaction",[10,176,177],{},"返回 true 的事务不发出删除事件；此函数不阻止事务本身。",[10,179,161,180],{},[16,181,182],{},"((transaction: Transaction) => boolean) | undefined",[10,184,167,185],{},[16,186,187],{},"undefined",[25,189,190],{"id":190},"命令与运行方式",[10,192,193],{},"此入口没有直接声明可枚举的命令。组合扩展的命令由子扩展提供；产品插件通过 contribution 或文件服务工作。不能把安装入口名称当作命令调用。",[25,195,196],{"id":196},"下一步",[10,198,199,200,204,205,207],{},"返回",[81,201,203],{"href":202},"\u002Fplugins","全部插件","，或阅读",[81,206,151],{"href":150},"区分配置、文档属性与命令。",[10,209,210,211,215,216,123],{},"自己定义能力时见",[81,212,214],{"href":213},"\u002Fbuild\u002Fextension","扩展开发","；搭建完整宿主时见",[81,217,219],{"href":218},"\u002Fbuild","构建产品",[221,222,223],"style",{},"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":95,"searchDepth":225,"depth":225,"links":226},2,[227,228,229,230,235,236],{"id":27,"depth":225,"text":27},{"id":88,"depth":225,"text":88},{"id":126,"depth":225,"text":126},{"id":144,"depth":225,"text":144,"children":231},[232,234],{"id":155,"depth":233,"text":155},3,{"id":173,"depth":233,"text":174},{"id":190,"depth":225,"text":190},{"id":196,"depth":225,"text":196},"md",[141,18,239,240,155,174,141],"删除事件观察","builtin","zh-CN",{"navigationTitle":141,"license":23},true,90,"\u002Fplugins\u002Freference\u002Fdelete","Core 内置扩展",{"title":5,"description":12},"plugins\u002Freference\u002Fdelete.zh-CN","H-n6KIUJBopE3PgFzbtwRlPzmiVEe9-45iACjCubi9Q",1793045223295]