From d074bedd5c2834113fe0c4ed5a3c78ec905681c3 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 10 九月 2021 16:02:57 +0800 Subject: [PATCH] 2021-09-10 --- 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