touchstudy-core 0.1.124 → 0.1.125
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,7 @@ interface Props {
|
|
6
6
|
resultData?: ExamResult;
|
7
7
|
textbookResult?: TextbookResult;
|
8
8
|
examTime: string;
|
9
|
-
isShow
|
9
|
+
isShow?: (value: number) => boolean;
|
10
10
|
isStudent: boolean;
|
11
11
|
categoryResponses: CategoryResponse[];
|
12
12
|
timelyOrderQuestions: TimelyOrderQuestion[];
|
package/dist/index.js
CHANGED
@@ -18740,7 +18740,7 @@ var PrintExamResult = function PrintExamResult(_ref) {
|
|
18740
18740
|
fontWeight: 600,
|
18741
18741
|
color: styles.gray_700
|
18742
18742
|
}
|
18743
|
-
}, resultData === null || resultData === void 0 ? void 0 : resultData.teacherName)))))), isShow(TabList$2[0].value) && React__default.createElement(material.Stack, {
|
18743
|
+
}, resultData === null || resultData === void 0 ? void 0 : resultData.teacherName)))))), !isShow || isShow(TabList$2[0].value) && React__default.createElement(material.Stack, {
|
18744
18744
|
display: "flex",
|
18745
18745
|
flexDirection: "column",
|
18746
18746
|
gap: "12px"
|
@@ -18754,7 +18754,7 @@ var PrintExamResult = function PrintExamResult(_ref) {
|
|
18754
18754
|
data: resultData,
|
18755
18755
|
categories: categoryResponses,
|
18756
18756
|
isStudent: isStudent
|
18757
|
-
})), isShow(TabList$2[1].value) && React__default.createElement(material.Stack, {
|
18757
|
+
})), !isShow || isShow(TabList$2[1].value) && React__default.createElement(material.Stack, {
|
18758
18758
|
display: "flex",
|
18759
18759
|
flexDirection: "column",
|
18760
18760
|
gap: "12px",
|
@@ -18781,7 +18781,7 @@ var PrintExamResult = function PrintExamResult(_ref) {
|
|
18781
18781
|
series: allSeries[index],
|
18782
18782
|
setIsRendered: setRenderedChart
|
18783
18783
|
});
|
18784
|
-
})), isShow(TabList$2[2].value) && React__default.createElement(material.Stack, {
|
18784
|
+
})), !isShow || isShow(TabList$2[2].value) && React__default.createElement(material.Stack, {
|
18785
18785
|
display: "flex",
|
18786
18786
|
flexDirection: "column",
|
18787
18787
|
gap: "12px",
|
@@ -18790,7 +18790,7 @@ var PrintExamResult = function PrintExamResult(_ref) {
|
|
18790
18790
|
sx: textStyle
|
18791
18791
|
}, i18n.t(TabList$2[2].label)), React__default.createElement(CompareGrass, {
|
18792
18792
|
effectSize: effectSize
|
18793
|
-
})), isShow(TabList$2[3].value) && React__default.createElement(material.Stack, {
|
18793
|
+
})), !isShow || isShow(TabList$2[3].value) && React__default.createElement(material.Stack, {
|
18794
18794
|
display: "flex",
|
18795
18795
|
flexDirection: "column",
|
18796
18796
|
gap: "12px",
|
@@ -21017,7 +21017,7 @@ var PrintExamResultView = function PrintExamResultView(_ref) {
|
|
21017
21017
|
isShow = _usePrintView.isShow,
|
21018
21018
|
handelPrintSuccess = _usePrintView.handelPrintSuccess,
|
21019
21019
|
handelPrintError = _usePrintView.handelPrintError;
|
21020
|
-
var _usePrintExamResult = usePrintExamResult(isLoading, fileName, isShow
|
21020
|
+
var _usePrintExamResult = usePrintExamResult(isLoading, fileName, !isShow || isShow(TabList$2[1].value) ? timelyOrderQuestions.length : 0, handelPrintSuccess, handelPrintError, true),
|
21021
21021
|
contentRef = _usePrintExamResult.contentRef,
|
21022
21022
|
setRenderedChart = _usePrintExamResult.setRenderedChart;
|
21023
21023
|
var isTabletUp = material.useMediaQuery("(min-width:900px)");
|