Elements

组件

图片查看器 Image Viewer

ImageViewer:图片查看器。图片显示在变暗的页面上,下方有小型工具栏。使用者可直接缩放,范围为 0.5 到 3 倍;旋转每次 90°,Escape 和 scrim 都能关闭,模态行为由 dialog 状态机处理。`open` 可以由调用方管理;未定义时由查看器自行维护。

#基础用法

image-viewer/basic Vue React
image-viewer/not-zoomable Vue React

#属性

#ImageViewer

属性类型默认值描述
srcString—
altString""—
openBooleanundefined—
zoomableBooleantrue—