zhytech-ui-mobile 1.0.11 → 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
- const everyItemDisplayAnalysisSwitch = inject("everyItemDisplayAnalysisSwitch");
17198
- const displayAnswerDescription = ref(false);
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
- unref(everyItemDisplayAnalysisSwitch) || unref(displayAnswerDescription) || __props.showDescription && (unref(formType) === unref(formTypeEnum).Examination || unref(componentProps).description) ? (openBlock(), createBlock(_component_v_uni_view, {
17304
+ __props.showDescription && (unref(formType) === unref(formTypeEnum).Examination || unref(componentProps).description) ? (openBlock(), createBlock(_component_v_uni_view, {
17305
17305
  key: 0,
17306
- class: normalizeClass(["dynamic-form-item-description", { "show-description": unref(displayAnswerDescription) }])
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
- unref(displayAnswerDescription) ? (openBlock(), createBlock(_component_v_uni_view, { key: 0 }, {
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
- }, 8, ["class"])) : createCommentVNode("", true)
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
  }, {
@@ -22242,13 +22239,12 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
22242
22239
  }, {
22243
22240
  default: withCtx(() => [
22244
22241
  createVNode(_sfc_main$5, {
22245
- class: "overflow-auto",
22246
22242
  components: unref(tabComponents)[index2],
22247
22243
  showDescription: __props.showDescription
22248
22244
  }, null, 8, ["components", "showDescription"]),
22249
22245
  unref(component).props.showNavigation ? (openBlock(), createBlock(_component_v_uni_view, {
22250
22246
  key: 0,
22251
- class: "w-full pos-absolute bottom-4px left-0 text-right sons-class-wd-button:mx-10px!"
22247
+ class: "w-full pos-absolute box-border text-right sons-class-wd-button:mx-10px!"
22252
22248
  }, {
22253
22249
  default: withCtx(() => [
22254
22250
  index2 !== 0 ? (openBlock(), createBlock(_component_wd_button, {
@@ -23382,9 +23378,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
23382
23378
  "formType",
23383
23379
  computed(() => formData.value.props.formType)
23384
23380
  );
23385
- watch(formData, () => {
23386
- initComponents(formData.value.components);
23387
- });
23388
23381
  const theme2 = inject("theme", ref({}));
23389
23382
  const themeVars = ref({});
23390
23383
  watch(
@@ -23395,6 +23388,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
23395
23388
  { deep: true, immediate: true }
23396
23389
  );
23397
23390
  onMounted(() => initComponents(formData.value.components));
23391
+ watch(formData, () => {
23392
+ initComponents(formData.value.components);
23393
+ });
23398
23394
  const initComponents = (components2) => {
23399
23395
  if (components2 == null ? void 0 : components2.length) {
23400
23396
  components2.forEach((component) => {