diff --git a/components/modal/index.en-US.md b/components/modal/index.en-US.md index d60d0a1096..aaa71d36f9 100644 --- a/components/modal/index.en-US.md +++ b/components/modal/index.en-US.md @@ -20,7 +20,7 @@ and so on. | -------- | ----------- | ---- | ------- | | afterClose | Specify a function that will be called when modal is closed completely. | function | - | | bodyStyle | Body style for modal body element. Such as height, padding etc. | object | {} | -| cancelText | Text of the Cancel button | string | `Cancel` | +| cancelText | Text of the Cancel button | string\|ReactNode | `Cancel` | | centered | Centered Modal | Boolean | `false` | | closable | Whether a close (x) button is visible on top right of the modal dialog or not | boolean | true | | confirmLoading | Whether to apply loading visual effect for OK button or not | boolean | false | @@ -31,7 +31,7 @@ and so on. | mask | Whether show mask or not. | Boolean | true | | maskClosable | Whether to close the modal dialog when the mask (area outside the modal) is clicked | boolean | true | | maskStyle | Style for modal's mask element. | object | {} | -| okText | Text of the OK button | string | `OK` | +| okText | Text of the OK button | string\|ReactNode | `OK` | | okType | Button `type` of the OK button | string | `primary` | | okButtonProps | The ok button props | [ButtonProps](/components/button) | - | | cancelButtonProps | The cancel button props | [ButtonProps](/components/button) | - | diff --git a/components/modal/index.zh-CN.md b/components/modal/index.zh-CN.md index 8923c00c3e..2014b7a77d 100644 --- a/components/modal/index.zh-CN.md +++ b/components/modal/index.zh-CN.md @@ -19,7 +19,7 @@ title: Modal | --- | --- | --- | --- | | afterClose | Modal 完全关闭后的回调 | function | 无 | | bodyStyle | Modal body 样式 | object | {} | -| cancelText | 取消按钮文字 | string | 取消 | +| cancelText | 取消按钮文字 | string\|ReactNode | 取消 | | centered | 垂直居中展示 Modal | Boolean | `false` | | closable | 是否显示右上角的关闭按钮 | boolean | true | | confirmLoading | 确定按钮 loading | boolean | 无 | @@ -31,7 +31,7 @@ title: Modal | mask | 是否展示遮罩 | Boolean | true | | maskClosable | 点击蒙层是否允许关闭 | boolean | true | | maskStyle | 遮罩样式 | object | {} | -| okText | 确认按钮文字 | string | 确定 | +| okText | 确认按钮文字 | string\|ReactNode | 确定 | | okType | 确认按钮类型 | string | primary | | okButtonProps | ok 按钮 props | [ButtonProps](/components/button) | - | | cancelButtonProps | cancel 按钮 props | [ButtonProps](/components/button) | - |