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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
|
|
<script lang="ts" setup>
|
|
|
|
import { ref } from 'vue'
|
|
|
|
import type { MessageInfo } from './message.data'
|
|
|
|
import { infoSchema } from './message.data'
|
|
|
|
import { BasicModal, useModalInner } from '@/components/Modal'
|
|
|
|
import { Description, useDescription } from '@/components/Description/index'
|
|
|
|
|
|
|
|
defineOptions({ name: 'MessageInfoModal' })
|
|
|
|
|
|
|
|
const data = ref<MessageInfo>()
|
|
|
|
|
|
|
|
const [innerRegister] = useModalInner((value: MessageInfo) => {
|
|
|
|
data.value = value
|
|
|
|
})
|
|
|
|
|
|
|
|
const [descriptionRegister] = useDescription({
|
|
|
|
column: 1,
|
|
|
|
schema: infoSchema,
|
|
|
|
data,
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<BasicModal title="站内信详情" @register="innerRegister">
|
|
|
|
<Description @register="descriptionRegister" />
|
|
|
|
</BasicModal>
|
|
|
|
</template>
|