表格优化

This commit is contained in:
仲么了
2023-12-27 10:39:40 +08:00
parent e1299a5520
commit d42936398e
6 changed files with 232 additions and 61 deletions

View File

@@ -0,0 +1,34 @@
<template>
<el-dialog
class='ba-operate-dialog'
v-model='dialogVisible'
:title='title'
>
<span>This is a message</span>
<template #footer>
<span class='dialog-footer'>
<el-button @click='dialogVisible = false'>取消</el-button>
<el-button type='primary' @click='submit'>
确认
</el-button>
</span>
</template>
</el-dialog>
</template>
<script lang='ts' setup>
import { ref } from 'vue'
const dialogVisible = ref(false)
const title = ref('新增菜单')
const open = (text: string, data?: anyObj) => {
title.value = text
dialogVisible.value = true
}
const submit = () => {
dialogVisible.value = false
}
defineExpose({ open })
</script>