Skip to content

Commit

Permalink
website: update example document.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed May 12, 2022
1 parent 8ddf0f6 commit 0f96f3c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 37 deletions.
19 changes: 0 additions & 19 deletions website/src/pages/example/App-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -460,22 +460,3 @@ class Demo extends React.Component {
}
export default Demo;
```

## Props

虽然类似于对 `<Modal>`,但 `<Alert>` 更具限制性,只应用于重要信息。此组件继承 [`<Modal>`](#/components/modal) 的属性,所以部分参数可以参考 `<Modal>` 组件。

| 参数 | 说明 | 类型 | 默认值 |
| ------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------- | ------- |
| onCancel | 取消按钮的回调函数 | Function(e) | - |
| onConfirm | 点击确定按钮回调 | Function(e) | - |
| cancelText | 取消按钮文字, | String | - |
| confirmText | 确认按钮文字 | String | `确认` |
| type | 按钮类型跟 `<Button>` 组件的 `type` 参数一致,同时会影响按钮颜色。 | String | `light` |
| icon[`<Modal>`](#/components/modal) | 设置对话框右上角图标,,设置 `type` 将图标设置不同的颜色。当前属性为 [`<Icon>`](#/components/icon) 组件的 `type` 属性,所以可以参考该组件自定义图标。 | String/ReactNode | - |
| title[`<Modal>`](#/components/modal) | 设置标题 | Function(e) | - |
| useButton[`<Modal>`](#/components/modal) | 是否使用默认按钮,如果设置 `false` 需要自定义按钮关闭 | Boolean | `true` |
| isOpen[`<Modal>`](#/components/modal) | 对话框是否可见 | Boolean | `false` |
| maskClosable[`<Modal>`](#/components/modal) | 点击遮罩层是否允许关闭 | boolean | `true` |

更多属性文档请参考 [Modal](#/components/modal)
18 changes: 0 additions & 18 deletions website/src/pages/example/App.md
Original file line number Diff line number Diff line change
Expand Up @@ -457,21 +457,3 @@ class Demo extends React.Component {
}
export default Demo;
```

## Props

Although similar to `<Modal>`, `<Alert>` is more restrictive and applies only to important information. This component inherits the properties of [`<Modal>`](#/components/modal), so some parameters can refer to the `<Modal>` component.
| parameter | explain | type | Default value |
| ------------------------------------------- | ----- | ---------------- | ------- |
| onCancel | Callback function of cancel button | Function(e) | - |
| onConfirm | Click OK to call back | Function(e) | - |
| cancelText | Cancel button text, | String | - |
| confirmText | Confirm button text | String | `确认` |
| type | The button type is consistent with the `type` parameter of the `<Button>` component and will affect the button color.| String | `light` |
| icon[`<Modal>`](#/components/modal) | Set the icon in the upper right corner of the dialog box. Set `type` to set the icon to a different color. The current attribute is the `type` attribute of [`<Icon>`](#/components/icon) component, so you can refer to the custom icon of the component. | String/ReactNode | - |
| title[`<Modal>`](#/components/modal) | Set title | Function(e) | - |
| useButton[`<Modal>`](#/components/modal) | Whether to use the default button. If you set `false`, you need to customize the button to close | Boolean | `true` |
| isOpen[`<Modal>`](#/components/modal) | Whether the dialog box is visible | Boolean | `false` |
| maskClosable[`<Modal>`](#/components/modal) | Click whether the mask layer is allowed to be turned off | boolean | `true` |

For more attribute documents, please refer to [Modal](#/components/modal)

0 comments on commit 0f96f3c

Please sign in to comment.