Commit 2d23f9e1 by 张立顺

修复saas写法报错问题

1 parent 6c02f1d0
<template>
<div v-if="show"
class="d2-header-switch"
:class="{ 'd2-header-switch--active': isActive }"
@click="handleClick">
<div v-if="show" class="d2-header-switch" :class="{ 'd2-header-switch--active': isActive }" @click="handleClick">
<d2-el-icon :name="name" />
<li :class="$store.state.d2admin.tsearch.active?'fa fa-compress':'fa fa-expand'" />
<li :class="$store.state.d2admin.tsearch.active ? 'fa fa-compress' : 'fa fa-expand'" />
</div>
</template>
......@@ -44,7 +41,8 @@ export default {
$paddingLR: 30px;
$paddingTB: 2px;
$fontSize: 12px;
$rightOuter: $paddingLR / 2;
// $rightOuter: $paddingLR/2;
$rightOuter: calc($paddingLR / 2);
opacity: 0;
position: absolute;
z-index: 2000;
......@@ -61,6 +59,7 @@ export default {
color: #606266;
transition: all 0.3s;
@extend %unable-select;
&.d2-header-switch--active {
opacity: 1;
}
......
<template>
<div
v-if="show"
class="d2-source"
:class="{ 'd2-source--active': isActive }"
@click="handleClick">
<div v-if="show" class="d2-source" :class="{ 'd2-source--active': isActive }" @click="handleClick">
<d2-icon name="code" /> 本页源码
</div>
</template>
......@@ -50,7 +46,8 @@ export default {
$paddingLR: 15px;
$paddingTB: 7px;
$fontSize: 12px;
$rightOuter: $paddingLR / 2;
$rightOuter: calc($paddingLR / 2);
// $paddingLR/2
opacity: 0;
position: fixed;
z-index: 9999;
......@@ -67,9 +64,11 @@ export default {
color: #FFF;
transition: all .3s;
@extend %unable-select;
&.d2-source--active {
opacity: 1;
}
&:hover {
right: - $borderRadius;
background-color: rgba(#000, .9);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!