no message
Former-commit-id: 6b8025b5ce4737c3313e1e221a67cd5cdf163ee2 Former-commit-id: bf1484561576dfe0e1b1b6a5c9985920a9ba73af Former-commit-id: 0b1c298992fc6af645f293fc9dbfe5be65bf48f7
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
import Vue from 'vue'
|
||||
|
||||
import { GridLayout, GridItem } from 'vue-grid-layout'
|
||||
import SplitPane from 'vue-splitpane'
|
||||
|
||||
Vue.component('GridLayout', GridLayout)
|
||||
Vue.component('GridItem', GridItem)
|
||||
Vue.component('SplitPane', SplitPane)
|
||||
|
||||
Vue.component('d2-container', () => import('@/components/core/d2-container'))
|
||||
Vue.component('d2-count-up', () => import('@/components/core/d2-count-up'))
|
||||
Vue.component('d2-highlight', () => import('@/components/core/d2-highlight'))
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
<i18n src="./lang.json"></i18n>
|
||||
|
||||
<template>
|
||||
<el-tooltip :content="url" :placement="tooltipPlacement">
|
||||
<a :href="url" target="_blank" class="link">
|
||||
{{$t('label')}}
|
||||
<i class="fa fa-github"></i>
|
||||
</a>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
url: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: 'https://github.com/FairyEver'
|
||||
},
|
||||
tooltipPlacement: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: 'top-end'
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import '~@/assets/style/unit/_color.scss';
|
||||
.link {
|
||||
color: $color-primary;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
{
|
||||
"cn": {
|
||||
"label": "在 Github 查看"
|
||||
},
|
||||
"en": {
|
||||
"label": "View in Github"
|
||||
},
|
||||
"ja": {
|
||||
"label": "調べでGithub"
|
||||
}
|
||||
}
|
||||
@@ -1,58 +0,0 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-popover
|
||||
ref="pop"
|
||||
placement="top"
|
||||
width="160"
|
||||
v-model="popover.visible">
|
||||
<p class="d2-mt-0 d2-mb-10">
|
||||
<i class="fa fa-github"></i>
|
||||
github
|
||||
</p>
|
||||
<p class="d2-mt-0 d2-mb-10" style="font-size: 10px;">{{name}}</p>
|
||||
<div style="text-align: right; margin: 0">
|
||||
<el-button size="mini" type="text" @click="popover.visible = false">
|
||||
取消
|
||||
</el-button>
|
||||
<el-button type="primary" size="mini" @click="jump">
|
||||
确定
|
||||
</el-button>
|
||||
</div>
|
||||
</el-popover>
|
||||
<el-button
|
||||
v-popover:pop
|
||||
v-bind="$attrs">
|
||||
<i class="fa fa-github"></i>
|
||||
{{name}}
|
||||
</el-button>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
name: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: ''
|
||||
},
|
||||
url: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: 'https://github.com/FairyEver'
|
||||
}
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
popover: {
|
||||
visible: false
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
jump () {
|
||||
window.open(this.url)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -1,20 +1,13 @@
|
||||
<template>
|
||||
<div class="d2-clearfix">
|
||||
<span v-if="title" class="d2-fl">{{title}}</span>
|
||||
<span class="d2-fr">
|
||||
<GithubLink v-if="url" :url="url"></GithubLink>
|
||||
</span>
|
||||
<span class="d2-fr"></span>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
url: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: ''
|
||||
},
|
||||
title: {
|
||||
type: String,
|
||||
required: false,
|
||||
|
||||
@@ -1,11 +1,4 @@
|
||||
import Vue from 'vue'
|
||||
import {GridLayout, GridItem} from 'vue-grid-layout'
|
||||
import SplitPane from 'vue-splitpane'
|
||||
|
||||
Vue.component('GridLayout', GridLayout)
|
||||
Vue.component('GridItem', GridItem)
|
||||
Vue.component('SplitPane', SplitPane)
|
||||
Vue.component('GithubLink', resolve => { require(['@/components/demo/GithubLink'], resolve) })
|
||||
Vue.component('GithubLinkButton', resolve => { require(['@/components/demo/GithubLinkButton'], resolve) })
|
||||
Vue.component('PageHeader', resolve => { require(['@/components/demo/PageHeader'], resolve) })
|
||||
Vue.component('PageIndexArticle', resolve => { require(['@/components/demo/PageIndexArticle'], resolve) })
|
||||
Vue.component('PageHeader', () => import('@/components/demo/PageHeader'))
|
||||
Vue.component('PageIndexArticle', () => import('@/components/demo/PageIndexArticle'))
|
||||
|
||||
Reference in New Issue
Block a user