This commit is contained in:
theluyuan 2024-09-23 10:49:46 +08:00
parent c391e9c213
commit 396f5da10d
3 changed files with 40 additions and 19 deletions

View File

@ -788,7 +788,7 @@ var _hoisted_5$1 = {
};
var _hoisted_6$1 = ["onClick"];
var _hoisted_7$1 = ["src"];
var _hoisted_8 = {
var _hoisted_8$1 = {
key: 1,
class: "layui-layer-imgtit"
};
@ -878,7 +878,7 @@ var _sfc_main$2 = defineComponent(_objectSpread$3(_objectSpread$3({}, __default_
style: normalizeStyle({
left: "calc(calc( calc(100% - ".concat(100 * __props.imgList.length, "px) / 2) + ").concat(index2.value * 100, "px)")
})
}, null, 4)])) : (openBlock(), createElementBlock("span", _hoisted_8, [__props.imgList[index2.value].alt ? (openBlock(), createElementBlock("span", _hoisted_9, toDisplayString(__props.imgList[index2.value].alt), 1)) : createCommentVNode("", true), __props.imgList.length > 1 ? (openBlock(), createElementBlock("em", _hoisted_10, toDisplayString(index2.value + 1) + " / " + toDisplayString(__props.imgList.length), 1)) : createCommentVNode("", true)]))], 4)) : createCommentVNode("", true)])) : createCommentVNode("", true)]);
}, null, 4)])) : (openBlock(), createElementBlock("span", _hoisted_8$1, [__props.imgList[index2.value].alt ? (openBlock(), createElementBlock("span", _hoisted_9, toDisplayString(__props.imgList[index2.value].alt), 1)) : createCommentVNode("", true), __props.imgList.length > 1 ? (openBlock(), createElementBlock("em", _hoisted_10, toDisplayString(index2.value + 1) + " / " + toDisplayString(__props.imgList.length), 1)) : createCommentVNode("", true)]))], 4)) : createCommentVNode("", true)])) : createCommentVNode("", true)]);
};
}
}));
@ -1472,24 +1472,25 @@ var _hoisted_3 = /* @__PURE__ */ createElementVNode("svg", {
in: "SourceGraphic",
stdDeviation: "6.3",
result: "blur"
}), /* @__PURE__ */ createTextVNode(), /* @__PURE__ */ createElementVNode("feColorMatrix", {
}), /* @__PURE__ */ createElementVNode("feColorMatrix", {
in: "blur",
mode: "matrix",
values: "1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 14 -4",
result: "goo"
}), /* @__PURE__ */ createTextVNode(), /* @__PURE__ */ createElementVNode("feBlend", {
}), /* @__PURE__ */ createElementVNode("feBlend", {
in: "SourceGraphic",
in2: "goo"
})])])], -1);
var _hoisted_4 = ["innerHTML"];
var _hoisted_5 = {
var _hoisted_4 = [_hoisted_2, _hoisted_3];
var _hoisted_5 = ["innerHTML"];
var _hoisted_6 = {
key: 1,
class: "layui-layer-setwin"
};
var _hoisted_6 = {
var _hoisted_7 = {
key: 0
};
var _hoisted_7 = ["onClick"];
var _hoisted_8 = ["onClick"];
var __default__ = {
name: "LayLayer"
};
@ -1967,7 +1968,7 @@ var _sfc_main = defineComponent(_objectSpread$1(_objectSpread$1({}, __default__)
style: normalizeStyle({
height: contentHeight.value
})
}, [unref(type) === 3 ? (openBlock(), createElementBlock("div", _hoisted_1, [_hoisted_2, createTextVNode(), _hoisted_3])) : createCommentVNode("", true), unref(type) === 0 || unref(type) === 1 || unref(type) === 4 ? (openBlock(), createElementBlock(Fragment, {
}, [unref(type) === 3 ? (openBlock(), createElementBlock("div", _hoisted_1, _hoisted_4)) : createCommentVNode("", true), unref(type) === 0 || unref(type) === 1 || unref(type) === 4 ? (openBlock(), createElementBlock(Fragment, {
key: 1
}, [__props.icon ? (openBlock(), createElementBlock("i", {
key: 0,
@ -1979,7 +1980,7 @@ var _sfc_main = defineComponent(_objectSpread$1(_objectSpread$1({}, __default__)
}, [__props.isHtmlFragment ? (openBlock(), createElementBlock("span", {
key: 0,
innerHTML: renderContent(props.content)
}, null, 8, _hoisted_4)) : (openBlock(), createElementBlock(Fragment, {
}, null, 8, _hoisted_5)) : (openBlock(), createElementBlock(Fragment, {
key: 1
}, [createTextVNode(toDisplayString(renderContent(props.content)), 1)], 64))], 64))], 64)) : createCommentVNode("", true), unref(type) === 2 ? (openBlock(), createBlock(_sfc_main$6, {
key: 2,
@ -1997,12 +1998,12 @@ var _sfc_main = defineComponent(_objectSpread$1(_objectSpread$1({}, __default__)
isHtmlFragment: props.isHtmlFragment,
icon: props.icon,
iconClass: unref(iconClass)
}, null, 8, ["title", "content", "isHtmlFragment", "icon", "iconClass"])) : createCommentVNode("", true)], 6), unref(type) != 3 && unref(type) != 5 && unref(type) != 6 ? (openBlock(), createElementBlock("span", _hoisted_5, [__props.maxmin && !max.value ? (openBlock(), createElementBlock("a", {
}, null, 8, ["title", "content", "isHtmlFragment", "icon", "iconClass"])) : createCommentVNode("", true)], 6), unref(type) != 3 && unref(type) != 5 && unref(type) != 6 ? (openBlock(), createElementBlock("span", _hoisted_6, [__props.maxmin && !max.value ? (openBlock(), createElementBlock("a", {
key: 0,
class: normalizeClass(["layui-layer-min", [min.value ? "layui-layer-ico layui-layer-maxmin" : ""]]),
href: "javascript:;",
onClick: minHandle
}, [!min.value ? (openBlock(), createElementBlock("cite", _hoisted_6)) : createCommentVNode("", true)], 2)) : createCommentVNode("", true), __props.maxmin && !min.value ? (openBlock(), createElementBlock("a", {
}, [!min.value ? (openBlock(), createElementBlock("cite", _hoisted_7)) : createCommentVNode("", true)], 2)) : createCommentVNode("", true), __props.maxmin && !min.value ? (openBlock(), createElementBlock("a", {
key: 1,
class: normalizeClass(["layui-layer-ico layui-layer-max", [max.value ? "layui-layer-maxmin" : ""]]),
href: "javascript:;",
@ -2023,7 +2024,7 @@ var _sfc_main = defineComponent(_objectSpread$1(_objectSpread$1({}, __default__)
onClick: function onClick($event) {
return b.callback(id.value);
}
}, toDisplayString(b.text), 11, _hoisted_7);
}, toDisplayString(b.text), 11, _hoisted_8);
}), 128)) : (openBlock(), createElementBlock(Fragment, {
key: 1
}, [unref(type) === 0 ? (openBlock(), createElementBlock("a", {

File diff suppressed because one or more lines are too long

View File

@ -631,9 +631,29 @@ defineExpose({ reset, open, close });
:style="{ height: contentHeight }"
:class="contentClasses"
>
<template v-if="type === 3">
<div style="scale: 0.5"><div class="loading"> </div> <svg xmlns="http://www.w3.org/2000/svg" version="1.1"> <defs> <filter id="goo"> <feGaussianBlur in="SourceGraphic" stdDeviation="6.3" result="blur" /> <feColorMatrix in="blur" mode="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 14 -4" result="goo" /> <feBlend in="SourceGraphic" in2="goo" /> </filter> </defs> </svg></div>
</template>
<template v-if="type === 3">
<div style="scale: 0.5">
<div class="loading"></div>
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
<defs>
<filter id="goo">
<feGaussianBlur
in="SourceGraphic"
stdDeviation="6.3"
result="blur"
/>
<feColorMatrix
in="blur"
mode="matrix"
values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 14 -4"
result="goo"
/>
<feBlend in="SourceGraphic" in2="goo" />
</filter>
</defs>
</svg>
</div>
</template>
<template v-if="type === 0 || type === 1 || type === 4">
<i v-if="icon" :class="iconClass"></i>
<slot v-if="slots.default"></slot>