UNPKG

vue-fluent-ui

Version:

一个winui3/fluent design风格的vue组件库

38 lines (25 loc) 968 B
import { defineComponent, onUnmounted, renderSlot } from "vue"; import { createStyle, getDefaultLightTheme } from "../../../theme/index.js"; import { useStyleTag } from "@vueuse/core"; import "../../../styles/index.css"; ;// CONCATENATED MODULE: external "vue" ;// CONCATENATED MODULE: external "../../../theme/index.js" ;// CONCATENATED MODULE: external "@vueuse/core" ;// CONCATENATED MODULE: external "../../../styles/index.css" ;// CONCATENATED MODULE: ./src/components/VfProvider/src/Provider.vue const _sfc_main = /* @__PURE__ */ defineComponent({ __name: "Provider", setup(__props) { const theme = getDefaultLightTheme(); const cssString = createStyle(theme); const { unload } = useStyleTag(cssString); onUnmounted(() => { unload(); }); return (_ctx, _cache) => { return renderSlot(_ctx.$slots, "default"); }; } }); /* ESM default export */ const Provider = (_sfc_main); export { Provider as default };