yuang-framework-ui-pc
Version:
yuang-framework-ui-pc Library
55 lines (54 loc) • 1.88 kB
JavaScript
;
const vue = require("vue");
const elementPlus = require("element-plus");
const core = require("../utils/core");
const props = require("./props");
const _sfc_main = vue.defineComponent({
name: "EleSteps",
components: { ElSteps: elementPlus.ElSteps, ElStep: elementPlus.ElStep },
props: props.stepsProps,
setup(props2) {
const rootProps = vue.computed(() => {
return core.omit(props2, ["items", "type"]);
});
return { rootProps };
}
});
const _export_sfc = (sfc, props2) => {
const target = sfc.__vccOpts || sfc;
for (const [key, val] of props2) {
target[key] = val;
}
return target;
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
const _component_ElStep = vue.resolveComponent("ElStep");
const _component_ElSteps = vue.resolveComponent("ElSteps");
return vue.openBlock(), vue.createBlock(_component_ElSteps, vue.mergeProps(_ctx.rootProps, {
class: [
"ele-steps",
{ "is-inline": _ctx.direction === "horizontal" && _ctx.type === "inline" }
]
}), {
default: vue.withCtx(() => [
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.items, (item, index2) => {
return vue.openBlock(), vue.createBlock(_component_ElStep, vue.mergeProps({ key: index2 }, { ref_for: true }, item), vue.createSlots({ _: 2 }, [
vue.renderList(Object.keys(_ctx.$slots).filter((k) => "default" !== k), (name) => {
return {
name,
fn: vue.withCtx(() => [
vue.renderSlot(_ctx.$slots, name, {
index: index2,
item
})
])
};
})
]), 1040);
}), 128))
]),
_: 3
}, 16, ["class"]);
}
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
module.exports = index;