@hoci/components 0.4.0 → 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 +18 -8
- package/dist/index.d.cts +4 -1
- package/dist/index.d.mts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.mjs +18 -9
- package/package.json +2 -2
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 {
|
|
41
|
-
|
|
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
|
|
|
@@ -121,8 +115,24 @@ const HiSwitch = vue.defineComponent({
|
|
|
121
115
|
}
|
|
122
116
|
});
|
|
123
117
|
|
|
118
|
+
const components = {
|
|
119
|
+
__proto__: null,
|
|
120
|
+
HiAffix: HiAffix,
|
|
121
|
+
HiIcon: HiIcon,
|
|
122
|
+
HiItem: HiItem,
|
|
123
|
+
HiSelection: HiSelection,
|
|
124
|
+
HiSwitch: HiSwitch
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
const install = (app) => {
|
|
128
|
+
for (const key in components) {
|
|
129
|
+
app.component(key, components[key]);
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
|
|
124
133
|
exports.HiAffix = HiAffix;
|
|
125
134
|
exports.HiIcon = HiIcon;
|
|
126
135
|
exports.HiItem = HiItem;
|
|
127
136
|
exports.HiSelection = HiSelection;
|
|
128
137
|
exports.HiSwitch = HiSwitch;
|
|
138
|
+
exports.install = install;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
|
+
import { App } from 'vue';
|
|
2
3
|
import * as _hoci_core from '@hoci/core';
|
|
3
4
|
|
|
4
5
|
declare const HiAffix: vue.DefineComponent<{
|
|
@@ -361,4 +362,6 @@ declare const HiSwitch: vue.DefineComponent<{
|
|
|
361
362
|
as: string;
|
|
362
363
|
}, {}>;
|
|
363
364
|
|
|
364
|
-
|
|
365
|
+
declare const install: (app: App) => void;
|
|
366
|
+
|
|
367
|
+
export { HiAffix, HiIcon, HiItem, HiSelection, HiSwitch, install };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
|
+
import { App } from 'vue';
|
|
2
3
|
import * as _hoci_core from '@hoci/core';
|
|
3
4
|
|
|
4
5
|
declare const HiAffix: vue.DefineComponent<{
|
|
@@ -361,4 +362,6 @@ declare const HiSwitch: vue.DefineComponent<{
|
|
|
361
362
|
as: string;
|
|
362
363
|
}, {}>;
|
|
363
364
|
|
|
364
|
-
|
|
365
|
+
declare const install: (app: App) => void;
|
|
366
|
+
|
|
367
|
+
export { HiAffix, HiIcon, HiItem, HiSelection, HiSwitch, install };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
|
+
import { App } from 'vue';
|
|
2
3
|
import * as _hoci_core from '@hoci/core';
|
|
3
4
|
|
|
4
5
|
declare const HiAffix: vue.DefineComponent<{
|
|
@@ -361,4 +362,6 @@ declare const HiSwitch: vue.DefineComponent<{
|
|
|
361
362
|
as: string;
|
|
362
363
|
}, {}>;
|
|
363
364
|
|
|
364
|
-
|
|
365
|
+
declare const install: (app: App) => void;
|
|
366
|
+
|
|
367
|
+
export { HiAffix, HiIcon, HiItem, HiSelection, HiSwitch, install };
|
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 {
|
|
39
|
-
|
|
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
|
|
|
@@ -119,4 +113,19 @@ const HiSwitch = defineComponent({
|
|
|
119
113
|
}
|
|
120
114
|
});
|
|
121
115
|
|
|
122
|
-
|
|
116
|
+
const components = {
|
|
117
|
+
__proto__: null,
|
|
118
|
+
HiAffix: HiAffix,
|
|
119
|
+
HiIcon: HiIcon,
|
|
120
|
+
HiItem: HiItem,
|
|
121
|
+
HiSelection: HiSelection,
|
|
122
|
+
HiSwitch: HiSwitch
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
const install = (app) => {
|
|
126
|
+
for (const key in components) {
|
|
127
|
+
app.component(key, components[key]);
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
export { HiAffix, HiIcon, HiItem, HiSelection, HiSwitch, install };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hoci/components",
|
|
3
|
-
"version": "0.4.
|
|
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.
|
|
35
|
+
"@hoci/core": "0.4.3"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build": "unbuild",
|