|
|
|
@ -106,11 +106,11 @@ export function CNotificationHOC(options = {}) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
confirm = (object) => {
|
|
|
|
|
const { title, content, onOk, onCancel, okText } = object;
|
|
|
|
|
const { title, content,subContent, onOk, onCancel, okText } = object;
|
|
|
|
|
this.onCancel = onCancel
|
|
|
|
|
this.onOk = onOk
|
|
|
|
|
this.okText = okText || ''
|
|
|
|
|
this.setState({ title, content, dialogOpen: true })
|
|
|
|
|
this.setState({ title, content , subContent , dialogOpen: true })
|
|
|
|
|
}
|
|
|
|
|
onDialogOkBtnClick = () => {
|
|
|
|
|
this.onOk && this.onOk();
|
|
|
|
@ -141,7 +141,7 @@ export function CNotificationHOC(options = {}) {
|
|
|
|
|
this.onOk = null
|
|
|
|
|
}
|
|
|
|
|
render() {
|
|
|
|
|
const { snackbarOpen, snackbarText, snackbarHorizontal, snackbarVertical, dialogOpen, content ,defineOpen } = this.state;
|
|
|
|
|
const { snackbarOpen, snackbarText, snackbarHorizontal, snackbarVertical, dialogOpen, content ,subContent ,defineOpen } = this.state;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
@ -151,7 +151,7 @@ export function CNotificationHOC(options = {}) {
|
|
|
|
|
modalsTopval={
|
|
|
|
|
content
|
|
|
|
|
}
|
|
|
|
|
modalsBottomval={""}
|
|
|
|
|
modalsBottomval={ subContent || "" }
|
|
|
|
|
modalCancel={this.handleDialogClose}
|
|
|
|
|
modalSave={this.onDialogOkBtnClick}
|
|
|
|
|
okText={this.okText}
|
|
|
|
|