跳到正文

内置组件

@vuepress/theme-classic

Badge badge

type'tip' | 'warning' | 'danger' | 'important' | 'info' | 'note'
默认值'tip'

徽章类型。

textstring
默认值''

徽章文字。

vertical'top' | 'middle' | 'bottom'
默认值undefined

徽章的垂直对齐方式。

  • VuePress - v2
  • VuePress - v2
  • VuePress - v2
  • VuePress - v2
  • VuePress - v2
  • VuePress - v2
Demo
- VuePress - <Badge type="tip" text="v2" vertical="top" />
- VuePress - <Badge type="warning" text="v2" vertical="middle" />
- VuePress - <Badge type="danger" text="v2" vertical="bottom" />
- VuePress - <Badge type="important" text="v2" vertical="middle" />
- VuePress - <Badge type="info" text="v2" vertical="middle" />
- VuePress - <Badge type="note" text="v2" vertical="middle" />

MIT 协议