mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(components): [image-viewer] Fix crossorigin (#15511)
* fix(components): [image-viewer] Fix crossorigin closed #15468 * fix(components): update
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user