丰都大屏标题搞定

This commit is contained in:
aixianling
2023-10-12 18:17:46 +08:00
parent 6b7ff8e58c
commit ab92982e71
6 changed files with 53 additions and 86 deletions

View File

@@ -1,7 +1,7 @@
<template>
<section class="AiDvWrapper" :class="'AiDvWrapper' + theme">
<dv-full-screen-container>
<div class="viewPanel column" flex :style="{backgroundImage:`url('${background}')`}">
<div class="viewPanel column" flex :style="{backgroundImage}">
<slot v-if="$scopedSlots.head" name="head" v-bind="{...$props,...$data}"/>
<component v-else :is="headerComponent" v-bind="{...$props,...$data}" v-model="active"
@fullscreen="handleFullScreen" @setting="e=>dialog=e"
@@ -62,7 +62,8 @@ export default {
headerComponent: v => ({
classic: Classic,
black: Primary,
}[v.type])
}[v.type]),
backgroundImage: v => v.background ? `url(${v.background})` : undefined
},
watch: {
title: {