mirror of
https://github.com/un-pany/v3-admin-vite.git
synced 2025-04-20 10:59:21 +08:00
refactor: 迁移 components 到 common 目录
This commit is contained in:
parent
fd6b76f990
commit
a61ec9c71b
@ -1,13 +1,13 @@
|
||||
<script lang="ts" setup>
|
||||
import Notify from "@/components/Notify/index.vue"
|
||||
import Screenfull from "@/components/Screenfull/index.vue"
|
||||
import SearchMenu from "@/components/SearchMenu/index.vue"
|
||||
import ThemeSwitch from "@/components/ThemeSwitch/index.vue"
|
||||
import { useDevice } from "@/composables/useDevice"
|
||||
import { useLayoutMode } from "@/composables/useLayoutMode"
|
||||
import { useAppStore } from "@/pinia/stores/app"
|
||||
import { useSettingsStore } from "@/pinia/stores/settings"
|
||||
import { useUserStore } from "@/pinia/stores/user"
|
||||
import Notify from "@@/components/Notify/index.vue"
|
||||
import Screenfull from "@@/components/Screenfull/index.vue"
|
||||
import SearchMenu from "@@/components/SearchMenu/index.vue"
|
||||
import ThemeSwitch from "@@/components/ThemeSwitch/index.vue"
|
||||
import { UserFilled } from "@element-plus/icons-vue"
|
||||
import { storeToRefs } from "pinia"
|
||||
import { useRouter } from "vue-router"
|
||||
|
@ -1,9 +1,9 @@
|
||||
<script lang="ts" setup>
|
||||
import type { ElScrollbar } from "element-plus"
|
||||
import type { RouterLink } from "vue-router"
|
||||
import Screenfull from "@/components/Screenfull/index.vue"
|
||||
import { useRouteListener } from "@/composables/useRouteListener"
|
||||
import { useSettingsStore } from "@/pinia/stores/settings"
|
||||
import Screenfull from "@@/components/Screenfull/index.vue"
|
||||
import { ArrowLeft, ArrowRight } from "@element-plus/icons-vue"
|
||||
import { nextTick, ref } from "vue"
|
||||
import { useRoute } from "vue-router"
|
||||
|
@ -1,9 +1,9 @@
|
||||
<script lang="ts" setup>
|
||||
import type { LoginRequestData } from "@/http/apis/login/type"
|
||||
import type { FormInstance, FormRules } from "element-plus"
|
||||
import ThemeSwitch from "@/components/ThemeSwitch/index.vue"
|
||||
import { getLoginCodeApi } from "@/http/apis/login"
|
||||
import { useUserStore } from "@/pinia/stores/user"
|
||||
import ThemeSwitch from "@@/components/ThemeSwitch/index.vue"
|
||||
import { Key, Loading, Lock, Picture, User } from "@element-plus/icons-vue"
|
||||
import { ElMessage } from "element-plus"
|
||||
import { reactive, ref } from "vue"
|
||||
|
@ -1,5 +1,5 @@
|
||||
import type { App } from "vue"
|
||||
import SvgIcon from "@/components/SvgIcon/index.vue" // Svg Component
|
||||
import SvgIcon from "@@/components/SvgIcon/index.vue" // Svg Component
|
||||
import "virtual:svg-icons-register"
|
||||
|
||||
export function loadSvgIcons(app: App) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import Notify from "@/components/Notify/index.vue"
|
||||
import NotifyList from "@/components/Notify/List.vue"
|
||||
import Notify from "@@/components/Notify/index.vue"
|
||||
import NotifyList from "@@/components/Notify/List.vue"
|
||||
import { shallowMount } from "@vue/test-utils"
|
||||
import { describe, expect, it } from "vitest"
|
||||
|
||||
|
2
types/global-components.d.ts
vendored
2
types/global-components.d.ts
vendored
@ -1,4 +1,4 @@
|
||||
import type SvgIcon from "@/components/SvgIcon/index.vue"
|
||||
import type SvgIcon from "@@/components/SvgIcon/index.vue"
|
||||
|
||||
export {}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user