cleek 2.4.53 → 2.4.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cleek.es.js +57 -55
- package/dist/cleek.umd.js +1 -1
- package/package.json +1 -1
package/dist/cleek.es.js
CHANGED
|
@@ -29,7 +29,7 @@ var __objRest = (source2, exclude) => {
|
|
|
29
29
|
}
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
|
-
import { watch, reactive, pushScopeId, popScopeId, defineComponent, nextTick as nextTick$1, openBlock, createBlock, withScopeId, resolveComponent, createElementBlock, normalizeClass, normalizeStyle, withKeys, createElementVNode, Fragment, renderSlot, createCommentVNode, mergeProps, withCtx, createVNode, ref, createApp, h, toDisplayString, computed as computed$2, onMounted, getCurrentInstance, unref as unref$1, createTextVNode, onBeforeUnmount, withDirectives, isRef as isRef$1, vModelDynamic, renderList, vModelText, withModifiers, vModelRadio, vModelSelect, vModelCheckbox
|
|
32
|
+
import { watch, reactive, pushScopeId, popScopeId, defineComponent, nextTick as nextTick$1, openBlock, createBlock, withScopeId, resolveComponent, createElementBlock, normalizeClass, normalizeStyle, withKeys, createElementVNode, Fragment, renderSlot, createCommentVNode, mergeProps, withCtx, createVNode, ref, createApp, h, toDisplayString, computed as computed$2, onMounted, getCurrentInstance, unref as unref$1, createTextVNode, onBeforeUnmount, withDirectives, isRef as isRef$1, vModelDynamic, renderList, vModelText, withModifiers, Teleport, vModelRadio, vModelSelect, vModelCheckbox } from "vue";
|
|
33
33
|
function getDevtoolsGlobalHook() {
|
|
34
34
|
return getTarget().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
35
35
|
}
|
|
@@ -23215,10 +23215,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
23215
23215
|
});
|
|
23216
23216
|
var CkCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-113ac83f"]]);
|
|
23217
23217
|
var ckPopup_vue_vue_type_style_index_0_lang = "";
|
|
23218
|
-
const _hoisted_1$d = {
|
|
23219
|
-
key: 0,
|
|
23220
|
-
class: "ck-popup"
|
|
23221
|
-
};
|
|
23218
|
+
const _hoisted_1$d = { class: "ck-popup" };
|
|
23222
23219
|
const _hoisted_2$9 = /* @__PURE__ */ createElementVNode("div", { class: "blackout" }, null, -1);
|
|
23223
23220
|
const _hoisted_3$5 = {
|
|
23224
23221
|
key: 0,
|
|
@@ -23377,62 +23374,67 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
23377
23374
|
cleekOptions2.value = hooks8.getCleekOptions(getCurrentInstance);
|
|
23378
23375
|
});
|
|
23379
23376
|
return (_ctx, _cache) => {
|
|
23380
|
-
return unref$1(isActive) ? (openBlock(),
|
|
23381
|
-
|
|
23382
|
-
|
|
23383
|
-
|
|
23384
|
-
|
|
23385
|
-
|
|
23377
|
+
return unref$1(isActive) ? (openBlock(), createBlock(Teleport, {
|
|
23378
|
+
key: 0,
|
|
23379
|
+
to: "body"
|
|
23380
|
+
}, [
|
|
23381
|
+
createElementVNode("div", _hoisted_1$d, [
|
|
23382
|
+
_hoisted_2$9,
|
|
23386
23383
|
createElementVNode("div", {
|
|
23387
|
-
class:
|
|
23388
|
-
onClick: _cache[
|
|
23389
|
-
}, ["stop"])),
|
|
23390
|
-
style: normalizeStyle(unref$1(computedStyleContent))
|
|
23384
|
+
class: "popup-container",
|
|
23385
|
+
onClick: _cache[4] || (_cache[4] = ($event) => onBgClick())
|
|
23391
23386
|
}, [
|
|
23392
23387
|
createElementVNode("div", {
|
|
23393
|
-
class: normalizeClass(["ck-
|
|
23394
|
-
|
|
23388
|
+
class: normalizeClass(["ck-popup__content", unref$1(computedClassContent)]),
|
|
23389
|
+
onClick: _cache[3] || (_cache[3] = withModifiers(() => {
|
|
23390
|
+
}, ["stop"])),
|
|
23391
|
+
style: normalizeStyle(unref$1(computedStyleContent))
|
|
23395
23392
|
}, [
|
|
23396
|
-
|
|
23397
|
-
|
|
23398
|
-
|
|
23399
|
-
|
|
23400
|
-
|
|
23401
|
-
|
|
23402
|
-
|
|
23403
|
-
})) : createCommentVNode("", true)
|
|
23404
|
-
], 6),
|
|
23405
|
-
createElementVNode("div", _hoisted_4$5, [
|
|
23406
|
-
renderSlot(_ctx.$slots, "default")
|
|
23407
|
-
]),
|
|
23408
|
-
_ctx.$slots.footer || __props.confirmButtons || __props.acceptButton || __props.cancelButton ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
|
|
23409
|
-
renderSlot(_ctx.$slots, "footer"),
|
|
23410
|
-
__props.confirmButtons || __props.acceptButton || __props.cancelButton ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
|
|
23411
|
-
__props.confirmButtons || __props.cancelButton ? (openBlock(), createBlock(CkButton, {
|
|
23412
|
-
key: 0,
|
|
23413
|
-
class: "cancel-button",
|
|
23414
|
-
color: "danger",
|
|
23415
|
-
type: unref$1(realCancelBtnType),
|
|
23416
|
-
onClick: _cache[1] || (_cache[1] = ($event) => onCancel())
|
|
23417
|
-
}, {
|
|
23418
|
-
default: withCtx(() => [
|
|
23419
|
-
createTextVNode(toDisplayString(unref$1(realCancelBtnText)), 1)
|
|
23420
|
-
]),
|
|
23421
|
-
_: 1
|
|
23422
|
-
}, 8, ["type"])) : createCommentVNode("", true),
|
|
23423
|
-
__props.confirmButtons || __props.acceptButton ? (openBlock(), createBlock(CkButton, {
|
|
23393
|
+
createElementVNode("div", {
|
|
23394
|
+
class: normalizeClass(["ck-popup__slot-header", unref$1(computedClassHeader)]),
|
|
23395
|
+
style: normalizeStyle(unref$1(computedStyleHeader))
|
|
23396
|
+
}, [
|
|
23397
|
+
__props.title ? (openBlock(), createElementBlock("h3", _hoisted_3$5, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
|
|
23398
|
+
renderSlot(_ctx.$slots, "header"),
|
|
23399
|
+
unref$1(isCloseBtnVisible) ? (openBlock(), createBlock(CkIcon, {
|
|
23424
23400
|
key: 1,
|
|
23425
|
-
|
|
23426
|
-
|
|
23427
|
-
|
|
23428
|
-
|
|
23429
|
-
|
|
23430
|
-
|
|
23431
|
-
|
|
23432
|
-
|
|
23401
|
+
class: "icon-close",
|
|
23402
|
+
icon: "times",
|
|
23403
|
+
onClick: _cache[0] || (_cache[0] = ($event) => isActive.value = false)
|
|
23404
|
+
})) : createCommentVNode("", true)
|
|
23405
|
+
], 6),
|
|
23406
|
+
createElementVNode("div", _hoisted_4$5, [
|
|
23407
|
+
renderSlot(_ctx.$slots, "default")
|
|
23408
|
+
]),
|
|
23409
|
+
_ctx.$slots.footer || __props.confirmButtons || __props.acceptButton || __props.cancelButton ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
|
|
23410
|
+
renderSlot(_ctx.$slots, "footer"),
|
|
23411
|
+
__props.confirmButtons || __props.acceptButton || __props.cancelButton ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
|
|
23412
|
+
__props.confirmButtons || __props.cancelButton ? (openBlock(), createBlock(CkButton, {
|
|
23413
|
+
key: 0,
|
|
23414
|
+
class: "cancel-button",
|
|
23415
|
+
color: "danger",
|
|
23416
|
+
type: unref$1(realCancelBtnType),
|
|
23417
|
+
onClick: _cache[1] || (_cache[1] = ($event) => onCancel())
|
|
23418
|
+
}, {
|
|
23419
|
+
default: withCtx(() => [
|
|
23420
|
+
createTextVNode(toDisplayString(unref$1(realCancelBtnText)), 1)
|
|
23421
|
+
]),
|
|
23422
|
+
_: 1
|
|
23423
|
+
}, 8, ["type"])) : createCommentVNode("", true),
|
|
23424
|
+
__props.confirmButtons || __props.acceptButton ? (openBlock(), createBlock(CkButton, {
|
|
23425
|
+
key: 1,
|
|
23426
|
+
type: unref$1(realAcceptBtnType),
|
|
23427
|
+
onClick: _cache[2] || (_cache[2] = ($event) => onAccept())
|
|
23428
|
+
}, {
|
|
23429
|
+
default: withCtx(() => [
|
|
23430
|
+
createTextVNode(toDisplayString(unref$1(realAcceptBtnText)), 1)
|
|
23431
|
+
]),
|
|
23432
|
+
_: 1
|
|
23433
|
+
}, 8, ["type"])) : createCommentVNode("", true)
|
|
23434
|
+
])) : createCommentVNode("", true)
|
|
23433
23435
|
])) : createCommentVNode("", true)
|
|
23434
|
-
]
|
|
23435
|
-
]
|
|
23436
|
+
], 6)
|
|
23437
|
+
])
|
|
23436
23438
|
])
|
|
23437
23439
|
])) : createCommentVNode("", true);
|
|
23438
23440
|
};
|