phone-popup.js 358 B

1234567891011121314151617181920212223
  1. export default {
  2. props: {
  3. visible: {
  4. type: Boolean,
  5. default: false
  6. }
  7. },
  8. emits: ['update:visible', 'allow'],
  9. setup(props, { emit }) {
  10. const closePopup = () => {
  11. emit('update:visible', false);
  12. };
  13. const allowLogin = () => {
  14. emit('allow');
  15. };
  16. return {
  17. closePopup,
  18. allowLogin
  19. };
  20. }
  21. }