@hoci/components 0.4.2 → 0.4.3

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.
package/dist/index.cjs CHANGED
@@ -37,14 +37,8 @@ const HiSelection = vue.defineComponent({
37
37
  },
38
38
  emits: core.selectionEmits,
39
39
  setup(props, context) {
40
- const { isActive, changeActive, renderItem } = core.useSelectionList(props, context);
41
- const { slots } = context;
42
- const slotData = {
43
- isActive,
44
- changeActive,
45
- renderItem
46
- };
47
- return () => vue.h(props.as, {}, vue.renderSlot(slots, "default", slotData));
40
+ const { render } = core.useSelectionList(props, context);
41
+ return () => vue.h(props.as, {}, render());
48
42
  }
49
43
  });
50
44
 
package/dist/index.mjs CHANGED
@@ -35,14 +35,8 @@ const HiSelection = defineComponent({
35
35
  },
36
36
  emits: selectionEmits,
37
37
  setup(props, context) {
38
- const { isActive, changeActive, renderItem } = useSelectionList(props, context);
39
- const { slots } = context;
40
- const slotData = {
41
- isActive,
42
- changeActive,
43
- renderItem
44
- };
45
- return () => h(props.as, {}, renderSlot(slots, "default", slotData));
38
+ const { render } = useSelectionList(props, context);
39
+ return () => h(props.as, {}, render());
46
40
  }
47
41
  });
48
42
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hoci/components",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "",
5
5
  "author": "chizuki",
6
6
  "license": "MIT",
@@ -32,7 +32,7 @@
32
32
  "@vueuse/core": "^10.5.0",
33
33
  "maybe-types": "^0.1.0",
34
34
  "tslx": "^0.1.1",
35
- "@hoci/core": "0.4.2"
35
+ "@hoci/core": "0.4.3"
36
36
  },
37
37
  "scripts": {
38
38
  "build": "unbuild",