mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-06 03:57:56 +08:00
feat(editor): 修改code-block-list code-block-panel-tool slot data
This commit is contained in:
parent
cf72039ff1
commit
268ec4c27a
@ -19,7 +19,7 @@
|
||||
<TMagicTooltip v-if="data.type === 'code' && editable" effect="dark" content="删除" placement="bottom">
|
||||
<Icon :icon="Close" class="edit-icon" @click.stop="deleteCode(`${data.key}`)"></Icon>
|
||||
</TMagicTooltip>
|
||||
<slot name="code-block-panel-tool" :id="data.key" :data="data.codeBlockContent"></slot>
|
||||
<slot name="code-block-panel-tool" :id="data.key" :data="data"></slot>
|
||||
</template>
|
||||
</Tree>
|
||||
</template>
|
||||
|
@ -73,7 +73,7 @@ export interface CodeBlockListPanelSlots extends CodeBlockListSlots {
|
||||
}
|
||||
|
||||
export interface CodeBlockListSlots {
|
||||
'code-block-panel-tool'(props: { id: Id; data: CodeBlockContent }): any;
|
||||
'code-block-panel-tool'(props: { id: Id; data: any }): any;
|
||||
}
|
||||
|
||||
export interface DataSourceListSlots {
|
||||
|
Loading…
x
Reference in New Issue
Block a user