popconfirm.stories.tsx 734 B

1234567891011121314151617181920
  1. import React, { useState } from 'react';
  2. import { storiesOf } from '@storybook/react';
  3. import Popconfirm from '../index';
  4. import Button from '../../button';
  5. const stories = storiesOf('popconfirm', module);
  6. stories.add('simple', () => (
  7. <div>
  8. <div >
  9. <Popconfirm
  10. title="确定是否要保存此修改?确定是否要保存此修改?确定是否要保存此修改?确定是否要保存此修改?确定是否要保存此修改?确定是否要保存此修改?确定是否要保存此修改?确定是否要保存此修改?"
  11. content="此修改将不可逆"
  12. >
  13. <Button>Delete</Button>
  14. </Popconfirm>
  15. </div>
  16. </div>
  17. ));