Skip to content

Commit 0f96f3c

Browse files
committed
website: update example document.
1 parent 8ddf0f6 commit 0f96f3c

File tree

2 files changed

+0
-37
lines changed

2 files changed

+0
-37
lines changed

website/src/pages/example/App-zh.md

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -460,22 +460,3 @@ class Demo extends React.Component {
460460
}
461461
export default Demo;
462462
```
463-
464-
## Props
465-
466-
虽然类似于对 `<Modal>`,但 `<Alert>` 更具限制性,只应用于重要信息。此组件继承 [`<Modal>`](#/components/modal) 的属性,所以部分参数可以参考 `<Modal>` 组件。
467-
468-
| 参数 | 说明 | 类型 | 默认值 |
469-
| ------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------- | ------- |
470-
| onCancel | 取消按钮的回调函数 | Function(e) | - |
471-
| onConfirm | 点击确定按钮回调 | Function(e) | - |
472-
| cancelText | 取消按钮文字, | String | - |
473-
| confirmText | 确认按钮文字 | String | `确认` |
474-
| type | 按钮类型跟 `<Button>` 组件的 `type` 参数一致,同时会影响按钮颜色。 | String | `light` |
475-
| icon[`<Modal>`](#/components/modal) | 设置对话框右上角图标,,设置 `type` 将图标设置不同的颜色。当前属性为 [`<Icon>`](#/components/icon) 组件的 `type` 属性,所以可以参考该组件自定义图标。 | String/ReactNode | - |
476-
| title[`<Modal>`](#/components/modal) | 设置标题 | Function(e) | - |
477-
| useButton[`<Modal>`](#/components/modal) | 是否使用默认按钮,如果设置 `false` 需要自定义按钮关闭 | Boolean | `true` |
478-
| isOpen[`<Modal>`](#/components/modal) | 对话框是否可见 | Boolean | `false` |
479-
| maskClosable[`<Modal>`](#/components/modal) | 点击遮罩层是否允许关闭 | boolean | `true` |
480-
481-
更多属性文档请参考 [Modal](#/components/modal)

website/src/pages/example/App.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -457,21 +457,3 @@ class Demo extends React.Component {
457457
}
458458
export default Demo;
459459
```
460-
461-
## Props
462-
463-
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.
464-
| parameter | explain | type | Default value |
465-
| ------------------------------------------- | ----- | ---------------- | ------- |
466-
| onCancel | Callback function of cancel button | Function(e) | - |
467-
| onConfirm | Click OK to call back | Function(e) | - |
468-
| cancelText | Cancel button text, | String | - |
469-
| confirmText | Confirm button text | String | `确认` |
470-
| type | The button type is consistent with the `type` parameter of the `<Button>` component and will affect the button color.| String | `light` |
471-
| 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 | - |
472-
| title[`<Modal>`](#/components/modal) | Set title | Function(e) | - |
473-
| useButton[`<Modal>`](#/components/modal) | Whether to use the default button. If you set `false`, you need to customize the button to close | Boolean | `true` |
474-
| isOpen[`<Modal>`](#/components/modal) | Whether the dialog box is visible | Boolean | `false` |
475-
| maskClosable[`<Modal>`](#/components/modal) | Click whether the mask layer is allowed to be turned off | boolean | `true` |
476-
477-
For more attribute documents, please refer to [Modal](#/components/modal)

0 commit comments

Comments
 (0)