cleek 2.4.66 → 2.4.69
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-styles/clear-app.styl +3 -1
- package/dist/cleek.es.js +26 -12
- package/dist/cleek.umd.js +8 -8
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/cleek.es.js
CHANGED
|
@@ -3804,6 +3804,12 @@ const cleekOptions = {
|
|
|
3804
3804
|
cancelBtnType: "",
|
|
3805
3805
|
maxWidth: "",
|
|
3806
3806
|
fontSize: ""
|
|
3807
|
+
},
|
|
3808
|
+
select: {
|
|
3809
|
+
clearValue: null
|
|
3810
|
+
},
|
|
3811
|
+
table: {
|
|
3812
|
+
striped: false
|
|
3807
3813
|
}
|
|
3808
3814
|
};
|
|
3809
3815
|
/*!
|
|
@@ -21947,7 +21953,8 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
21947
21953
|
autofocus: { type: Boolean },
|
|
21948
21954
|
capitalize: { type: Boolean },
|
|
21949
21955
|
autoSelect: { type: Boolean },
|
|
21950
|
-
delayChangeTime: null
|
|
21956
|
+
delayChangeTime: null,
|
|
21957
|
+
justInteger: { type: Boolean }
|
|
21951
21958
|
},
|
|
21952
21959
|
emits: ["update:modelValue", "click", "input", "change", "focus", "blur", "delayChange"],
|
|
21953
21960
|
setup(__props, { expose, emit: emits }) {
|
|
@@ -21966,6 +21973,8 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
21966
21973
|
set(val) {
|
|
21967
21974
|
if (props.capitalize)
|
|
21968
21975
|
val = qmStr.capitalize(`${val}`);
|
|
21976
|
+
if (props.justInteger)
|
|
21977
|
+
val = parseInt(+val);
|
|
21969
21978
|
emits("update:modelValue", val);
|
|
21970
21979
|
checkSearchTime(val);
|
|
21971
21980
|
}
|
|
@@ -22066,6 +22075,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
22066
22075
|
}
|
|
22067
22076
|
});
|
|
22068
22077
|
return (_ctx, _cache) => {
|
|
22078
|
+
var _a;
|
|
22069
22079
|
return openBlock(), createElementBlock("div", {
|
|
22070
22080
|
class: "ck-input",
|
|
22071
22081
|
style: normalizeStyle(unref$1(computedStyle))
|
|
@@ -22127,7 +22137,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
22127
22137
|
]),
|
|
22128
22138
|
__props.type === "password" ? (openBlock(), createElementBlock("div", {
|
|
22129
22139
|
key: 4,
|
|
22130
|
-
class: normalizeClass(["show-password", __props.layout]),
|
|
22140
|
+
class: normalizeClass(["show-password", __props.layout || ((_a = unref$1(cleekOptions2)) == null ? void 0 : _a.styles.layout)]),
|
|
22131
22141
|
onClick: _cache[12] || (_cache[12] = ($event) => isShowingPassword.value = !isShowingPassword.value)
|
|
22132
22142
|
}, [
|
|
22133
22143
|
createVNode(CkIcon, {
|
|
@@ -22145,7 +22155,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
22145
22155
|
};
|
|
22146
22156
|
}
|
|
22147
22157
|
});
|
|
22148
|
-
var CkInput = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-
|
|
22158
|
+
var CkInput = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-6afd22ad"]]);
|
|
22149
22159
|
var ckTable__headerItems_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
22150
22160
|
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
22151
22161
|
props: {
|
|
@@ -22259,7 +22269,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
22259
22269
|
});
|
|
22260
22270
|
var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-4bfc21c8"]]);
|
|
22261
22271
|
var ckTable__pagination_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
22262
|
-
const _withScopeId$4 = (n) => (pushScopeId("data-v-
|
|
22272
|
+
const _withScopeId$4 = (n) => (pushScopeId("data-v-0c3ab853"), n = n(), popScopeId(), n);
|
|
22263
22273
|
const _hoisted_1$f = { class: "ck-table__pagination" };
|
|
22264
22274
|
const _hoisted_2$b = { class: "ck-table__pagination--numbers-container" };
|
|
22265
22275
|
const _hoisted_3$7 = ["onClick"];
|
|
@@ -22352,7 +22362,6 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
22352
22362
|
}
|
|
22353
22363
|
}
|
|
22354
22364
|
function onClickArrowRight() {
|
|
22355
|
-
console.log("hasArrowRight", hasArrowRight.value);
|
|
22356
22365
|
if (!hasArrowRight.value)
|
|
22357
22366
|
return;
|
|
22358
22367
|
currentPageLocal.value = props.currentPage + 1;
|
|
@@ -22413,7 +22422,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
22413
22422
|
};
|
|
22414
22423
|
}
|
|
22415
22424
|
});
|
|
22416
|
-
var TablePagination = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-
|
|
22425
|
+
var TablePagination = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-0c3ab853"]]);
|
|
22417
22426
|
const EMPTY_OBJ = {};
|
|
22418
22427
|
const NOOP = () => {
|
|
22419
22428
|
};
|
|
@@ -23659,7 +23668,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
23659
23668
|
}
|
|
23660
23669
|
}
|
|
23661
23670
|
const computedClassTable = computed$2(() => {
|
|
23662
|
-
var _a;
|
|
23671
|
+
var _a, _b;
|
|
23663
23672
|
const list = [];
|
|
23664
23673
|
if (props.cellPadding)
|
|
23665
23674
|
list.push(`table__cell-padding--${props.cellPadding}`);
|
|
@@ -23667,7 +23676,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
23667
23676
|
list.push(`table__cell-padding-y--${props.cellPaddingY}`);
|
|
23668
23677
|
if (props.notFullWidth)
|
|
23669
23678
|
list.push("not-full-width");
|
|
23670
|
-
const striped = props.striped || ((_a = cleekOptions2.value) == null ? void 0 : _a.table.
|
|
23679
|
+
const striped = props.striped || ((_b = (_a = cleekOptions2.value) == null ? void 0 : _a.table) == null ? void 0 : _b.striped);
|
|
23671
23680
|
if (striped)
|
|
23672
23681
|
list.push("striped-table");
|
|
23673
23682
|
return list;
|
|
@@ -23781,7 +23790,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
23781
23790
|
};
|
|
23782
23791
|
}
|
|
23783
23792
|
});
|
|
23784
|
-
var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-
|
|
23793
|
+
var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-578b78e9"]]);
|
|
23785
23794
|
var ckChip_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
23786
23795
|
const _hoisted_1$a = ["color"];
|
|
23787
23796
|
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
@@ -23920,13 +23929,18 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
23920
23929
|
return classList2;
|
|
23921
23930
|
});
|
|
23922
23931
|
const computedStyle = computed$2(() => {
|
|
23932
|
+
var _a;
|
|
23923
23933
|
const styleList = [];
|
|
23924
23934
|
if (props.sizeAbsolute) {
|
|
23925
23935
|
styleList.push({ width: props.sizeAbsolute });
|
|
23926
23936
|
styleList.push({ height: props.sizeAbsolute });
|
|
23927
23937
|
}
|
|
23928
|
-
|
|
23929
|
-
|
|
23938
|
+
let radius = props.radius;
|
|
23939
|
+
if (typeof props.radius === "undefined" && ((_a = cleekOptions2.value) == null ? void 0 : _a.styles.layout) === "squared") {
|
|
23940
|
+
radius = "0px";
|
|
23941
|
+
}
|
|
23942
|
+
if (radius)
|
|
23943
|
+
styleList.push({ "border-radius": radius });
|
|
23930
23944
|
if (props.hasBorder) {
|
|
23931
23945
|
if (!hooks8.isColorTemplateVariable(realBorderColor.value)) {
|
|
23932
23946
|
styleList.push({ "border-color": realBorderColor.value });
|
|
@@ -23984,7 +23998,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
23984
23998
|
};
|
|
23985
23999
|
}
|
|
23986
24000
|
});
|
|
23987
|
-
var ckImg = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-
|
|
24001
|
+
var ckImg = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-eed7a2c0"]]);
|
|
23988
24002
|
var ckRadio_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
23989
24003
|
const _withScopeId$2 = (n) => (pushScopeId("data-v-2e09b238"), n = n(), popScopeId(), n);
|
|
23990
24004
|
const _hoisted_1$8 = ["onKeyup"];
|