{"version":3,"file":"teleport2.mjs","sources":["../../../../../../packages/components/teleport/src/teleport.vue"],"sourcesContent":["<template>\n  <teleport v-if=\"container\" :to=\"container\" :disabled=\"disabled\">\n    <div ref=\"containerRef\" :class=\"ns.b()\" :style=\"containerStyle\">\n      <slot />\n    </div>\n  </teleport>\n</template>\n\n<script lang=\"ts\">\nimport { computed, defineComponent, ref } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { elTeleportProps } from './teleport'\n\nexport default defineComponent({\n  props: elTeleportProps,\n  setup(props) {\n    const ns = useNamespace('teleport')\n    const containerRef = ref<HTMLElement>()\n    const containerStyle = computed(() => {\n      return props.container === 'body'\n        ? [\n            props.style,\n            {\n              position: 'absolute',\n              top: `0px`,\n              left: `0px`,\n              zIndex: props.zIndex,\n            },\n          ]\n        : {}\n    })\n    return {\n      ns,\n      containerRef,\n      containerStyle,\n    }\n  },\n})\n</script>\n"],"names":["_normalizeClass"],"mappings":";;;;;;AAaA,MAAK,YAAa,gBAAa;AAAA,EAC7B,OAAO;AAAA,EACP,MAAM,OAAO;AACX,UAAM,KAAK,aAAa;AACxB,UAAM,eAAe;AACrB,UAAM,iBAAiB,SAAS,MAAM;AACpC,aAAO,MAAM,cAAc,SACvB;AAAA,QACE,MAAM;AAAA,QACN;AAAA,UACE,UAAU;AAAA,UACV,KAAK;AAAA,UACL,MAAM;AAAA,UACN,QAAQ,MAAM;AAAA;AAAA,UAGlB;AAAA;AAEN,WAAO;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA;AAAA;AAAA;qBAjCY,MAAS;;IAAG,KAAI;AAAA,IAAY,SAAQ;AAAA;KAClD;AAAA,uBAAS,OAAc;AAAA,MAAE,KAAK;AAAA,MAAW,OAAKA,eAAE;AAAA;OAC9C;AAAA;;;;;;;;"}