You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
719 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<template>
<div>
首页面
<el-button type="primary" size="default" @click="onShow('测试')"></el-button>
</div>
<SysDialog
:title="dialog.title"
:visible="dialog.visible"
:width="dialog.width"
:height="dialog.height"
@onClose="onClose"
@onConfirm="onConfirm"
>
<!-- 使用弹框组件在插槽中传递值 -->
<template #content>
测试弹框组件
</template>
</SysDialog>
</template>
<script setup lang="ts">
import SysDialog from '@/components/SysDialog.vue';
// import { reactive } from 'vue';
import useDialog from '@/hooks/useDialog';
const { dialog,onClose,onConfirm,onShow } = useDialog()
</script>
<style scoped>
</style>