feat( 工作报告组件): 新增more按钮功能
This commit is contained in:
parent
300ff00432
commit
3e1de889ea
@ -37,6 +37,7 @@
|
||||
v-if="more"
|
||||
class="moreBt"
|
||||
style="position: absolute; bottom: 8%; right: 4%; color: #bb92ff; font-weight: 500"
|
||||
@click="btMore"
|
||||
>
|
||||
More >
|
||||
</div>
|
||||
@ -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'
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user