feat: 1.优化images样式表现。2.增加markdown浏览插件
This commit is contained in:
1 parent
6b8f7aa6b4
commit
0f6e817966
6 files changed
+250
-77
No files matched your search
@@ -157,4 +157,21 @@ export default function init() {
|
||||
return false
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
pluginCenter.registerComponent({
|
||||
key: 'miaoMarkdown',
|
||||
name: 'markdown浏览',
|
||||
icon: DocumentText,
|
||||
getComponent: async () => (await import('@/views/miaoMarkdown.vue')).default,
|
||||
filter: (vDirs, vFiles) => {
|
||||
if (vDirs.length !== 0) {
|
||||
return false
|
||||
}
|
||||
if (vFiles.length !== 1) {
|
||||
return false
|
||||
}
|
||||
return vFiles[0].name.endsWith('md')
|
||||
}
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user