Auto Submit

dev_local_v9_test6
autosubmit 2 years ago
parent e80de4b6bf
commit 4dfb3e85f1

@ -109,9 +109,7 @@ var List = /*#__PURE__*/(0,_react_17_0_2_react.forwardRef)(function (_ref, ref)
_ref$onSelectCheckBox = _ref.onSelectCheckBox,
onSelectCheckBox = _ref$onSelectCheckBox === void 0 ? function () {} : _ref$onSelectCheckBox,
_ref$showCheckbox = _ref.showCheckbox,
showCheckbox = _ref$showCheckbox === void 0 ? true : _ref$showCheckbox,
_ref$isWrongList = _ref.isWrongList,
isWrongList = _ref$isWrongList === void 0 ? false : _ref$isWrongList;
showCheckbox = _ref$showCheckbox === void 0 ? true : _ref$showCheckbox;
var _useState = (0,_react_17_0_2_react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2),
visible = _useState2[0],
@ -306,20 +304,22 @@ var List = /*#__PURE__*/(0,_react_17_0_2_react.forwardRef)(function (_ref, ref)
checked: selectIds.includes(data.id)
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
display: 'flex'
display: 'flex',
alignItems: 'center'
},
onClick: function onClick() {
if (data.is_warning && isWrongList) {
if (data.is_warning) {
return;
}
setVisible(!visible);
},
className: Topicmodules.title,
children: [data.is_warning && isWrongList && /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
children: [data.is_warning && /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
style: {
marginRight: 8
marginRight: 5,
color: '#FF9300'
},
className: "iconfont icon-tishi7"
className: "iconfont icon-tishi7 font14"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
showLines: 1,
showTextOnly: true,
@ -328,7 +328,7 @@ var List = /*#__PURE__*/(0,_react_17_0_2_react.forwardRef)(function (_ref, ref)
}, 1)]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
onClick: function onClick() {
if (data.is_warning && isWrongList) {
if (data.is_warning) {
return;
}
setVisible(!visible);

@ -26,7 +26,7 @@
display: block !important;
}
</style><script>if(document.domain !== "www.educoder.net") document.title = '';</script>
<script src="/react/build/umi.1163fc55.js"></script>
<script src="/react/build/umi.e5b39be4.js"></script>
<script src="/react/build/js/public.js"></script>
</body>
</html>

@ -154,7 +154,10 @@ var Collection = function Collection(_ref) {
2: "适中",
3: "困难"
};
var handleDetailClick = function handleDetailClick(id) {
var handleDetailClick = function handleDetailClick(id, isWarning) {
if (isWarning) {
return;
}
if (childRefs.current[id]) {
childRefs.current[id].expandDetail();
}
@ -306,7 +309,7 @@ var Collection = function Collection(_ref) {
cursor: 'pointer'
},
onClick: function onClick() {
handleDetailClick(v.question_id);
handleDetailClick(v.question_id, v.is_warning);
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-chengxinkaoshishengming font14 mr5",

@ -246,7 +246,6 @@ var MisCollection = function MisCollection(_ref) {
selectIds: [],
onSelectCheckBox: function onSelectCheckBox() {},
showCheckbox: false,
isWrongList: true,
ref: function ref(el) {
return childRefs.current[v.question_id] = el;
}

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save