zhytech-ui-mobile 1.1.12 → 1.1.13

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.
package/README.md CHANGED
@@ -79,6 +79,11 @@ npm install --legacy-peer-deps
79
79
 
80
80
  > #### 版本更新清单:
81
81
 
82
+ **V 1.1.13**
83
+ ```html
84
+ 1.修复动态表单复选框/单选框设置分数为0时不显示问题
85
+ ```
86
+
82
87
  **V 1.1.12**
83
88
  ```html
84
89
  1.修复动态表单结果返回时,复选框、单选框选值的itemSourceType取错问题
@@ -16625,7 +16625,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
16625
16625
  shape: "square"
16626
16626
  }, {
16627
16627
  default: withCtx(() => [
16628
- createTextVNode(toDisplayString(`${item.pointsPosition === "left" && item.points ? `(${item.points})` : ""}`) + " " + toDisplayString(item.label) + " " + toDisplayString(`${item.pointsPosition === "right" && item.points ? `(${item.points})` : ""}`), 1)
16628
+ createTextVNode(toDisplayString(`${item.pointsPosition === "left" && item.points && item.points != null ? `(${item.points})` : ""}`) + " " + toDisplayString(item.label) + " " + toDisplayString(`${item.pointsPosition === "right" && item.points && item.points != null ? `(${item.points})` : ""}`), 1)
16629
16629
  ]),
16630
16630
  _: 2
16631
16631
  }, 1032, ["modelValue"]),
@@ -17722,7 +17722,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
17722
17722
  onClick: ($event) => clearCheck($event, item.value)
17723
17723
  }, {
17724
17724
  default: withCtx(() => [
17725
- createTextVNode(toDisplayString(`${item.pointsPosition === "left" && item.points ? `(${item.points})` : ""}`) + " " + toDisplayString(item.label) + " " + toDisplayString(`${item.pointsPosition === "right" && item.points ? `(${item.points})` : ""}`), 1)
17725
+ createTextVNode(toDisplayString(`${item.pointsPosition === "left" && item.points && item.points != null ? `(${item.points})` : ""}`) + " " + toDisplayString(item.label) + " " + toDisplayString(`${item.pointsPosition === "right" && item.points && item.points != null ? `(${item.points})` : ""}`), 1)
17726
17726
  ]),
17727
17727
  _: 2
17728
17728
  }, 1032, ["value", "onClick"]),
@@ -26642,14 +26642,15 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
26642
26642
  case "radio":
26643
26643
  const radioOption = (_b2 = (_a2 = component.props) == null ? void 0 : _a2.options) == null ? void 0 : _b2.find((option) => option.value === data2[componentID]);
26644
26644
  resultData.push({
26645
- sourceType: radioOption.itemSourceType,
26645
+ sourceType: (radioOption == null ? void 0 : radioOption.itemSourceType) ?? "",
26646
26646
  pageID,
26647
26647
  groupID,
26648
26648
  parentID: componentID,
26649
26649
  id: data2[componentID],
26650
26650
  // 可能包含手动录入的备注,通过拼接获取到录入的备注
26651
26651
  value: data2[`${componentID}||${data2[componentID]}`] ?? "",
26652
- valueContent: (radioOption == null ? void 0 : radioOption.label) ?? ""
26652
+ valueContent: (radioOption == null ? void 0 : radioOption.label) ?? "",
26653
+ points: radioOption == null ? void 0 : radioOption.points
26653
26654
  });
26654
26655
  break;
26655
26656
  case "checkbox":
@@ -26657,7 +26658,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
26657
26658
  var _a3, _b3;
26658
26659
  const checkboxOption = (_b3 = (_a3 = component.props) == null ? void 0 : _a3.options) == null ? void 0 : _b3.find((option) => option.value === value);
26659
26660
  resultData.push({
26660
- sourceType: checkboxOption.itemSourceType,
26661
+ sourceType: (checkboxOption == null ? void 0 : checkboxOption.itemSourceType) ?? "",
26661
26662
  pageID,
26662
26663
  groupID,
26663
26664
  parentID: componentID,
@@ -26665,7 +26666,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
26665
26666
  // 可能包含手动录入的备注,通过拼接获取到录入的备注
26666
26667
  value: data2[`${componentID}||${value}`] ?? "",
26667
26668
  valueContent: (checkboxOption == null ? void 0 : checkboxOption.label) ?? "",
26668
- points: (checkboxOption == null ? void 0 : checkboxOption.points) ?? ""
26669
+ points: checkboxOption == null ? void 0 : checkboxOption.points
26669
26670
  });
26670
26671
  });
26671
26672
  break;