cleek 2.4.33 → 2.4.35
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 +19 -11
- package/dist/cleek.umd.js +8 -8
- package/dist/components/ck-button.vue.d.ts +50 -0
- package/dist/components/ck-checkbox.vue.d.ts +26 -0
- package/dist/components/ck-chip.vue.d.ts +27 -0
- package/dist/components/ck-div.vue.d.ts +19 -0
- package/dist/components/ck-dropdown/ck-dropdown.vue.d.ts +20 -0
- package/dist/components/ck-icon.vue.d.ts +39 -0
- package/dist/components/ck-img.vue.d.ts +39 -0
- package/dist/components/ck-input.vue.d.ts +75 -0
- package/dist/components/ck-label.vue.d.ts +19 -0
- package/dist/components/ck-navbar/ck-navbar.vue.d.ts +17 -0
- package/dist/components/ck-notify/ck-notify.d.ts +21 -0
- package/dist/components/ck-notify/components/CkConfirm.vue.d.ts +9 -0
- package/dist/components/ck-notify/components/CkNotify.vue.d.ts +8 -0
- package/dist/components/ck-popup.vue.d.ts +64 -0
- package/dist/components/ck-radio.vue.d.ts +34 -0
- package/dist/components/ck-select.vue.d.ts +82 -0
- package/dist/components/ck-sidebar.vue.d.ts +33 -0
- package/dist/components/ck-switch-options.vue.d.ts +42 -0
- package/dist/components/ck-switch.vue.d.ts +31 -0
- package/dist/components/ck-table/ck-table.vue.d.ts +59 -0
- package/dist/components/ck-table/ck-td.vue.d.ts +43 -0
- package/dist/components/ck-table/ck-th.vue.d.ts +17 -0
- package/dist/components/ck-table/ck-tr.vue.d.ts +2 -0
- package/dist/components/ck-table/inner-components/ck-table__columns-manager.vue.d.ts +24 -0
- package/dist/components/ck-table/inner-components/ck-table__header-items.vue.d.ts +42 -0
- package/dist/components/ck-table/inner-components/ck-table__pagination.vue.d.ts +30 -0
- package/dist/components/ck-table/inner-components/ck-table__title.vue.d.ts +16 -0
- package/dist/components/ck-textarea.vue.d.ts +28 -0
- package/dist/components/index.d.ts +22 -0
- package/dist/hooks/windowWidth.d.ts +3 -0
- package/dist/style.css +1 -1
- package/dist/types/cleek-options.d.ts +38 -0
- package/dist/types/table.d.ts +6 -0
- package/dist/utils/functions.d.ts +15 -0
- package/dist/utils/globalVariables.d.ts +6 -0
- package/package.json +1 -1
package/dist/cleek.es.js
CHANGED
|
@@ -22416,8 +22416,10 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
22416
22416
|
if (props.acceptBtnType)
|
|
22417
22417
|
return props.acceptBtnType;
|
|
22418
22418
|
if ((_a = cleekOptions2.value) == null ? void 0 : _a.popup.acceptBtnType)
|
|
22419
|
-
return
|
|
22420
|
-
|
|
22419
|
+
return cleekOptions2.value.popup.acceptBtnType;
|
|
22420
|
+
if ((_b = cleekOptions2.value) == null ? void 0 : _b.button.type)
|
|
22421
|
+
return cleekOptions2.value.button.type;
|
|
22422
|
+
return "outlined";
|
|
22421
22423
|
});
|
|
22422
22424
|
const realCancelBtnType = computed$2(() => {
|
|
22423
22425
|
var _a, _b;
|
|
@@ -22425,7 +22427,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
22425
22427
|
return props.cancelBtnType;
|
|
22426
22428
|
if ((_a = cleekOptions2.value) == null ? void 0 : _a.popup.cancelBtnType)
|
|
22427
22429
|
return (_b = cleekOptions2.value) == null ? void 0 : _b.popup.cancelBtnType;
|
|
22428
|
-
return "
|
|
22430
|
+
return "flat";
|
|
22429
22431
|
});
|
|
22430
22432
|
function onCancel() {
|
|
22431
22433
|
emits("cancel");
|
|
@@ -23075,7 +23077,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23075
23077
|
reduceNameFunction: null,
|
|
23076
23078
|
reduceValueFunction: null,
|
|
23077
23079
|
notClearable: { type: Boolean },
|
|
23078
|
-
clearValue:
|
|
23080
|
+
clearValue: null,
|
|
23079
23081
|
searchable: { type: [Boolean, String] },
|
|
23080
23082
|
minWidth: null,
|
|
23081
23083
|
width: null,
|
|
@@ -23177,10 +23179,17 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23177
23179
|
list.push({ "width": props.width });
|
|
23178
23180
|
return list;
|
|
23179
23181
|
});
|
|
23182
|
+
const logicClearValue = computed$2(() => {
|
|
23183
|
+
var _a, _b;
|
|
23184
|
+
if (typeof props.clearValue !== "undefined")
|
|
23185
|
+
return props.clearValue;
|
|
23186
|
+
if (typeof ((_b = (_a = cleekOptions2.value) == null ? void 0 : _a.select) == null ? void 0 : _b.clearValue) !== "undefined")
|
|
23187
|
+
return cleekOptions2.value.select.clearValue;
|
|
23188
|
+
return defaultClearValue;
|
|
23189
|
+
});
|
|
23180
23190
|
const realClearValue = computed$2(() => {
|
|
23181
|
-
|
|
23182
|
-
|
|
23183
|
-
return clearValue;
|
|
23191
|
+
if (logicClearValue.value !== "auto")
|
|
23192
|
+
return logicClearValue.value;
|
|
23184
23193
|
switch (typeof props.modelValue) {
|
|
23185
23194
|
case "number":
|
|
23186
23195
|
return 0;
|
|
@@ -23197,9 +23206,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23197
23206
|
}
|
|
23198
23207
|
});
|
|
23199
23208
|
const valueIsDefault = computed$2(() => {
|
|
23200
|
-
|
|
23201
|
-
|
|
23202
|
-
return value.value === clearValue;
|
|
23209
|
+
if (logicClearValue.value !== "auto")
|
|
23210
|
+
return value.value === logicClearValue.value;
|
|
23203
23211
|
switch (typeof props.modelValue) {
|
|
23204
23212
|
case "number":
|
|
23205
23213
|
return props.modelValue === 0;
|
|
@@ -23307,7 +23315,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23307
23315
|
};
|
|
23308
23316
|
}
|
|
23309
23317
|
});
|
|
23310
|
-
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
23318
|
+
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-5b741e99"]]);
|
|
23311
23319
|
var ckSidebar_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
23312
23320
|
const _hoisted_1$5 = {
|
|
23313
23321
|
key: 0,
|