From f2fcdee815de255822973e559023f86b136be701 Mon Sep 17 00:00:00 2001 From: Pan Date: Wed, 22 Nov 2017 11:01:19 +0800 Subject: [PATCH] perf:format code&&fix typo --- index.html | 24 +++++------ src/directive/sticky.js | 12 +++--- src/views/components-demo/dndList.vue | 6 ++- src/views/components-demo/markdown.vue | 25 ++++++----- src/views/components-demo/splitpane.vue | 41 ++++++++++--------- src/views/components-demo/tinymce.vue | 2 +- .../dashboard/admin/components/BoxCard.vue | 2 +- .../dashboard/admin/components/PieChart.vue | 12 +++--- 8 files changed, 63 insertions(+), 61 deletions(-) diff --git a/index.html b/index.html index 830bf1f8..a485ce88 100644 --- a/index.html +++ b/index.html @@ -1,15 +1,15 @@ - - - - - - Juicy - - - -
- - + + + + + + vue-element-admin + + + +
+ + diff --git a/src/directive/sticky.js b/src/directive/sticky.js index d7da0891..bc234660 100644 --- a/src/directive/sticky.js +++ b/src/directive/sticky.js @@ -10,12 +10,12 @@ vueSticky.install = Vue => { elStyle.position = '-webkit-sticky' elStyle.position = 'sticky' - // if the browser support css sticky(Currently Safari, Firefox and Chrome Canary) - // if (~elStyle.position.indexOf('sticky')) { - // elStyle.top = `${stickyTop}px`; - // elStyle.zIndex = zIndex; - // return - // } + // if the browser support css sticky(Currently Safari, Firefox and Chrome Canary) + // if (~elStyle.position.indexOf('sticky')) { + // elStyle.top = `${stickyTop}px`; + // elStyle.zIndex = zIndex; + // return + // } const elHeight = el.getBoundingClientRect().height const elWidth = el.getBoundingClientRect().width elStyle.cssText = `top: ${stickyTop}px; z-index: ${zIndex}` diff --git a/src/views/components-demo/dndList.vue b/src/views/components-demo/dndList.vue index 3d436390..140e4c7f 100644 --- a/src/views/components-demo/dndList.vue +++ b/src/views/components-demo/dndList.vue @@ -1,8 +1,10 @@ diff --git a/src/views/components-demo/markdown.vue b/src/views/components-demo/markdown.vue index 59dbc25c..afd07c6c 100644 --- a/src/views/components-demo/markdown.vue +++ b/src/views/components-demo/markdown.vue @@ -3,7 +3,7 @@ Markdown 我们这里选用了 simplemde-markdown-editor ,简单的用vue封装了一下 - 相关文章 + 相关文章
@@ -16,26 +16,25 @@