Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

defToolbars slot no render #417

Closed
MTTTM opened this issue Jan 5, 2024 · 1 comment
Closed

defToolbars slot no render #417

MTTTM opened this issue Jan 5, 2024 · 1 comment

Comments

@MTTTM
Copy link

MTTTM commented Jan 5, 2024

描述这个Bug

写了这个插槽,但是没有渲染
`<script setup>
import { ref } from 'vue';
import { MdEditor,NormalToolbar } from 'md-editor-v3';
import 'md-editor-v3/lib/style.css';

const text = ref('# Hello Editor');
const handler = () => {
console.log('NormalToolbar clicked!');
};
</script>

`
<template>
<div>
<MdEditor v-model="text" >
<template #defToolbars>
<NormalToolbar title="mark" @OnClick="handler">
<template #trigger>
<div>dafsfsdf
<span>asfsdfsdf</span>
<span>asfsdfsdf</span>
</div>
</template>
</NormalToolbar>
</template></MdEditor>
</div>
</template>

版本号

4.10.0

问题重现链接

No response

@MTTTM MTTTM closed this as completed Jan 6, 2024
@MTTTM
Copy link
Author

MTTTM commented Jan 6, 2024

解决,不是bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant