From fbb86e82858efde1a0402df31f1d11dc5a2f66d4 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期六, 25 九月 2021 19:45:10 +0800 Subject: [PATCH] 2021-09-25 --- src/components/normalform/modalform/mkInput/index.jsx | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/components/normalform/modalform/mkInput/index.jsx b/src/components/normalform/modalform/mkInput/index.jsx index 2df60f7..74165f9 100644 --- a/src/components/normalform/modalform/mkInput/index.jsx +++ b/src/components/normalform/modalform/mkInput/index.jsx @@ -64,7 +64,7 @@ const { config } = this.props const { value } = this.state - return <Input ref={this.inputRef} placeholder={config.placeholder || ''} value={value} autoComplete="off" onChange={this.handleChange} onPressEnter={this.props.onSubmit} /> + return <Input ref={this.inputRef} readOnly={config.readOnly} placeholder={config.placeholder || ''} value={value} autoComplete="off" onChange={this.handleChange} onPressEnter={this.props.onSubmit} /> } } -- Gitblit v1.8.0