在每个模块的首页显示链接列表
Former-commit-id: 6cab63bfcc9fbbb16740f86c293fec3996061006 [formerly 6cab63bfcc9fbbb16740f86c293fec3996061006 [formerly 6cab63bfcc9fbbb16740f86c293fec3996061006 [formerly 6cab63bfcc9fbbb16740f86c293fec3996061006 [formerly beab075483c86b86dcf8088652d47d10d17e791b [formerly aa0a4c06e6e6c365614a38137e570322db6356f5]]]]] Former-commit-id: e27ebca4c2bb81ef3930d2a2744b569e3ba0c47e Former-commit-id: 05ab8b935658496dbb83ebd1726fd7abdb85b4a5 Former-commit-id: 9fe99c61fd2c812e7ac86a65ef7a96fb77e2555a [formerly 8448054abcfec1aeb5d29b6b3ab9bb7994a0e5d3] Former-commit-id: c40b050f64112493e7ea738e8cac1b3ec32839d6 Former-commit-id: cdb02c46bc4ec0dd38a15c7682acbe4da3f4ffe2 Former-commit-id: 6e620c8a7bf1f4feae914af55a3d4e48f2527adc Former-commit-id: 46e4a65d456e1159c9bb5d4c34d4c171ea38c145 Former-commit-id: 90f1ebb055ffc14de13d90d00dc7bb14545c34c8
This commit is contained in:
88
src/components/d2-module-index-banner/index.vue
Normal file
88
src/components/d2-module-index-banner/index.vue
Normal file
@@ -0,0 +1,88 @@
|
||||
<template>
|
||||
<div
|
||||
class="banner"
|
||||
:class="{
|
||||
'with-link': link
|
||||
}"
|
||||
flex="dir:top main:center cross:top">
|
||||
<p class="banner--title">{{title}}</p>
|
||||
<p class="banner--sub-title">{{subTitle}}</p>
|
||||
<p v-if="link" class="banner--link" @click="handleLinkClick">
|
||||
<span class="banner--link-button">
|
||||
<d2-icon name="link"/>
|
||||
{{link}}
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
title: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
subTitle: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
link: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handleLinkClick () {
|
||||
this.$open(this.link)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.banner {
|
||||
.banner--title {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
margin-left: -8px;
|
||||
font-size: 120px;
|
||||
line-height: 120px;
|
||||
font-weight: bold;
|
||||
color: #FFF;
|
||||
}
|
||||
.banner--sub-title {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
font-size: 16px;
|
||||
color: #FFF;
|
||||
}
|
||||
.banner--link {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
margin-top: 10px;
|
||||
.banner--link-button {
|
||||
font-size: 12px;
|
||||
color: #FFF;
|
||||
padding: 4px 6px;
|
||||
border-radius: 2px;
|
||||
background-color: rgba(#000, .5);
|
||||
transition: all .3s;
|
||||
&:hover {
|
||||
background-color: rgba(#000, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
&.with-link {
|
||||
height: 220px;
|
||||
}
|
||||
@extend %unable-select;
|
||||
height: 180px;
|
||||
padding-left: 20px;
|
||||
border: 1px solid #0054b5;
|
||||
border-radius: 2px;
|
||||
background-color: #0077ff;
|
||||
background-size: 60px;
|
||||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23cef0ff' fill-opacity='0.4'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v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