feat: 重新组织代码结构

This commit is contained in:
539943419 committed 2024-09-04 11:47:14 +08:00
commit 4d2bd3867f
23 files changed
+240 -187

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
import { registerComponentOption } from '@/class/PluginCenter'
import LogoChrome from '@vicons/ionicons5/es/LogoChrome'
const pluginConfig: registerComponentOption = {
key: 'miaoIframe',
name: '框架',
icon: LogoChrome,
getComponent: async () =>
(await import('@/plugins/miaoIframe/miaoIframe.vue')).default,
filter: (vDirs, vFiles) => {
if (vDirs.length !== 0) {
return false
}
if (vFiles.length !== 1) {
return false
}
return vFiles[0].name.endsWith('html')
}
}
export default pluginConfig