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

+28
View File
@@ -0,0 +1,28 @@
import { registerComponentOption } from '@/class/PluginCenter'
import PlayCircle from '@vicons/ionicons5/es/PlayCircle'
const pluginConfig: registerComponentOption = {
key: 'miaoVideoPlayer',
name: '视频',
icon: PlayCircle,
getComponent: async () =>
(await import('@/plugins/miaoVideoPlayer/miaoVideoPlayer.vue')).default,
filter: (vDirs, vFiles) => {
if (vDirs.length !== 0) {
return false
}
if (vFiles.length === 0) {
return false
}
for (let i of vFiles) {
for (let s of ['mp4']) {
if (i.name.endsWith(s)) {
return true
}
}
}
return false
}
}
export default pluginConfig