Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ant-design-pro-vue
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tianzhuanghu
ant-design-pro-vue
Commits
73bcc2cd
Unverified
Commit
73bcc2cd
authored
Feb 25, 2019
by
Sendya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: svg compoent
parent
79972472
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
+11
-4
logo.svg
src/assets/logo.svg
+1
-1
GlobalLayout.vue
src/components/page/GlobalLayout.vue
+2
-2
Logo.vue
src/components/tools/Logo.vue
+8
-1
No files found.
src/assets/logo.svg
View file @
73bcc2cd
<?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 -->
<title>
Vue
</title>
<desc>
Created with Sketch.
</desc>
...
...
src/components/page/GlobalLayout.vue
View file @
73bcc2cd
...
...
@@ -507,12 +507,12 @@ export default {
background
:
#002140
;
overflow
:
hidden
;
img,
h1
{
img,
svg,
h1
{
display
:
inline-block
;
vertical-align
:
middle
;
}
img
{
img
,
svg
{
height
:
32px
;
}
...
...
src/components/tools/Logo.vue
View file @
73bcc2cd
<
template
>
<div
class=
"logo"
>
<router-link
:to=
"
{name:'dashboard'}">
<
img
src=
"~@/assets/logo.svg"
alt=
"logo"
>
<
LogoSvg
alt=
"logo"
/
>
<h1
v-if=
"showTitle"
>
{{
title
}}
</h1>
</router-link>
</div>
</
template
>
<
script
>
import
LogoSvg
from
'@/assets/logo.svg'
console
.
log
(
LogoSvg
)
export
default
{
name
:
'Logo'
,
components
:
{
LogoSvg
},
props
:
{
title
:
{
type
:
String
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment