优化发布群配置与二维码池界面
This commit is contained in:
@@ -34,6 +34,10 @@ const createdURLs: string[] = []
|
||||
|
||||
const usePreview = computed(() => !!props.previewSrcList?.length)
|
||||
const fallbackText = computed(() => (failed.value ? '图片加载失败' : '图片加载中'))
|
||||
const imageStyleValue = computed(() => {
|
||||
if (!props.fit) return props.imageStyle
|
||||
return [props.imageStyle, { objectFit: props.fit }]
|
||||
})
|
||||
|
||||
function extractObjectKey(value: string) {
|
||||
try {
|
||||
@@ -105,6 +109,7 @@ onBeforeUnmount(cleanup)
|
||||
v-else-if="imageURL"
|
||||
:class="imageClass"
|
||||
:src="imageURL"
|
||||
:style="imageStyleValue"
|
||||
:alt="alt"
|
||||
:loading="loading"
|
||||
:decoding="decoding"
|
||||
|
||||
Reference in New Issue
Block a user