diff --git a/src/components/HostCenter/workReportBox.vue b/src/components/HostCenter/workReportBox.vue index a680f8d..7c8551f 100644 --- a/src/components/HostCenter/workReportBox.vue +++ b/src/components/HostCenter/workReportBox.vue @@ -37,6 +37,7 @@ v-if="more" class="moreBt" style="position: absolute; bottom: 8%; right: 4%; color: #bb92ff; font-weight: 500" + @click="btMore" > More > @@ -80,13 +81,18 @@ const props = defineProps({ }, }) +const emit = defineEmits(['showMore']) +const btMore = () => { + emit('showMore') +} + const backgroundImage = ref('') const fontSize = ref('') watch( () => props.type, (newType) => { - if (newType == 'In progress') { + if (newType == 'In Progress') { backgroundImage.value = 'linear-gradient(112deg, #759CFF 5.66%, #3D73FF 42.49%)' fontSize.value = '1.1em' }