@avilang/practical-ui 0.3.66 → 0.3.67
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/index.js +4 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -31227,6 +31227,8 @@ const zo = /* @__PURE__ */ Object.assign({
|
|
|
31227
31227
|
disabled: { type: Boolean, default: !1 },
|
|
31228
31228
|
checkedValue: { type: [String, Number, Boolean], default: !0 },
|
|
31229
31229
|
uncheckedValue: { type: [String, Number, Boolean], default: !1 },
|
|
31230
|
+
checkedOnly: { type: Boolean, default: !1 },
|
|
31231
|
+
// 若选中时,再次点击不取消选中 - 就是要选中的效果,不在 group 中使用
|
|
31230
31232
|
val: { type: [String, Number] }
|
|
31231
31233
|
}, {
|
|
31232
31234
|
modelValue: { type: [String, Number, Boolean] },
|
|
@@ -31235,9 +31237,9 @@ const zo = /* @__PURE__ */ Object.assign({
|
|
|
31235
31237
|
emits: /* @__PURE__ */ At(["change"], ["update:modelValue"]),
|
|
31236
31238
|
setup(e, { emit: t }) {
|
|
31237
31239
|
const r = fn(e, "modelValue"), o = Bn(), i = t, a = Qn(function(s) {
|
|
31238
|
-
r.value = s ? e.checkedValue : e.uncheckedValue, setTimeout(() => {
|
|
31240
|
+
e.checkedOnly && e.val == null && r.value === e.checkedValue || (r.value = s ? e.checkedValue : e.uncheckedValue, setTimeout(() => {
|
|
31239
31241
|
i("change", r.value);
|
|
31240
|
-
}, 0);
|
|
31242
|
+
}, 0));
|
|
31241
31243
|
}, 300);
|
|
31242
31244
|
return (s, l) => (Be(), et(re(Ai), {
|
|
31243
31245
|
style: Ut(re(o).style || ""),
|