@v-c/overflow 1.0.4-beta.1 → 1.0.5

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.
Files changed (2) hide show
  1. package/dist/Item.js +5 -3
  2. package/package.json +2 -2
package/dist/Item.js CHANGED
@@ -57,6 +57,7 @@ var Item_default = /* @__PURE__ */ defineComponent({
57
57
  });
58
58
  return () => {
59
59
  const { prefixCls, invalidate, item, renderItem, responsive, responsiveDisabled, order, component: Component = "div", style } = props;
60
+ const { class: classAttr, className, style: styleAttr, ...restAttrs } = attrs;
60
61
  const children = slots.default?.();
61
62
  const childNode = renderItem && item !== UNDEFINED ? renderItem(item, { index: order }) : children;
62
63
  let overflowStyle;
@@ -71,12 +72,13 @@ var Item_default = /* @__PURE__ */ defineComponent({
71
72
  const overflowProps = {};
72
73
  if (mergedHidden.value) overflowProps["aria-hidden"] = true;
73
74
  const itemNode = createVNode(Component, mergeProps({
74
- "class": classNames(!invalidate && prefixCls, props.class),
75
+ "class": classNames(!invalidate && prefixCls, props.class, classAttr, className),
75
76
  "style": {
76
77
  ...overflowStyle,
77
- ...style
78
+ ...style,
79
+ ...styleAttr
78
80
  }
79
- }, overflowProps, attrs), _isSlot(childNode) ? childNode : { default: () => [childNode] });
81
+ }, overflowProps, restAttrs), _isSlot(childNode) ? childNode : { default: () => [childNode] });
80
82
  if (!responsive) return itemNode;
81
83
  return createVNode(ResizeObserver, {
82
84
  "disabled": responsiveDisabled,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@v-c/overflow",
3
3
  "type": "module",
4
- "version": "1.0.4-beta.1",
4
+ "version": "1.0.5",
5
5
  "description": "overflow",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@v-c/resize-observer": "^1.0.8",
28
- "@v-c/util": "^1.0.17"
28
+ "@v-c/util": "^1.0.19"
29
29
  },
30
30
  "scripts": {
31
31
  "build": "vite build",