d22fa02c5e3d38bbd3a33bdda0973939e9b3b452625586ea4d318a218b4fc0fe9f7d860a3f047d1bc591b35e30cb9b5678d8d6a34bc9b9ef8eafea8d5e909f 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import { defineComponent, computed, openBlock, createElementBlock, mergeProps, unref, renderSlot } from 'vue';
  2. import { visualHiddenProps } from './visual-hidden.mjs';
  3. import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
  4. const __default__ = defineComponent({
  5. name: "ElVisuallyHidden"
  6. });
  7. const _sfc_main = /* @__PURE__ */ defineComponent({
  8. ...__default__,
  9. props: visualHiddenProps,
  10. setup(__props) {
  11. const props = __props;
  12. const computedStyle = computed(() => {
  13. return [
  14. props.style,
  15. {
  16. position: "absolute",
  17. border: 0,
  18. width: 1,
  19. height: 1,
  20. padding: 0,
  21. margin: -1,
  22. overflow: "hidden",
  23. clip: "rect(0, 0, 0, 0)",
  24. whiteSpace: "nowrap",
  25. wordWrap: "normal"
  26. }
  27. ];
  28. });
  29. return (_ctx, _cache) => {
  30. return openBlock(), createElementBlock("span", mergeProps(_ctx.$attrs, { style: unref(computedStyle) }), [
  31. renderSlot(_ctx.$slots, "default")
  32. ], 16);
  33. };
  34. }
  35. });
  36. var ElVisuallyHidden = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "visual-hidden.vue"]]);
  37. export { ElVisuallyHidden as default };
  38. //# sourceMappingURL=visual-hidden2.mjs.map