import { Button, Popup } from 'vant'; import { defineComponent, reactive } from 'vue'; import styles from './index.module.less'; export const tipState = reactive({ show: false, title: '温馨提示', content: '退出后将清空批注内容', cancelText: '取消', confirmText: '确认退出' }) export default defineComponent({ name: 'tips-popup', emits: ['confirm'], setup(props, { emit }) { return () => ( (tipState.show = false)}>
{tipState.title}
{tipState.content}
); } });