38 lines
851 B
Vue
38 lines
851 B
Vue
<!--
|
|
* @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' : ''}`">
|
|
<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>
|