Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
map-demo
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-09-25 22:03:05 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8367cd9586c4ea24951f170a1a382076d6d8b533
8367cd95
1 parent
5ebed075
feat: 添加Element Plus和Vant组件自动导入配置
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
0 deletions
.eslintrc-auto-import.json
components.d.ts
src/auto-imports.d.ts
.eslintrc-auto-import.json
View file @
8367cd9
{
"globals"
:
{
"EffectScope"
:
true
,
"ElMessage"
:
true
,
"computed"
:
true
,
"createApp"
:
true
,
"customRef"
:
true
,
...
...
components.d.ts
View file @
8367cd9
...
...
@@ -13,6 +13,10 @@ declare module '@vue/runtime-core' {
AudioBackground1
:
typeof
import
(
'./src/components/audioBackground1.vue'
)[
'default'
]
AudioList
:
typeof
import
(
'./src/components/audioList.vue'
)[
'default'
]
BottomNav
:
typeof
import
(
'./src/components/BottomNav.vue'
)[
'default'
]
ElButton
:
typeof
import
(
'element-plus/es'
)[
'ElButton'
]
ElInput
:
typeof
import
(
'element-plus/es'
)[
'ElInput'
]
ElOption
:
typeof
import
(
'element-plus/es'
)[
'ElOption'
]
ElSelect
:
typeof
import
(
'element-plus/es'
)[
'ElSelect'
]
Floor
:
typeof
import
(
'./src/components/Floor/index.vue'
)[
'default'
]
InfoPopup
:
typeof
import
(
'./src/components/InfoPopup.vue'
)[
'default'
]
InfoPopupLite
:
typeof
import
(
'./src/components/InfoPopupLite.vue'
)[
'default'
]
...
...
@@ -24,9 +28,26 @@ declare module '@vue/runtime-core' {
RouterLink
:
typeof
import
(
'vue-router'
)[
'RouterLink'
]
RouterView
:
typeof
import
(
'vue-router'
)[
'RouterView'
]
SvgIcon
:
typeof
import
(
'./src/components/Floor/svgIcon.vue'
)[
'default'
]
VanBackTop
:
typeof
import
(
'vant/es'
)[
'BackTop'
]
VanButton
:
typeof
import
(
'vant/es'
)[
'Button'
]
VanCol
:
typeof
import
(
'vant/es'
)[
'Col'
]
VanConfigProvider
:
typeof
import
(
'vant/es'
)[
'ConfigProvider'
]
VanDialog
:
typeof
import
(
'vant/es'
)[
'Dialog'
]
VanField
:
typeof
import
(
'vant/es'
)[
'Field'
]
VanFloatingPanel
:
typeof
import
(
'vant/es'
)[
'FloatingPanel'
]
VanIcon
:
typeof
import
(
'vant/es'
)[
'Icon'
]
VanImage
:
typeof
import
(
'vant/es'
)[
'Image'
]
VanImagePreview
:
typeof
import
(
'vant/es'
)[
'ImagePreview'
]
VanLoading
:
typeof
import
(
'vant/es'
)[
'Loading'
]
VanOverlay
:
typeof
import
(
'vant/es'
)[
'Overlay'
]
VanPopup
:
typeof
import
(
'vant/es'
)[
'Popup'
]
VanRow
:
typeof
import
(
'vant/es'
)[
'Row'
]
VanSlider
:
typeof
import
(
'vant/es'
)[
'Slider'
]
VanSwipe
:
typeof
import
(
'vant/es'
)[
'Swipe'
]
VanSwipeItem
:
typeof
import
(
'vant/es'
)[
'SwipeItem'
]
VanTab
:
typeof
import
(
'vant/es'
)[
'Tab'
]
VanTabs
:
typeof
import
(
'vant/es'
)[
'Tabs'
]
VanToast
:
typeof
import
(
'vant/es'
)[
'Toast'
]
VRViewer
:
typeof
import
(
'./src/components/VRViewer/index.vue'
)[
'default'
]
}
}
...
...
src/auto-imports.d.ts
View file @
8367cd9
...
...
@@ -2,6 +2,7 @@
export
{}
declare
global
{
const
EffectScope
:
typeof
import
(
'vue'
)[
'EffectScope'
]
const
ElMessage
:
typeof
import
(
'element-plus/es'
)[
'ElMessage'
]
const
computed
:
typeof
import
(
'vue'
)[
'computed'
]
const
createApp
:
typeof
import
(
'vue'
)[
'createApp'
]
const
customRef
:
typeof
import
(
'vue'
)[
'customRef'
]
...
...
Please
register
or
login
to post a comment