You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
2.1 KiB
1 lines
2.1 KiB
{"ast":null,"code":"import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, normalizeStyle, renderSlot } from 'vue';\nimport _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';\nimport { useNamespace } from '../../../hooks/use-namespace/index.mjs';\nconst __default__ = defineComponent({\n name: \"ElAside\"\n});\nconst _sfc_main = /* @__PURE__ */defineComponent({\n ...__default__,\n props: {\n width: {\n type: String,\n default: null\n }\n },\n setup(__props) {\n const props = __props;\n const ns = useNamespace(\"aside\");\n const style = computed(() => props.width ? ns.cssVarBlock({\n width: props.width\n }) : {});\n return (_ctx, _cache) => {\n return openBlock(), createElementBlock(\"aside\", {\n class: normalizeClass(unref(ns).b()),\n style: normalizeStyle(unref(style))\n }, [renderSlot(_ctx.$slots, \"default\")], 6);\n };\n }\n});\nvar Aside = /* @__PURE__ */_export_sfc(_sfc_main, [[\"__file\", \"aside.vue\"]]);\nexport { Aside as default };","map":{"version":3,"names":["name","openBlock","createElementBlock","class","normalizeClass","unref","ns","b","style","normalizeStyle"],"sources":["../../../../../../packages/components/container/src/aside.vue"],"sourcesContent":["<template>\n <aside :class=\"ns.b()\" :style=\"style\">\n <slot />\n </aside>\n</template>\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\n\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: 'ElAside',\n})\nconst props = defineProps({\n /**\n * @description width of the side section\n */\n width: {\n type: String,\n default: null,\n },\n})\n\nconst ns = useNamespace('aside')\nconst style = computed(\n () =>\n (props.width ? ns.cssVarBlock({ width: props.width }) : {}) as CSSProperties\n)\n</script>\n"],"mappings":";;;mCAWc;EACZA,IAAM;AACR;;;;;;;;;;;;;;;;MAWM,OAAAC,SAAA,IAAAC,kBAAyB;QAC/BC,KAAc,EAAAC,cAAA,CAAAC,KAAA,CAAAC,EAAA,EAAAC,CAAA;QACZC,KACS,EAAAC,cAAW,CAAAJ,KAAA,CAAAG,KAAc;MAAyB,CAC7D,G","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}
|