fix(components): [image-viewer] Fix crossorigin (#15511)

* fix(components): [image-viewer] Fix crossorigin

closed #15468

* fix(components): update
This commit is contained in:
kooriookami
2024-01-15 14:34:26 +08:00
committed by GitHub
parent fba3c2f2cb
commit f60db10134
3 changed files with 0 additions and 3 deletions

View File

@@ -83,7 +83,6 @@ export const imageViewerProps = buildProps({
*/
crossorigin: {
type: definePropType<'anonymous' | 'use-credentials' | ''>(String),
default: 'anonymous',
},
} as const)
export type ImageViewerProps = ExtractPropTypes<typeof imageViewerProps>

View File

@@ -127,7 +127,6 @@ const imgRefs = ref<HTMLImageElement[]>([])
const scopeEventListener = effectScope()
const loading = ref(true)
const crossorigin = ref<string>(props.crossorigin)
const activeIndex = ref(props.initialIndex)
const mode = shallowRef<ImageViewerMode>(modes.CONTAIN)
const transform = ref({

View File

@@ -85,7 +85,6 @@ const rawAttrs = useRawAttrs()
const attrs = useAttrs()
const imageSrc = ref<string | undefined>()
const crossorigin = ref(props.crossorigin)
const hasLoadError = ref(false)
const isLoading = ref(true)
const showViewer = ref(false)