UNPKG

ivue-material-plus

Version:

A high quality UI components Library with Vue.js

86 lines (81 loc) 4.11 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var step_vue_vue_type_script_lang = require('./step.vue_vue_type_script_lang.js'); var vue = require('vue'); var _pluginVue_exportHelper = require('../../_virtual/_plugin-vue_export-helper.js'); const _hoisted_1 = /* @__PURE__ */ vue.createElementVNode("i", null, null, -1); const _hoisted_2 = [ _hoisted_1 ]; const _hoisted_3 = /* @__PURE__ */ vue.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 = vue.resolveComponent("ivue-icon"); return vue.openBlock(), vue.createElementBlock("div", { class: vue.normalizeClass(_ctx.wrapClasses), style: vue.normalizeStyle(_ctx.wrapStyles) }, [ vue.createCommentVNode(" \u4E0B\u5212\u7EBF "), _ctx.data.textDirection === "right" || _ctx.data.direction === "horizontal" ? (vue.openBlock(), vue.createElementBlock("div", { key: 0, class: vue.normalizeClass([`${_ctx.prefixCls}-divider`]) }, _hoisted_2, 2)) : vue.createCommentVNode("v-if", true), vue.createCommentVNode(" \u6B65\u9AA4 "), vue.createElementVNode("div", { class: vue.normalizeClass([`${_ctx.prefixCls}-header`]) }, [ vue.createCommentVNode(" \u4E0B\u5212\u7EBF "), _ctx.data.textDirection === "bottom" || _ctx.data.direction === "vertical" ? (vue.openBlock(), vue.createElementBlock("div", { key: 0, class: vue.normalizeClass([`${_ctx.prefixCls}-divider`]) }, _hoisted_4, 2)) : vue.createCommentVNode("v-if", true), vue.createElementVNode("div", { class: vue.normalizeClass([`${_ctx.prefixCls}-header-content`]), onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args)) }, [ vue.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" ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5, vue.toDisplayString(_ctx.data.stepNumber), 1)) : _ctx.$slots.icon ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [ vue.createCommentVNode(" \u63D2\u69FD "), vue.createElementVNode("span", { class: vue.normalizeClass(`${_ctx.prefixCls}s-icon`) }, [ vue.renderSlot(_ctx.$slots, "icon") ], 2) ], 2112)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [ vue.createCommentVNode(" \u56FE\u6807 "), vue.createVNode(_component_ivue_icon, { class: vue.normalizeClass(`${_ctx.prefixCls}-icon`) }, { default: vue.withCtx(() => [ vue.createTextVNode(vue.toDisplayString(_ctx.icon ? _ctx.icon : _ctx.data.currentStatus === "finish" ? "check" : _ctx.data.currentStatus === "error" ? "close" : ""), 1) ]), _: 1 }, 8, ["class"]) ], 2112)) ], 2) ], 2), vue.createCommentVNode(" \u6587\u5B57 "), vue.createElementVNode("div", { class: vue.normalizeClass([`${_ctx.prefixCls}-content`]) }, [ vue.createElementVNode("div", { class: vue.normalizeClass([`${_ctx.prefixCls}-title`]) }, [ vue.renderSlot(_ctx.$slots, "title", {}, () => [ vue.createTextVNode(vue.toDisplayString(_ctx.title), 1) ]) ], 2), vue.renderSlot(_ctx.$slots, "content", {}, () => [ vue.createElementVNode("div", { class: vue.normalizeClass([`${_ctx.prefixCls}-content-slot`]) }, vue.toDisplayString(_ctx.content), 3) ]) ], 2) ], 6); } var Step = /* @__PURE__ */ _pluginVue_exportHelper["default"](step_vue_vue_type_script_lang["default"], [["render", _sfc_render], ["__file", "D:\\louise\\person\\project\\GitHub\\ivue-ui-plus\\src\\components\\ivue-steps\\step.vue"]]); exports["default"] = Step; //# sourceMappingURL=step.js.map