Skip to content

Highlight 高亮组件 ​

高亮组件,关键词高亮、正则匹配。

基础用法 ​

vue
<template>
  <parrot-highlight />
</template>

API ​

Props ​

属性类型默认值说明
textstring''文本
keywordstring''高亮关键词
colorstring'#1a7eff'高亮颜色
boldbooleantrue高亮加粗

Slots ​

插槽说明
default默认内容
9:41

Released under the MIT License.