no message

Former-commit-id: 7519d155109ba47a492e27004e0b2d4aab03ecd7
Former-commit-id: 3027360427bca1eccb7f9806e5ade1e1772fc4d7
Former-commit-id: 4a050cfe7ac108244a0c31b28a2a7129d0b232be
Former-commit-id: b7b27c2bd164215661dbe44d270efe74ab538303
This commit is contained in:
liyang
2018-06-12 11:21:24 +08:00
parent 5f55a0e9be
commit 7c5c4a43cc
5 changed files with 41 additions and 4 deletions

View File

@@ -80,11 +80,18 @@ const demoComponents = {
{ path: `${pre}icon/svg`, title: 'SVG图标组件' }
]
},
{
path: `${pre}markdown`,
title: 'markdown 解析',
children: [
{ path: `${pre}markdown/source`, title: '指定资源' },
{ path: `${pre}markdown/url`, title: '异步加载文件' }
]
},
{ path: `${pre}countup`, title: '数字动画' },
{ path: `${pre}editor-quill`, title: '富文本编辑器' },
{ path: `${pre}editor-simpleMDE`, title: 'markdown编辑器' },
{ path: `${pre}highlight`, title: '代码高亮显示' },
{ path: `${pre}markdown`, title: 'markdown解析' }
{ path: `${pre}highlight`, title: '代码高亮显示' }
])('/demo/components/')
}

View File

@@ -1,6 +1,6 @@
<template>
<d2-container>
<template slot="header">效果演示</template>
<template slot="header">指定资源</template>
<d2-markdown :md="doc"/>
</d2-container>
</template>

View File

@@ -0,0 +1,6 @@
<template>
<d2-container>
<template slot="header">异步加载文件</template>
<d2-markdown url="/static/md/demo.md"/>
</d2-container>
</template>

View File

@@ -40,7 +40,8 @@ const routes = [
{ path: 'index', name: `${pre}index`, component: () => import('@/pages/demo/components/index/index.vue') },
{ path: 'layout/grid', name: `${pre}layout-grid`, component: () => import('@/pages/demo/components/layout/grid.vue') },
{ path: 'layout/splitpane', name: `${pre}layout-splitpane`, component: () => import('@/pages/demo/components/layout/splitpane.vue') },
{ path: 'markdown', name: `${pre}markdown`, component: () => import('@/pages/demo/components/markdown/index.vue') }
{ path: 'markdown/source', name: `${pre}markdown-source`, component: () => import('@/pages/demo/components/markdown/source.vue') },
{ path: 'markdown/url', name: `${pre}markdown-url`, component: () => import('@/pages/demo/components/markdown/url.vue') }
])('demo-components-')
},
{