cleek 2.4.73 → 2.4.74
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 +16 -5
- package/dist/cleek.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/cleek.es.js
CHANGED
|
@@ -26420,7 +26420,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
26420
26420
|
});
|
|
26421
26421
|
var ckImg = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-eed7a2c0"]]);
|
|
26422
26422
|
var ckRadio_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
26423
|
-
const _withScopeId$2 = (n) => (pushScopeId("data-v-
|
|
26423
|
+
const _withScopeId$2 = (n) => (pushScopeId("data-v-0952dfde"), n = n(), popScopeId(), n);
|
|
26424
26424
|
const _hoisted_1$8 = ["onKeyup"];
|
|
26425
26425
|
const _hoisted_2$6 = ["name", "value", "disabled"];
|
|
26426
26426
|
const _hoisted_3$4 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { class: "c-Radio__element" }, null, -1));
|
|
@@ -26433,7 +26433,9 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
26433
26433
|
modelValue: null,
|
|
26434
26434
|
name: null,
|
|
26435
26435
|
options: null,
|
|
26436
|
-
disabled: { type: Boolean }
|
|
26436
|
+
disabled: { type: Boolean },
|
|
26437
|
+
value: null,
|
|
26438
|
+
label: null
|
|
26437
26439
|
},
|
|
26438
26440
|
emits: ["update:modelValue", "change"],
|
|
26439
26441
|
setup(__props, { emit: emits }) {
|
|
@@ -26452,15 +26454,24 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
26452
26454
|
tabindex: props.disabled ? void 0 : "0"
|
|
26453
26455
|
};
|
|
26454
26456
|
});
|
|
26457
|
+
const computedOptions = computed$2(() => {
|
|
26458
|
+
if (props.options)
|
|
26459
|
+
return props.options;
|
|
26460
|
+
if (typeof props.value !== void 0) {
|
|
26461
|
+
const label = props.label || props.value;
|
|
26462
|
+
return [{ value: props.value, label }];
|
|
26463
|
+
}
|
|
26464
|
+
return [];
|
|
26465
|
+
});
|
|
26455
26466
|
function handleChange(option, event) {
|
|
26456
26467
|
option.value = value;
|
|
26457
26468
|
emits("change", event);
|
|
26458
26469
|
}
|
|
26459
26470
|
return (_ctx, _cache) => {
|
|
26460
|
-
return openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
26471
|
+
return openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(computedOptions), (option, index) => {
|
|
26461
26472
|
return openBlock(), createElementBlock("label", mergeProps({
|
|
26462
26473
|
key: `radio-${index}`,
|
|
26463
|
-
class: "
|
|
26474
|
+
class: "ck-radio"
|
|
26464
26475
|
}, unref$1(radioAttributes), {
|
|
26465
26476
|
onKeydown: _cache[1] || (_cache[1] = withKeys(withModifiers(() => {
|
|
26466
26477
|
}, ["prevent"]), ["space"])),
|
|
@@ -26487,7 +26498,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
26487
26498
|
};
|
|
26488
26499
|
}
|
|
26489
26500
|
});
|
|
26490
|
-
var ckRadio = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-
|
|
26501
|
+
var ckRadio = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-0952dfde"]]);
|
|
26491
26502
|
var ckSelect_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
26492
26503
|
const _hoisted_1$7 = ["disabled"];
|
|
26493
26504
|
const _hoisted_2$5 = ["value"];
|