index.js 180 B

123456789101112131415
  1. Component({
  2. props: {
  3. onClose: () => null
  4. },
  5. data: {},
  6. didMount() {},
  7. methods: {
  8. handleClose() {
  9. this.props.onClose && this.props.onClose();
  10. }
  11. }
  12. });