tanxin-ui 1.2.3 → 1.2.4

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.
@@ -7406,7 +7406,8 @@ const radioProps = {
7406
7406
  showBorder: PropTypes.bool.def(false),
7407
7407
  button: PropTypes.bool.def(false),
7408
7408
  filling: PropTypes.bool.def(false),
7409
- itemValue: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.bool])
7409
+ itemValue: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.bool]),
7410
+ itemLabel: PropTypes.string
7410
7411
  };
7411
7412
  var Radio = defineComponent({
7412
7413
  name: "TRadio",
@@ -7517,6 +7518,11 @@ var Radio = defineComponent({
7517
7518
  onChange: handleChange,
7518
7519
  onClick: handleClick
7519
7520
  };
7521
+ const labelElement = props.itemLabel ? createVNode("span", {
7522
+ "class": `${prefixCls.value}-content`
7523
+ }, [props.itemLabel]) : slots.default ? createVNode("span", {
7524
+ "class": `${prefixCls.value}-content`
7525
+ }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]) : null;
7520
7526
  return createVNode("label", {
7521
7527
  "class": classes.value
7522
7528
  }, [createVNode("span", {
@@ -7526,9 +7532,7 @@ var Radio = defineComponent({
7526
7532
  "inputmode": "none"
7527
7533
  }), null), createVNode("span", {
7528
7534
  "class": `${prefixCls.value}-inner`
7529
- }, null)]), slots.default ? createVNode("span", {
7530
- "class": `${prefixCls.value}-content`
7531
- }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]) : null]);
7535
+ }, null)]), labelElement]);
7532
7536
  };
7533
7537
  return {
7534
7538
  refRadio,
@@ -9292,6 +9296,8 @@ var SelectContent = defineComponent({
9292
9296
  children,
9293
9297
  props: props2
9294
9298
  } = item;
9299
+ if (!name)
9300
+ return;
9295
9301
  if (name.includes("Group"))
9296
9302
  arr.push(...mapToGroup(key, props2, children));
9297
9303
  else