From 4a76c06e7f754e232338ce7e075c08924cffe209 Mon Sep 17 00:00:00 2001
From: xuxj <hugeinfo123>
Date: Wed, 08 Apr 2020 11:52:38 +0800
Subject: [PATCH] 部分细节修改
---
SunshineIns/src/view/QuestionnairEditor/index.js | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/SunshineIns/src/view/QuestionnairEditor/index.js b/SunshineIns/src/view/QuestionnairEditor/index.js
index b535f71..12005a3 100644
--- a/SunshineIns/src/view/QuestionnairEditor/index.js
+++ b/SunshineIns/src/view/QuestionnairEditor/index.js
@@ -386,7 +386,7 @@
}
};
render() {
- const { index, curMoveItem, drag, acitveAnswer } = this.props;
+ const { index, curMoveItem, drag, acitveAnswer, disabled } = this.props;
const {
toggleMutiOption,
editor,
@@ -660,6 +660,7 @@
<input
type="radio"
name="radio"
+ disabled={disabled || false}
data-index={index}
value={data}
defaultChecked={
@@ -710,11 +711,12 @@
<input
type="checkbox"
name="checkbox"
+ disabled={disabled || false}
value={data}
data-index={index}
defaultChecked={
answer &&
- this.answer.checkbox !== '' &&
+ this.answer.checkbox &&
this.answer.checkbox.optionIndex.includes(index + '')
}
onChange={this.handleAnswerChange}
--
Gitblit v1.8.0