1.修改公共头部
This commit is contained in:
2023-11-24 16:10:50 +08:00
parent ee46164e93
commit e49a242dc1
2 changed files with 17 additions and 1 deletions

Before

Width:  |  Height:  |  Size: 469 B

After

Width:  |  Height:  |  Size: 469 B

+17 -1
View File
@@ -1,13 +1,27 @@
<template>
<div class="title-d">{{ props.title }}</div>
<div class="title-d">
<span>{{ props.title }}</span>
<div>
<span v-if="isShowMore" style="font-size: 14px;font-weight: 100;cursor: pointer;margin-right: 3px" @click="clickMore">更多&gt;</span>
<img src="../assets/img/point.png" alt="">
</div>
</div>
</template>
<script setup lang="ts">
const props = defineProps({
title: {
type: String,
default: () => ''
},
isShowMore: {
type: Boolean,
default: () => false
}
})
const emit = defineEmits(['clickMore'])
function clickMore() {
emit('clickMore')
}
</script>
<style scoped lang="less">
.title-d {
@@ -24,6 +38,8 @@ const props = defineProps({
color: #ffffff;
font-size: 20px;
font-weight: 700;
display: flex;
justify-content: space-between;
&:before {
position: absolute;