Skip to content

Commit 22b21cd

Browse files
authored
docs: use a-space replace br in demo (#6861)
1 parent 80a5b53 commit 22b21cd

File tree

7 files changed

+230
-269
lines changed

7 files changed

+230
-269
lines changed

components/badge/demo/ribbon.vue

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -16,28 +16,30 @@ Use ribbon badge.
1616
</docs>
1717

1818
<template>
19-
<a-badge-ribbon text="Hippies">
20-
<a-card title="Pushes open the window" size="small">and raises the spyglass.</a-card>
21-
</a-badge-ribbon>
22-
<a-badge-ribbon text="Hippies" color="pink">
23-
<a-card title="Pushes open the window" size="small">and raises the spyglass.</a-card>
24-
</a-badge-ribbon>
25-
<a-badge-ribbon text="Hippies" color="red">
26-
<a-card title="Pushes open the window" size="small">and raises the spyglass.</a-card>
27-
</a-badge-ribbon>
28-
<a-badge-ribbon text="Hippies" color="cyan">
29-
<a-card title="Pushes open the window" size="small">and raises the spyglass.</a-card>
30-
</a-badge-ribbon>
31-
<a-badge-ribbon text="Hippies" color="green">
32-
<a-card title="Pushes open the window" size="small">and raises the spyglass.</a-card>
33-
</a-badge-ribbon>
34-
<a-badge-ribbon text="Hippies" color="purple">
35-
<a-card title="Pushes open the window" size="small">and raises the spyglass.</a-card>
36-
</a-badge-ribbon>
37-
<a-badge-ribbon text="Hippies" color="volcano">
38-
<a-card title="Pushes open the window" size="small">and raises the spyglass.</a-card>
39-
</a-badge-ribbon>
40-
<a-badge-ribbon text="Hippies" color="magenta">
41-
<a-card title="Pushes open the window" size="small">and raises the spyglass.</a-card>
42-
</a-badge-ribbon>
19+
<a-space direction="vertical" style="width: 100%">
20+
<a-badge-ribbon text="Hippies">
21+
<a-card title="Pushes open the window" size="small">and raises the spyglass.</a-card>
22+
</a-badge-ribbon>
23+
<a-badge-ribbon text="Hippies" color="pink">
24+
<a-card title="Pushes open the window" size="small">and raises the spyglass.</a-card>
25+
</a-badge-ribbon>
26+
<a-badge-ribbon text="Hippies" color="red">
27+
<a-card title="Pushes open the window" size="small">and raises the spyglass.</a-card>
28+
</a-badge-ribbon>
29+
<a-badge-ribbon text="Hippies" color="cyan">
30+
<a-card title="Pushes open the window" size="small">and raises the spyglass.</a-card>
31+
</a-badge-ribbon>
32+
<a-badge-ribbon text="Hippies" color="green">
33+
<a-card title="Pushes open the window" size="small">and raises the spyglass.</a-card>
34+
</a-badge-ribbon>
35+
<a-badge-ribbon text="Hippies" color="purple">
36+
<a-card title="Pushes open the window" size="small">and raises the spyglass.</a-card>
37+
</a-badge-ribbon>
38+
<a-badge-ribbon text="Hippies" color="volcano">
39+
<a-card title="Pushes open the window" size="small">and raises the spyglass.</a-card>
40+
</a-badge-ribbon>
41+
<a-badge-ribbon text="Hippies" color="magenta">
42+
<a-card title="Pushes open the window" size="small">and raises the spyglass.</a-card>
43+
</a-badge-ribbon>
44+
</a-space>
4345
</template>

components/badge/demo/status.vue

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<docs>
22
---
33
order: 4
4-
title:
4+
title:
55
zh-CN: 状态点
66
en-US: Status
77
---
@@ -22,13 +22,12 @@ Standalone badge with status.
2222
<a-badge status="processing" />
2323
<a-badge status="warning" />
2424
<br />
25-
<a-badge status="success" text="Success" />
26-
<br />
27-
<a-badge status="error" text="Error" />
28-
<br />
29-
<a-badge status="default" text="Default" />
30-
<br />
31-
<a-badge status="processing" text="Processing" />
32-
<br />
33-
<a-badge status="warning" text="warning" />
25+
26+
<a-space direction="vertical">
27+
<a-badge status="success" text="Success" />
28+
<a-badge status="error" text="Error" />
29+
<a-badge status="default" text="Default" />
30+
<a-badge status="processing" text="Processing" />
31+
<a-badge status="warning" text="warning" />
32+
</a-space>
3433
</template>

0 commit comments

Comments
 (0)