This commit is contained in:
zhaotiantian
2023-11-24 16:11:46 +08:00
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> <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> </template>
<script setup lang="ts"> <script setup lang="ts">
const props = defineProps({ const props = defineProps({
title: { title: {
type: String, type: String,
default: () => '' default: () => ''
},
isShowMore: {
type: Boolean,
default: () => false
} }
}) })
const emit = defineEmits(['clickMore'])
function clickMore() {
emit('clickMore')
}
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
.title-d { .title-d {
@@ -24,6 +38,8 @@ const props = defineProps({
color: #ffffff; color: #ffffff;
font-size: 20px; font-size: 20px;
font-weight: 700; font-weight: 700;
display: flex;
justify-content: space-between;
&:before { &:before {
position: absolute; position: absolute;