refactor: 统一 setup 格式

This commit is contained in:
shizhong 2023-09-22 14:25:05 +08:00
parent 7e5ad60d1d
commit 5cfe65b87a
148 changed files with 149 additions and 149 deletions

View File

@ -1,4 +1,4 @@
<script setup lang="ts">
<script lang="ts" setup>
const { label } = defineProps({
label: {
type: String,

View File

@ -5,7 +5,7 @@
</template>
</el-alert>
</template>
<script setup lang="tsx">
<script lang="tsx" setup>
import { propTypes } from '@/utils/propTypes'
defineOptions({ name: 'DocAlert' })

View File

@ -19,7 +19,7 @@
</ElDialog>
</template>
<script setup lang="ts">
<script lang="ts" setup>
const router = useRouter() //
const showSearch = ref(false) //
const value: Ref = ref('') //

View File

@ -32,7 +32,7 @@
</el-upload>
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { PropType } from 'vue'
import { propTypes } from '@/utils/propTypes'

View File

@ -50,7 +50,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import type { UploadProps } from 'element-plus'
import { generateUUID } from '@/utils'

View File

@ -57,7 +57,7 @@
</div>
</div>
</template>
<script setup type="text/babel">
<script type="text/babel" setup>
/**
* VerifyPoints
* @description 点选

View File

@ -71,7 +71,7 @@
</div>
</div>
</template>
<script setup type="text/babel">
<script type="text/babel" setup>
/**
* VerifySlide
* @description 滑块

View File

@ -1,4 +1,4 @@
<script setup lang="ts">
<script lang="ts" setup>
import { propTypes } from '@/utils/propTypes'
defineOptions({ name: 'XModal' })

View File

@ -5,7 +5,7 @@
</template>
</VxeGrid>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { PropType } from 'vue'
import { SizeType, VxeGridInstance } from 'vxe-table'
import { useAppStore } from '@/store/modules/app'

View File

@ -203,7 +203,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
// import 'bpmn-js/dist/assets/diagram-js.css' //
// import 'bpmn-js/dist/assets/bpmn-font/css/bpmn.css'
// import 'bpmn-js/dist/assets/bpmn-font/css/bpmn-codes.css'

View File

@ -6,7 +6,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import BpmnViewer from 'bpmn-js/lib/Viewer'
import DefaultEmptyXML from './plugins/defaultEmpty'
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'

View File

@ -5,7 +5,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { assign } from 'min-dash'
defineOptions({ name: 'MyProcessPalette' })

View File

@ -62,7 +62,7 @@
</el-collapse>
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import ElementBaseInfo from './base/ElementBaseInfo.vue'
import ElementOtherConfig from './other/ElementOtherConfig.vue'
import ElementTask from './task/ElementTask.vue'

View File

@ -38,7 +38,7 @@
</el-form>
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
defineOptions({ name: 'ElementBaseInfo' })
const props = defineProps({

View File

@ -62,7 +62,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
defineOptions({ name: 'FlowCondition' })
const props = defineProps({

View File

@ -222,7 +222,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
defineOptions({ name: 'ElementForm' })
const props = defineProps({

View File

@ -241,7 +241,7 @@
</el-dialog>
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { ElMessageBox } from 'element-plus'
import { createListenerObject, updateElementExtensions } from '../../utils'
import { initListenerType, initListenerForm, listenerType, fieldType } from './utilSelf'

View File

@ -287,7 +287,7 @@
</el-dialog>
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { ElMessageBox } from 'element-plus'
import { createListenerObject, updateElementExtensions } from '../../utils'
import { initListenerForm, initListenerType, eventType, listenerType, fieldType } from './utilSelf'

View File

@ -66,7 +66,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
defineOptions({ name: 'ElementMultiInstance' })
const props = defineProps({

View File

@ -16,7 +16,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
defineOptions({ name: 'ElementOtherConfig' })
const props = defineProps({

View File

@ -53,7 +53,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { ElMessageBox } from 'element-plus'
defineOptions({ name: 'ElementProperties' })

View File

@ -45,7 +45,7 @@
</el-dialog>
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
defineOptions({ name: 'SignalAndMassage' })
const message = useMessage()

View File

@ -20,7 +20,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import UserTask from './task-components/UserTask.vue'
import ScriptTask from './task-components/ScriptTask.vue'
import ReceiveTask from './task-components/ReceiveTask.vue'

View File

@ -48,7 +48,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
defineOptions({ name: 'ReceiveTask' })
const props = defineProps({

View File

@ -44,7 +44,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
defineOptions({ name: 'ScriptTask' })
const props = defineProps({

View File

@ -37,7 +37,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
defineOptions({ name: 'UserTask' })
const props = defineProps({

View File

@ -160,7 +160,7 @@
</el-col>
</el-row>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { set } from 'lodash-es'
import { EChartsOption } from 'echarts'
import { formatTime } from '@/utils'

View File

@ -30,7 +30,7 @@
</el-card>
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { BasicInfo, ProfileUser, ResetPwd, UserSocial } from './components/'
defineOptions({ name: 'Profile' })

View File

@ -1,7 +1,7 @@
<template>
<div></div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
defineOptions({ name: 'Redirect' })
const { currentRoute, replace } = useRouter()

View File

@ -59,7 +59,7 @@
</XModal>
</ContentWrap>
</template>
<script setup lang="ts">
<script lang="ts" setup>
// import
import * as DefinitionApi from '@/api/bpm/definition'
// import * as ModelApi from '@/api/bpm/model'

View File

@ -52,7 +52,7 @@
</XModal>
</ContentWrap>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { FormInstance } from 'element-plus'
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
import { CommonStatusEnum } from '@/utils/constants'

View File

@ -43,7 +43,7 @@
</ContentWrap>
</template>
<script setup lang="ts">
<script lang="ts" setup>
// import
import * as FormApi from '@/api/bpm/form'
import { allSchemas } from './form.data'

View File

@ -85,7 +85,7 @@
</XModal>
</template>
<script setup lang="ts">
<script lang="ts" setup>
// import
import * as UserGroupApi from '@/api/bpm/userGroup'
import { getListSimpleUsersApi, UserVO } from '@/api/system/user'

View File

@ -316,7 +316,7 @@
</ContentWrap>
</template>
<script setup lang="ts">
<script lang="ts" setup>
// import
import { DICT_TYPE, getDictOptions } from '@/utils/dict'
import { MyProcessViewer } from '@/components/bpmnProcessDesigner/package'

View File

@ -26,7 +26,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { MyProcessDesigner, MyProcessPenal } from '@/components/bpmnProcessDesigner/package'
// import { translations } from '@/components/bpmnProcessDesigner/src/translations'
//

View File

@ -11,7 +11,7 @@
/>
</ContentWrap>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { FormExpose } from '@/components/Form'
// import XEUtils from 'xe-utils'

View File

@ -6,7 +6,7 @@
</ContentWrap>
</template>
<script setup lang="ts">
<script lang="ts" setup>
// import
import * as LeaveApi from '@/api/bpm/leave'
import { allSchemas } from '@/views/bpm/oa/leave/leave.data'

View File

@ -23,7 +23,7 @@
</ContentWrap>
</template>
<script setup lang="ts">
<script lang="ts" setup>
// import
import { ElMessageBox } from 'element-plus'
// import

View File

@ -53,7 +53,7 @@
</div>
</ContentWrap>
</template>
<script setup lang="ts">
<script lang="ts" setup>
// import
import { allSchemas } from './process.create'
import * as DefinitionApi from '@/api/bpm/definition'

View File

@ -191,7 +191,7 @@
</XModal>
</ContentWrap>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import dayjs from 'dayjs'
import * as UserApi from '@/api/system/user'
import * as ProcessInstanceApi from '@/api/bpm/processInstance'

View File

@ -41,7 +41,7 @@
</XTable>
</ContentWrap>
</template>
<script setup lang="ts">
<script lang="ts" setup>
// import
import { ElMessageBox } from 'element-plus'
import { DICT_TYPE } from '@/utils/dict'

View File

@ -12,7 +12,7 @@
</XTable>
</ContentWrap>
</template>
<script setup lang="ts">
<script lang="ts" setup>
// import
import { allSchemas } from './done.data'
import * as TaskApi from '@/api/bpm/task'

View File

@ -13,7 +13,7 @@
</ContentWrap>
</template>
<script setup lang="ts">
<script lang="ts" setup>
// import
import { allSchemas } from './todo.data'
import * as TaskApi from '@/api/bpm/task'

View File

@ -133,7 +133,7 @@
</XModal>
</ContentWrap>
</template>
<script setup lang="ts">
<script lang="ts" setup>
// import
import { FormInstance } from 'element-plus'
// import

View File

@ -35,7 +35,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { allSchemas } from './apiAccessLog.data'
import * as ApiAccessLogApi from '@/api/infra/apiAccessLog'

View File

@ -51,7 +51,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { allSchemas } from './apiErrorLog.data'
import * as ApiErrorLogApi from '@/api/infra/apiErrorLog'
import { InfraApiErrorLogProcessStatusEnum } from '@/utils/constants'

View File

@ -87,7 +87,7 @@ const makeTemplate = () => {
@submit="onSubmit"
></form-create>
</template>
<script setup lang=ts>
<script lang="ts" setup>
import formCreate from "@form-create/element-ui";
const faps = ref(null)
const rule = ref('')

View File

@ -48,7 +48,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { VxeTableInstance } from 'vxe-table'
import type { DatabaseTableVO } from '@/api/infra/codegen/types'
import { getSchemaTableListApi, createCodegenListApi } from '@/api/infra/codegen'

View File

@ -31,7 +31,7 @@
</div>
</XModal>
</template>
<script setup lang="ts">
<script lang="ts" setup>
// import { useClipboard } from '@vueuse/core'
import { handleTree2 } from '@/utils/tree'
import { previewCodegenApi } from '@/api/infra/codegen'

View File

@ -56,7 +56,7 @@
<!-- 弹窗预览代码 -->
<Preview ref="previewRef" />
</template>
<script setup lang="ts">
<script lang="ts" setup>
import download from '@/utils/download'
import * as CodegenApi from '@/api/infra/codegen'
import { CodegenTableVO } from '@/api/infra/codegen/types'

View File

@ -82,7 +82,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import type { FormExpose } from '@/components/Form'
// import
import * as ConfigApi from '@/api/infra/config'

View File

@ -65,7 +65,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import type { FormExpose } from '@/components/Form'
// import
import * as DataSourceConfiggApi from '@/api/infra/dataSourceConfig'

View File

@ -14,7 +14,7 @@
<IFrame v-if="!loading" v-loading="loading" :src="src" />
</ContentWrap>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import download from '@/utils/download'
import * as DbDocApi from '@/api/infra/dbDoc'

View File

@ -3,7 +3,7 @@
<IFrame v-if="!loading" :src="url" />
</ContentWrap>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import * as ConfigApi from '@/api/infra/config'
defineOptions({ name: 'InfraDruid' })

View File

@ -78,7 +78,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import type { UploadInstance, UploadRawFile, UploadProps, UploadFile } from 'element-plus'
// import
import { allSchemas } from './fileList.data'

View File

@ -157,7 +157,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import type { FormInstance } from 'element-plus'
// import
import * as FileConfigApi from '@/api/infra/fileConfig'

View File

@ -47,7 +47,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import dayjs from 'dayjs'
import * as JobLogApi from '@/api/infra/jobLog'

View File

@ -128,7 +128,7 @@
</template>
</XModal>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import type { FormExpose } from '@/components/Form'
import * as JobApi from '@/api/infra/job'
import { rules, allSchemas } from './job.data'

View File

@ -104,7 +104,7 @@
</el-row>
</XModal>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import * as RedisApi from '@/api/infra/redis'
import { RedisKeyInfo, RedisMonitorInfoVO } from '@/api/infra/redis/types'
import { DICT_TYPE } from '@/utils/dict'

View File

@ -3,7 +3,7 @@
<IFrame v-if="!loading" v-loading="loading" :src="src" />
</ContentWrap>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import * as ConfigApi from '@/api/infra/config'
defineOptions({ name: 'InfraAdminServer' })

View File

@ -3,7 +3,7 @@
<IFrame v-if="!loading" v-loading="loading" :src="src" />
</ContentWrap>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import * as ConfigApi from '@/api/infra/config'
defineOptions({ name: 'InfraSkyWalking' })

View File

@ -3,7 +3,7 @@
<IFrame :src="src" />
</ContentWrap>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import * as ConfigApi from '@/api/infra/config'
defineOptions({ name: 'InfraSwagger' })

View File

@ -1,6 +1,6 @@
<template>
<div>index</div>
</template>
<script setup lang="ts">
defineOptions({ name: 'TestDome' })
<script lang="ts" setup>
defineOptions({ name: 'TestDome' })
</script>

View File

@ -37,7 +37,7 @@
</template>
</Dialog>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
import { CommonStatusEnum } from '@/utils/constants'
import * as ProductBrandApi from '@/api/mall/product/brand'

View File

@ -108,7 +108,7 @@
<!-- 表单弹窗添加/修改 -->
<BrandForm ref="formRef" @success="getList" />
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
import { dateFormatter } from '@/utils/formatTime'
import * as ProductBrandApi from '@/api/mall/product/brand'

View File

@ -50,7 +50,7 @@
</template>
</Dialog>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
import { CommonStatusEnum } from '@/utils/constants'
import * as ProductCategoryApi from '@/api/mall/product/category'

View File

@ -80,7 +80,7 @@
<!-- 表单弹窗添加/修改 -->
<CategoryForm ref="formRef" @success="getList" />
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { DICT_TYPE } from '@/utils/dict'
import { handleTree } from '@/utils/tree'
import { dateFormatter } from '@/utils/formatTime'

View File

@ -54,7 +54,7 @@
<SpuTableSelect ref="spuTableSelectRef" @change="handleSpuChange" />
<SkuTableSelect ref="skuTableSelectRef" @change="handleSkuChange" :spu-id="spuData.id" />
</template>
<script setup lang="ts">
<script lang="ts" setup>
import * as CommentApi from '@/api/mall/product/comment'
import SpuTableSelect from '@/views/mall/product/spu/components/SpuTableSelect.vue'
import * as ProductSpuApi from '@/api/mall/product/spu'

View File

@ -18,7 +18,7 @@
</Dialog>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import * as CommentApi from '@/api/mall/product/comment'
import { ElInput } from 'element-plus'

View File

@ -154,7 +154,7 @@
<ReplyForm ref="replyFormRef" @success="getList" />
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { dateFormatter } from '@/utils/formatTime'
import * as CommentApi from '@/api/mall/product/comment'
import CommentForm from './CommentForm.vue'

View File

@ -88,7 +88,7 @@
<!-- 表单弹窗添加/修改 -->
<ValueForm ref="formRef" @success="getList" />
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { dateFormatter } from '@/utils/formatTime'
import * as PropertyApi from '@/api/mall/product/property'
import ValueForm from './ValueForm.vue'

View File

@ -105,7 +105,7 @@
</ContentWrap>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { deleteCoupon, getCouponPage } from '@/api/mall/promotion/coupon/coupon'
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
import { dateFormatter } from '@/utils/formatTime'

View File

@ -38,7 +38,7 @@
</template>
</Dialog>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
import { CommonStatusEnum } from '@/utils/constants'
import * as DeliveryExpressApi from '@/api/mall/trade/delivery/express'

View File

@ -99,7 +99,7 @@
<!-- 表单弹窗添加/修改 -->
<ExpressForm ref="formRef" @success="getList" />
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { DICT_TYPE } from '@/utils/dict'
import { dateFormatter } from '@/utils/formatTime'
import download from '@/utils/download'

View File

@ -92,7 +92,7 @@
<!-- 表单弹窗添加/修改 -->
<ExpressTemplateForm ref="formRef" @success="getList" />
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
import { dateFormatter } from '@/utils/formatTime'
import * as DeliveryExpressTemplateApi from '@/api/mall/trade/delivery/expressTemplate'

View File

@ -117,7 +117,7 @@
</el-dialog>
</Dialog>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import * as DeliveryPickUpStoreApi from '@/api/mall/trade/delivery/pickUpStore'
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
import { CommonStatusEnum } from '@/utils/constants'

View File

@ -31,7 +31,7 @@
</template>
</Dialog>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
import * as GroupApi from '@/api/member/group'
import { CommonStatusEnum } from '@/utils/constants'

View File

@ -100,7 +100,7 @@
<GroupForm ref="formRef" @success="getList" />
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
import { dateFormatter } from '@/utils/formatTime'
import * as GroupApi from '@/api/member/group'

View File

@ -80,7 +80,7 @@
</template>
</Dialog>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
import * as LevelApi from '@/api/member/level'
import { CommonStatusEnum } from '@/utils/constants'

View File

@ -102,7 +102,7 @@
<LevelForm ref="formRef" @success="getList" />
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
import { dateFormatter } from '@/utils/formatTime'
import * as LevelApi from '@/api/member/level'

View File

@ -17,7 +17,7 @@
</template>
</Dialog>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import * as TagApi from '@/api/member/tag'
const { t } = useI18n() //

View File

@ -84,7 +84,7 @@
<TagForm ref="formRef" @success="getList" />
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { dateFormatter } from '@/utils/formatTime'
import download from '@/utils/download'
import * as TagApi from '@/api/member/tag'

View File

@ -31,7 +31,7 @@
</template>
</Dialog>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import * as UserApi from '@/api/member/user'
import MemberLevelSelect from '@/views/member/level/components/MemberLevelSelect.vue'

View File

@ -89,7 +89,7 @@
</template>
</Dialog>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
import * as UserApi from '@/api/member/user'
import * as AreaApi from '@/api/system/area'

View File

@ -45,7 +45,7 @@
</el-descriptions-item>
</el-descriptions>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { DescriptionsItemLabel } from '@/components/Descriptions'
import * as UserApi from '@/api/member/user'
const { user } = defineProps<{ user: UserApi.UserVO }>()

View File

@ -68,7 +68,7 @@
</el-row>
</el-card>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { DICT_TYPE } from '@/utils/dict'
import { formatDate } from '@/utils/formatTime'
import * as UserApi from '@/api/member/user'

View File

@ -53,7 +53,7 @@
<!-- 表单弹窗添加/修改 -->
<UserForm ref="formRef" @success="getUserData(id)" />
</template>
<script setup lang="ts">
<script lang="ts" setup>
import * as UserApi from '@/api/member/user'
import { useTagsViewStore } from '@/store/modules/tagsView'
import UserBasicInfo from './UserBasicInfo.vue'

View File

@ -156,7 +156,7 @@
<!-- 发送优惠券弹窗 -->
<CouponSendForm ref="couponSendFormRef" />
</template>
<script setup lang="ts">
<script lang="ts" setup>
import { dateFormatter } from '@/utils/formatTime'
import * as UserApi from '@/api/member/user'
import { DICT_TYPE } from '@/utils/dict'

View File

@ -98,7 +98,7 @@
<!-- 对话框(添加 / 修改) -->
<AccountForm ref="formRef" @success="getList" />
</template>
<script setup lang="ts">
<script lang="ts" setup>
import * as AccountApi from '@/api/mp/account'
import AccountForm from './AccountForm.vue'

View File

@ -32,7 +32,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import WxReplySelect, { type Reply } from '@/views/mp/components/wx-reply'
import type { FormInstance } from 'element-plus'
import { MsgType } from './types'

View File

@ -93,7 +93,7 @@
</el-table-column>
</el-table>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import WxVideoPlayer from '@/views/mp/components/wx-video-play'
import WxVoicePlayer from '@/views/mp/components/wx-voice-play'
import WxMusic from '@/views/mp/components/wx-music'

View File

@ -65,7 +65,7 @@
</el-dialog>
</ContentWrap>
</template>
<script setup lang="ts">
<script lang="ts" setup>
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'

View File

@ -39,7 +39,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
defineOptions({ name: 'WxLocation' })
const props = defineProps({

View File

@ -48,7 +48,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import WxVideoPlayer from '@/views/mp/components/wx-video-play'
import WxVoicePlayer from '@/views/mp/components/wx-voice-play'
import WxNews from '@/views/mp/components/wx-news'

View File

@ -40,7 +40,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
const props = defineProps<{
item: any
}>()

View File

@ -24,7 +24,7 @@
</div>
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import Msg from './Msg.vue'
import { formatDate } from '@/utils/formatTime'
import { User } from '../types'

View File

@ -30,7 +30,7 @@
</ContentWrap>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import WxReplySelect, { Reply, ReplyType } from '@/views/mp/components/wx-reply'
import MsgList from './components/MsgList.vue'
import { getMessagePage, sendMessage } from '@/api/mp/message'

View File

@ -25,7 +25,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
defineOptions({ name: 'WxMusic' })
const props = defineProps({

View File

@ -55,7 +55,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import WxMaterialSelect from '@/views/mp/components/wx-material-select'
import { UploadType, useBeforeUpload } from '@/views/mp/hooks/useUpload'
import type { UploadRawFile } from 'element-plus'

View File

@ -58,7 +58,7 @@
</div>
</template>
<script setup lang="ts">
<script lang="ts" setup>
import WxMaterialSelect from '@/views/mp/components/wx-material-select'
import type { UploadRawFile } from 'element-plus'
import { UploadType, useBeforeUpload } from '@/views/mp/hooks/useUpload'

Some files were not shown because too many files have changed in this diff Show More