💄 背景色同步

This commit is contained in:
目棃
2025-04-01 14:29:31 +08:00
parent fce56dcf55
commit a1cd7ff840
3 changed files with 31 additions and 8 deletions

View File

@@ -25,6 +25,7 @@
v-model="showOverlay"
v-model:link="localUrl"
v-model:ori="showOri"
v-model:bgColor="bgColor"
/>
</template>
<script lang="ts" setup>
@@ -58,6 +59,7 @@ const showOri = ref<boolean>(
props.data.insert.image.endsWith(".gif") || imageQualityPercent.value === 100,
);
const localUrl = ref<string>();
const bgColor = ref<string>("transparent");
const imgWidth = computed<string>(() => {
if (props.data.attributes === undefined) return "auto";
@@ -117,6 +119,7 @@ function getImageTitle(): string {
height: auto;
border-radius: 4px;
cursor: pointer;
background: v-bind(bgColor);
}
.tp-image-load {