<dy-badge>

依赖锚点定位

Example

<dy-badge> API

DuoyunBadgeElement

Extends TapBadgeElement

TapBadgeElement

Shadow DOM; Extends GemElement

TapBadgeElement Instance Properties

Property(Attribute) Reactive Type Description
color(color) Yes StringList<'positive' | 'informative' | 'notice'>
count(count) Yes string Support number and string
dot(dot) Yes boolean
small(small) Yes boolean
max(max) Yes number
icon Yes string | Element | DocumentFragment

TapBadgeElement Other

Type Value
Slot unnamed
Part badge
CSS State inline