refactor dialog props

This commit is contained in:
Gauthier Roebroeck 2025-12-11 12:33:27 +08:00
parent 54a4fe47be
commit 6ee981c970
5 changed files with 4 additions and 8 deletions

View file

@ -86,7 +86,7 @@
<script setup lang="ts">
import { defineMessage } from 'vue-intl'
import type { DialogConfirmProps } from '@/types/DialogProps'
import type { DialogConfirmProps } from '@/types/dialog'
const showDialog = defineModel<boolean>('dialog', { required: false })
const emit = defineEmits<{

View file

@ -70,7 +70,7 @@
</template>
<script setup lang="ts">
import type { DialogConfirmEditProps } from '@/types/DialogProps'
import type { DialogConfirmEditProps } from '@/types/dialog'
const showDialog = defineModel<boolean>('dialog', { required: false })
const record = defineModel<unknown>('record', { required: true })

View file

@ -37,7 +37,7 @@
</template>
<script setup lang="ts">
import type { DialogSimpleProps } from '@/types/DialogProps'
import type { DialogSimpleProps } from '@/types/dialog'
const showDialog = defineModel<boolean>('dialog', { required: false, default: false })

View file

@ -1,10 +1,6 @@
// Utilities
import { defineStore } from 'pinia'
import type {
DialogConfirmEditProps,
DialogConfirmProps,
DialogSimpleProps,
} from '@/types/DialogProps'
import type { DialogConfirmEditProps, DialogConfirmProps, DialogSimpleProps } from '@/types/dialog'
/**
* Reusable dialogs.