update
1.修改公共头部
This commit is contained in:
|
Before Width: | Height: | Size: 469 B After Width: | Height: | Size: 469 B |
@@ -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">更多></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;
|
||||
|
||||
Reference in New Issue
Block a user