zhytech-ui-mobile 1.0.13 → 1.0.15
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.
|
@@ -36,7 +36,6 @@ const hyphenate = cacheStringFunction(
|
|
|
36
36
|
);
|
|
37
37
|
const LINEFEED = "\n";
|
|
38
38
|
const UNI_STORAGE_LOCALE = "UNI_LOCALE";
|
|
39
|
-
const PRIMARY_COLOR = "#007aff";
|
|
40
39
|
const SCHEME_RE = /^([a-z-]+:)?\/\//i;
|
|
41
40
|
const DATA_RE = /^data:.*,.*/;
|
|
42
41
|
const ON_HIDE = "onHide";
|
|
@@ -1139,14 +1138,7 @@ function rpx2pxWithReplace(str) {
|
|
|
1139
1138
|
return upx2px(parseFloat(b)) + "px";
|
|
1140
1139
|
});
|
|
1141
1140
|
}
|
|
1142
|
-
const ICON_PATH_CANCEL = "M20.928 10.176l-4.928 4.928-4.928-4.928-0.896 0.896 4.928 4.928-4.928 4.928 0.896 0.896 4.928-4.928 4.928 4.928 0.896-0.896-4.928-4.928 4.928-4.928-0.896-0.896zM16 2.080q-3.776 0-7.040 1.888-3.136 1.856-4.992 4.992-1.888 3.264-1.888 7.040t1.888 7.040q1.856 3.136 4.992 4.992 3.264 1.888 7.040 1.888t7.040-1.888q3.136-1.856 4.992-4.992 1.888-3.264 1.888-7.040t-1.888-7.040q-1.856-3.136-4.992-4.992-3.264-1.888-7.040-1.888zM16 28.64q-3.424 0-6.4-1.728-2.848-1.664-4.512-4.512-1.728-2.976-1.728-6.4t1.728-6.4q1.664-2.848 4.512-4.512 2.976-1.728 6.4-1.728t6.4 1.728q2.848 1.664 4.512 4.512 1.728 2.976 1.728 6.4t-1.728 6.4q-1.664 2.848-4.512 4.512-2.976 1.728-6.4 1.728z";
|
|
1143
|
-
const ICON_PATH_CLEAR = "M16 0q-4.352 0-8.064 2.176-3.616 2.144-5.76 5.76-2.176 3.712-2.176 8.064t2.176 8.064q2.144 3.616 5.76 5.76 3.712 2.176 8.064 2.176t8.064-2.176q3.616-2.144 5.76-5.76 2.176-3.712 2.176-8.064t-2.176-8.064q-2.144-3.616-5.76-5.76-3.712-2.176-8.064-2.176zM22.688 21.408q0.32 0.32 0.304 0.752t-0.336 0.736-0.752 0.304-0.752-0.32l-5.184-5.376-5.376 5.184q-0.32 0.32-0.752 0.304t-0.736-0.336-0.304-0.752 0.32-0.752l5.376-5.184-5.184-5.376q-0.32-0.32-0.304-0.752t0.336-0.752 0.752-0.304 0.752 0.336l5.184 5.376 5.376-5.184q0.32-0.32 0.752-0.304t0.752 0.336 0.304 0.752-0.336 0.752l-5.376 5.184 5.184 5.376z";
|
|
1144
|
-
const ICON_PATH_DOWNLOAD = "M15.808 1.696q-3.776 0-7.072 1.984-3.2 1.888-5.088 5.152-1.952 3.392-1.952 7.36 0 3.776 1.952 7.072 1.888 3.2 5.088 5.088 3.296 1.952 7.072 1.952 3.968 0 7.36-1.952 3.264-1.888 5.152-5.088 1.984-3.296 1.984-7.072 0-4-1.984-7.36-1.888-3.264-5.152-5.152-3.36-1.984-7.36-1.984zM20.864 18.592l-3.776 4.928q-0.448 0.576-1.088 0.576t-1.088-0.576l-3.776-4.928q-0.448-0.576-0.24-0.992t0.944-0.416h2.976v-8.928q0-0.256 0.176-0.432t0.4-0.176h1.216q0.224 0 0.4 0.176t0.176 0.432v8.928h2.976q0.736 0 0.944 0.416t-0.24 0.992z";
|
|
1145
|
-
const ICON_PATH_INFO = "M15.808 0.128q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.176 3.776-2.176 8.16 0 4.224 2.176 7.872 2.080 3.552 5.632 5.632 3.648 2.176 7.872 2.176 4.384 0 8.16-2.176 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.416-2.176-8.16-2.112-3.616-5.728-5.728-3.744-2.176-8.16-2.176zM16.864 23.776q0 0.064-0.064 0.064h-1.568q-0.096 0-0.096-0.064l-0.256-11.328q0-0.064 0.064-0.064h2.112q0.096 0 0.064 0.064l-0.256 11.328zM16 10.88q-0.576 0-0.976-0.4t-0.4-0.96 0.4-0.96 0.976-0.4 0.976 0.4 0.4 0.96-0.4 0.96-0.976 0.4z";
|
|
1146
|
-
const ICON_PATH_SEARCH = "M20.928 22.688q-1.696 1.376-3.744 2.112-2.112 0.768-4.384 0.768-3.488 0-6.464-1.728-2.88-1.696-4.576-4.608-1.76-2.976-1.76-6.464t1.76-6.464q1.696-2.88 4.576-4.576 2.976-1.76 6.464-1.76t6.464 1.76q2.912 1.696 4.608 4.576 1.728 2.976 1.728 6.464 0 2.272-0.768 4.384-0.736 2.048-2.112 3.744l9.312 9.28-1.824 1.824-9.28-9.312zM12.8 23.008q2.784 0 5.184-1.376 2.304-1.376 3.68-3.68 1.376-2.4 1.376-5.184t-1.376-5.152q-1.376-2.336-3.68-3.68-2.4-1.408-5.184-1.408t-5.152 1.408q-2.336 1.344-3.68 3.68-1.408 2.368-1.408 5.152t1.408 5.184q1.344 2.304 3.68 3.68 2.368 1.376 5.152 1.376zM12.8 23.008v0z";
|
|
1147
1141
|
const ICON_PATH_SUCCESS_NO_CIRCLE = "M1.952 18.080q-0.32-0.352-0.416-0.88t0.128-0.976l0.16-0.352q0.224-0.416 0.64-0.528t0.8 0.176l6.496 4.704q0.384 0.288 0.912 0.272t0.88-0.336l17.312-14.272q0.352-0.288 0.848-0.256t0.848 0.352l-0.416-0.416q0.32 0.352 0.32 0.816t-0.32 0.816l-18.656 18.912q-0.32 0.352-0.8 0.352t-0.8-0.32l-7.936-8.064z";
|
|
1148
|
-
const ICON_PATH_SUCCESS = "M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM24.832 11.328l-11.264 11.104q-0.032 0.032-0.112 0.032t-0.112-0.032l-5.216-5.376q-0.096-0.128 0-0.288l0.704-0.96q0.032-0.064 0.112-0.064t0.112 0.032l4.256 3.264q0.064 0.032 0.144 0.032t0.112-0.032l10.336-8.608q0.064-0.064 0.144-0.064t0.112 0.064l0.672 0.672q0.128 0.128 0 0.224z";
|
|
1149
|
-
const ICON_PATH_WAITING = "M15.84 0.096q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM23.008 21.92l-0.512 0.896q-0.096 0.128-0.224 0.064l-8-3.808q-0.096-0.064-0.16-0.128-0.128-0.096-0.128-0.288l0.512-12.096q0-0.064 0.048-0.112t0.112-0.048h1.376q0.064 0 0.112 0.048t0.048 0.112l0.448 10.848 6.304 4.256q0.064 0.064 0.080 0.128t-0.016 0.128z";
|
|
1150
1142
|
const ICON_PATH_WARN = "M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM15.136 8.672h1.728q0.128 0 0.224 0.096t0.096 0.256l-0.384 10.24q0 0.064-0.048 0.112t-0.112 0.048h-1.248q-0.096 0-0.144-0.048t-0.048-0.112l-0.384-10.24q0-0.16 0.096-0.256t0.224-0.096zM16 23.328q-0.48 0-0.832-0.352t-0.352-0.848 0.352-0.848 0.832-0.352 0.832 0.352 0.352 0.848-0.352 0.848-0.832 0.352z";
|
|
1151
1143
|
const ICON_PATH_BACK = "M21.781 7.844l-9.063 8.594 9.063 8.594q0.25 0.25 0.25 0.609t-0.25 0.578q-0.25 0.25-0.578 0.25t-0.578-0.25l-9.625-9.125q-0.156-0.125-0.203-0.297t-0.047-0.359q0-0.156 0.047-0.328t0.203-0.297l9.625-9.125q0.25-0.25 0.578-0.25t0.578 0.25q0.25 0.219 0.25 0.578t-0.25 0.578z";
|
|
1152
1144
|
const ICON_PATH_CLOSE = "M17.25 16.156l7.375-7.313q0.281-0.281 0.281-0.641t-0.281-0.641q-0.25-0.25-0.625-0.25t-0.625 0.25l-7.375 7.344-7.313-7.344q-0.25-0.25-0.625-0.25t-0.625 0.25q-0.281 0.25-0.281 0.625t0.281 0.625l7.313 7.344-7.375 7.344q-0.281 0.25-0.281 0.625t0.281 0.625q0.125 0.125 0.281 0.188t0.344 0.063q0.156 0 0.328-0.063t0.297-0.188l7.375-7.344 7.375 7.406q0.125 0.156 0.297 0.219t0.328 0.063q0.188 0 0.344-0.078t0.281-0.203q0.281-0.25 0.281-0.609t-0.281-0.641l-7.375-7.406z";
|
|
@@ -4569,78 +4561,6 @@ function useKeyboard$1(props2, elRef, trigger) {
|
|
|
4569
4561
|
(el) => el && initKeyboard(el)
|
|
4570
4562
|
);
|
|
4571
4563
|
}
|
|
4572
|
-
const INFO_COLOR = "#10aeff";
|
|
4573
|
-
const WARN_COLOR = "#f76260";
|
|
4574
|
-
const GREY_COLOR = "#b2b2b2";
|
|
4575
|
-
const CANCEL_COLOR = "#f43530";
|
|
4576
|
-
const ICONS = {
|
|
4577
|
-
success: {
|
|
4578
|
-
d: ICON_PATH_SUCCESS,
|
|
4579
|
-
c: PRIMARY_COLOR
|
|
4580
|
-
},
|
|
4581
|
-
success_no_circle: {
|
|
4582
|
-
d: ICON_PATH_SUCCESS_NO_CIRCLE,
|
|
4583
|
-
c: PRIMARY_COLOR
|
|
4584
|
-
},
|
|
4585
|
-
info: {
|
|
4586
|
-
d: ICON_PATH_INFO,
|
|
4587
|
-
c: INFO_COLOR
|
|
4588
|
-
},
|
|
4589
|
-
warn: {
|
|
4590
|
-
d: ICON_PATH_WARN,
|
|
4591
|
-
c: WARN_COLOR
|
|
4592
|
-
},
|
|
4593
|
-
waiting: {
|
|
4594
|
-
d: ICON_PATH_WAITING,
|
|
4595
|
-
c: INFO_COLOR
|
|
4596
|
-
},
|
|
4597
|
-
cancel: {
|
|
4598
|
-
d: ICON_PATH_CANCEL,
|
|
4599
|
-
c: CANCEL_COLOR
|
|
4600
|
-
},
|
|
4601
|
-
download: {
|
|
4602
|
-
d: ICON_PATH_DOWNLOAD,
|
|
4603
|
-
c: PRIMARY_COLOR
|
|
4604
|
-
},
|
|
4605
|
-
search: {
|
|
4606
|
-
d: ICON_PATH_SEARCH,
|
|
4607
|
-
c: GREY_COLOR
|
|
4608
|
-
},
|
|
4609
|
-
clear: {
|
|
4610
|
-
d: ICON_PATH_CLEAR,
|
|
4611
|
-
c: GREY_COLOR
|
|
4612
|
-
}
|
|
4613
|
-
};
|
|
4614
|
-
const index$r = /* @__PURE__ */ defineBuiltInComponent({
|
|
4615
|
-
name: "Icon",
|
|
4616
|
-
props: {
|
|
4617
|
-
type: {
|
|
4618
|
-
type: String,
|
|
4619
|
-
required: true,
|
|
4620
|
-
default: ""
|
|
4621
|
-
},
|
|
4622
|
-
size: {
|
|
4623
|
-
type: [String, Number],
|
|
4624
|
-
default: 23
|
|
4625
|
-
},
|
|
4626
|
-
color: {
|
|
4627
|
-
type: String,
|
|
4628
|
-
default: ""
|
|
4629
|
-
}
|
|
4630
|
-
},
|
|
4631
|
-
setup(props2) {
|
|
4632
|
-
const rootRef = ref(null);
|
|
4633
|
-
const path = computed(() => ICONS[props2.type]);
|
|
4634
|
-
return () => {
|
|
4635
|
-
const {
|
|
4636
|
-
value
|
|
4637
|
-
} = path;
|
|
4638
|
-
return createVNode("uni-icon", {
|
|
4639
|
-
"ref": rootRef
|
|
4640
|
-
}, [value && value.d && createSvgIconVNode(value.d, props2.color || value.c, rpx2px(props2.size))], 512);
|
|
4641
|
-
};
|
|
4642
|
-
}
|
|
4643
|
-
});
|
|
4644
4564
|
const props$s = {
|
|
4645
4565
|
src: {
|
|
4646
4566
|
type: String,
|
|
@@ -12760,7 +12680,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
12760
12680
|
const svgDefineId = context.id++;
|
|
12761
12681
|
const svgDefineId1 = context.id++;
|
|
12762
12682
|
const svgDefineId2 = context.id++;
|
|
12763
|
-
const
|
|
12683
|
+
const icon = {
|
|
12764
12684
|
outline(color = "#4D80F0") {
|
|
12765
12685
|
return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 42 42"><defs><linearGradient x1="100%" y1="0%" x2="0%" y2="0%" id="${svgDefineId}"><stop stop-color="#FFF" offset="0%" stop-opacity="0"/><stop stop-color="#FFF" offset="100%"/></linearGradient></defs><g fill="none" fill-rule="evenodd"><path d="M21 1c11.046 0 20 8.954 20 20s-8.954 20-20 20S1 32.046 1 21 9.954 1 21 1zm0 7C13.82 8 8 13.82 8 21s5.82 13 13 13 13-5.82 13-13S28.18 8 21 8z" fill="${color}"/><path d="M4.599 21c0 9.044 7.332 16.376 16.376 16.376 9.045 0 16.376-7.332 16.376-16.376" stroke="url(#${svgDefineId}) " stroke-width="3.5" stroke-linecap="round"/></g></svg>`;
|
|
12766
12686
|
},
|
|
@@ -12807,7 +12727,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
12807
12727
|
function buildSvg() {
|
|
12808
12728
|
const { type, color } = props;
|
|
12809
12729
|
let ringType = isDef(type) ? type : "ring";
|
|
12810
|
-
const svgStr = `"data:image/svg+xml;base64,${encode(ringType === "ring" ?
|
|
12730
|
+
const svgStr = `"data:image/svg+xml;base64,${encode(ringType === "ring" ? icon[ringType](color, intermediateColor.value) : icon[ringType](color))}"`;
|
|
12811
12731
|
svg.value = svgStr;
|
|
12812
12732
|
}
|
|
12813
12733
|
return (_ctx, _cache) => {
|
|
@@ -16249,6 +16169,7 @@ var examinationStatusEnum = /* @__PURE__ */ ((examinationStatusEnum2) => {
|
|
|
16249
16169
|
examinationStatusEnum2[examinationStatusEnum2["NotAnswered"] = 1] = "NotAnswered";
|
|
16250
16170
|
examinationStatusEnum2[examinationStatusEnum2["Correct"] = 2] = "Correct";
|
|
16251
16171
|
examinationStatusEnum2[examinationStatusEnum2["Error"] = 3] = "Error";
|
|
16172
|
+
examinationStatusEnum2[examinationStatusEnum2["Answered"] = 4] = "Answered";
|
|
16252
16173
|
return examinationStatusEnum2;
|
|
16253
16174
|
})(examinationStatusEnum || {});
|
|
16254
16175
|
var componentTypeEnum = /* @__PURE__ */ ((componentTypeEnum2) => {
|
|
@@ -16411,7 +16332,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
16411
16332
|
default: withCtx(() => [
|
|
16412
16333
|
createVNode(_component_wd_icon, {
|
|
16413
16334
|
"custom-class": "description-tip",
|
|
16414
|
-
"class-prefix": "iconfont
|
|
16335
|
+
"class-prefix": "iconfont zhy",
|
|
16415
16336
|
name: "tip",
|
|
16416
16337
|
color: "#ff0000",
|
|
16417
16338
|
onClick: _cache[1] || (_cache[1] = ($event) => unref(everyItemDisplayAnalysisSwitch) && (displayAnswerDescription.value = !unref(displayAnswerDescription)))
|
|
@@ -17322,7 +17243,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
17322
17243
|
}
|
|
17323
17244
|
});
|
|
17324
17245
|
};
|
|
17325
|
-
change(datas.value[props.componentID]);
|
|
17246
|
+
change({ value: datas.value[props.componentID] });
|
|
17326
17247
|
const clearCheck = (event, value) => {
|
|
17327
17248
|
if (componentProps.value.clearable && oldValue === value) {
|
|
17328
17249
|
delete datas.value[props.componentID];
|
|
@@ -19493,7 +19414,6 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
19493
19414
|
});
|
|
19494
19415
|
const wdDatetimePicker_vue_vue_type_style_index_0_scoped_050459f9_lang = "";
|
|
19495
19416
|
const __easycom_0$1 = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-050459f9"]]);
|
|
19496
|
-
const icon = "";
|
|
19497
19417
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
19498
19418
|
function getDefaultExportFromCjs(x) {
|
|
19499
19419
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
@@ -20128,7 +20048,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
20128
20048
|
};
|
|
20129
20049
|
return (_ctx, _cache) => {
|
|
20130
20050
|
const _component_wd_datetime_picker = resolveEasycom(resolveDynamicComponent("wd-datetime-picker"), __easycom_0$1);
|
|
20131
|
-
const
|
|
20051
|
+
const _component_wd_icon = resolveEasycom(resolveDynamicComponent("wd-icon"), wdIcon);
|
|
20132
20052
|
const _component_v_uni_view = index$g;
|
|
20133
20053
|
return openBlock(), createBlock(_component_v_uni_view, { class: "zhy-form-component-date aline-left" }, {
|
|
20134
20054
|
default: withCtx(() => [
|
|
@@ -20150,9 +20070,11 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
20150
20070
|
class: "dynamic-form-item-description show-description"
|
|
20151
20071
|
}, {
|
|
20152
20072
|
default: withCtx(() => [
|
|
20153
|
-
createVNode(
|
|
20154
|
-
class: "description-tip",
|
|
20155
|
-
|
|
20073
|
+
createVNode(_component_wd_icon, {
|
|
20074
|
+
"custom-class": "description-tip",
|
|
20075
|
+
"class-prefix": "iconfont zhy",
|
|
20076
|
+
name: "tip",
|
|
20077
|
+
color: "#ff0000"
|
|
20156
20078
|
}),
|
|
20157
20079
|
createTextVNode(" " + toDisplayString(`${unref(formData).props.formType === unref(formTypeEnum).Form ? "项目说明" : "答案解析"}:${unref(componentProps).description || "无"}`), 1)
|
|
20158
20080
|
]),
|
|
@@ -20836,7 +20758,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
20836
20758
|
return (_ctx, _cache) => {
|
|
20837
20759
|
const _component_wd_datetime_picker = resolveEasycom(resolveDynamicComponent("wd-datetime-picker"), __easycom_0$1);
|
|
20838
20760
|
const _component_wd_picker = resolveEasycom(resolveDynamicComponent("wd-picker"), __easycom_5);
|
|
20839
|
-
const
|
|
20761
|
+
const _component_wd_icon = resolveEasycom(resolveDynamicComponent("wd-icon"), wdIcon);
|
|
20840
20762
|
const _component_v_uni_view = index$g;
|
|
20841
20763
|
return openBlock(), createBlock(_component_v_uni_view, { class: "zhy-form-component-time aline-left" }, {
|
|
20842
20764
|
default: withCtx(() => [
|
|
@@ -20869,9 +20791,11 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
20869
20791
|
class: "dynamic-form-item-description show-description"
|
|
20870
20792
|
}, {
|
|
20871
20793
|
default: withCtx(() => [
|
|
20872
|
-
createVNode(
|
|
20873
|
-
class: "description-tip",
|
|
20874
|
-
|
|
20794
|
+
createVNode(_component_wd_icon, {
|
|
20795
|
+
"custom-class": "description-tip",
|
|
20796
|
+
"class-prefix": "iconfont zhy",
|
|
20797
|
+
name: "tip",
|
|
20798
|
+
color: "#ff0000"
|
|
20875
20799
|
}),
|
|
20876
20800
|
createTextVNode(" " + toDisplayString(`${unref(formData).props.formType === unref(formTypeEnum).Form ? "项目说明" : "答案解析"}:${unref(componentProps).description || "无"}`), 1)
|
|
20877
20801
|
]),
|
|
@@ -24991,7 +24915,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
24991
24915
|
return objToStyle(textStyle2);
|
|
24992
24916
|
});
|
|
24993
24917
|
function computeTagClass() {
|
|
24994
|
-
const { type, plain, round, mark, dynamic, icon
|
|
24918
|
+
const { type, plain, round, mark, dynamic, icon, useIconSlot } = props;
|
|
24995
24919
|
let tagClassList = [];
|
|
24996
24920
|
type && tagClassList.push(`is-${type}`);
|
|
24997
24921
|
plain && tagClassList.push("is-plain");
|
|
@@ -24999,7 +24923,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
24999
24923
|
mark && tagClassList.push("is-mark");
|
|
25000
24924
|
dynamic && tagClassList.push("is-dynamic");
|
|
25001
24925
|
dynamicInput.value && tagClassList.push("is-dynamic-input");
|
|
25002
|
-
if (
|
|
24926
|
+
if (icon || useIconSlot)
|
|
25003
24927
|
tagClassList.push("is-icon");
|
|
25004
24928
|
tagClass.value = tagClassList.join(" ");
|
|
25005
24929
|
}
|
|
@@ -25445,7 +25369,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
25445
25369
|
return openBlock(), createElementBlock(Fragment, { key: index2 }, [
|
|
25446
25370
|
((_a = answerSheet.children) == null ? void 0 : _a.length) ? (openBlock(), createBlock(_component_v_uni_view, {
|
|
25447
25371
|
key: 0,
|
|
25448
|
-
class: "aline-left pl-10 my-15 b-1-#cccccc first:mt-5"
|
|
25372
|
+
class: "aline-left pl-10 pb-5 my-15 b-1-#cccccc first:mt-5"
|
|
25449
25373
|
}, {
|
|
25450
25374
|
default: withCtx(() => [
|
|
25451
25375
|
createVNode(_component_v_uni_view, { class: "w-full fs-16 mt-4" }, {
|
|
@@ -25465,7 +25389,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
25465
25389
|
}, null, 8, ["answerSheetData", "tagType"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
25466
25390
|
((_b = __props.tagType[item.status]) == null ? void 0 : _b.value) ? (openBlock(), createBlock(_component_wd_tag, {
|
|
25467
25391
|
key: 0,
|
|
25468
|
-
"custom-class": "
|
|
25392
|
+
"custom-class": "zhy m-5! p-5! fs-18! w-43 text-center box-border",
|
|
25469
25393
|
type: (_c = __props.tagType[item.status]) == null ? void 0 : _c.value,
|
|
25470
25394
|
onClick: ($event) => showItem(item.id)
|
|
25471
25395
|
}, {
|
|
@@ -25475,7 +25399,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
25475
25399
|
_: 2
|
|
25476
25400
|
}, 1032, ["type", "onClick"])) : (openBlock(), createBlock(_component_wd_tag, {
|
|
25477
25401
|
key: 1,
|
|
25478
|
-
"custom-class": "
|
|
25402
|
+
"custom-class": "zhy m-5! p-5! fs-18! w-43 text-center box-border",
|
|
25479
25403
|
onClick: ($event) => showItem(item.id)
|
|
25480
25404
|
}, {
|
|
25481
25405
|
default: withCtx(() => [
|
|
@@ -25525,7 +25449,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25525
25449
|
emits: ["showItem"],
|
|
25526
25450
|
setup(__props, { emit: __emit }) {
|
|
25527
25451
|
useCssVars((_ctx) => ({
|
|
25528
|
-
"
|
|
25452
|
+
"09f0a798": __props.height
|
|
25529
25453
|
}));
|
|
25530
25454
|
const props = __props;
|
|
25531
25455
|
const show = ref(true);
|
|
@@ -25533,15 +25457,17 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25533
25457
|
const tagType = ref({});
|
|
25534
25458
|
onMounted(() => {
|
|
25535
25459
|
tagType.value = {
|
|
25536
|
-
|
|
25537
|
-
2: { value: "success", label: "已作答" }
|
|
25460
|
+
[examinationStatusEnum.NotAnswered]: { value: "", label: "未作答" }
|
|
25538
25461
|
};
|
|
25539
25462
|
if (props.showCorrectOrNot) {
|
|
25540
|
-
tagType.value[
|
|
25541
|
-
tagType.value[
|
|
25463
|
+
tagType.value[examinationStatusEnum.Correct] = { value: "success", label: "正确" };
|
|
25464
|
+
tagType.value[examinationStatusEnum.Error] = { value: "danger", label: "错误" };
|
|
25465
|
+
} else {
|
|
25466
|
+
tagType.value[examinationStatusEnum.Answered] = { value: "success", label: "已作答" };
|
|
25542
25467
|
}
|
|
25543
25468
|
answerSheetData.value = getAnswerSheetData(props.formData.components);
|
|
25544
25469
|
});
|
|
25470
|
+
const { isEmpty } = useUtils();
|
|
25545
25471
|
const getAnswerSheetData = (components2) => {
|
|
25546
25472
|
let result = [];
|
|
25547
25473
|
let index2 = 1;
|
|
@@ -25550,26 +25476,48 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25550
25476
|
if (component.type === componentTypeEnum.LABEL) {
|
|
25551
25477
|
return;
|
|
25552
25478
|
}
|
|
25553
|
-
let status = 0;
|
|
25554
|
-
if (props.showCorrectOrNot) {
|
|
25555
|
-
status = !props.formData.datas[component.id] ? 1 : component.props.examinationStatus;
|
|
25556
|
-
} else {
|
|
25557
|
-
status = !props.formData.datas[component.id] ? 1 : 2;
|
|
25558
|
-
}
|
|
25559
25479
|
const data = {
|
|
25560
|
-
id: component.id
|
|
25561
|
-
name: index2,
|
|
25562
|
-
status
|
|
25480
|
+
id: component.id
|
|
25563
25481
|
};
|
|
25564
25482
|
if (component.isLayout && ((_a = component.children) == null ? void 0 : _a.length)) {
|
|
25565
25483
|
data.name = component.props.label.replace(/([^)]*)/g, "");
|
|
25566
25484
|
data.children = getAnswerSheetData(component.children);
|
|
25485
|
+
} else {
|
|
25486
|
+
let status = getStatus(
|
|
25487
|
+
component.type,
|
|
25488
|
+
props.showCorrectOrNot,
|
|
25489
|
+
props.formData.datas[component.id],
|
|
25490
|
+
component.props.correctOptions
|
|
25491
|
+
);
|
|
25492
|
+
data.name = index2;
|
|
25493
|
+
data.status = status;
|
|
25567
25494
|
}
|
|
25568
25495
|
result.push(data);
|
|
25569
25496
|
index2++;
|
|
25570
25497
|
});
|
|
25571
25498
|
return result;
|
|
25572
25499
|
};
|
|
25500
|
+
const getStatus = (type, showCorrectOrNot, values, correctOptions) => {
|
|
25501
|
+
if (isEmpty(values)) {
|
|
25502
|
+
return examinationStatusEnum.NotAnswered;
|
|
25503
|
+
}
|
|
25504
|
+
if (!showCorrectOrNot) {
|
|
25505
|
+
return examinationStatusEnum.Answered;
|
|
25506
|
+
}
|
|
25507
|
+
switch (type) {
|
|
25508
|
+
case componentTypeEnum.RADIO:
|
|
25509
|
+
return values === correctOptions ? examinationStatusEnum.Correct : examinationStatusEnum.Error;
|
|
25510
|
+
case componentTypeEnum.CHECKBOX: {
|
|
25511
|
+
const errorValue = values.find((value) => !(correctOptions == null ? void 0 : correctOptions.includes(value)));
|
|
25512
|
+
if (!errorValue && (correctOptions == null ? void 0 : correctOptions.length) === values.length) {
|
|
25513
|
+
return examinationStatusEnum.Correct;
|
|
25514
|
+
}
|
|
25515
|
+
return examinationStatusEnum.Error;
|
|
25516
|
+
}
|
|
25517
|
+
default:
|
|
25518
|
+
return examinationStatusEnum.NotAnswered;
|
|
25519
|
+
}
|
|
25520
|
+
};
|
|
25573
25521
|
const emits = __emit;
|
|
25574
25522
|
const showItem = (id2) => {
|
|
25575
25523
|
show.value = false;
|
|
@@ -25601,7 +25549,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25601
25549
|
return openBlock(), createElementBlock(Fragment, { key: index2 }, [
|
|
25602
25550
|
type.value ? (openBlock(), createBlock(_component_wd_tag, {
|
|
25603
25551
|
key: 0,
|
|
25604
|
-
"custom-class": "zhy
|
|
25552
|
+
"custom-class": "zhy zhy mx-8 py-3! px-10! fs-14! box-border",
|
|
25605
25553
|
type: type.value
|
|
25606
25554
|
}, {
|
|
25607
25555
|
default: withCtx(() => [
|
|
@@ -25610,7 +25558,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25610
25558
|
_: 2
|
|
25611
25559
|
}, 1032, ["type"])) : (openBlock(), createBlock(_component_wd_tag, {
|
|
25612
25560
|
key: 1,
|
|
25613
|
-
"custom-class": "zhy
|
|
25561
|
+
"custom-class": "zhy mx-8 py-3! px-10! fs-14! box-border"
|
|
25614
25562
|
}, {
|
|
25615
25563
|
default: withCtx(() => [
|
|
25616
25564
|
createTextVNode(toDisplayString(type.label), 1)
|
|
@@ -25641,8 +25589,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25641
25589
|
};
|
|
25642
25590
|
}
|
|
25643
25591
|
});
|
|
25644
|
-
const
|
|
25645
|
-
const answerSheetPopup = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
25592
|
+
const index_vue_vue_type_style_index_0_scoped_7e82c468_lang = "";
|
|
25593
|
+
const answerSheetPopup = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-7e82c468"]]);
|
|
25646
25594
|
const __default__ = {
|
|
25647
25595
|
name: "zhy-form-renderer"
|
|
25648
25596
|
};
|