ivue-material-plus
Version:
A high quality UI components Library with Vue.js
82 lines (79 loc) • 3.92 kB
JavaScript
import _sfc_main from './step.vue_vue_type_script_lang.mjs';
import { createElementVNode, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createCommentVNode, toDisplayString, Fragment, renderSlot, createVNode, withCtx, createTextVNode } from 'vue';
import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
const _hoisted_1 = /* @__PURE__ */ createElementVNode("i", null, null, -1);
const _hoisted_2 = [
_hoisted_1
];
const _hoisted_3 = /* @__PURE__ */ createElementVNode("i", null, null, -1);
const _hoisted_4 = [
_hoisted_3
];
const _hoisted_5 = { key: 0 };
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
const _component_ivue_icon = resolveComponent("ivue-icon");
return openBlock(), createElementBlock("div", {
class: normalizeClass(_ctx.wrapClasses),
style: normalizeStyle(_ctx.wrapStyles)
}, [
createCommentVNode(" \u4E0B\u5212\u7EBF "),
_ctx.data.textDirection === "right" || _ctx.data.direction === "horizontal" ? (openBlock(), createElementBlock("div", {
key: 0,
class: normalizeClass([`${_ctx.prefixCls}-divider`])
}, _hoisted_2, 2)) : createCommentVNode("v-if", true),
createCommentVNode(" \u6B65\u9AA4 "),
createElementVNode("div", {
class: normalizeClass([`${_ctx.prefixCls}-header`])
}, [
createCommentVNode(" \u4E0B\u5212\u7EBF "),
_ctx.data.textDirection === "bottom" || _ctx.data.direction === "vertical" ? (openBlock(), createElementBlock("div", {
key: 0,
class: normalizeClass([`${_ctx.prefixCls}-divider`])
}, _hoisted_4, 2)) : createCommentVNode("v-if", true),
createElementVNode("div", {
class: normalizeClass([`${_ctx.prefixCls}-header-content`]),
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
}, [
createCommentVNode(" \u6B65\u9AA4\u6570 \u8FD8\u6CA1\u5B8C\u6210\u6216\u8005\u6CA1\u6709\u9519\u8BEF\u663E\u793A"),
!_ctx.icon && !_ctx.$slots.icon && _ctx.data.currentStatus !== "finish" && _ctx.data.currentStatus !== "error" ? (openBlock(), createElementBlock("span", _hoisted_5, toDisplayString(_ctx.data.stepNumber), 1)) : _ctx.$slots.icon ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
createCommentVNode(" \u63D2\u69FD "),
createElementVNode("span", {
class: normalizeClass(`${_ctx.prefixCls}s-icon`)
}, [
renderSlot(_ctx.$slots, "icon")
], 2)
], 2112)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
createCommentVNode(" \u56FE\u6807 "),
createVNode(_component_ivue_icon, {
class: normalizeClass(`${_ctx.prefixCls}-icon`)
}, {
default: withCtx(() => [
createTextVNode(toDisplayString(_ctx.icon ? _ctx.icon : _ctx.data.currentStatus === "finish" ? "check" : _ctx.data.currentStatus === "error" ? "close" : ""), 1)
]),
_: 1
}, 8, ["class"])
], 2112))
], 2)
], 2),
createCommentVNode(" \u6587\u5B57 "),
createElementVNode("div", {
class: normalizeClass([`${_ctx.prefixCls}-content`])
}, [
createElementVNode("div", {
class: normalizeClass([`${_ctx.prefixCls}-title`])
}, [
renderSlot(_ctx.$slots, "title", {}, () => [
createTextVNode(toDisplayString(_ctx.title), 1)
])
], 2),
renderSlot(_ctx.$slots, "content", {}, () => [
createElementVNode("div", {
class: normalizeClass([`${_ctx.prefixCls}-content-slot`])
}, toDisplayString(_ctx.content), 3)
])
], 2)
], 6);
}
var Step = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\louise\\person\\project\\GitHub\\ivue-ui-plus\\src\\components\\ivue-steps\\step.vue"]]);
export { Step as default };
//# sourceMappingURL=step.mjs.map