2
0
mirror of https://github.com/tenrok/vue2-datepicker.git synced 2026-06-20 08:20:35 +03:00

docs(example): fix hljs

This commit is contained in:
mengxiong10
2019-11-20 14:52:32 +08:00
parent cdb45bd328
commit f9d21eb3a1
5 changed files with 55 additions and 33 deletions
-9
View File
@@ -1,11 +1,6 @@
/* eslint-disable global-require */
/* eslint-disable import/no-extraneous-dependencies */
import fs from 'fs';
import hljs from 'highlight.js/lib/highlight';
import javascript from 'highlight.js/lib/languages/javascript';
import xml from 'highlight.js/lib/languages/xml';
import 'highlight.js/styles/atom-one-light.css';
import Container from './helper/container.vue';
import Card from './helper/card.vue';
import Basic from './demo/Basic.vue';
@@ -23,9 +18,6 @@ import Disabled from './demo/Disabled.vue';
import docEn from './en.md';
import docZhCN from './zh-cn.md';
hljs.registerLanguage('javascript', javascript);
hljs.registerLanguage('xml', xml);
const components = [
{
id: 'Basic',
@@ -133,7 +125,6 @@ const App = {
};
},
mounted() {
hljs.initHighlighting();
window.onhashchange = () => {
this.currentId = this.getCurrentId();
};