灵活的dialog组件，弹框类型包含(alert || confirm || dialog)