You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
414 B

  1. import { Popconfirm as AntPopconfirm, PopconfirmProps } from 'antd'
  2. const Popconfirm = (props: PopconfirmProps) => {
  3. const disabled = props.disabled
  4. let attr = {}
  5. if (typeof disabled !== 'undefined') {
  6. attr = {
  7. disabled: disabled
  8. }
  9. }
  10. return (
  11. <AntPopconfirm {...props}>
  12. <a {...attr}>{props.children}</a>
  13. </AntPopconfirm>
  14. )
  15. }
  16. export default Popconfirm