Unverified Commit 73bcc2cd by Sendya

fix: svg compoent

parent 79972472
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<svg width="128px" height="128px" viewBox="0 0 128 128" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <svg viewBox="0 0 128 128" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 52.6 (67491) - http://www.bohemiancoding.com/sketch --> <!-- Generator: Sketch 52.6 (67491) - http://www.bohemiancoding.com/sketch -->
<title>Vue</title> <title>Vue</title>
<desc>Created with Sketch.</desc> <desc>Created with Sketch.</desc>
......
...@@ -507,12 +507,12 @@ export default { ...@@ -507,12 +507,12 @@ export default {
background: #002140; background: #002140;
overflow: hidden; overflow: hidden;
img, h1 { img, svg, h1 {
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
} }
img { img, svg {
height: 32px; height: 32px;
} }
......
<template> <template>
<div class="logo"> <div class="logo">
<router-link :to="{name:'dashboard'}"> <router-link :to="{name:'dashboard'}">
<img src="~@/assets/logo.svg" alt="logo"> <LogoSvg alt="logo" />
<h1 v-if="showTitle">{{ title }}</h1> <h1 v-if="showTitle">{{ title }}</h1>
</router-link> </router-link>
</div> </div>
</template> </template>
<script> <script>
import LogoSvg from '@/assets/logo.svg'
console.log(LogoSvg)
export default { export default {
name: 'Logo', name: 'Logo',
components: {
LogoSvg
},
props: { props: {
title: { title: {
type: String, type: String,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment