feat: 更新 utils4u 依赖至 2.18.1,并添加 PrimeVue 服务的全局类型声明
This commit is contained in:
@ -1,7 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { useDialogRef } from '@/plugins/primevue';
|
||||
|
||||
const dialogRef = useDialogRef();
|
||||
const dialogRef = usePrimevueDialogRef();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
@ -1,4 +1,3 @@
|
||||
import { ConfirmationService, DialogService, ToastService, useDialogRef } from '@/plugins/primevue';
|
||||
import dialogContent from './__dialog-content.vue';
|
||||
|
||||
const dynamicComponent = defineComponent({
|
||||
@ -9,7 +8,7 @@ const dynamicComponent = defineComponent({
|
||||
},
|
||||
},
|
||||
setup(props, ctx) {
|
||||
const dialogRef = useDialogRef();
|
||||
const dialogRef = usePrimevueDialogRef();
|
||||
return () => (
|
||||
<div>
|
||||
<button onClick={() => ctx.emit('close')}>emit('close')</button> <hr />
|
||||
|
Reference in New Issue
Block a user