From 2d676fb528dcd01a1b4cb55e21b3e3cb68ca7c20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=81=8F=E5=8F=B3?= Date: Sat, 10 Oct 2020 15:26:05 +0800 Subject: [PATCH] docs: update Image API (#27071) * Update index.en-US.md * Update index.zh-CN.md --- components/image/index.en-US.md | 6 +++--- components/image/index.zh-CN.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/components/image/index.en-US.md b/components/image/index.en-US.md index 41bb46821c..a7e2794d05 100644 --- a/components/image/index.en-US.md +++ b/components/image/index.en-US.md @@ -27,10 +27,10 @@ Previewable image. ### previewType -``` +```js { - visible: boolean, - onVisibleChange:function(value, prevValue) + visible?: boolean; + onVisibleChange?: (visible, prevVisible) => void; } ``` diff --git a/components/image/index.zh-CN.md b/components/image/index.zh-CN.md index 9ac11f1ae8..063a9701ab 100644 --- a/components/image/index.zh-CN.md +++ b/components/image/index.zh-CN.md @@ -28,10 +28,10 @@ cover: https://gw.alipayobjects.com/zos/antfincdn/D1dXz9PZqa/image.svg ### previewType -``` +```js { - visible: boolean, - onVisibleChange:function(value, prevValue) + visible?: boolean; + onVisibleChange?: (visible, prevVisible) => void; } ```