@antdv-next/icons 1.0.3 → 1.0.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.
@@ -1000,14 +1000,14 @@ var ot = /* @__PURE__ */ a((e, { slots: t, attrs: n }) => {
1000
1000
  viewBox: d
1001
1001
  };
1002
1002
  d || delete _.viewBox;
1003
- let v = C(t?.default?.());
1004
- O(!!(c || v.length), "Should have `component` prop or `children`.");
1005
- let y = () => t?.component ? t.component() : c ? i(c, _, t) : v.length ? (O(!!d || v.length === 1 && v[0]?.props?.type === "use", "Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."), i("svg", l(_, { viewBox: d }), [t?.default?.()])) : null, b = f;
1006
- return b === void 0 && p && (b = -1), i("span", l({ role: "img" }, n, {
1007
- tabindex: b,
1003
+ let v = C(t?.default?.()), y = C(t?.component?.());
1004
+ O(!!(c || v.length || y.length), "Should have `component` prop or `children`.");
1005
+ let b = () => t?.component ? t.component() : c ? i(c, _, t) : v.length ? (O(!!d || v.length === 1 && v[0]?.props?.type === "use", "Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."), i("svg", l(_, { viewBox: d }), [t?.default?.()])) : null, x = f;
1006
+ return x === void 0 && p && (x = -1), i("span", l({ role: "img" }, n, {
1007
+ tabindex: x,
1008
1008
  onClick: p,
1009
1009
  class: m
1010
- }), [y()]);
1010
+ }), [b()]);
1011
1011
  };
1012
1012
  }, {
1013
1013
  props: {