@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.
@@ -25,7 +25,8 @@ const Icon = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
25
25
  };
26
26
  if (!viewBox) delete innerSvgProps.viewBox;
27
27
  const children = filterEmpty(slots?.default?.());
28
- warning(Boolean(component || children.length), "Should have `component` prop or `children`.");
28
+ const comp = filterEmpty(slots?.component?.());
29
+ warning(Boolean(component || children.length || comp.length), "Should have `component` prop or `children`.");
29
30
  const renderInnerNode = () => {
30
31
  if (slots?.component) return slots.component();
31
32
  if (component) return createVNode(component, innerSvgProps, slots);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@antdv-next/icons",
3
3
  "type": "module",
4
- "version": "1.0.3",
4
+ "version": "1.0.4",
5
5
  "description": "Antdv Next icon components for Vue 3.",
6
6
  "repository": {
7
7
  "type": "git",