cleek 2.4.35 → 2.4.36
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 +11 -7
- package/dist/cleek.umd.js +8 -8
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/cleek.es.js
CHANGED
|
@@ -22412,13 +22412,11 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
22412
22412
|
return list;
|
|
22413
22413
|
});
|
|
22414
22414
|
const realAcceptBtnType = computed$2(() => {
|
|
22415
|
-
var _a
|
|
22415
|
+
var _a;
|
|
22416
22416
|
if (props.acceptBtnType)
|
|
22417
22417
|
return props.acceptBtnType;
|
|
22418
22418
|
if ((_a = cleekOptions2.value) == null ? void 0 : _a.popup.acceptBtnType)
|
|
22419
22419
|
return cleekOptions2.value.popup.acceptBtnType;
|
|
22420
|
-
if ((_b = cleekOptions2.value) == null ? void 0 : _b.button.type)
|
|
22421
|
-
return cleekOptions2.value.button.type;
|
|
22422
22420
|
return "outlined";
|
|
22423
22421
|
});
|
|
22424
22422
|
const realCancelBtnType = computed$2(() => {
|
|
@@ -23113,8 +23111,6 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23113
23111
|
return props.modelValue;
|
|
23114
23112
|
},
|
|
23115
23113
|
set(val) {
|
|
23116
|
-
if (val === null)
|
|
23117
|
-
val = realClearValue;
|
|
23118
23114
|
emits("update:modelValue", val);
|
|
23119
23115
|
}
|
|
23120
23116
|
});
|
|
@@ -23188,6 +23184,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23188
23184
|
return defaultClearValue;
|
|
23189
23185
|
});
|
|
23190
23186
|
const realClearValue = computed$2(() => {
|
|
23187
|
+
console.log("logicClearValue", logicClearValue.value);
|
|
23191
23188
|
if (logicClearValue.value !== "auto")
|
|
23192
23189
|
return logicClearValue.value;
|
|
23193
23190
|
switch (typeof props.modelValue) {
|
|
@@ -23205,6 +23202,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23205
23202
|
return null;
|
|
23206
23203
|
}
|
|
23207
23204
|
});
|
|
23205
|
+
console.log("realClearValue", realClearValue.value);
|
|
23208
23206
|
const valueIsDefault = computed$2(() => {
|
|
23209
23207
|
if (logicClearValue.value !== "auto")
|
|
23210
23208
|
return value.value === logicClearValue.value;
|
|
@@ -23245,6 +23243,12 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23245
23243
|
const reduceNameProp = props.reduceNameProp || defaultReduceNameProp;
|
|
23246
23244
|
return option[props.prop || reduceNameProp];
|
|
23247
23245
|
}
|
|
23246
|
+
function setClearValue() {
|
|
23247
|
+
console.log("value.value", value.value);
|
|
23248
|
+
console.log("realClearValue.value", realClearValue.value);
|
|
23249
|
+
value.value = realClearValue.value;
|
|
23250
|
+
console.log("value.value", value.value);
|
|
23251
|
+
}
|
|
23248
23252
|
function setFocus() {
|
|
23249
23253
|
}
|
|
23250
23254
|
onMounted(() => {
|
|
@@ -23280,7 +23284,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23280
23284
|
unref$1(isClearBtnVisible) ? (openBlock(), createElementBlock("div", {
|
|
23281
23285
|
key: 2,
|
|
23282
23286
|
class: "ck-select__clear-btn",
|
|
23283
|
-
onClick: _cache[0] || (_cache[0] = ($event) =>
|
|
23287
|
+
onClick: _cache[0] || (_cache[0] = ($event) => setClearValue())
|
|
23284
23288
|
}, [
|
|
23285
23289
|
createVNode(CkIcon, { icon: "times" })
|
|
23286
23290
|
])) : createCommentVNode("", true),
|
|
@@ -23315,7 +23319,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23315
23319
|
};
|
|
23316
23320
|
}
|
|
23317
23321
|
});
|
|
23318
|
-
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
23322
|
+
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-71e3efde"]]);
|
|
23319
23323
|
var ckSidebar_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
23320
23324
|
const _hoisted_1$5 = {
|
|
23321
23325
|
key: 0,
|