mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-05-10 00:44:04 +08:00
💄 背景色同步
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user