perf[Sidebar]: use sass variables in vue template

This commit is contained in:
Pan
2019-01-29 18:00:59 +08:00
parent 9daeb1cb34
commit 727c1a45dd
2 changed files with 19 additions and 3 deletions

View File

@@ -12,4 +12,16 @@ $panGreen: #30B08F;
$menuBg:#304156;
$subMenuBg:#1f2d3d;
$menuHover:#001528;
$menuText:#bfcbd9;
$menuActiveText:#409EFF;
$sideBarWidth: 180px;
// the :export directive is the magic sauce for webpack
:export {
menuBg: $menuBg;
subMenuBg: $subMenuBg;
menuHover: $menuHover;
menuText:$menuText;
menuActiveText:$menuActiveText;
sideBarWidth: $sideBarWidth;
}