arco-design / arco-design-pro-vue

An out-of-the-box solution to quickly build enterprise-level applications based on Arco Design.

Home Page:https://pro.arco.design

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

<image-preview> Props 表现异常超出预期

anzhiyu-c opened this issue · comments

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',
          ],
        }"
      />