|
|
|
|
|
|
|
|
backgroundColor: |
|
|
backgroundColor: |
|
|
sideTheme === 'theme-dark' |
|
|
sideTheme === 'theme-dark' |
|
|
? variables.menuBackground |
|
|
? variables.menuBackground |
|
|
: variables.menuLightBackground |
|
|
|
|
|
|
|
|
: variables.menuLightBackground, |
|
|
}" |
|
|
}" |
|
|
> |
|
|
> |
|
|
<transition name="sidebarLogoFade"> |
|
|
<transition name="sidebarLogoFade"> |
|
|
|
|
|
|
|
|
class="sidebar-logo-link" |
|
|
class="sidebar-logo-link" |
|
|
to="/" |
|
|
to="/" |
|
|
> |
|
|
> |
|
|
<img v-if="logo" :src="logo" class="sidebar-logo"> |
|
|
|
|
|
<h1 |
|
|
<h1 |
|
|
v-else |
|
|
|
|
|
class="sidebar-title" |
|
|
class="sidebar-title" |
|
|
:style="{ |
|
|
:style="{ |
|
|
color: |
|
|
color: |
|
|
sideTheme === 'theme-dark' |
|
|
sideTheme === 'theme-dark' |
|
|
? variables.logoTitleColor |
|
|
? variables.logoTitleColor |
|
|
: variables.logoLightTitleColor |
|
|
|
|
|
|
|
|
: variables.logoLightTitleColor, |
|
|
}" |
|
|
}" |
|
|
> |
|
|
> |
|
|
{{ title }} |
|
|
|
|
|
|
|
|
Digital |
|
|
</h1> |
|
|
</h1> |
|
|
</router-link> |
|
|
</router-link> |
|
|
<router-link v-else key="expand" class="sidebar-logo-link" to="/"> |
|
|
<router-link v-else key="expand" class="sidebar-logo-link" to="/"> |
|
|
<img v-if="logo" :src="logo" class="sidebar-logo"> |
|
|
|
|
|
<h1 |
|
|
<h1 |
|
|
class="sidebar-title" |
|
|
class="sidebar-title" |
|
|
:style="{ |
|
|
:style="{ |
|
|
color: |
|
|
color: |
|
|
sideTheme === 'theme-dark' |
|
|
sideTheme === 'theme-dark' |
|
|
? variables.logoTitleColor |
|
|
? variables.logoTitleColor |
|
|
: variables.logoLightTitleColor |
|
|
|
|
|
|
|
|
: variables.logoLightTitleColor, |
|
|
}" |
|
|
}" |
|
|
> |
|
|
> |
|
|
{{ title }} |
|
|
|
|
|
|
|
|
Digital Office Automation System |
|
|
</h1> |
|
|
</h1> |
|
|
</router-link> |
|
|
</router-link> |
|
|
</transition> |
|
|
</transition> |
|
|
|
|
|
|
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import logoImg from '@/assets/logo/logo.png' |
|
|
|
|
|
import variables from '@/assets/styles/variables.scss' |
|
|
|
|
|
|
|
|
import logoImg from "@/assets/logo/logo.png"; |
|
|
|
|
|
import variables from "@/assets/styles/variables.scss"; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
name: 'SidebarLogo', |
|
|
|
|
|
|
|
|
name: "SidebarLogo", |
|
|
props: { |
|
|
props: { |
|
|
collapse: { |
|
|
collapse: { |
|
|
type: Boolean, |
|
|
type: Boolean, |
|
|
required: true |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
required: true, |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
title: 'zhushi', |
|
|
|
|
|
logo: logoImg |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
title: "Digital", |
|
|
|
|
|
logo: logoImg, |
|
|
|
|
|
}; |
|
|
}, |
|
|
}, |
|
|
computed: { |
|
|
computed: { |
|
|
variables() { |
|
|
variables() { |
|
|
return variables |
|
|
|
|
|
|
|
|
return variables; |
|
|
}, |
|
|
}, |
|
|
sideTheme() { |
|
|
sideTheme() { |
|
|
return this.$store.state.settings.sideTheme |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
return this.$store.state.settings.sideTheme; |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
}; |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
<style lang="scss" scoped> |
|
|
|
|
|
|
|
|
display: inline-block; |
|
|
display: inline-block; |
|
|
margin: 0; |
|
|
margin: 0; |
|
|
color: #fff; |
|
|
color: #fff; |
|
|
font-weight: 600; |
|
|
|
|
|
|
|
|
font-weight: 400; |
|
|
line-height: 50px; |
|
|
line-height: 50px; |
|
|
font-size: 14px; |
|
|
font-size: 14px; |
|
|
font-family: Avenir, Helvetica Neue, Arial, Helvetica, sans-serif; |
|
|
|
|
|
vertical-align: middle; |
|
|
vertical-align: middle; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |