fix(editor): 代码块节点slot参数丢失

This commit is contained in:
roymondchen 2023-07-24 20:07:24 +08:00
parent ce6d2684b7
commit 23bee0b3ae

View File

@ -10,12 +10,11 @@
</slot> </slot>
<!-- 代码块列表 --> <!-- 代码块列表 -->
<CodeBlockList <CodeBlockList ref="codeBlockList" :custom-error="customError" @edit="editCode" @remove="deleteCode">
ref="codeBlockList" <template #code-block-panel-tool="{ id, data }">
:custom-error="customError" <slot name="code-block-panel-tool" :id="id" :data="data"></slot>
@edit="editCode" </template>
@remove="deleteCode" </CodeBlockList>
></CodeBlockList>
<!-- 代码块编辑区 --> <!-- 代码块编辑区 -->
<CodeBlockEditor <CodeBlockEditor