# 遮罩关闭
你可以在使用 v-model 的时候让点击遮罩不关闭
```html
来
```
```js
export default {
data () {
return {
isActive: false,
}
},
methods: {
cancelCallback () {
this.$NMessage.success('算了')
this.isActive = false
},
submitCallback () {
this.$NMessage.success('确认')
this.isActive = false
}
}
}
```