diff --git a/build/info.ts b/build/info.ts index 06006411d1..1019905e06 100644 --- a/build/info.ts +++ b/build/info.ts @@ -1,6 +1,6 @@ import type { Plugin } from "vite"; import picocolors from "picocolors"; -import dayjs, { Dayjs } from "dayjs"; +import dayjs, { type Dayjs } from "dayjs"; import { getPackageSize } from "./utils"; import duration from "dayjs/plugin/duration"; dayjs.extend(duration); diff --git a/src/components/ReAnimateSelector/src/index.vue b/src/components/ReAnimateSelector/src/index.vue index e2f44053b0..c8ec17f7da 100644 --- a/src/components/ReAnimateSelector/src/index.vue +++ b/src/components/ReAnimateSelector/src/index.vue @@ -81,8 +81,8 @@ function onMouseleave() { placeholder="请选择动画" clearable filterable - @clear="onClear" :filter-method="filterMethod" + @clear="onClear" > diff --git a/src/components/ReIcon/src/hooks.ts b/src/components/ReIcon/src/hooks.ts index 4f430a8949..675d303d12 100644 --- a/src/components/ReIcon/src/hooks.ts +++ b/src/components/ReIcon/src/hooks.ts @@ -1,5 +1,5 @@ -import { iconType } from "./types"; -import { h, defineComponent, Component } from "vue"; +import type { iconType } from "./types"; +import { h, defineComponent, type Component } from "vue"; import { IconifyIconOnline, IconifyIconOffline, FontIcon } from "../index"; /** diff --git a/src/components/ReQrcode/src/index.tsx b/src/components/ReQrcode/src/index.tsx index 737440288a..8d517547ed 100644 --- a/src/components/ReQrcode/src/index.tsx +++ b/src/components/ReQrcode/src/index.tsx @@ -4,13 +4,13 @@ import { watch, nextTick, computed, - PropType, + type PropType, defineComponent } from "vue"; import "./index.scss"; import propTypes from "@/utils/propTypes"; import { isString, cloneDeep } from "@pureadmin/utils"; -import QRCode, { QRCodeRenderersOptions } from "qrcode"; +import QRCode, { type QRCodeRenderersOptions } from "qrcode"; import RefreshRight from "@iconify-icons/ep/refresh-right"; interface QrcodeLogo { diff --git a/src/components/ReSeamlessScroll/src/index.vue b/src/components/ReSeamlessScroll/src/index.vue index 78ac77b5aa..e0f90d2b99 100644 --- a/src/components/ReSeamlessScroll/src/index.vue +++ b/src/components/ReSeamlessScroll/src/index.vue @@ -498,16 +498,16 @@ defineExpose({ diff --git a/src/components/ReSplitPane/index.tsx b/src/components/ReSplitPane/index.tsx index 621a57ce26..8a33ae5154 100644 --- a/src/components/ReSplitPane/index.tsx +++ b/src/components/ReSplitPane/index.tsx @@ -1,4 +1,4 @@ -import { defineComponent, ref, unref, computed, PropType } from "vue"; +import { defineComponent, ref, unref, computed, type PropType } from "vue"; import resizer from "./resizer"; import "./index.css"; diff --git a/src/config/index.ts b/src/config/index.ts index 4eaaa4591a..54dd959cc8 100644 --- a/src/config/index.ts +++ b/src/config/index.ts @@ -1,4 +1,4 @@ -import { App } from "vue"; +import type { App } from "vue"; import axios from "axios"; let config: object = {}; diff --git a/src/layout/components/appMain.vue b/src/layout/components/appMain.vue index 260a0221ff..b3564cd7d4 100644 --- a/src/layout/components/appMain.vue +++ b/src/layout/components/appMain.vue @@ -50,6 +50,12 @@ const getSectionStyle = computed(() => { }); const transitionMain = defineComponent({ + props: { + route: { + type: undefined, + required: true + } + }, render() { const transitionName = transitions.value(this.route)?.name || "fade-transform"; @@ -72,12 +78,6 @@ const transitionMain = defineComponent({ default: () => [this.$slots.default()] } ); - }, - props: { - route: { - type: undefined, - required: true - } } }); @@ -118,8 +118,8 @@ const transitionMain = defineComponent({ /> @@ -140,8 +140,8 @@ const transitionMain = defineComponent({ /> diff --git a/src/layout/components/navbar.vue b/src/layout/components/navbar.vue index 752fdb0349..c13b785f67 100644 --- a/src/layout/components/navbar.vue +++ b/src/layout/components/navbar.vue @@ -62,8 +62,8 @@ const { t, locale, translationCh, translationEn } = useTranslationLang(); @click="translationCh" > 简体中文 @@ -73,7 +73,7 @@ const { t, locale, translationCh, translationEn } = useTranslationLang(); :class="['dark:!text-white', getDropdownItemClass(locale, 'en')]" @click="translationEn" > - + English diff --git a/src/layout/components/notice/index.vue b/src/layout/components/notice/index.vue index 3a3772099c..443c1c03c8 100644 --- a/src/layout/components/notice/index.vue +++ b/src/layout/components/notice/index.vue @@ -23,8 +23,8 @@ notices.value.map(v => (noticesNum.value += v.list.length));