UNPKG

@fecp/mobile

Version:

41 lines (40 loc) 1.92 kB
/* empty css */ /* empty css */ /* empty css */ /* empty css */ /* empty css */ import { createBlock, openBlock, mergeProps, withCtx, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString } from "vue"; import { Steps } from "../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/steps/index.mjs"; import { Step } from "../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/step/index.mjs"; const _sfc_main = { __name: "Steps", props: { options: { //步骤配置 type: Array, default: [] } }, setup(__props) { return (_ctx, _cache) => { const _component_van_step = Step; const _component_van_steps = Steps; return openBlock(), createBlock(_component_van_steps, mergeProps(_ctx.$attrs, { direction: "horizontal" }), { default: withCtx(() => [ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (item) => { return openBlock(), createBlock(_component_van_step, null, { default: withCtx(() => [ createTextVNode(toDisplayString(item.text), 1) ]), _: 2 }, 1024); }), 256)) ]), _: 1 }, 16); }; } }; export { _sfc_main as default };