diff --git a/examples/main.js b/examples/main.js index ed4b8f9..7d2374f 100644 --- a/examples/main.js +++ b/examples/main.js @@ -11,7 +11,7 @@ import NProgress from 'nprogress'; import EagleCodeSnippet from "@/components/code-snippet"; import '@/styles/index.scss'; -import "highlight.js/styles/github.css"; +import "@/styles/highlight.scss"; const request = axios.create({ baseURL: 'http://localhost', diff --git a/examples/styles/highlight.scss b/examples/styles/highlight.scss new file mode 100644 index 0000000..32e1f3b --- /dev/null +++ b/examples/styles/highlight.scss @@ -0,0 +1,103 @@ +.hljs { + display: block; + overflow-x: auto; + padding: 0.5em; + color: #333; + background: #f8f8f8; +} + +.hljs-comment, +.hljs-quote { + color: #237804; + // color: #998; + font-style: italic; +} + +.hljs-params { + color: green; +} + +.hljs-keyword, +.hljs-selector-tag, +.hljs-subst { + color: #1d39c4; + // color: #333; + font-weight: bold; +} + +.hljs-number, +.hljs-literal, +.hljs-variable, +.hljs-template-variable, + +.hljs-tag .hljs-attr { + color: #f5222d; + // color: #008080; +} + +.hljs-string, +.hljs-doctag { + color: #08979c; + // color: #d14; +} + +.hljs-title, +.hljs-section, +.hljs-selector-id { + color: #900; + font-weight: bold; +} + +.hljs-subst { + font-weight: normal; +} + +.hljs-type, +.hljs-class .hljs-title { + color: #458; + font-weight: bold; +} + +.hljs-tag, +.hljs-name, +.hljs-attribute { + color: #1d39c4; + // color: #000080; + font-weight: normal; +} + +.hljs-regexp, +.hljs-link { + color: #009926; +} + +.hljs-symbol, +.hljs-bullet { + color: #990073; +} + +.hljs-built_in, +.hljs-builtin-name { + color: #0086b3; +} + +.hljs-meta { + color: #999; + font-weight: bold; +} + +.hljs-deletion { + background: #fdd; +} + +.hljs-addition { + background: #dfd; +} + +.hljs-emphasis { + font-style: italic; +} + +.hljs-strong { + font-weight: bold; +} diff --git a/examples/styles/variables.scss b/examples/styles/variables.scss index 42163c3..2bb9ba8 100644 --- a/examples/styles/variables.scss +++ b/examples/styles/variables.scss @@ -9,6 +9,8 @@ $green-light: #5edd8e; $orange: #ff9852; $grey: #8c8c8c; $black: #000; +$purple: #722ed1; +$cyan: #13c2c2; $text: #314659; $border: #e8e8e8; \ No newline at end of file diff --git a/examples/views/docs/guide/installation.md b/examples/views/docs/guide/installation.md index 4422592..56cc94b 100644 --- a/examples/views/docs/guide/installation.md +++ b/examples/views/docs/guide/installation.md @@ -6,12 +6,16 @@ ## npm安装 -```bash -npm install --save git+https://frameworkweb:frame1WorkwEb@git.yunweidashi.com/framework/eagle-web-toolkit.git#版本号 -``` +
+ + npm install --save git+https://frameworkweb:frame1WorkwEb@git.yunweidashi.com/framework/eagle-web-toolkit.git#{{ appVersion }} + +
## yarn安装 -```bash -yarn add git+https://frameworkweb:frame1WorkwEb@git.yunweidashi.com/framework/eagle-web-toolkit.git#版本号 -``` \ No newline at end of file +
+ + yarn add git+https://frameworkweb:frame1WorkwEb@git.yunweidashi.com/framework/eagle-web-toolkit.git#{{ appVersion }} + +
diff --git a/examples/views/layout/component.vue b/examples/views/layout/component.vue index 9f281d4..602e1e3 100644 --- a/examples/views/layout/component.vue +++ b/examples/views/layout/component.vue @@ -1,6 +1,6 @@