mirror of
https://github.com/zclzone/vue-naive-admin.git
synced 2025-12-29 04:20:22 +08:00
refactor: 规范文件夹结构
This commit is contained in:
19
src/views/test-page/dialog/index.vue
Normal file
19
src/views/test-page/dialog/index.vue
Normal file
@@ -0,0 +1,19 @@
|
||||
<template>
|
||||
<div p24>
|
||||
<n-button type="error" @click="handleDelete">删除</n-button>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup name="TestDialog">
|
||||
const handleDelete = function () {
|
||||
$dialog.confirm({
|
||||
content: '确认删除?',
|
||||
confirm() {
|
||||
$dialog.success('删除成功', { positiveText: '我知道了' })
|
||||
},
|
||||
cancel() {
|
||||
$dialog.warning('已取消', { closable: true })
|
||||
},
|
||||
})
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user