import { Dialog } from 'vant' import { defineComponent } from 'vue' import styles from './index.module.less' export default defineComponent({ name: 'o-dialog', props: { show: { type: Boolean, default: false }, message: { type: String, default: '' }, title: { type: String, default: '提示' }, confirmButtonText: { type: String, default: '确认' }, cancelButtonText: { type: String, default: '取消' }, showConfirmButton: { type: Boolean, default: true }, showCancelButton: { type: Boolean, default: false } }, emits: ['cancel', 'confirm'], setup(props, { slots, attrs, emit }) { return () => ( emit('confirm')} onCancel={() => emit('cancel')} > {{ title: () => (
{props.title}
) }}
) } })