first commit
This commit is contained in:
18
src/views/test-page/TestDialog.vue
Normal file
18
src/views/test-page/TestDialog.vue
Normal file
@@ -0,0 +1,18 @@
|
||||
<script setup>
|
||||
import { NButton } from 'naive-ui'
|
||||
const handleDelete = function () {
|
||||
$dialog.confirm({
|
||||
content: '确认删除?',
|
||||
confirm() {
|
||||
$dialog.success('删除成功', { positiveText: '我知道了' })
|
||||
},
|
||||
cancel() {
|
||||
$dialog.warning('已取消', { closable: true })
|
||||
},
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<n-button @click="handleDelete">删除</n-button>
|
||||
</template>
|
||||
Reference in New Issue
Block a user