no message
Former-commit-id: 43a8224a34f70bb4292c77196f4d98d18b58cb44 Former-commit-id: d154b16d0b3f214e55815c123b775681016c5a70 Former-commit-id: 22378774d55271fb76d5827ea0ffdfd1f2678831
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<el-tooltip :content="url" :placement="tooltipPlacement">
|
||||
<a :href="url" target="_blank">
|
||||
<a :href="url" target="_blank" class="link">
|
||||
View in Github
|
||||
<span class="fa fa-github"></span>
|
||||
</a>
|
||||
@@ -20,3 +20,10 @@ export default {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import '~@/assets/style/unit/_color.scss';
|
||||
.link {
|
||||
color: $color-primary;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
23
src/components/demo/PageHeader/index.vue
Normal file
23
src/components/demo/PageHeader/index.vue
Normal file
@@ -0,0 +1,23 @@
|
||||
<template>
|
||||
<div class="clearfix">
|
||||
<span class="fl">{{title}}</span>
|
||||
<span class="fr"><GithubLink :url="url"></GithubLink></span>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
url: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: ''
|
||||
},
|
||||
title: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: ''
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user