Doc: remove unused script in site

This commit is contained in:
陈嘉涵
2017-09-04 11:01:17 +08:00
parent 2b6db8dc14
commit 8a951895f8
28 changed files with 161 additions and 385 deletions

View File

@@ -1,17 +0,0 @@
<template>
<zan-doc-block :class="`demo-${component}`">
<slot name="highlight"></slot>
</zan-doc-block>
</template>
<script>
export default {
name: 'demo-block',
computed: {
component() {
return this.$route.path.split('/').pop();
}
}
};
</script>

View File

@@ -3,7 +3,6 @@ import VueRouter from 'vue-router';
import App from './ExamplesDocsApp';
import routes from './router.config';
import ZanDoc from 'zan-doc';
import DemoBlock from './components/demo-block';
const isMobile = (function() {
var platform = navigator.userAgent.toLowerCase();
@@ -13,7 +12,6 @@ const isMobile = (function() {
Vue.use(VueRouter);
Vue.use(ZanDoc);
Vue.component(DemoBlock.name, DemoBlock);
const routesConfig = routes();
routesConfig.push({