import { computed } from 'vue' import { layoutProps } from '../layout-props' import './index.less' export default { props: layoutProps, setup (props, { slots }) { const grid = computed(() => { return props.config._isGrid }) const Item = (option, index) => { const { children: classify, ...classifyConfig } = option // const title = !props.config.hideIndex ? `第${index + 1}步:${stepConfig.title}` : stepConfig.title return
{classifyConfig.title &&

{classifyConfig.title}

}
{slots.item?.({ children: classify })}
} return () => (
{props.config.options?.map(Item)}
) } }