1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <script setup name="IndexTitle">
- import { ArrowRight } from '@element-plus/icons-vue'
- const Props = defineProps({
- title: {
- type: String,
- default: '默认标题'
- }
- })
- const Emits = defineEmits(['seeMore'])
- </script>
- <template>
- <div class="index-title-container flex-row flex-aic flex-jc-sb">
- <div class="title">{{ title }}</div>
- <div class="more flex-row flex-aic" @click="seeMore && seeMore()">
- <span>查看更多</span>
- <el-icon class="icon" :size="12">
- <ArrowRight />
- </el-icon>
- </div>
- </div>
- </template>
- <style lang="scss" scoped>
- @import "~/styles/variable.scss";
- .index-title-container {
- padding-left: 16px;
- border-left: 4px solid $color-primary;
- .title {
- font-size: 18px;
- font-weight: 600;
- color: #333333;
- line-height: 2em;
- }
- .more {
- cursor: pointer;
- font-size: 14px;
- font-weight: 400;
- color: #57C3C2;
- color: $color-primary;
- span {
- display: inline-block;
- margin-right: 6px;
- }
- .icon {
- border-radius: 50%;
- border: 1px solid $color-primary;
- }
- }
- }
- </style>
|