File tree Expand file tree Collapse file tree
packages/react/src/pop-confirm Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import React from 'react' ;
2- import { PopConfirm , Message } from '@tiny-design/react' ;
2+ import { PopConfirm , Message , Button } from '@tiny-design/react' ;
33
44export 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}
Original file line number Diff line number Diff line change 11import React from 'react' ;
2- import { PopConfirm , Message } from '@tiny-design/react' ;
2+ import { PopConfirm , Message , Button } from '@tiny-design/react' ;
33import { IconQuestionFill } from '@tiny-design/icons' ;
44
55export 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}
Original file line number Diff line number Diff line change 11import React from 'react' ;
2- import { PopConfirm , Message } from '@tiny-design/react' ;
2+ import { PopConfirm , Message , Button } from '@tiny-design/react' ;
33
44export 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}
Original file line number Diff line number Diff 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| ----------- | ---------------------------- | ------------------------ | --------- |
Original file line number Diff line number Diff 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| ----------- | ------------------------ | ------------------------ | --------- |
You can’t perform that action at this time.
0 commit comments