cleek 2.0.2 → 2.0.3
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 +14 -11
- package/dist/cleek.umd.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/cleek.es.js
CHANGED
|
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { defineComponent, computed, watch, h, resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, createCommentVNode, renderSlot, mergeProps, withKeys, withModifiers, createElementVNode, pushScopeId, popScopeId, ref,
|
|
20
|
+
import { defineComponent, computed, watch, h, resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, createCommentVNode, renderSlot, mergeProps, withKeys, withModifiers, createElementVNode, pushScopeId, popScopeId, ref, getCurrentInstance, onMounted, unref, normalizeStyle, withCtx, createTextVNode, toDisplayString, withDirectives, isRef, vModelDynamic, createVNode, Fragment, renderList, vModelRadio, vModelSelect, vModelCheckbox, vModelText } from "vue";
|
|
21
21
|
var validators = {
|
|
22
22
|
size: (type) => {
|
|
23
23
|
return ["", "xs", "s", "m", "l", "xl"].includes(type);
|
|
@@ -76,6 +76,9 @@ var functions$1 = {
|
|
|
76
76
|
},
|
|
77
77
|
isTableColumnsVisible(col) {
|
|
78
78
|
return !col.isHidden;
|
|
79
|
+
},
|
|
80
|
+
getCleekOptions(getCurrentInstance2) {
|
|
81
|
+
return getCurrentInstance2().appContext.app.config.globalProperties.$cleekOptions;
|
|
79
82
|
}
|
|
80
83
|
};
|
|
81
84
|
var globalVariables = {
|
|
@@ -11452,7 +11455,6 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
11452
11455
|
setup(__props) {
|
|
11453
11456
|
const props = __props;
|
|
11454
11457
|
const altNeeded = ref(false);
|
|
11455
|
-
let context;
|
|
11456
11458
|
let isMounted = ref(false);
|
|
11457
11459
|
const imageUrl = computed(() => {
|
|
11458
11460
|
if (!isMounted.value)
|
|
@@ -11463,11 +11465,12 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
11463
11465
|
});
|
|
11464
11466
|
const computedClass = computed(() => {
|
|
11465
11467
|
const classList2 = [];
|
|
11466
|
-
|
|
11467
|
-
|
|
11468
|
+
let size = props.size;
|
|
11469
|
+
if (!size && !props.sizeAbsolute && !props.width && !props.height) {
|
|
11470
|
+
size = "m";
|
|
11468
11471
|
}
|
|
11469
|
-
if (
|
|
11470
|
-
classList2.push(`ck-img__size--${
|
|
11472
|
+
if (size)
|
|
11473
|
+
classList2.push(`ck-img__size--${size}`);
|
|
11471
11474
|
if (props.hasBorder) {
|
|
11472
11475
|
classList2.push("ck-img__has-border");
|
|
11473
11476
|
if (functions$1.isColorTemplateVariable(realBorderColor.value)) {
|
|
@@ -11514,13 +11517,13 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
11514
11517
|
}
|
|
11515
11518
|
function getImg(src) {
|
|
11516
11519
|
let path = "";
|
|
11517
|
-
|
|
11518
|
-
if (
|
|
11519
|
-
path =
|
|
11520
|
+
const $cleekOptions = functions$1.getCleekOptions(getCurrentInstance);
|
|
11521
|
+
if ($cleekOptions)
|
|
11522
|
+
path = $cleekOptions.imgPath;
|
|
11520
11523
|
return `${path}${src}`;
|
|
11521
11524
|
}
|
|
11522
11525
|
onMounted(() => {
|
|
11523
|
-
|
|
11526
|
+
getCurrentInstance().ctx;
|
|
11524
11527
|
isMounted.value = true;
|
|
11525
11528
|
});
|
|
11526
11529
|
return (_ctx, _cache) => {
|
|
@@ -11538,7 +11541,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
11538
11541
|
};
|
|
11539
11542
|
}
|
|
11540
11543
|
});
|
|
11541
|
-
var ckImg = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-
|
|
11544
|
+
var ckImg = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-b201891c"]]);
|
|
11542
11545
|
const _hoisted_1$d = ["for"];
|
|
11543
11546
|
function render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11544
11547
|
return openBlock(), createElementBlock("label", {
|