dcos: update Tour api doc (#38877)

This commit is contained in:
黑雨 2022-11-23 00:02:21 +08:00 committed by GitHub
parent 13e5451207
commit e12580bedb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -34,6 +34,9 @@ demo:
| onFinish | 引导完成时的回调 | `Function` | - | |
| mask | 是否启用蒙层 | `boolean` | `true` | |
| type | 类型,影响底色与文字颜色 | `default` \| `primary` | `default` | |
| open | 打开引导 | `boolean` | - | |
| onChange | 步骤改变时的回调current 为当前前的步骤 | `(current: number) => void` | - | |
| current | 当前处于哪一步 | `number` | - | |
### TourStep 引导步骤卡片