refactor: vue3.3 defineOptions

This commit is contained in:
xingyu
2023-06-21 19:14:34 +08:00
parent a5c7c886ee
commit 922f83d99c
259 changed files with 955 additions and 381 deletions

View File

@ -32,12 +32,14 @@
</div>
</template>
<script setup lang="ts" name="ReplyForm">
<script setup lang="ts">
import WxReplySelect, { type Reply } from '@/views/mp/components/wx-reply'
import type { FormInstance } from 'element-plus'
import { MsgType } from './types'
import { DICT_TYPE, getDictOptions, getIntDictOptions } from '@/utils/dict'
defineOptions({ name: 'ReplyForm' })
const props = defineProps<{
modelValue: any
reply: Reply

View File

@ -67,7 +67,7 @@
</el-dialog>
</ContentWrap>
</template>
<script setup lang="ts" name="MpAutoReply">
<script setup lang="ts">
import ReplyForm from '@/views/mp/autoReply/components/ReplyForm.vue'
import { type Reply, ReplyType } from '@/views/mp/components/wx-reply'
import WxAccountSelect from '@/views/mp/components/wx-account-select'
@ -76,6 +76,9 @@ import { ContentWrap } from '@/components/ContentWrap'
import type { TabPaneName } from 'element-plus'
import ReplyTable from './components/ReplyTable.vue'
import { MsgType } from './components/types'
defineOptions({ name: 'MpAutoReply' })
const message = useMessage() // 消息
const accountId = ref(-1) // 公众号ID