UNPKG

element-plus

Version:

A Component Library for Vue 3

1 lines 1.36 kB
{"version":3,"file":"header.vue2.mjs","sources":["../../../../../../packages/components/container/src/header.vue"],"sourcesContent":["<template>\n <header :class=\"ns.b()\" :style=\"style\">\n <slot />\n </header>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\n\nimport type { CSSProperties } from 'vue'\n\ninterface HeaderProps {\n /**\n * @description height of the header\n */\n height?: string | null\n}\n\ndefineOptions({\n name: 'ElHeader',\n})\n\nconst props = withDefaults(defineProps<HeaderProps>(), {\n height: null,\n})\n\nconst ns = useNamespace('header')\nconst style = computed(() => {\n return props.height\n ? (ns.cssVarBlock({\n height: props.height,\n }) as CSSProperties)\n : {}\n})\n</script>\n"],"names":["_createElementBlock","_normalizeClass","_unref","_renderSlot"],"mappings":";;;;;;;;;;;;AAuBA,IAAA,MAAM,KAAA,GAAQ,OAAA;AAId,IAAA,MAAM,EAAA,GAAK,aAAa,QAAQ,CAAA;AAChC,IAAA,MAAM,KAAA,GAAQ,SAAS,MAAM;AAC3B,MAAA,OAAO,KAAA,CAAM,MAAA,GACR,EAAA,CAAG,WAAA,CAAY;AAAA,QACd,QAAQ,KAAA,CAAM;AAAA,OACf,IACD,EAAC;AAAA,IACP,CAAC,CAAA;;0BAjCCA,kBAAA;AAAA,QAES,QAAA;AAAA,QAAA;AAAA,UAFA,OAAKC,cAAA,CAAEC,KAAA,CAAA,EAAA,CAAA,CAAG,GAAC,CAAA;AAAA,UAAK,KAAA,iBAAO,KAAA,CAAA,KAAK;AAAA;;UACnCC,UAAA,CAAQ,IAAA,CAAA,MAAA,EAAA,SAAA;AAAA;;;;;;;;;;"}