ant-design/2a22c089-async.549857fa.js
2024-11-20 18:30:54 +00:00

1 line
14 KiB
JavaScript

(("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd=("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd||[]).push([["2a22c089"],{"2a22c089":function(a,e,d){"use strict";d.d(e,"__esModule",{value:!0}),d.d(e,"texts",{enumerable:!0,get:function(){return I;}}),d("93695f17");let I=[{value:"When you need to display pictures.",paraId:0,tocIndex:0},{value:"Display when loading a large image or fault tolerant handling when loading fail.",paraId:0,tocIndex:0},{value:"Common props ref\uFF1A",paraId:1,tocIndex:16},{value:"Common props",paraId:2,tocIndex:16},{value:"Property",paraId:3,tocIndex:17},{value:"Description",paraId:3,tocIndex:17},{value:"Type",paraId:3,tocIndex:17},{value:"Default",paraId:3,tocIndex:17},{value:"Version",paraId:3,tocIndex:17},{value:"alt",paraId:3,tocIndex:17},{value:"Image description",paraId:3,tocIndex:17},{value:"string",paraId:3,tocIndex:17},{value:"-",paraId:3,tocIndex:17},{value:"4.6.0",paraId:3,tocIndex:17},{value:"fallback",paraId:3,tocIndex:17},{value:"Load failure fault-tolerant src",paraId:3,tocIndex:17},{value:"string",paraId:3,tocIndex:17},{value:"-",paraId:3,tocIndex:17},{value:"4.6.0",paraId:3,tocIndex:17},{value:"height",paraId:3,tocIndex:17},{value:"Image height",paraId:3,tocIndex:17},{value:"string | number",paraId:3,tocIndex:17},{value:"-",paraId:3,tocIndex:17},{value:"4.6.0",paraId:3,tocIndex:17},{value:"placeholder",paraId:3,tocIndex:17},{value:"Load placeholder, use default placeholder when set ",paraId:3,tocIndex:17},{value:"true",paraId:3,tocIndex:17},{value:"ReactNode",paraId:3,tocIndex:17},{value:"-",paraId:3,tocIndex:17},{value:"4.6.0",paraId:3,tocIndex:17},{value:"preview",paraId:3,tocIndex:17},{value:"preview config, disabled when ",paraId:3,tocIndex:17},{value:"false",paraId:3,tocIndex:17},{value:"boolean | ",paraId:3,tocIndex:17},{value:"PreviewType",paraId:4,tocIndex:17},{value:"true",paraId:3,tocIndex:17},{value:"4.6.0 ",paraId:3,tocIndex:17},{value:"PreviewType",paraId:5,tocIndex:17},{value:":4.7.0",paraId:3,tocIndex:17},{value:"src",paraId:3,tocIndex:17},{value:"Image path",paraId:3,tocIndex:17},{value:"string",paraId:3,tocIndex:17},{value:"-",paraId:3,tocIndex:17},{value:"4.6.0",paraId:3,tocIndex:17},{value:"width",paraId:3,tocIndex:17},{value:"Image width",paraId:3,tocIndex:17},{value:"string | number",paraId:3,tocIndex:17},{value:"-",paraId:3,tocIndex:17},{value:"4.6.0",paraId:3,tocIndex:17},{value:"onError",paraId:3,tocIndex:17},{value:"Load failed callback",paraId:3,tocIndex:17},{value:"(event: Event) => void",paraId:3,tocIndex:17},{value:"-",paraId:3,tocIndex:17},{value:"4.12.0",paraId:3,tocIndex:17},{value:"Other attributes ",paraId:6,tocIndex:17},{value:"<img>",paraId:6,tocIndex:17},{value:"Property",paraId:7,tocIndex:18},{value:"Description",paraId:7,tocIndex:18},{value:"Type",paraId:7,tocIndex:18},{value:"Default",paraId:7,tocIndex:18},{value:"Version",paraId:7,tocIndex:18},{value:"visible",paraId:7,tocIndex:18},{value:"Whether the preview dialog is visible or not",paraId:7,tocIndex:18},{value:"boolean",paraId:7,tocIndex:18},{value:"-",paraId:7,tocIndex:18},{value:"-",paraId:7,tocIndex:18},{value:"src",paraId:7,tocIndex:18},{value:"Custom preview src",paraId:7,tocIndex:18},{value:"string",paraId:7,tocIndex:18},{value:"-",paraId:7,tocIndex:18},{value:"4.10.0",paraId:7,tocIndex:18},{value:"getContainer",paraId:7,tocIndex:18},{value:"The mounted node for preview dialog but still display at fullScreen",paraId:7,tocIndex:18},{value:"string | HTMLElement | (() => HTMLElement) | false",paraId:7,tocIndex:18},{value:"-",paraId:7,tocIndex:18},{value:"4.8.0",paraId:7,tocIndex:18},{value:"movable",paraId:7,tocIndex:18},{value:"whether can be moved",paraId:7,tocIndex:18},{value:"boolean",paraId:7,tocIndex:18},{value:"true",paraId:7,tocIndex:18},{value:"5.8.0",paraId:7,tocIndex:18},{value:"mask",paraId:7,tocIndex:18},{value:"Thumbnail mask",paraId:7,tocIndex:18},{value:"ReactNode",paraId:7,tocIndex:18},{value:"-",paraId:7,tocIndex:18},{value:"4.9.0",paraId:7,tocIndex:18},{value:"maskClassName",paraId:7,tocIndex:18},{value:"The className of the mask",paraId:7,tocIndex:18},{value:"string",paraId:7,tocIndex:18},{value:"-",paraId:7,tocIndex:18},{value:"4.11.0",paraId:7,tocIndex:18},{value:"rootClassName",paraId:7,tocIndex:18},{value:"The classname of the preview root DOM",paraId:7,tocIndex:18},{value:"string",paraId:7,tocIndex:18},{value:"-",paraId:7,tocIndex:18},{value:"5.4.0",paraId:7,tocIndex:18},{value:"scaleStep",paraId:7,tocIndex:18},{value:"1 + scaleStep",paraId:7,tocIndex:18},{value:" is the step to increase or decrease the scale",paraId:7,tocIndex:18},{value:"number",paraId:7,tocIndex:18},{value:"0.5",paraId:7,tocIndex:18},{value:"-",paraId:7,tocIndex:18},{value:"minScale",paraId:7,tocIndex:18},{value:"Min scale",paraId:7,tocIndex:18},{value:"number",paraId:7,tocIndex:18},{value:"1",paraId:7,tocIndex:18},{value:"5.7.0",paraId:7,tocIndex:18},{value:"maxScale",paraId:7,tocIndex:18},{value:"Max scale",paraId:7,tocIndex:18},{value:"number",paraId:7,tocIndex:18},{value:"50",paraId:7,tocIndex:18},{value:"5.7.0",paraId:7,tocIndex:18},{value:"closeIcon",paraId:7,tocIndex:18},{value:"Custom close icon",paraId:7,tocIndex:18},{value:"React.ReactNode",paraId:7,tocIndex:18},{value:"-",paraId:7,tocIndex:18},{value:"5.7.0",paraId:7,tocIndex:18},{value:"forceRender",paraId:7,tocIndex:18},{value:"Force render preview dialog",paraId:7,tocIndex:18},{value:"boolean",paraId:7,tocIndex:18},{value:"-",paraId:7,tocIndex:18},{value:"-",paraId:7,tocIndex:18},{value:"toolbarRender",paraId:7,tocIndex:18},{value:"Custom toolbar render",paraId:7,tocIndex:18},{value:"(originalNode: React.ReactElement, info: Omit<",paraId:7,tocIndex:18},{value:"ToolbarRenderInfoType",paraId:8,tocIndex:18},{value:", 'current' | 'total'>) => React.ReactNode",paraId:7,tocIndex:18},{value:"-",paraId:7,tocIndex:18},{value:"5.7.0, ",paraId:7,tocIndex:18},{value:"info.image",paraId:7,tocIndex:18},{value:": 5.18.0",paraId:7,tocIndex:18},{value:"imageRender",paraId:7,tocIndex:18},{value:"Custom preview content",paraId:7,tocIndex:18},{value:"(originalNode: React.ReactElement, info: { transform: ",paraId:7,tocIndex:18},{value:"TransformType",paraId:9,tocIndex:18},{value:", image: ",paraId:7,tocIndex:18},{value:"ImgInfo",paraId:10,tocIndex:18},{value:" }) => React.ReactNode",paraId:7,tocIndex:18},{value:"-",paraId:7,tocIndex:18},{value:"5.7.0, image: 5.18.0",paraId:7,tocIndex:18},{value:"destroyOnClose",paraId:7,tocIndex:18},{value:"Destroy child elements when closing preview",paraId:7,tocIndex:18},{value:"boolean",paraId:7,tocIndex:18},{value:"false",paraId:7,tocIndex:18},{value:"onTransform",paraId:7,tocIndex:18},{value:"Callback when the transform of image changed",paraId:7,tocIndex:18},{value:"{ transform: ",paraId:7,tocIndex:18},{value:"TransformType",paraId:11,tocIndex:18},{value:", action: ",paraId:7,tocIndex:18},{value:"TransformAction",paraId:12,tocIndex:18},{value:" }",paraId:7,tocIndex:18},{value:"-",paraId:7,tocIndex:18},{value:"5.7.0",paraId:7,tocIndex:18},{value:"onVisibleChange",paraId:7,tocIndex:18},{value:"Callback when ",paraId:7,tocIndex:18},{value:"visible",paraId:7,tocIndex:18},{value:" changed",paraId:7,tocIndex:18},{value:"(visible: boolean, prevVisible: boolean) => void",paraId:7,tocIndex:18},{value:"-",paraId:7,tocIndex:18},{value:"-",paraId:7,tocIndex:18},{value:"Property",paraId:13,tocIndex:19},{value:"Description",paraId:13,tocIndex:19},{value:"Type",paraId:13,tocIndex:19},{value:"Default",paraId:13,tocIndex:19},{value:"Version",paraId:13,tocIndex:19},{value:"preview",paraId:13,tocIndex:19},{value:"Preview config, ",paraId:13,tocIndex:19},{value:"disabled",paraId:13,tocIndex:19},{value:" when false",paraId:13,tocIndex:19},{value:"boolean | ",paraId:13,tocIndex:19},{value:"PreviewGroupType",paraId:14,tocIndex:19},{value:"true",paraId:13,tocIndex:19},{value:"4.6.0 ",paraId:13,tocIndex:19},{value:"PreviewGroupType",paraId:15,tocIndex:19},{value:":4.7.0",paraId:13,tocIndex:19},{value:"items",paraId:13,tocIndex:19},{value:"Preview items",paraId:13,tocIndex:19},{value:"string[] | { src: string, crossOrigin: string, ... }[]",paraId:13,tocIndex:19},{value:"-",paraId:13,tocIndex:19},{value:"5.7.0",paraId:13,tocIndex:19},{value:"fallback",paraId:13,tocIndex:19},{value:"Load failure fault-tolerant src",paraId:13,tocIndex:19},{value:"string",paraId:13,tocIndex:19},{value:"-",paraId:13,tocIndex:19},{value:"5.7.0",paraId:13,tocIndex:19},{value:"Property",paraId:16,tocIndex:20},{value:"Description",paraId:16,tocIndex:20},{value:"Type",paraId:16,tocIndex:20},{value:"Default",paraId:16,tocIndex:20},{value:"Version",paraId:16,tocIndex:20},{value:"visible",paraId:16,tocIndex:20},{value:"Whether the preview dialog is visible or not",paraId:16,tocIndex:20},{value:"boolean",paraId:16,tocIndex:20},{value:"-",paraId:16,tocIndex:20},{value:"-",paraId:16,tocIndex:20},{value:"getContainer",paraId:16,tocIndex:20},{value:"The mounted node for preview dialog but still display at fullScreen",paraId:16,tocIndex:20},{value:"string | HTMLElement | (() => HTMLElement) | false",paraId:16,tocIndex:20},{value:"-",paraId:16,tocIndex:20},{value:"4.8.0",paraId:16,tocIndex:20},{value:"movable",paraId:16,tocIndex:20},{value:"whether can be moved",paraId:16,tocIndex:20},{value:"boolean",paraId:16,tocIndex:20},{value:"true",paraId:16,tocIndex:20},{value:"5.8.0",paraId:16,tocIndex:20},{value:"current",paraId:16,tocIndex:20},{value:"The index of the current preview",paraId:16,tocIndex:20},{value:"number",paraId:16,tocIndex:20},{value:"-",paraId:16,tocIndex:20},{value:"4.12.0",paraId:16,tocIndex:20},{value:"mask",paraId:16,tocIndex:20},{value:"Thumbnail mask",paraId:16,tocIndex:20},{value:"ReactNode",paraId:16,tocIndex:20},{value:"-",paraId:16,tocIndex:20},{value:"4.9.0",paraId:16,tocIndex:20},{value:"maskClassName",paraId:16,tocIndex:20},{value:"The className of the mask",paraId:16,tocIndex:20},{value:"string",paraId:16,tocIndex:20},{value:"-",paraId:16,tocIndex:20},{value:"4.11.0",paraId:16,tocIndex:20},{value:"rootClassName",paraId:16,tocIndex:20},{value:"The classname of the preview root DOM",paraId:16,tocIndex:20},{value:"string",paraId:16,tocIndex:20},{value:"-",paraId:16,tocIndex:20},{value:"5.4.0",paraId:16,tocIndex:20},{value:"scaleStep",paraId:16,tocIndex:20},{value:"1 + scaleStep",paraId:16,tocIndex:20},{value:" is the step to increase or decrease the scale",paraId:16,tocIndex:20},{value:"number",paraId:16,tocIndex:20},{value:"0.5",paraId:16,tocIndex:20},{value:"-",paraId:16,tocIndex:20},{value:"minScale",paraId:16,tocIndex:20},{value:"Min scale",paraId:16,tocIndex:20},{value:"number",paraId:16,tocIndex:20},{value:"1",paraId:16,tocIndex:20},{value:"5.7.0",paraId:16,tocIndex:20},{value:"maxScale",paraId:16,tocIndex:20},{value:"Max scale",paraId:16,tocIndex:20},{value:"number",paraId:16,tocIndex:20},{value:"50",paraId:16,tocIndex:20},{value:"5.7.0",paraId:16,tocIndex:20},{value:"closeIcon",paraId:16,tocIndex:20},{value:"Custom close icon",paraId:16,tocIndex:20},{value:"React.ReactNode",paraId:16,tocIndex:20},{value:"-",paraId:16,tocIndex:20},{value:"5.7.0",paraId:16,tocIndex:20},{value:"forceRender",paraId:16,tocIndex:20},{value:"Force render preview dialog",paraId:16,tocIndex:20},{value:"boolean",paraId:16,tocIndex:20},{value:"-",paraId:16,tocIndex:20},{value:"-",paraId:16,tocIndex:20},{value:"countRender",paraId:16,tocIndex:20},{value:"Custom preview count content",paraId:16,tocIndex:20},{value:"(current: number, total: number) => React.ReactNode",paraId:16,tocIndex:20},{value:"-",paraId:16,tocIndex:20},{value:"4.20.0",paraId:16,tocIndex:20},{value:"toolbarRender",paraId:16,tocIndex:20},{value:"Custom toolbar render",paraId:16,tocIndex:20},{value:"(originalNode: React.ReactElement, info: ",paraId:16,tocIndex:20},{value:"ToolbarRenderInfoType",paraId:17,tocIndex:20},{value:") => React.ReactNode",paraId:16,tocIndex:20},{value:"-",paraId:16,tocIndex:20},{value:"5.7.0, ",paraId:16,tocIndex:20},{value:"info.image",paraId:16,tocIndex:20},{value:": 5.18.0",paraId:16,tocIndex:20},{value:"imageRender",paraId:16,tocIndex:20},{value:"Custom preview content",paraId:16,tocIndex:20},{value:"(originalNode: React.ReactElement, info: { transform: ",paraId:16,tocIndex:20},{value:"TransformType",paraId:18,tocIndex:20},{value:", image: ",paraId:16,tocIndex:20},{value:"ImgInfo",paraId:19,tocIndex:20},{value:", current: number }) => React.ReactNode",paraId:16,tocIndex:20},{value:"-",paraId:16,tocIndex:20},{value:"5.7.0, image: 5.18.0",paraId:16,tocIndex:20},{value:"onTransform",paraId:16,tocIndex:20},{value:"Callback when the transform of image changed",paraId:16,tocIndex:20},{value:"{ transform: ",paraId:16,tocIndex:20},{value:"TransformType",paraId:20,tocIndex:20},{value:", action: ",paraId:16,tocIndex:20},{value:"TransformAction",paraId:21,tocIndex:20},{value:" }",paraId:16,tocIndex:20},{value:"-",paraId:16,tocIndex:20},{value:"5.7.0",paraId:16,tocIndex:20},{value:"onChange",paraId:16,tocIndex:20},{value:"Callback when switch preview image",paraId:16,tocIndex:20},{value:"(current: number, prevCurrent: number) => void",paraId:16,tocIndex:20},{value:"-",paraId:16,tocIndex:20},{value:"5.3.0",paraId:16,tocIndex:20},{value:"onVisibleChange",paraId:16,tocIndex:20},{value:"Callback when ",paraId:16,tocIndex:20},{value:"visible",paraId:16,tocIndex:20},{value:" changed",paraId:16,tocIndex:20},{value:"(visible: boolean, prevVisible: boolean, current: number) => void",paraId:16,tocIndex:20},{value:"-",paraId:16,tocIndex:20},{value:"current Property 5.3.0",paraId:16,tocIndex:20},{value:"{\n x: number;\n y: number;\n rotate: number;\n scale: number;\n flipX: boolean;\n flipY: boolean;\n}\n",paraId:22,tocIndex:22},{value:"type TransformAction =\n | 'flipY'\n | 'flipX'\n | 'rotateLeft'\n | 'rotateRight'\n | 'zoomIn'\n | 'zoomOut'\n | 'close'\n | 'prev'\n | 'next'\n | 'wheel'\n | 'doubleClick'\n | 'move'\n | 'dragRebound';\n",paraId:23,tocIndex:23},{value:"{\n icons: {\n flipYIcon: React.ReactNode;\n flipXIcon: React.ReactNode;\n rotateLeftIcon: React.ReactNode;\n rotateRightIcon: React.ReactNode;\n zoomOutIcon: React.ReactNode;\n zoomInIcon: React.ReactNode;\n };\n actions: {\n onActive?: (index: number) => void; // support after 5.21.0\n onFlipY: () => void;\n onFlipX: () => void;\n onRotateLeft: () => void;\n onRotateRight: () => void;\n onZoomOut: () => void;\n onZoomIn: () => void;\n onReset: () => void; // support after 5.17.3\n onClose: () => void;\n };\n transform: TransformType,\n current: number;\n image: ImgInfo\n}\n",paraId:24,tocIndex:24},{value:"{\n url: string;\n alt: string;\n width: string | number;\n height: string | number;\n}\n",paraId:25,tocIndex:25}];}}]);