-
Notifications
You must be signed in to change notification settings - Fork 536
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8448770
commit 73d2d84
Showing
5 changed files
with
52 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
```yaml | ||
title: | ||
zh-CN: 自定义标签 | ||
en-US: Custom Label | ||
``` | ||
## zh-CN | ||
可以通过 `label` 插槽自定义标签 | ||
|
||
--- | ||
|
||
## en-US | ||
|
||
You can customize labels through the 'label' slot | ||
|
||
--- | ||
|
||
```vue | ||
<template> | ||
<a-timeline> | ||
<a-timeline-item> | ||
Code Review | ||
<template #label> | ||
<a-tag> | ||
<template #icon> | ||
<icon-check-circle-fill /> | ||
</template> | ||
Passed | ||
</a-tag> | ||
</template> | ||
</a-timeline-item> | ||
</a-timeline> | ||
</template> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters