UNPKG

ivue-material-plus

Version:

A high quality UI components Library with Vue.js

148 lines (145 loc) 6.93 kB
import _sfc_main from './index.vue_vue_type_script_lang.mjs'; import { resolveComponent, openBlock, createBlock, Teleport, createCommentVNode, createVNode, Transition, withCtx, withDirectives, createElementBlock, normalizeClass, normalizeStyle, vShow, createElementVNode, renderSlot, createTextVNode, toDisplayString, Fragment } from 'vue'; import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs'; function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { const _component_ivue_icon = resolveComponent("ivue-icon"); const _component_ivue_button = resolveComponent("ivue-button"); const _component_ivue_spin = resolveComponent("ivue-spin"); return openBlock(), createBlock(Teleport, { to: "body", disabled: !_ctx.transfer }, [ createCommentVNode(" \u8499\u7248 "), createVNode(Transition, { name: `${_ctx.transitionNames[1]}` }, { default: withCtx(() => [ _ctx.showMask ? withDirectives((openBlock(), createElementBlock("div", { key: 0, class: normalizeClass(`${_ctx.prefixCls}-mask`), style: normalizeStyle(_ctx.wrapperStyles), onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleMask && _ctx.handleMask(...args)) }, null, 6)), [ [vShow, _ctx.data.visible] ]) : createCommentVNode("v-if", true) ]), _: 1 }, 8, ["name"]), createCommentVNode(" \u5F39\u7A97\u5916\u5C42 "), createElementVNode("div", { class: normalizeClass(_ctx.wrapperClasses), style: normalizeStyle(_ctx.wrapperStyles), onClick: _cache[4] || (_cache[4] = (...args) => _ctx.handleWrapperClick && _ctx.handleWrapperClick(...args)) }, [ createVNode(Transition, { name: `${_ctx.transitionNames[0]}`, onAfterLeave: _ctx.handleAfterLeave, persisted: "" }, { default: withCtx(() => [ withDirectives(createElementVNode("div", { class: normalizeClass(_ctx.modalClasses), style: normalizeStyle(_ctx.modalStyles), onMousedown: _cache[3] || (_cache[3] = (...args) => _ctx.handleMousedown && _ctx.handleMousedown(...args)) }, [ createCommentVNode(" \u5F39\u7A97\u5185\u5BB9 "), createElementVNode("div", { class: normalizeClass(_ctx.contentClasses), style: normalizeStyle(_ctx.contentStyles), onClick: _cache[2] || (_cache[2] = (...args) => _ctx.handleClickModal && _ctx.handleClickModal(...args)), ref: "contentRef" }, [ createCommentVNode(" close "), _ctx.closable ? (openBlock(), createElementBlock("div", { key: 0, class: normalizeClass(`${_ctx.prefixCls}-close`), onClick: _cache[1] || (_cache[1] = (...args) => _ctx.close && _ctx.close(...args)) }, [ renderSlot(_ctx.$slots, "close", {}, () => [ createVNode(_component_ivue_icon, null, { default: withCtx(() => [ createTextVNode(toDisplayString(_ctx.closeIcon), 1) ]), _: 1 }) ]) ], 2)) : createCommentVNode("v-if", true), createCommentVNode(" \u5934\u90E8 "), _ctx.showHead ? (openBlock(), createElementBlock("div", { key: 1, class: normalizeClass(`${_ctx.prefixCls}-header`), ref: "headerRef" }, [ renderSlot(_ctx.$slots, "header", {}, () => [ createElementVNode("div", { class: normalizeClass(`${_ctx.prefixCls}-header--content`) }, toDisplayString(_ctx.title), 3) ]) ], 2)) : createCommentVNode("v-if", true), createCommentVNode(" \u5185\u5BB9 "), createCommentVNode(" \u4F7F\u7528v-if\u91CD\u65B0\u6E32\u67D3body "), _ctx.resetBody ? (openBlock(), createElementBlock("div", { key: 2, class: normalizeClass(`${_ctx.prefixCls}-body`) }, [ _ctx.data.resetRenderBody ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("v-if", true) ], 2)) : (openBlock(), createElementBlock(Fragment, { key: 3 }, [ createCommentVNode(" \u666E\u901A\u6E32\u67D3 "), createElementVNode("div", { class: normalizeClass(`${_ctx.prefixCls}-body`) }, [ renderSlot(_ctx.$slots, "default") ], 2) ], 2112)), createCommentVNode(" \u5E95\u90E8 "), !_ctx.footerHide ? (openBlock(), createElementBlock("div", { key: 4, class: normalizeClass(`${_ctx.prefixCls}-footer`) }, [ renderSlot(_ctx.$slots, "footer", {}, () => [ createCommentVNode(" \u5173\u95ED "), createVNode(_component_ivue_button, { class: normalizeClass(`${_ctx.prefixCls}-footer--button`), outline: "", color: "#dcdfe6", onClick: _ctx.handleCancel }, { default: withCtx(() => [ createTextVNode(toDisplayString(_ctx.cancelText), 1) ]), _: 1 }, 8, ["class", "onClick"]), createCommentVNode(" \u786E\u8BA4 "), createVNode(_component_ivue_button, { class: normalizeClass(`${_ctx.prefixCls}-footer--button`), depressed: "", status: "primary", loading: _ctx.data.buttonLoading, onClick: _ctx.handleConfirm }, { default: withCtx(() => [ createTextVNode(toDisplayString(_ctx.confirmText), 1) ]), _: 1 }, 8, ["class", "loading", "onClick"]) ]) ], 2)) : createCommentVNode("v-if", true) ], 6), createCommentVNode(" \u52A0\u8F7D\u4E2D "), createVNode(_component_ivue_spin, { class: normalizeClass(`${_ctx.prefixCls}-spin`), fix: "", show: _ctx.data.spinLoading }, null, 8, ["class", "show"]) ], 38), [ [vShow, _ctx.data.visible] ]) ]), _: 3 }, 8, ["name", "onAfterLeave"]) ], 6) ], 8, ["disabled"]); } var Modal = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\louise\\person\\project\\GitHub\\ivue-ui-plus\\src\\components\\ivue-modal\\index.vue"]]); export { Modal as default }; //# sourceMappingURL=index2.mjs.map