Prompt
Extends:
react~Component → Prompt
提示输入框
Constructor Summary
| Public Constructor | ||
| public |
constructor(props: Object, context: Object) 构造函数 |
|
Public Constructors
public constructor(props: Object, context: Object) source
构造函数
Params:
| Name | Type | Attribute | Description |
| props | Object | 组件所使用的属性 |
|
| props.visible | boolean | 是否显示确认对话框 |
|
| props.title | PropTypes.node | 确认对话框标题 |
|
| props.body | PropTypes.node | 确认对话框内容 |
|
| props.inputProps | Object | 输入框的属性对象 |
|
| props.onConfirm | function |
|
点击确认按钮触发的事件 |
| props.onCancel | function |
|
点击取消按钮触发的事件 |
| props.confirmText | PropTypes.node |
|
确认按钮的文案 |
| props.cancelText | PropTypes.node |
|
取消按钮的文案 |
| context | Object |