Vanessa219 / vditor

♏ 一款浏览器端的 Markdown 编辑器,支持所见即所得(富文本)、即时渲染(类似 Typora)和分屏预览模式。An In-browser Markdown editor, support WYSIWYG (Rich Text), Instant Rendering (Typora-like) and Split View modes.
https://b3log.org/vditor
MIT License
8.09k stars 844 forks source link

Vditor.outlineRender渲染大纲的样式要自己加上去吗?没有自带的? #1614

Closed dengsong666 closed 3 months ago

dengsong666 commented 3 months ago

看html结构是有内容的,但没有在右侧呈现出来,这是要自己写样式吗? 我的使用方式,我是缺少什么额外配置吗?

Vditor.preview(refPreview.value!, data?.content || '', {
      cdn: 'https://unpkg.com/vditor@3.10.3',
      after() {
        if (window.innerWidth <= 768) return
        Vditor.outlineRender(refPreview.value!, refOutline.value!,)
      }
    })
dengsong666 commented 3 months ago

我看到display:none的样式,我覆盖了