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