UNPKG

@sumdoo/sumdoo-ui

Version:

轻量级的移动端 Vue3 组件库 (支持小程序开发)

33 lines (32 loc) 985 B
/*! * @sumdoo/sumdoo-ui v1.0.0 Wed Feb 09 2022 13:07:24 GMT+0800 (中国标准时间) * (c) 2022 @sumdoo * Released under the MIT License. */ import { defineComponent, computed, openBlock, createElementBlock, normalizeStyle, renderSlot } from "vue"; import { a as addUnit } from "./helper.js"; import { _ as _export_sfc } from "./plugin-vue_export-helper.js"; const _sfc_main = defineComponent({ name: "SdAside", props: { width: { type: [String, Number], default: "auto" } }, setup(props) { const style$ = computed(() => { return { width: addUnit(props.width) }; }); return { style$ }; } }); function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { return openBlock(), createElementBlock("div", { class: "sd-aside", style: normalizeStyle(_ctx.style$) }, [ renderSlot(_ctx.$slots, "default") ], 4); } var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]); export { index as default };