ant-design-vue/site/components/geektime.vue

42 lines
799 B
Vue
Raw Normal View History

2019-03-18 17:09:41 +08:00
<template>
2019-09-28 20:45:07 +08:00
<div v-show="visible" id="geektime">
2019-03-18 17:09:41 +08:00
<a
2019-03-18 17:27:45 +08:00
href="https://time.geekbang.org/course/intro/163?code=KHKYcoBU6vZa8nMglg7AWfDxxi3BWrz9INAzAY3umPk%3D"
2019-03-18 17:09:41 +08:00
target="_blank"
>
2019-09-28 20:45:07 +08:00
<img width="170" alt="Vue 实战教程" src="https://qn.antdv.com/geektime-vue.jpeg" />
2019-03-18 17:09:41 +08:00
</a>
2019-09-28 20:45:07 +08:00
<div v-if="isMobile" class="close" @click="visible = false">
2019-08-04 21:14:08 +08:00
<a-icon type="close" />
2019-07-04 18:28:27 +08:00
</div>
</div>
2019-03-18 17:09:41 +08:00
</template>
<script>
export default {
2019-07-04 18:28:27 +08:00
props: ['isMobile'],
data() {
return {
2019-08-04 21:14:08 +08:00
visible: true,
};
},
2019-03-18 17:09:41 +08:00
};
</script>
2019-07-04 18:28:27 +08:00
<style lang="less" scoped>
2019-09-28 20:45:07 +08:00
#geektime {
position: fixed;
bottom: 15px;
right: 15px;
.close {
position: absolute;
text-align: center;
top: -8px;
right: -8px;
font-size: 16px;
padding: 15px;
color: #6e3041;
2019-03-18 17:09:41 +08:00
}
2019-09-28 20:45:07 +08:00
}
2019-03-18 17:09:41 +08:00
</style>