# 使用 Confirm 预设 `confirm` 预设的例子。 ```html 来吧 ``` ```js export default { data () { return { isActive: false, } }, methods: { cancelCallback () { this.$NMessage.success('算了') this.isActive = false }, submitCallback () { this.$NMessage.success('确认') this.isActive = false } } } ```