Merge branch 'master' of https://gitee.com/ant-bear/cqyt-emergency-screen
This commit is contained in:
|
Before Width: | Height: | Size: 469 B After Width: | Height: | Size: 469 B |
@@ -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">更多></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;
|
||||||
|
|||||||
Reference in New Issue
Block a user