You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
383 B
JavaScript
18 lines
383 B
JavaScript
import { Button } from 'antd';
|
|
import { exportDoc } from './Index';
|
|
|
|
const ExportDocxBtn = ({ subject, title, sectionsData, ...props }) => {
|
|
return (
|
|
<>
|
|
<Button size='small'
|
|
onClick={() => {
|
|
exportDoc({title, subject, sectionsData});
|
|
}}
|
|
>
|
|
导出 .docx
|
|
</Button>
|
|
</>
|
|
);
|
|
};
|
|
export default ExportDocxBtn;
|