Skip to content

Commit f2fcdee

Browse files
committed
perf:format code&&fix typo
1 parent 497b96f commit f2fcdee

File tree

8 files changed

+63
-61
lines changed

8 files changed

+63
-61
lines changed

index.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<!DOCTYPE html>
22
<html>
3-
<head>
4-
<meta charset="utf-8">
5-
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
6-
<meta name="renderer" content="webkit">
7-
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
8-
<title>Juicy</title>
9-
</head>
10-
<body>
11-
<script src=<%= htmlWebpackPlugin.options.path %>/tinymce/tinymce.min.js></script>
12-
<div id="app"></div>
13-
<!-- built files will be auto injected -->
14-
</body>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
6+
<meta name="renderer" content="webkit">
7+
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
8+
<title>vue-element-admin</title>
9+
</head>
10+
<script src=<%= htmlWebpackPlugin.options.path %>/tinymce/tinymce.min.js></script>
11+
<body>
12+
<div id="app"></div>
13+
<!-- built files will be auto injected -->
14+
</body>
1515
</html>

src/directive/sticky.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ vueSticky.install = Vue => {
1010

1111
elStyle.position = '-webkit-sticky'
1212
elStyle.position = 'sticky'
13-
// if the browser support css sticky(Currently Safari, Firefox and Chrome Canary)
14-
// if (~elStyle.position.indexOf('sticky')) {
15-
// elStyle.top = `${stickyTop}px`;
16-
// elStyle.zIndex = zIndex;
17-
// return
18-
// }
13+
// if the browser support css sticky(Currently Safari, Firefox and Chrome Canary)
14+
// if (~elStyle.position.indexOf('sticky')) {
15+
// elStyle.top = `${stickyTop}px`;
16+
// elStyle.zIndex = zIndex;
17+
// return
18+
// }
1919
const elHeight = el.getBoundingClientRect().height
2020
const elWidth = el.getBoundingClientRect().width
2121
elStyle.cssText = `top: ${stickyTop}px; z-index: ${zIndex}`

src/views/components-demo/dndList.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<template>
22
<div class="components-container">
3-
<code>drag-list base on <a href="https://github.com/SortableJS/Vue.Draggable" target="_blank">Vue.Draggable</a></code>
3+
<code>drag-list base on
4+
<a href="https://github.com/SortableJS/Vue.Draggable" target="_blank">Vue.Draggable</a>
5+
</code>
46
<div class="editor-container">
5-
<dnd-list :list1="list1" :list2="list2" list1Title="头条列表" list2Title="文章池"></dnd-list>
7+
<dnd-list :list1="list1" :list2="list2" list1Title="头条列表" list2Title="文章池"></dnd-list>
68
</div>
79
</div>
810
</template>

src/views/components-demo/markdown.vue

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<code>Markdown 我们这里选用了
44
<a href="https://github.com/sparksuite/simplemde-markdown-editor" target="_blank">simplemde-markdown-editor</a> ,简单的用vue封装了一下
55
<a target="_blank" href="https://segmentfault.com/a/1190000009762198#articleHeader14">
6-
相关文章 </a>
6+
相关文章 </a>
77
</code>
88
<div class="editor-container">
99
<markdown-editor id="contentEditor" ref="contentEditor" v-model="content" :height="300" :zIndex="20"></markdown-editor>
@@ -16,26 +16,25 @@
1616
<script>
1717
import MarkdownEditor from '@/components/MarkdownEditor'
1818
19+
const content = `
20+
**this is test**
21+
22+
* vue
23+
* element
24+
* webpack
25+
26+
## Simplemde
27+
`
28+
1929
export default {
2030
name: 'markdown-demo',
2131
components: { MarkdownEditor },
2232
data() {
2333
return {
24-
content: '## Simplemde',
34+
content: content,
2535
html: ''
2636
}
2737
},
28-
computed: {
29-
cachedViews() {
30-
return this.$store.state.app.cachedViews
31-
}
32-
},
33-
// deactivated() {
34-
// console.log(this.cachedViews.indexOf(this.$route.name))
35-
// if (this.cachedViews.indexOf(this.$route.name) < 0) {
36-
// this.$destroy()
37-
// }
38-
// },
3938
methods: {
4039
markdown2Html() {
4140
import('showdown').then(showdown => {

src/views/components-demo/splitpane.vue

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,26 @@
11
<template>
2-
<div class="components-container">
3-
<code>splitPane 如果你用过<a href="http://codepen.io/" target="_blank"> codepen</a>,<a href="https://jsfiddle.net/" target="_blank"> jsfiddle </a>就不会陌生了
2+
<div class="components-container">
3+
<code>splitPane 如果你用过
4+
<a href="http://codepen.io/" target="_blank"> codepen</a>,
5+
<a href="https://jsfiddle.net/" target="_blank"> jsfiddle </a>就不会陌生了
46
<a href="https://github.com/PanJiaChen/vue-split-pane" target='_blank'>项目地址</a>
5-
</code>
6-
<split-pane v-on:resize="resize" split="vertical">
7-
<template slot="paneL">
8-
<div class="left-container"></div>
9-
</template>
10-
<template slot="paneR">
11-
<split-pane split="horizontal">
12-
<template slot="paneL">
13-
<div class="top-container"></div>
14-
</template>
15-
<template slot="paneR">
16-
<div class="bottom-container">
17-
</div>
18-
</template>
19-
</split-pane>
20-
</template>
21-
</split-pane>
22-
</div>
7+
</code>
8+
<split-pane v-on:resize="resize" split="vertical">
9+
<template slot="paneL">
10+
<div class="left-container"></div>
11+
</template>
12+
<template slot="paneR">
13+
<split-pane split="horizontal">
14+
<template slot="paneL">
15+
<div class="top-container"></div>
16+
</template>
17+
<template slot="paneR">
18+
<div class="bottom-container"></div>
19+
</template>
20+
</split-pane>
21+
</template>
22+
</split-pane>
23+
</div>
2324
</template>
2425

2526
<script>

src/views/components-demo/tinymce.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div class="components-container">
33
<code>公司做的后台主要是一个cms系统,公司也是以自媒体为核心的,所以富文本是后台很核心的功能。在选择富文本的过程中也走了不少的弯路,市面上常见的富文本都基本用过了,最终选择了Tinymce
4-
<a target="_blank" href="https://panjiachen.github.io/vue-element-admin-site/#/rich-editor">文档介绍</a>
4+
<a target="_blank" class="link-type" href="https://panjiachen.github.io/vue-element-admin-site/#/rich-editor">文档介绍</a>
55
</code>
66
<div>
77
<tinymce :height="200" v-model="content"></tinymce>

src/views/dashboard/admin/components/BoxCard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<el-progress :percentage="12"></el-progress>
2020
</div>
2121
<div class='progress-item'>
22-
<span>ESlint</span>
22+
<span>ESLint</span>
2323
<el-progress :percentage="100" status="success"></el-progress>
2424
</div>
2525
</div>

src/views/dashboard/admin/components/PieChart.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export default {
5656
legend: {
5757
left: 'center',
5858
bottom: '10',
59-
data: ['industries', 'technology', 'forex', 'gold', 'forecasts']
59+
data: ['Industries', 'Technology', 'Forex', 'Gold', 'Forecasts']
6060
},
6161
calculable: true,
6262
series: [
@@ -67,11 +67,11 @@ export default {
6767
radius: [15, 95],
6868
center: ['50%', '38%'],
6969
data: [
70-
{ value: 320, name: 'industries' },
71-
{ value: 240, name: 'technology' },
72-
{ value: 149, name: 'forex' },
73-
{ value: 100, name: 'gold' },
74-
{ value: 59, name: 'forecasts' }
70+
{ value: 320, name: 'Industries' },
71+
{ value: 240, name: 'Technology' },
72+
{ value: 149, name: 'Forex' },
73+
{ value: 100, name: 'Gold' },
74+
{ value: 59, name: 'Forecasts' }
7575
],
7676
animationEasing: 'cubicInOut',
7777
animationDuration: 2600

0 commit comments

Comments
 (0)