1import { f as defineComponent, cP as useSlots, v as useNamespace, z as computed, o as openBlock, c as createElementBlock, Z as renderSlot, G as normalizeClass, h as unref, Q as _export_sfc, O as normalizeStyle, X as withInstall, cq as withNoopInstall } from "./entry.bb9e2e36.js"; 2const __default__$4 = /* @__PURE__ */ defineComponent({ 3 name: "ElContainer" 4}); 5const _sfc_main$4 = /* @__PURE__ */ defineComponent({ 6 ...__default__$4, 7 props: { 8 direction: { 9 type: String 10 } 11 }, 12 setup(__props) { 13 const props = __props; 14 const slots = useSlots(); 15 const ns = useNamespace("container"); 16 const isVertical = computed(() => { 17 if (props.direction === "vertical") { 18 return true; 19 } else if (props.direction === "horizontal") { 20 return false; 21 } 22 if (slots && slots.default) { 23 const vNodes = slots.default(); 24 return vNodes.some((vNode) => { 25 const tag = vNode.type.name; 26 return tag === "ElHeader" || tag === "ElFooter"; 27 }); 28 } else { 29 return false; 30 } 31 }); 32 return (_ctx, _cache) => { 33 return openBlock(), createElementBlock("section", { 34 class: normalizeClass([unref(ns).b(), unref(ns).is("vertical", unref(isVertical))]) 35 }, [ 36 renderSlot(_ctx.$slots, "default") 37 ], 2); 38 }; 39 } 40}); 41var Container = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/container/src/container.vue"]]); 42const __default__$3 = /* @__PURE__ */ defineComponent({ 43 name: "ElAside" 44}); 45const _sfc_main$3 = /* @__PURE__ */ defineComponent({ 46 ...__default__$3, 47 props: { 48 width: { 49 type: String, 50 default: null 51 } 52 }, 53 setup(__props) { 54 const props = __props; 55 const ns = useNamespace("aside"); 56 const style = computed(() => props.width ? ns.cssVarBlock({ width: props.width }) : {}); 57 return (_ctx, _cache) => { 58 return openBlock(), createElementBlock("aside", { 59 class: normalizeClass(unref(ns).b()), 60 style: normalizeStyle(unref(style)) 61 }, [ 62 renderSlot(_ctx.$slots, "default") 63 ], 6); 64 }; 65 } 66}); 67var Aside = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/container/src/aside.vue"]]); 68const __default__$2 = /* @__PURE__ */ defineComponent({ 69 name: "ElFooter" 70}); 71const _sfc_main$2 = /* @__PURE__ */ defineComponent({ 72 ...__default__$2, 73 props: { 74 height: { 75 type: String, 76 default: null 77 } 78 }, 79 setup(__props) { 80 const props = __props; 81 const ns = useNamespace("footer"); 82 const style = computed(() => props.height ? ns.cssVarBlock({ height: props.height }) : {}); 83 return (_ctx, _cache) => { 84 return openBlock(), createElementBlock("footer", { 85 class: normalizeClass(unref(ns).b()), 86 style: normalizeStyle(unref(style)) 87 }, [ 88 renderSlot(_ctx.$slots, "default") 89 ], 6); 90 }; 91 } 92}); 93var Footer = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/container/src/footer.vue"]]); 94const __default__$1 = /* @__PURE__ */ defineComponent({ 95 name: "ElHeader" 96}); 97const _sfc_main$1 = /* @__PURE__ */ defineComponent({ 98 ...__default__$1, 99 props: { 100 height: { 101 type: String, 102 default: null 103 } 104 }, 105 setup(__props) { 106 const props = __props; 107 const ns = useNamespace("header"); 108 const style = computed(() => { 109 return props.height ? ns.cssVarBlock({ 110 height: props.height 111 }) : {}; 112 }); 113 return (_ctx, _cache) => { 114 return openBlock(), createElementBlock("header", { 115 class: normalizeClass(unref(ns).b()), 116 style: normalizeStyle(unref(style)) 117 }, [ 118 renderSlot(_ctx.$slots, "default") 119 ], 6); 120 }; 121 } 122}); 123var Header = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/container/src/header.vue"]]); 124const __default__ = /* @__PURE__ */ defineComponent({ 125 name: "ElMain" 126});
127const _sfc_main = /* @__PURE__ */ defineComponent({ 128 ...__default__, 129 setup(__props) { 130 const ns = useNamespace("main"); 131 return (_ctx, _cache) => { 132 return openBlock(), createElementBlock("main", { 133 class: normalizeClass(unref(ns).b()) 134 }, [ 135 renderSlot(_ctx.$slots, "default") 136 ], 2); 137 }; 138 } 139}); 140var Main = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/container/src/main.vue"]]); 141const ElContainer = withInstall(Container, { 142 Aside, 143 Footer, 144 Header, 145 Main 146}); 147const ElAside = withNoopInstall(Aside); 148withNoopInstall(Footer); 149const ElHeader = withNoopInstall(Header); 150const ElMain = withNoopInstall(Main); 151const elHeader = ""; 152const elMain = ""; 153const elContainer = ""; 154const elAside = ""; 155const elFooter = ""; 156export { 157 ElHeader as E, 158 ElMain as a, 159 ElContainer as b, 160 ElAside as c 161};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.