init component

This commit is contained in:
Robin COuret
2026-02-16 17:28:37 +01:00
parent 460c7a25e0
commit e0e50af706
4557 changed files with 666911 additions and 8 deletions

View File

@@ -0,0 +1,3 @@
export declare const WindowSizeSlot: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}>[] | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{} & {}>, {}>;

View File

@@ -0,0 +1,14 @@
import { defineComponent } from 'vue';
import { useWindowSize } from '../../../composables/windowSize';
export const WindowSizeSlot = defineComponent({
name: 'window-size',
setup(_, {
slots
}) {
const windowSize = useWindowSize();
return () => slots.default && slots.default(windowSize.value);
}
});
//# sourceMappingURL=WindowSizeSlot.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../../src/components/renderless/windowSize/WindowSizeSlot.ts"],"names":[],"mappings":"AAAA,SAAS,eAAT,QAAgC,KAAhC;AACA,SAAS,aAAT,QAA8B,iCAA9B;AAEA,OAAO,MAAM,cAAc,GAAG,eAAe,CAAC;AAC5C,EAAA,IAAI,EAAE,aADsC;;AAE5C,EAAA,KAAK,CAAC,CAAD,EAAI;AAAE,IAAA;AAAF,GAAJ,EAAa;AAChB,UAAM,UAAU,GAAG,aAAa,EAAhC;AACA,WAAO,MAAM,KAAK,CAAC,OAAN,IAAiB,KAAK,CAAC,OAAN,CAAc,UAAU,CAAC,KAAzB,CAA9B;AACD;;AAL2C,CAAD,CAAtC","sourcesContent":["import { defineComponent } from 'vue';\nimport { useWindowSize } from '../../../composables/windowSize';\n\nexport const WindowSizeSlot = defineComponent({\n name: 'window-size',\n setup(_, { slots }) {\n const windowSize = useWindowSize();\n return () => slots.default && slots.default(windowSize.value);\n }\n});\n"],"sourceRoot":"","file":"WindowSizeSlot.js"}

View File

@@ -0,0 +1,3 @@
import { WindowSizeSlot } from './WindowSizeSlot';
export { WindowSizeSlot };
export default WindowSizeSlot;

View File

@@ -0,0 +1,4 @@
import { WindowSizeSlot } from './WindowSizeSlot';
export { WindowSizeSlot };
export default WindowSizeSlot;
//# sourceMappingURL=index.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../../src/components/renderless/windowSize/index.ts"],"names":[],"mappings":"AAAA,SAAS,cAAT,QAA+B,kBAA/B;AAEA,SAAS,cAAT;AAEA,eAAe,cAAf","sourcesContent":["import { WindowSizeSlot } from './WindowSizeSlot';\n\nexport { WindowSizeSlot };\n\nexport default WindowSizeSlot;\n"],"sourceRoot":"","file":"index.js"}