| 12345678910111213141516171819202122232425262728293031323334353637 |
- <!--
- * @Author: weisheng
- * @Date: 2023-06-12 18:40:58
- * @LastEditTime: 2024-03-15 13:42:55
- * @LastEditors: weisheng
- * @Description:
- * @FilePath: \wot-design-uni\src\uni_modules\wot-design-uni\components\wd-steps\wd-steps.vue
- * 记得注释
- -->
- <template>
- <view :class="`wd-steps ${customClass} ${vertical ? 'is-vertical' : ''}`" :style="customStyle">
- <slot />
- </view>
- </template>
- <script lang="ts">
- export default {
- name: 'wd-steps',
- options: {
- addGlobalClass: true,
- virtualHost: true,
- styleIsolation: 'shared'
- }
- }
- </script>
- <script lang="ts" setup>
- import { useChildren } from '../composables/useChildren'
- import { STEPS_KEY, stepsProps } from './types'
- const props = defineProps(stepsProps)
- const { linkChildren } = useChildren(STEPS_KEY)
- linkChildren({ props })
- </script>
- <style lang="scss" scoped>
- @import './index.scss';
- </style>
|