sohelp-ele
Version:
SohelpEle Library
120 lines (119 loc) • 4.42 kB
JavaScript
(function() {
"use strict";
try {
if (typeof document != "undefined") {
var elementStyle = document.createElement("style");
elementStyle.appendChild(document.createTextNode("[data-v-55cf79b2] .el-dialog > .el-dialog__header {\n min-height: 50px;\n}\n.sohelp-modal-scroll[data-v-55cf79b2] {\n width: 100%;\n box-sizing: border-box;\n max-height: 60vh;\n overflow-y: auto;\n}\n.sohelp-modal-scroll .el-form[data-v-55cf79b2] {\n width: calc(100% - 6px);\n}\n.ele-modal-wrap-fullscreen .sohelp-modal-scroll[data-v-55cf79b2] {\n max-height: calc(100vh - 160px);\n}\n[data-v-55cf79b2] .el-dialog .el-dialog__header .el-dialog__headerbtn {\n position: absolute !important;\n top: 20px;\n right: 20px;\n}\n[data-v-55cf79b2] .el-dialog .el-dialog__header .ele-modal-icon-fullscreen {\n display: inline-block;\n height: 16px;\n right: 42px !important;\n}\n[data-v-55cf79b2] .el-dialog .el-dialog__header .setting-icon {\n right: 66px !important;\n}\n[data-v-55cf79b2] .sohelp-modal .el-dialog .el-dialog__footer {\n padding-top: 20px;\n}"));
document.head.appendChild(elementStyle);
}
} catch (e) {
console.error("vite-plugin-css-injected-by-js", e);
}
})();
var render = function() {
var _vm = this;
var _h = _vm.$createElement;
var _c = _vm._self._c || _h;
return _c("div", { staticClass: "sohelp-modal" }, [_c("ele-modal", _vm._g(_vm._b({ attrs: { "closeOnClickModal": false, "maxable": true }, scopedSlots: _vm._u([_vm._l(Object.keys(_vm.$scopedSlots), function(slot) {
return { key: slot, fn: function(scope) {
return [_vm._t(slot, null, null, scope)];
} };
}), { key: "footer", fn: function() {
return [_vm._t("footer")];
}, proxy: true }], null, true) }, "ele-modal", _vm.$attrs, false), _vm.$listeners), [_c("template", { slot: "title" }, [_vm._v(" " + _vm._s(_vm.$attrs.title) + " "), _vm._t("toolbar")], 2)], 2)], 1);
};
var staticRenderFns = [];
var index_vue_vue_type_style_index_0_scoped_true_lang = "";
function normalizeComponent(scriptExports, render2, staticRenderFns2, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
if (render2) {
options.render = render2;
options.staticRenderFns = staticRenderFns2;
options._compiled = true;
}
if (functionalTemplate) {
options.functional = true;
}
if (scopeId) {
options._scopeId = "data-v-" + scopeId;
}
var hook;
if (moduleIdentifier) {
hook = function(context) {
context = context || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext;
if (!context && typeof __VUE_SSR_CONTEXT__ !== "undefined") {
context = __VUE_SSR_CONTEXT__;
}
if (injectStyles) {
injectStyles.call(this, context);
}
if (context && context._registeredComponents) {
context._registeredComponents.add(moduleIdentifier);
}
};
options._ssrRegister = hook;
} else if (injectStyles) {
hook = shadowMode ? function() {
injectStyles.call(
this,
(options.functional ? this.parent : this).$root.$options.shadowRoot
);
} : injectStyles;
}
if (hook) {
if (options.functional) {
options._injectStyles = hook;
var originalRender = options.render;
options.render = function renderWithStyleInjection(h, context) {
hook.call(context);
return originalRender(h, context);
};
} else {
var existing = options.beforeCreate;
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
}
}
return {
exports: scriptExports,
options
};
}
const __vue2_script = {
name: "SohelpModal",
inheritAttrs: false,
props: {
refid: {
type: String,
require: true
}
},
data() {
return {
modalTitle: ""
};
},
mounted() {
this.modalTitle = this.$attrs["title"];
},
methods: {}
};
const __cssModules = {};
var __component__ = /* @__PURE__ */ normalizeComponent(
__vue2_script,
render,
staticRenderFns,
false,
__vue2_injectStyles,
"55cf79b2",
null,
null
);
function __vue2_injectStyles(context) {
for (let o in __cssModules) {
this[o] = __cssModules[o];
}
}
var index = /* @__PURE__ */ function() {
return __component__.exports;
}();
export { index as default };