You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
601 B
32 lines
601 B
<cn>
|
|
#### 自定义标题
|
|
设置鼠标放在状态点上时显示的文字
|
|
</cn>
|
|
|
|
<us>
|
|
#### Title
|
|
The badge will display `title` when hovered over, instead of `count`.
|
|
</us>
|
|
|
|
```html
|
|
<template>
|
|
<div id="components-badge-demo-title">
|
|
<a-badge :count="5" title="Custom hover text">
|
|
<a href="#" class="head-example" />
|
|
</a-badge>
|
|
</div>
|
|
</template>
|
|
<style scoped>
|
|
#components-badge-demo-title .ant-badge:not(.ant-badge-status) {
|
|
margin-right: 20px;
|
|
}
|
|
.head-example {
|
|
width: 42px;
|
|
height: 42px;
|
|
border-radius: 4px;
|
|
background: #eee;
|
|
display: inline-block;
|
|
}
|
|
</style>
|
|
```
|