Skip to content

Commit f37f304

Browse files
committed
chore: update docs
1 parent 19e08b9 commit f37f304

5 files changed

Lines changed: 11 additions & 11 deletions

File tree

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import React from 'react';
2-
import { PopConfirm, Message } from '@tiny-design/react';
2+
import { PopConfirm, Message, Button } from '@tiny-design/react';
33

44
export default function BasicDemo() {
55
return (
66
<PopConfirm
77
title="Are you sure to delete this?"
88
onConfirm={() => Message.info('You clicked Yes')}
99
>
10-
<a href="#" style={{ color: '#6E41BF' }}>
10+
<Button btnType="link">
1111
Delete
12-
</a>
12+
</Button>
1313
</PopConfirm>
1414
);
1515
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import { PopConfirm, Message } from '@tiny-design/react';
2+
import { PopConfirm, Message, Button } from '@tiny-design/react';
33
import { IconQuestionFill } from '@tiny-design/icons';
44

55
export default function IconDemo() {
@@ -9,9 +9,9 @@ export default function IconDemo() {
99
icon={<IconQuestionFill color="#f00" />}
1010
onConfirm={() => Message.info('You clicked Yes')}
1111
>
12-
<a href="#" style={{ color: '#6E41BF' }}>
12+
<Button btnType="link">
1313
Delete
14-
</a>
14+
</Button>
1515
</PopConfirm>
1616
);
1717
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import { PopConfirm, Message } from '@tiny-design/react';
2+
import { PopConfirm, Message, Button } from '@tiny-design/react';
33

44
export default function LocaleDemo() {
55
return (
@@ -9,9 +9,9 @@ export default function LocaleDemo() {
99
cancelText="Cancel"
1010
onConfirm={() => Message.info('You clicked Yes')}
1111
>
12-
<a href="#" style={{ color: '#6E41BF' }}>
12+
<Button btnType="link">
1313
Delete
14-
</a>
14+
</Button>
1515
</PopConfirm>
1616
);
1717
}

packages/react/src/pop-confirm/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Set `icon` props to customize the icon.
7070

7171
## Props
7272

73-
Inherits all [Popover](#/components/popover) props, plus:
73+
Inherits all [Popover](../components/popover) props, plus:
7474

7575
| Property | Description | Type | Default |
7676
| ----------- | ---------------------------- | ------------------------ | --------- |

packages/react/src/pop-confirm/index.zh_CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ import { PopConfirm } from 'tiny-design';
7070

7171
## Props
7272

73-
继承所有 [Popover](#/components/popover) 属性,以及:
73+
继承所有 [Popover](../components/popover) 属性,以及:
7474

7575
| 属性 | 说明 | 类型 | 默认值 |
7676
| ----------- | ------------------------ | ------------------------ | --------- |

0 commit comments

Comments
 (0)