fix: 🐛 src/components 目录下的自定义组件无效问题修复
https://gitee.com/youlaiorg/vue3-element-admin/issues/I8GFHN #I8GFHN Former-commit-id: 0565b99f8de3234c1e28acd7ba12167ad8d6d001
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from "vue-i18n";
|
||||
import SvgIcon from "@/components/SvgIcon/index.vue";
|
||||
import { useAppStore } from "@/store/modules/app";
|
||||
|
||||
const appStore = useAppStore();
|
||||
|
||||
15
src/types/components.d.ts
vendored
15
src/types/components.d.ts
vendored
@@ -12,7 +12,9 @@ declare module "@vue/runtime-core" {
|
||||
AppMain: typeof import("./../layout/components/AppMain.vue")["default"];
|
||||
BarChart: typeof import("./../views/dashboard/components/BarChart.vue")["default"];
|
||||
Breadcrumb: typeof import("./../components/Breadcrumb/index.vue")["default"];
|
||||
DeptTree: typeof import("./../views/system/user/components/dept-tree.vue")["default"];
|
||||
Dictionary: typeof import("./../components/Dictionary/index.vue")["default"];
|
||||
DictItem: typeof import("./../views/system/dict/components/dict-item.vue")["default"];
|
||||
ElAlert: typeof import("element-plus/es")["ElAlert"];
|
||||
ElBreadcrumb: typeof import("element-plus/es")["ElBreadcrumb"];
|
||||
ElBreadcrumbItem: typeof import("element-plus/es")["ElBreadcrumbItem"];
|
||||
@@ -30,6 +32,7 @@ declare module "@vue/runtime-core" {
|
||||
ElForm: typeof import("element-plus/es")["ElForm"];
|
||||
ElFormItem: typeof import("element-plus/es")["ElFormItem"];
|
||||
ElIcon: typeof import("element-plus/es")["ElIcon"];
|
||||
ElImage: typeof import("element-plus/es")["ElImage"];
|
||||
ElInput: typeof import("element-plus/es")["ElInput"];
|
||||
ElInputNumber: typeof import("element-plus/es")["ElInputNumber"];
|
||||
ElLink: typeof import("element-plus/es")["ElLink"];
|
||||
@@ -56,7 +59,7 @@ declare module "@vue/runtime-core" {
|
||||
ElTree: typeof import("element-plus/es")["ElTree"];
|
||||
ElTreeSelect: typeof import("element-plus/es")["ElTreeSelect"];
|
||||
ElUpload: typeof import("element-plus/es")["ElUpload"];
|
||||
FixedThead: typeof import("./../views/table/dynamic-table/components/FixedThead.vue")["default"];
|
||||
FixedThead: typeof import("./../views/demo/table/dynamic-table/components/FixedThead.vue")["default"];
|
||||
FunnelChart: typeof import("./../views/dashboard/components/FunnelChart.vue")["default"];
|
||||
GithubCorner: typeof import("./../components/GithubCorner/index.vue")["default"];
|
||||
Hamburger: typeof import("./../components/Hamburger/index.vue")["default"];
|
||||
@@ -69,6 +72,7 @@ declare module "@vue/runtime-core" {
|
||||
IEpDelete: typeof import("~icons/ep/delete")["default"];
|
||||
IEpDownload: typeof import("~icons/ep/download")["default"];
|
||||
IEpEdit: typeof import("~icons/ep/edit")["default"];
|
||||
IEpPicture: typeof import("~icons/ep/picture")["default"];
|
||||
IEpPlus: typeof import("~icons/ep/plus")["default"];
|
||||
IEpPosition: typeof import("~icons/ep/position")["default"];
|
||||
IEpRefresh: typeof import("~icons/ep/refresh")["default"];
|
||||
@@ -79,10 +83,14 @@ declare module "@vue/runtime-core" {
|
||||
IEpSortUp: typeof import("~icons/ep/sort-up")["default"];
|
||||
IEpTop: typeof import("~icons/ep/top")["default"];
|
||||
IEpUploadFilled: typeof import("~icons/ep/upload-filled")["default"];
|
||||
Item: typeof import("./../layout/components/Sidebar/Item.vue")["default"];
|
||||
LangSelect: typeof import("./../components/LangSelect/index.vue")["default"];
|
||||
LeftMenu: typeof import("./../layout/components/Sidebar/LeftMenu.vue")["default"];
|
||||
Link: typeof import("./../layout/components/Sidebar/Link.vue")["default"];
|
||||
Logo: typeof import("./../layout/components/Sidebar/Logo.vue")["default"];
|
||||
MultiUpload: typeof import("./../components/Upload/MultiUpload.vue")["default"];
|
||||
NavBar: typeof import("./../layout/components/NavBar/index.vue")["default"];
|
||||
NavRight: typeof import("./../layout/components/NavBar/NavRight.vue")["default"];
|
||||
Pagination: typeof import("./../components/Pagination/index.vue")["default"];
|
||||
PieChart: typeof import("./../views/dashboard/components/PieChart.vue")["default"];
|
||||
RadarChart: typeof import("./../views/dashboard/components/RadarChart.vue")["default"];
|
||||
@@ -96,10 +104,11 @@ declare module "@vue/runtime-core" {
|
||||
SingleUpload: typeof import("./../components/Upload/SingleUpload.vue")["default"];
|
||||
SizeSelect: typeof import("./../components/SizeSelect/index.vue")["default"];
|
||||
SvgIcon: typeof import("./../components/SvgIcon/index.vue")["default"];
|
||||
SwitchRoles: typeof import("./../views/permission/components/SwitchRoles.vue")["default"];
|
||||
SwitchRoles: typeof import("./../views/demo/permission/components/SwitchRoles.vue")["default"];
|
||||
TagInput: typeof import("./../components/TagInput/index.vue")["default"];
|
||||
TagsView: typeof import("./../layout/components/TagsView/index.vue")["default"];
|
||||
UnfixedThead: typeof import("./../views/table/dynamic-table/components/UnfixedThead.vue")["default"];
|
||||
TopMenu: typeof import("./../layout/components/Sidebar/TopMenu.vue")["default"];
|
||||
UnfixedThead: typeof import("./../views/demo/table/dynamic-table/components/UnfixedThead.vue")["default"];
|
||||
WangEditor: typeof import("./../components/WangEditor/index.vue")["default"];
|
||||
}
|
||||
export interface ComponentCustomProperties {
|
||||
|
||||
@@ -98,7 +98,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
|
||||
IconsResolver({ enabledCollections: ["ep"] }),
|
||||
],
|
||||
// 指定自定义组件位置(默认:src/components)
|
||||
dirs: ["src/**/components"],
|
||||
dirs: ["src/components", "src/**/components"],
|
||||
// 配置文件位置 (false:关闭自动生成)
|
||||
dts: false,
|
||||
// dts: "src/types/components.d.ts",
|
||||
|
||||
Reference in New Issue
Block a user