UNPKG

song-ui-u

Version:

vue3 + js的PC前端组件库

45 lines (37 loc) 1.48 kB
import { computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot } from 'vue'; import { useNamespace } from '../../../hook/use-namespace/index.mjs'; import 'song-ui-pro-icon'; import '../../../hook/use-zindex/index.mjs'; import _export_sfc from '../../../_virtual/_plugin-vue_export-helper.mjs'; const __default__ = { name: "x-main" }; const _sfc_main = /*#__PURE__*/Object.assign(__default__, { props: { bgColor: { type: String, default: "", }, }, setup(__props, { expose: __expose }) { __expose(); const ns = useNamespace("main"); /** props */ const props = __props; const styleBgColor = computed(() => { return props.bgColor ? { "background-color": props.bgColor } : {}; }); const __returned__ = { ns, props, styleBgColor, computed, get useNamespace() { return useNamespace } }; Object.defineProperty(__returned__, '__isScriptSetup', { enumerable: false, value: true }); return __returned__ } }); function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { return (openBlock(), createElementBlock("main", { class: normalizeClass([$setup.ns.b()]), style: normalizeStyle([$setup.styleBgColor]) }, [ renderSlot(_ctx.$slots, "default") ], 6 /* CLASS, STYLE */)) } var Main = /*#__PURE__*/_export_sfc(_sfc_main, [['render',_sfc_render],['__file',"E:\\code\\my-code\\song-ui-ultra\\packages\\components\\container\\src\\main.vue"]]); export { Main as default }; //# sourceMappingURL=main.vue.mjs.map