Skip to content

Commit 357a478

Browse files
committed
fix: import type { FormInstance ...} from 'element-plus'
1 parent fbbf413 commit 357a478

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

src/types/auto-imports.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ declare global {
6262
const useRouter: typeof import('vue-router')['useRouter']
6363
const useSlots: typeof import('vue')['useSlots']
6464
const useTable: typeof import('@/hooks/web/useTable')['useTable']
65+
const useVxeCrudSchemas: typeof import('@/hooks/web/useVxeCrudSchemas')['useVxeCrudSchemas']
66+
const useXTable: typeof import('@/hooks/web/useXTable')['useXTable']
6567
const watch: typeof import('vue')['watch']
6668
const watchEffect: typeof import('vue')['watchEffect']
6769
const watchPostEffect: typeof import('vue')['watchPostEffect']

src/views/mp/autoReply/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ import * as MpAutoReplyApi from '@/api/mp/autoReply'
188188
import { DICT_TYPE, getDictOptions } from '@/utils/dict'
189189
import { dateFormatter } from '@/utils/formatTime'
190190
import { ContentWrap } from '@/components/ContentWrap'
191-
import { TabPaneName } from 'element-plus'
191+
import type { TabPaneName } from 'element-plus'
192192
193193
const message = useMessage()
194194

src/views/mp/draft/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ import WxMpSelect from '@/views/mp/components/WxMpSelect.vue'
249249
import { getAccessToken } from '@/utils/auth'
250250
import * as MpDraftApi from '@/api/mp/draft'
251251
import * as MpFreePublishApi from '@/api/mp/freePublish'
252-
import { UploadFiles, UploadProps, UploadRawFile } from 'element-plus'
252+
import type { UploadFiles, UploadProps, UploadRawFile } from 'element-plus'
253253
// 可以用改本地数据模拟,避免API调用超限
254254
// import drafts from './mock'
255255

src/views/mp/tag/TagForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
</template>
2020
<script setup lang="ts">
2121
import * as MpTagApi from '@/api/mp/tag'
22-
import { FormInstance, FormRules } from 'element-plus'
22+
import type { FormInstance, FormRules } from 'element-plus'
2323
2424
const { t } = useI18n() // 国际化
2525
const message = useMessage() // 消息弹窗

src/views/mp/user/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ import { dateFormatter } from '@/utils/formatTime'
9898
import * as MpUserApi from '@/api/mp/user'
9999
import * as MpTagApi from '@/api/mp/tag'
100100
import WxMpSelect from '@/views/mp/components/WxMpSelect.vue'
101-
import { FormInstance } from 'element-plus'
101+
import type { FormInstance } from 'element-plus'
102102
import UserForm from './UserForm.vue'
103103
104104
const message = useMessage() // 消息

0 commit comments

Comments
 (0)