KunUIKunUI
GitHub

Content (内容)

渲染可信 HTML(支持剧透与内联图片灯箱)。不做 sanitize —— 不可信 HTML 请自行处理。

KunContent 不会 sanitize HTML

它原样渲染你传入的内容。绑定到 content 之前,请自行 sanitize 任何不可信 / 用户提供的 HTML(例如用 DOMPurify)。

基础用法

Rich content

KunContent renders trusted HTML, with spoiler and inline-image lightbox support.

Basic.vue

属性

属性类型默认值说明
content *string
classNamestring""