uniapp开发的web端门户网站
嵌入vue-quill-editor插件后,有的样式不显示
因为你没有正确的引入icon 去看下配置目录, 如有帮助给个采纳谢谢
不知道你这个问题是否已经解决, 如果还没有解决的话:根据参考资料,可以使用以下步骤解决在uniapp开发的web端门户网站中使用vue-quill-editor插件时,部分样式无法显示的问题:
npm install vue-quill-editor
<template>
<vue-quill-editor v-model="content"></vue-quill-editor>
</template>
<script>
import VueQuillEditor from 'vue-quill-editor'
export default {
components: {
VueQuillEditor
},
data () {
return {
content: ''
}
}
}
</script>
v-html
指令绑定content的值:<template>
<div>
<div v-html="content"></div>
</div>
</template>
<script>
export default {
data () {
return {
content: '<p>Hello World!</p><p>Some initial <strong>bold</strong> text</p><p><br></p>'
}
}
}
</script>
这样,使用vue-quill-editor就可以成功在uniapp开发的web端门户网站中显示富文本内容,并解决了部分样式无法显示的问题。
希望以上解决方案对你有帮助!如果你还有其他问题,请随时提问。