FlexCol.vue 487 B

12345678910111213141516171819202122232425
  1. <template>
  2. <FlexView
  3. v-bind="($props as any)"
  4. direction="column"
  5. @click="emit('click', $event)"
  6. >
  7. <slot />
  8. </FlexView>
  9. </template>
  10. <script setup lang="ts">
  11. /**
  12. * 组件说明:Flex垂直布局,为对FlexView的封装,用法一致。
  13. */
  14. import FlexView from './FlexView.vue';
  15. import type { FlexProps } from './FlexView.vue';
  16. const emit = defineEmits([ 'click' ])
  17. defineProps<FlexProps>();
  18. defineOptions({
  19. options: {
  20. virtualHost: true
  21. }
  22. })
  23. </script>