From e12580bedb47059988b07a842565a6cb33d8398a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=91=E9=9B=A8?= Date: Wed, 23 Nov 2022 00:02:21 +0800 Subject: [PATCH] dcos: update Tour api doc (#38877) --- components/tour/index.en-US.md | 3 +++ components/tour/index.zh-CN.md | 3 +++ 2 files changed, 6 insertions(+) diff --git a/components/tour/index.en-US.md b/components/tour/index.en-US.md index 98fcbb888b..0e4ea44940 100644 --- a/components/tour/index.en-US.md +++ b/components/tour/index.en-US.md @@ -32,6 +32,9 @@ Use when you want to guide users through a product. | onClose | Callback function on shutdown | `Function` | - | | | mask | Whether to enable masking | `boolean` | `true` | | | type | Type, affects the background color and text color | `default` `primary` | `default` | | +| open | Open tour | `boolean` | - | | +| onChange | Callback when the step changes. Current is the previous step | `(current: number) => void` | - | | +| current | What is the current step | `number` | - | | ### TourStep diff --git a/components/tour/index.zh-CN.md b/components/tour/index.zh-CN.md index 80021507c1..bc6592f537 100644 --- a/components/tour/index.zh-CN.md +++ b/components/tour/index.zh-CN.md @@ -34,6 +34,9 @@ demo: | onFinish | 引导完成时的回调 | `Function` | - | | | mask | 是否启用蒙层 | `boolean` | `true` | | | type | 类型,影响底色与文字颜色 | `default` \| `primary` | `default` | | +| open | 打开引导 | `boolean` | - | | +| onChange | 步骤改变时的回调,current 为当前前的步骤 | `(current: number) => void` | - | | +| current | 当前处于哪一步 | `number` | - | | ### TourStep 引导步骤卡片