<image-preview> Props 表现异常超出预期
anzhiyu-c opened this issue · comments
陈志伟 commented
- I'm sure this does not appear in the issue list of the repository
Basic Info
- Package Name And Version: arco-design-pro-vue@2.7.2
- Browser: chrome116.0.0.0
What is expected?
Props 文档中为所有的选项都是可选的,但是实际上defaultVisible、maskClosable、closable、actionsLayout是必选,并且大量参数没有被支持,例如default-scale、wheel-zoom等,应该是由于 TS中没有定义对应的类型造成
Steps to reproduce
<a-image
width="110"
:src="
`${record.link}`
'?x-oss-process=image/resize,s_110/quality,q_80/auto-orient,0/interlace,1/format,webp'
"
:preview-props="{
src: record.link,
defaultVisible: false,
maskClosable: true,
closable: true,
actionsLayout: [
'fullScreen',
'rotateRight',
'rotateLeft',
'zoomIn',
'zoomOut',
'originalSize',
],
}"
/>