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