mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-16 01:29:11 +08:00
451d2f6ee2
* feat(popconfirm): make title bold and add description prop * feat(popconfirm): make title bold and add description prop(update demos) * feat(popconfirm): make title bold and add description prop(the update of demos translation) * feat(popconfirm): make title bold and add description prop(the update of snapshot) * feat(popconfirm): make title bold and add description prop(the update of popconfirm md) * feat(popconfirm): make title bold and add description prop(the update of popconfirm md)2 * feat(popconfirm): make title bold and add description prop(run all test.ts.snaps and update popconfirm)
23 lines
506 B
TypeScript
23 lines
506 B
TypeScript
import React from 'react';
|
|
import { Button, Popconfirm } from 'antd';
|
|
|
|
const App: React.FC = () => {
|
|
const confirm = () =>
|
|
new Promise((resolve) => {
|
|
setTimeout(() => resolve(null), 3000);
|
|
});
|
|
|
|
return (
|
|
<Popconfirm
|
|
title="Title"
|
|
description="Open Popconfirm with Promise"
|
|
onConfirm={confirm}
|
|
onOpenChange={() => console.log('open change')}
|
|
>
|
|
<Button type="primary">Open Popconfirm with Promise</Button>
|
|
</Popconfirm>
|
|
);
|
|
};
|
|
|
|
export default App;
|