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

有没有办法默认打开有左侧的大纲栏 #8

Closed
rpdg opened this issue May 15, 2020 · 1 comment
Closed

有没有办法默认打开有左侧的大纲栏 #8

rpdg opened this issue May 15, 2020 · 1 comment

Comments

@rpdg
Copy link

rpdg commented May 15, 2020

现在只能点一下按钮才能打开大纲侧边栏

@code-farmer-i
Copy link
Owner

你可以在mounted 通过组件实例调用toggleToc这个方法来默认打开。
例如:this.$refs.vMdEditor.toggleToc(true);

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

2 participants