cli3改版基本完成
Former-commit-id: 637e58a7d3aef389a4ea51c179aaee17f421f34c [formerly 637e58a7d3aef389a4ea51c179aaee17f421f34c [formerly 637e58a7d3aef389a4ea51c179aaee17f421f34c [formerly 637e58a7d3aef389a4ea51c179aaee17f421f34c [formerly fc66dcb2e437ff46b2c36ec1e3bcce71a6461250 [formerly b6451dc60d4c1e6006a9fcd380656d2023436e64]]]]] Former-commit-id: c791410cda91e2df1b9808bfb032f0d3d68106ef Former-commit-id: 0c5197800cfae6f27f7ab792c887fb25a73a23e0 Former-commit-id: 208a8e77c0fada6e9d191a7d495615ec2ef9704d [formerly af8c1367ed65b626196ac156c8521257cc804d60] Former-commit-id: 1fdb571cea6ed9dba9ea02f4ba6ebfb5d89e1b2f Former-commit-id: 774a145ae0694612edf988d9992ef797ddf4f21d Former-commit-id: 03fc24d70365836d60360aa24e24dc7cb4520b91 Former-commit-id: bba4fd5552fa42da029fd6b310f5ee48558d5508 Former-commit-id: 2de81d34fb07248965677e8a3866c13089fa95e7
This commit is contained in:
32
src/components/demo/d2-demo-link-btn/index.vue
Normal file
32
src/components/demo/d2-demo-link-btn/index.vue
Normal file
@@ -0,0 +1,32 @@
|
||||
<template>
|
||||
<el-button-group>
|
||||
<el-button v-if="title" size="mini" @click="$open(link)">{{title}}</el-button>
|
||||
<el-button size="mini" @click="$open(link)">
|
||||
<d2-icon :name="icon"/>
|
||||
{{link}}
|
||||
</el-button>
|
||||
</el-button-group>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'd2-demo-link-btn',
|
||||
props: {
|
||||
title: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: ''
|
||||
},
|
||||
icon: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: 'link'
|
||||
},
|
||||
link: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: 'https://github.com/d2-projects'
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1 @@
|
||||
2b9bebf72405eb8d4f1e62a005d567b3fc94d072
|
||||
61
src/components/demo/d2-demo-page-cover/index.vue
Normal file
61
src/components/demo/d2-demo-page-cover/index.vue
Normal file
@@ -0,0 +1,61 @@
|
||||
<template>
|
||||
<div class="page-index-article-body">
|
||||
<div class="page-index-article-body__logo">
|
||||
<slot/>
|
||||
</div>
|
||||
<p class="page-index-article-body__title">{{title}}</p>
|
||||
<p class="page-index-article-body__sub-title d2-mt-0">{{subTitle}}</p>
|
||||
<a target="blank" href="https://github.com/d2-projects/d2-admin">
|
||||
<img
|
||||
style="position: absolute; top: 0; right: 0; border: 0; width: 130px;"
|
||||
src="./image/forkme@2x.png"
|
||||
alt="Fork me on GitHub">
|
||||
</a>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
title: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: 'Title'
|
||||
},
|
||||
subTitle: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: 'subTitle'
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import '~@/assets/style/public.scss';
|
||||
.page-index-article-header {
|
||||
overflow: hidden;
|
||||
.page-index-article-header__title {
|
||||
display: inline-block;
|
||||
padding: 12px 20px;
|
||||
}
|
||||
}
|
||||
.page-index-article-body {
|
||||
@extend %full;
|
||||
display: flex;
|
||||
flex-flow: column nowrap;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
.page-index-article-body__logo {
|
||||
img {
|
||||
width: 200px;
|
||||
}
|
||||
}
|
||||
.page-index-article-body__title {
|
||||
color: $color-text-main;
|
||||
}
|
||||
.page-index-article-body__sub-title {
|
||||
color: $color-text-sub;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
19
src/components/demo/d2-demo-page-header/index.vue
Normal file
19
src/components/demo/d2-demo-page-header/index.vue
Normal file
@@ -0,0 +1,19 @@
|
||||
<template>
|
||||
<div class="d2-clearfix">
|
||||
<span v-if="title" class="d2-fl">{{title}}</span>
|
||||
<span class="d2-fr"></span>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'd2-demo-page-header',
|
||||
props: {
|
||||
title: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: ''
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
7
src/components/demo/register.js
Normal file
7
src/components/demo/register.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import Vue from 'vue'
|
||||
|
||||
import d2DemoLinkBtn from '@/components/demo/d2-demo-link-btn'
|
||||
|
||||
Vue.component('d2-demo-link-btn', d2DemoLinkBtn)
|
||||
Vue.component('d2-demo-page-header', () => import('@/components/demo/d2-demo-page-header'))
|
||||
Vue.component('d2-demo-page-cover', () => import('@/components/demo/d2-demo-page-cover'))
|
||||
Reference in New Issue
Block a user