openxiangda 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.
@@ -909,10 +909,11 @@ function FieldWrapper({
909
909
  }
910
910
  ) : void 0;
911
911
  const errorNode = error ? /* @__PURE__ */ jsx("span", { className: "sy-field-error", role: "alert", "data-testid": `error-${fieldId}`, children: error }) : void 0;
912
+ const requiredMark = required4 ? /* @__PURE__ */ jsx("span", { className: "sy-field-required", "aria-hidden": "true", children: "*" }) : null;
912
913
  if (!AntFormItem) {
913
914
  return /* @__PURE__ */ jsxs("div", { className: cn("sy-field-wrapper", className), "data-field-id": fieldId, children: [
914
915
  /* @__PURE__ */ jsxs("label", { className: cn("sy-field-label", labelClassName), children: [
915
- required4 && /* @__PURE__ */ jsx("span", { className: "sy-field-required", children: "*" }),
916
+ requiredMark,
916
917
  label
917
918
  ] }),
918
919
  /* @__PURE__ */ jsx("div", { className: "sy-field-control", children }),
@@ -924,8 +925,11 @@ function FieldWrapper({
924
925
  AntFormItem,
925
926
  {
926
927
  name: fieldId,
927
- label: /* @__PURE__ */ jsx("span", { className: labelClassName, children: label }),
928
- required: required4,
928
+ label: /* @__PURE__ */ jsxs("span", { className: cn("sy-field-label", labelClassName), children: [
929
+ requiredMark,
930
+ label
931
+ ] }),
932
+ required: false,
929
933
  validateStatus: error ? "error" : void 0,
930
934
  help: errorNode,
931
935
  extra,