zhytech-ui-mobile 1.0.10 → 1.0.12
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.
|
@@ -16319,7 +16319,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
16319
16319
|
}, 8, ["modelValue", "disabled", "min", "max", "inline"]),
|
|
16320
16320
|
unref(everyItemDisplayAnalysisSwitch) || unref(displayAnswerDescription) || __props.showDescription && (unref(formType) === unref(formTypeEnum).Examination || unref(componentProps).description) ? (openBlock(), createBlock(_component_v_uni_view, {
|
|
16321
16321
|
key: 0,
|
|
16322
|
-
class: normalizeClass(["dynamic-form-item-description", { "show-description": unref(displayAnswerDescription) }])
|
|
16322
|
+
class: normalizeClass(["dynamic-form-item-description", { "show-description": __props.showDescription || unref(displayAnswerDescription) }])
|
|
16323
16323
|
}, {
|
|
16324
16324
|
default: withCtx(() => [
|
|
16325
16325
|
createVNode(_component_wd_icon, {
|
|
@@ -16327,9 +16327,9 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
16327
16327
|
"class-prefix": "iconfont icon",
|
|
16328
16328
|
name: "tip",
|
|
16329
16329
|
color: "#ff0000",
|
|
16330
|
-
onClick: _cache[1] || (_cache[1] = ($event) => displayAnswerDescription.value = !unref(displayAnswerDescription))
|
|
16330
|
+
onClick: _cache[1] || (_cache[1] = ($event) => unref(everyItemDisplayAnalysisSwitch) && (displayAnswerDescription.value = !unref(displayAnswerDescription)))
|
|
16331
16331
|
}),
|
|
16332
|
-
unref(displayAnswerDescription) ? (openBlock(), createBlock(_component_v_uni_view, { key: 0 }, {
|
|
16332
|
+
__props.showDescription || unref(displayAnswerDescription) ? (openBlock(), createBlock(_component_v_uni_view, { key: 0 }, {
|
|
16333
16333
|
default: withCtx(() => [
|
|
16334
16334
|
createTextVNode(toDisplayString(`${unref(formType) === unref(formTypeEnum).Form ? "项目说明" : "答案解析"}:${unref(componentProps).description || "无"}`), 1)
|
|
16335
16335
|
]),
|
|
@@ -16418,7 +16418,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
16418
16418
|
}, null, 8, ["type", "modelValue", "placeholder", "clearable", "disabled", "readonly"]),
|
|
16419
16419
|
unref(everyItemDisplayAnalysisSwitch) || unref(displayAnswerDescription) || __props.showDescription && (unref(formType) === unref(formTypeEnum).Examination || unref(componentProps).description) ? (openBlock(), createBlock(_component_v_uni_view, {
|
|
16420
16420
|
key: 0,
|
|
16421
|
-
class: normalizeClass(["dynamic-form-item-description", { "show-description": unref(displayAnswerDescription) }])
|
|
16421
|
+
class: normalizeClass(["dynamic-form-item-description", { "show-description": __props.showDescription || unref(displayAnswerDescription) }])
|
|
16422
16422
|
}, {
|
|
16423
16423
|
default: withCtx(() => [
|
|
16424
16424
|
createVNode(_component_wd_icon, {
|
|
@@ -16426,9 +16426,9 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
16426
16426
|
"class-prefix": "iconfont zhy",
|
|
16427
16427
|
name: "tip",
|
|
16428
16428
|
color: "#ff0000",
|
|
16429
|
-
onClick: _cache[1] || (_cache[1] = ($event) => displayAnswerDescription.value = !unref(displayAnswerDescription))
|
|
16429
|
+
onClick: _cache[1] || (_cache[1] = ($event) => unref(everyItemDisplayAnalysisSwitch) && (displayAnswerDescription.value = !unref(displayAnswerDescription)))
|
|
16430
16430
|
}),
|
|
16431
|
-
unref(displayAnswerDescription) ? (openBlock(), createBlock(_component_v_uni_view, { key: 0 }, {
|
|
16431
|
+
__props.showDescription || unref(displayAnswerDescription) ? (openBlock(), createBlock(_component_v_uni_view, { key: 0 }, {
|
|
16432
16432
|
default: withCtx(() => [
|
|
16433
16433
|
createTextVNode(toDisplayString(`${unref(formType) === unref(formTypeEnum).Form ? "项目说明" : "答案解析"}:${unref(componentProps).description || "无"}`), 1)
|
|
16434
16434
|
]),
|
|
@@ -16808,7 +16808,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
16808
16808
|
}, 8, ["modelValue", "disabled", "inline"]),
|
|
16809
16809
|
unref(everyItemDisplayAnalysisSwitch) || unref(displayAnswerDescription) || __props.showDescription && (unref(formType) === unref(formTypeEnum).Examination || unref(componentProps).description) ? (openBlock(), createBlock(_component_v_uni_view, {
|
|
16810
16810
|
key: 0,
|
|
16811
|
-
class: normalizeClass(["dynamic-form-item-description", { "show-description": unref(displayAnswerDescription) }])
|
|
16811
|
+
class: normalizeClass(["dynamic-form-item-description", { "show-description": __props.showDescription || unref(displayAnswerDescription) }])
|
|
16812
16812
|
}, {
|
|
16813
16813
|
default: withCtx(() => [
|
|
16814
16814
|
createVNode(_component_wd_icon, {
|
|
@@ -16816,9 +16816,9 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
16816
16816
|
"class-prefix": "iconfont zhy",
|
|
16817
16817
|
name: "tip",
|
|
16818
16818
|
color: "#ff0000",
|
|
16819
|
-
onClick: _cache[1] || (_cache[1] = ($event) => displayAnswerDescription.value = !unref(displayAnswerDescription))
|
|
16819
|
+
onClick: _cache[1] || (_cache[1] = ($event) => unref(everyItemDisplayAnalysisSwitch) && (displayAnswerDescription.value = !unref(displayAnswerDescription)))
|
|
16820
16820
|
}),
|
|
16821
|
-
unref(displayAnswerDescription) ? (openBlock(), createBlock(_component_v_uni_view, { key: 0 }, {
|
|
16821
|
+
__props.showDescription || unref(displayAnswerDescription) ? (openBlock(), createBlock(_component_v_uni_view, { key: 0 }, {
|
|
16822
16822
|
default: withCtx(() => [
|
|
16823
16823
|
createTextVNode(toDisplayString(`${unref(formType) === unref(formTypeEnum).Form ? "项目说明" : "答案解析"}:${unref(componentProps).description || "无"}`), 1)
|
|
16824
16824
|
]),
|
|
@@ -17194,8 +17194,8 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
17194
17194
|
setup(__props, { emit: __emit }) {
|
|
17195
17195
|
const props = __props;
|
|
17196
17196
|
const formType = inject("formType");
|
|
17197
|
-
|
|
17198
|
-
|
|
17197
|
+
inject("everyItemDisplayAnalysisSwitch");
|
|
17198
|
+
ref(false);
|
|
17199
17199
|
const { datas, componentProps } = toRefs(props);
|
|
17200
17200
|
const emits = __emit;
|
|
17201
17201
|
watch(datas, (newValue) => emits("update:datas", newValue));
|
|
@@ -17301,27 +17301,21 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
17301
17301
|
key: "0"
|
|
17302
17302
|
} : void 0
|
|
17303
17303
|
]), 1032, ["type", "modelValue", "placeholder", "clearable", "disabled", "readonly", "style"]),
|
|
17304
|
-
|
|
17304
|
+
__props.showDescription && (unref(formType) === unref(formTypeEnum).Examination || unref(componentProps).description) ? (openBlock(), createBlock(_component_v_uni_view, {
|
|
17305
17305
|
key: 0,
|
|
17306
|
-
class:
|
|
17306
|
+
class: "dynamic-form-item-description show-description"
|
|
17307
17307
|
}, {
|
|
17308
17308
|
default: withCtx(() => [
|
|
17309
17309
|
createVNode(_component_wd_icon, {
|
|
17310
17310
|
"custom-class": "description-tip",
|
|
17311
17311
|
"class-prefix": "iconfont zhy",
|
|
17312
17312
|
name: "tip",
|
|
17313
|
-
color: "#ff0000"
|
|
17314
|
-
onClick: _cache[1] || (_cache[1] = ($event) => displayAnswerDescription.value = !unref(displayAnswerDescription))
|
|
17313
|
+
color: "#ff0000"
|
|
17315
17314
|
}),
|
|
17316
|
-
|
|
17317
|
-
default: withCtx(() => [
|
|
17318
|
-
createTextVNode(toDisplayString(`${unref(formType) === unref(formTypeEnum).Form ? "项目说明" : "答案解析"}:${unref(componentProps).description || "无"}`), 1)
|
|
17319
|
-
]),
|
|
17320
|
-
_: 1
|
|
17321
|
-
})) : createCommentVNode("", true)
|
|
17315
|
+
createTextVNode(" " + toDisplayString(`${unref(formType) === unref(formTypeEnum).Form ? "项目说明" : "答案解析"}:${unref(componentProps).description || "无"}`), 1)
|
|
17322
17316
|
]),
|
|
17323
17317
|
_: 1
|
|
17324
|
-
}
|
|
17318
|
+
})) : createCommentVNode("", true)
|
|
17325
17319
|
]),
|
|
17326
17320
|
_: 1
|
|
17327
17321
|
});
|
|
@@ -18860,6 +18854,9 @@ function useUtils() {
|
|
|
18860
18854
|
return !param && param !== 0;
|
|
18861
18855
|
};
|
|
18862
18856
|
const computedExpression = (expression) => {
|
|
18857
|
+
if (!expression || typeof expression !== "string") {
|
|
18858
|
+
return;
|
|
18859
|
+
}
|
|
18863
18860
|
let fun = Function;
|
|
18864
18861
|
return new fun("return " + expression)();
|
|
18865
18862
|
};
|
|
@@ -19156,7 +19153,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
19156
19153
|
]),
|
|
19157
19154
|
_: 1
|
|
19158
19155
|
}, 8, ["file-list", "action", "multiple", "limit", "auto-upload", "extension"]),
|
|
19159
|
-
__props.showDescription && (unref(formTypeEnum).Examination || unref(componentProps).description) ? (openBlock(), createBlock(_component_v_uni_view, {
|
|
19156
|
+
__props.showDescription && (unref(formType) === unref(formTypeEnum).Examination || unref(componentProps).description) ? (openBlock(), createBlock(_component_v_uni_view, {
|
|
19160
19157
|
key: 0,
|
|
19161
19158
|
class: "dynamic-form-item-description show-description"
|
|
19162
19159
|
}, {
|
|
@@ -19264,7 +19261,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
19264
19261
|
"before-upload": beforeUpload,
|
|
19265
19262
|
"before-remove": beforeRemove
|
|
19266
19263
|
}, null, 8, ["file-list", "action", "multiple", "limit", "auto-upload", "extension"]),
|
|
19267
|
-
__props.showDescription && (unref(formTypeEnum).Examination || unref(componentProps).description) ? (openBlock(), createBlock(_component_v_uni_view, {
|
|
19264
|
+
__props.showDescription && (unref(formType) === unref(formTypeEnum).Examination || unref(componentProps).description) ? (openBlock(), createBlock(_component_v_uni_view, {
|
|
19268
19265
|
key: 0,
|
|
19269
19266
|
class: "dynamic-form-item-description show-description"
|
|
19270
19267
|
}, {
|
|
@@ -20344,7 +20341,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
20344
20341
|
]),
|
|
20345
20342
|
_: 1
|
|
20346
20343
|
}, 8, ["modelValue", "columns", "disabled"])) : createCommentVNode("", true),
|
|
20347
|
-
__props.showDescription && (unref(formTypeEnum).Examination || unref(componentProps).description) ? (openBlock(), createBlock(_component_v_uni_view, {
|
|
20344
|
+
__props.showDescription && (unref(formType) === unref(formTypeEnum).Examination || unref(componentProps).description) ? (openBlock(), createBlock(_component_v_uni_view, {
|
|
20348
20345
|
key: 3,
|
|
20349
20346
|
class: "dynamic-form-item-description show-description"
|
|
20350
20347
|
}, {
|
|
@@ -20569,7 +20566,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
20569
20566
|
]),
|
|
20570
20567
|
_: 1
|
|
20571
20568
|
})) : createCommentVNode("", true),
|
|
20572
|
-
__props.showDescription && (unref(formTypeEnum).Examination || unref(componentProps).description) ? (openBlock(), createBlock(_component_v_uni_view, {
|
|
20569
|
+
__props.showDescription && (unref(formType) === unref(formTypeEnum).Examination || unref(componentProps).description) ? (openBlock(), createBlock(_component_v_uni_view, {
|
|
20573
20570
|
key: 3,
|
|
20574
20571
|
class: "dynamic-form-item-description show-description"
|
|
20575
20572
|
}, {
|
|
@@ -20739,7 +20736,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
20739
20736
|
]),
|
|
20740
20737
|
_: 1
|
|
20741
20738
|
}, 8, ["modelValue", "columns", "disabled"])) : createCommentVNode("", true),
|
|
20742
|
-
__props.showDescription && (unref(formTypeEnum).Examination || unref(componentProps).description) ? (openBlock(), createBlock(_component_v_uni_view, {
|
|
20739
|
+
__props.showDescription && (unref(formType) === unref(formTypeEnum).Examination || unref(componentProps).description) ? (openBlock(), createBlock(_component_v_uni_view, {
|
|
20743
20740
|
key: 3,
|
|
20744
20741
|
class: "dynamic-form-item-description show-description"
|
|
20745
20742
|
}, {
|
|
@@ -22199,7 +22196,6 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
22199
22196
|
const props = __props;
|
|
22200
22197
|
const { component } = toRefs(props);
|
|
22201
22198
|
const tabComponents = ref({});
|
|
22202
|
-
console.log(component.value);
|
|
22203
22199
|
if ((_b = (_a = component.value) == null ? void 0 : _a.children) == null ? void 0 : _b.length) {
|
|
22204
22200
|
component.value.children.forEach((child) => {
|
|
22205
22201
|
const pageIndex = component.value.props.pages.findIndex((page) => page.value === child.props.pageID);
|
|
@@ -22239,18 +22235,16 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
22239
22235
|
return openBlock(), createBlock(_component_wd_tab, {
|
|
22240
22236
|
"custom-class": "zhy",
|
|
22241
22237
|
key: index2,
|
|
22242
|
-
title: page.label
|
|
22243
|
-
name: page.label
|
|
22238
|
+
title: page.label
|
|
22244
22239
|
}, {
|
|
22245
22240
|
default: withCtx(() => [
|
|
22246
22241
|
createVNode(_sfc_main$5, {
|
|
22247
|
-
class: "overflow-auto",
|
|
22248
22242
|
components: unref(tabComponents)[index2],
|
|
22249
22243
|
showDescription: __props.showDescription
|
|
22250
22244
|
}, null, 8, ["components", "showDescription"]),
|
|
22251
22245
|
unref(component).props.showNavigation ? (openBlock(), createBlock(_component_v_uni_view, {
|
|
22252
22246
|
key: 0,
|
|
22253
|
-
class: "w-full text-right sons-class-wd-button:mx-10px!"
|
|
22247
|
+
class: "w-full pos-absolute box-border text-right sons-class-wd-button:mx-10px!"
|
|
22254
22248
|
}, {
|
|
22255
22249
|
default: withCtx(() => [
|
|
22256
22250
|
index2 !== 0 ? (openBlock(), createBlock(_component_wd_button, {
|
|
@@ -22280,7 +22274,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
22280
22274
|
}, 1024)) : createCommentVNode("", true)
|
|
22281
22275
|
]),
|
|
22282
22276
|
_: 2
|
|
22283
|
-
}, 1032, ["title"
|
|
22277
|
+
}, 1032, ["title"]);
|
|
22284
22278
|
}), 128))
|
|
22285
22279
|
]),
|
|
22286
22280
|
_: 1
|
|
@@ -22446,7 +22440,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
22446
22440
|
}, null, 40, ["component", "disabled", "labelPosition", "showDescription", "onePageItemFlag", "currentShowIDArray"])) : (openBlock(), createBlock(_component_wd_cell, {
|
|
22447
22441
|
key: 1,
|
|
22448
22442
|
"custom-class": `zhy form-item form-prop-${component.id}`,
|
|
22449
|
-
vertical:
|
|
22443
|
+
vertical: true,
|
|
22450
22444
|
"title-width": `${component.props.showLabel && __props.labelPosition !== "top" ? component.props.labelWidth : ""}px`,
|
|
22451
22445
|
prop: component.id,
|
|
22452
22446
|
rules: component.rules
|
|
@@ -22475,7 +22469,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
22475
22469
|
}, null, 40, ["class", "componentProps", "onUpdate:componentProps", "datas", "componentID", "disabled", "readonly", "showDescription"]))
|
|
22476
22470
|
]),
|
|
22477
22471
|
_: 2
|
|
22478
|
-
}, 1032, ["custom-class", "
|
|
22472
|
+
}, 1032, ["custom-class", "title-width", "prop", "rules"]))
|
|
22479
22473
|
]),
|
|
22480
22474
|
_: 2
|
|
22481
22475
|
}, 1024)) : createCommentVNode("", true)
|
|
@@ -23359,6 +23353,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
23359
23353
|
everyItemDisplayAnalysisSwitch: {
|
|
23360
23354
|
type: Boolean,
|
|
23361
23355
|
default: false
|
|
23356
|
+
},
|
|
23357
|
+
/**
|
|
23358
|
+
* 答题卡显示正确与否
|
|
23359
|
+
*/
|
|
23360
|
+
showCorrectOrNot: {
|
|
23361
|
+
type: Boolean,
|
|
23362
|
+
default: false
|
|
23362
23363
|
}
|
|
23363
23364
|
},
|
|
23364
23365
|
emits: ["change", "switchPage"],
|
|
@@ -23377,9 +23378,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
23377
23378
|
"formType",
|
|
23378
23379
|
computed(() => formData.value.props.formType)
|
|
23379
23380
|
);
|
|
23380
|
-
watch(formData, () => {
|
|
23381
|
-
initComponents(formData.value.components);
|
|
23382
|
-
});
|
|
23383
23381
|
const theme2 = inject("theme", ref({}));
|
|
23384
23382
|
const themeVars = ref({});
|
|
23385
23383
|
watch(
|
|
@@ -23390,6 +23388,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
23390
23388
|
{ deep: true, immediate: true }
|
|
23391
23389
|
);
|
|
23392
23390
|
onMounted(() => initComponents(formData.value.components));
|
|
23391
|
+
watch(formData, () => {
|
|
23392
|
+
initComponents(formData.value.components);
|
|
23393
|
+
});
|
|
23393
23394
|
const initComponents = (components2) => {
|
|
23394
23395
|
if (components2 == null ? void 0 : components2.length) {
|
|
23395
23396
|
components2.forEach((component) => {
|
|
@@ -23583,9 +23584,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
23583
23584
|
};
|
|
23584
23585
|
};
|
|
23585
23586
|
const showAnswerSheetFlag = ref(false);
|
|
23586
|
-
const
|
|
23587
|
-
const showAnswerSheet = (showCorrectOrNotFlag) => {
|
|
23588
|
-
showCorrectOrNot.value = showCorrectOrNotFlag ?? false;
|
|
23587
|
+
const showAnswerSheet = () => {
|
|
23589
23588
|
showAnswerSheetFlag.value = false;
|
|
23590
23589
|
nextTick(() => {
|
|
23591
23590
|
showAnswerSheetFlag.value = true;
|
|
@@ -23761,7 +23760,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
23761
23760
|
}),
|
|
23762
23761
|
unref(showAnswerSheetFlag) ? (openBlock(), createBlock(answerSheetPopup, {
|
|
23763
23762
|
key: 0,
|
|
23764
|
-
showCorrectOrNot:
|
|
23763
|
+
showCorrectOrNot: __props.showCorrectOrNot,
|
|
23765
23764
|
formData: unref(formData),
|
|
23766
23765
|
onShowItem: scrollToField
|
|
23767
23766
|
}, null, 8, ["showCorrectOrNot", "formData"])) : createCommentVNode("", true),
|