diff --git a/src/pages/demo/components/markdown/demo.vue b/src/pages/demo/components/markdown/demo.vue index d4870d87..b33b82ea 100644 --- a/src/pages/demo/components/markdown/demo.vue +++ b/src/pages/demo/components/markdown/demo.vue @@ -1,5 +1,10 @@ \ No newline at end of file diff --git a/src/pages/demo/components/markdown/doc.vue b/src/pages/demo/components/markdown/doc.vue new file mode 100644 index 00000000..f5526b24 --- /dev/null +++ b/src/pages/demo/components/markdown/doc.vue @@ -0,0 +1,9 @@ + \ No newline at end of file diff --git a/src/router/menu/_components.js b/src/router/menu/_components.js index ba80eae2..d8118a08 100644 --- a/src/router/menu/_components.js +++ b/src/router/menu/_components.js @@ -91,7 +91,7 @@ export const menu = { icon: 'font', children: [ { - title: '基本示例', + title: '效果演示', icon: 'file-o', path: 'marked/demo', name: 'demo-components-markdown-demo', diff --git a/static/markdownFiles/article/组件 - markdown - 文档.md b/static/markdownFiles/article/组件 - markdown - 文档.md new file mode 100644 index 00000000..b9d2f12b --- /dev/null +++ b/static/markdownFiles/article/组件 - markdown - 文档.md @@ -0,0 +1,16 @@ +## 参数 + +| 参数名 | 介绍 | 必选 | 值类型 | 可选值 | 默认值 | +| --- | --- | --- | --- | --- | --- | +| url | markdown文件地址 | 非 | String | | 无 | +| md | markdown内容 | 非 | String | | 无 | +| highlight | 代码高亮 | 非 | Boolean | | false | +| baidupan | 百度网盘分享链接显示优化 | 非 | Boolean | | true | + +## 使用方法 + +加载一个.md文件 + +``` + +``` \ No newline at end of file diff --git a/static/markdownFiles/article/组件 - markdown.md b/static/markdownFiles/article/组件 - markdown - 演示.md similarity index 100% rename from static/markdownFiles/article/组件 - markdown.md rename to static/markdownFiles/article/组件 - markdown - 演示.md