wd-steps.vue 871 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <!--
  2. * @Author: weisheng
  3. * @Date: 2023-06-12 18:40:58
  4. * @LastEditTime: 2024-03-15 13:42:55
  5. * @LastEditors: weisheng
  6. * @Description:
  7. * @FilePath: \wot-design-uni\src\uni_modules\wot-design-uni\components\wd-steps\wd-steps.vue
  8. * 记得注释
  9. -->
  10. <template>
  11. <view :class="`wd-steps ${customClass} ${vertical ? 'is-vertical' : ''}`" :style="customStyle">
  12. <slot />
  13. </view>
  14. </template>
  15. <script lang="ts">
  16. export default {
  17. name: 'wd-steps',
  18. options: {
  19. addGlobalClass: true,
  20. virtualHost: true,
  21. styleIsolation: 'shared'
  22. }
  23. }
  24. </script>
  25. <script lang="ts" setup>
  26. import { useChildren } from '../composables/useChildren'
  27. import { STEPS_KEY, stepsProps } from './types'
  28. const props = defineProps(stepsProps)
  29. const { linkChildren } = useChildren(STEPS_KEY)
  30. linkChildren({ props })
  31. </script>
  32. <style lang="scss" scoped>
  33. @import './index.scss';
  34. </style>