LockRecover.jsx 702 B

123456789101112131415161718192021222324252627282930313233
  1. import { ModalForm } from '@ant-design/pro-form'
  2. import React from 'react'
  3. import { Button } from 'antd'
  4. const LockRecover = props => {
  5. const { onConfirm } = props
  6. const layout = {
  7. layout: 'vertical'
  8. }
  9. return (
  10. <div>
  11. <ModalForm
  12. width={500}
  13. {...layout}
  14. title="确认收回"
  15. trigger={
  16. <Button type="primary" ghost size="small" className="zh-mg-right-3">
  17. 收回
  18. </Button>
  19. }
  20. onFinish={async values => {
  21. await onConfirm(values)
  22. return true
  23. }}>
  24. <div>
  25. 收回锁号<b>HNYH-0654</b>
  26. </div>
  27. </ModalForm>
  28. </div>
  29. )
  30. }
  31. export default LockRecover