From e84fe84688a2e962c5435296029f96d8d4f69cae Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期一, 15 九月 2025 17:35:24 +0800 Subject: [PATCH] fix: nutui-taro radio --- patches/@nutui__nutui-taro@4.3.13.patch | 48 +++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 47 insertions(+), 1 deletions(-) diff --git a/patches/@nutui__nutui-taro@4.3.13.patch b/patches/@nutui__nutui-taro@4.3.13.patch index eba5d18..f3dcfec 100644 --- a/patches/@nutui__nutui-taro@4.3.13.patch +++ b/patches/@nutui__nutui-taro@4.3.13.patch @@ -1,3 +1,16 @@ +diff --git a/dist/packages/calendarcard/CalendarCard.js b/dist/packages/calendarcard/CalendarCard.js +index bc08a59cb856db4768fd3581eddf0e72f4cd8008..4daa1ba2d662d93987b0afc5b95b9eda45cffc5f 100644 +--- a/dist/packages/calendarcard/CalendarCard.js ++++ b/dist/packages/calendarcard/CalendarCard.js +@@ -345,7 +345,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({ + switch (props.type) { + case "single": { + if (innerValue.value[0] && isSameDay(innerValue.value[0], day)) { +- change([]); ++ + } else { + change([day]); + } diff --git a/dist/packages/index.taro-V9Ta96_T.js b/dist/packages/index.taro-V9Ta96_T.js index 0d9e8d05c1a1772895054623fb9e7bbe88bfa64c..6582e2bfb10ff8fe89bd333cf1d2704978e09982 100644 --- a/dist/packages/index.taro-V9Ta96_T.js @@ -35,6 +48,39 @@ }; }); const styles = computed(() => { +diff --git a/dist/packages/radiogroup/RadioGroup.js b/dist/packages/radiogroup/RadioGroup.js +index 861a0214fe5d148b9af468d7ed5c9720eeef2f74..df2cee2988945755ab5c6b6929693c3e77924874 100644 +--- a/dist/packages/radiogroup/RadioGroup.js ++++ b/dist/packages/radiogroup/RadioGroup.js +@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => { + return a; + }; + var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); +-import { defineComponent, provide, readonly, computed, watch, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue"; ++import { defineComponent, provide, readonly, computed, watch, openBlock, createElementBlock, normalizeClass, renderSlot, nextTick } from "vue"; + import { R as RADIO_KEY } from "../types-BODurTjN.js"; + import { w as withInstall } from "../with-install-Ch3FF0uS.js"; + const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, { +@@ -35,18 +35,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({ + const emit = __emit; + const updateValue = (value) => { + emit("update:modelValue", value); ++ nextTick(()=>emit("change", value)); + }; + provide(RADIO_KEY, { + label: readonly(computed(() => props.modelValue)), + position: readonly(computed(() => props.textPosition)), + updateValue + }); +- watch( +- () => props.modelValue, +- (value) => { +- emit("change", value); +- } +- ); + return (_ctx, _cache) => { + return openBlock(), createElementBlock("view", { + class: normalizeClass(["nut-radio-group", `nut-radio-group--${_ctx.direction}`]) diff --git a/dist/packages/range/Range.js b/dist/packages/range/Range.js index 688b67464e4d05dc37996941d941033cea83ee2c..626db4d9889059aa08e1fd675e2333539efc766e 100644 --- a/dist/packages/range/Range.js @@ -72,4 +118,4 @@ + renderSlot(_ctx.$slots, "extra-img",{ item: item }), createTextVNode(), (((_a = item == null ? void 0 : item.type) == null ? void 0 : _a.includes("image")) || ((_b = item == null ? void 0 : item.type) == null ? void 0 : _b.includes("video"))) && item.url ? (openBlock(), createElementBlock("img", { - key: 2, \ No newline at end of file + key: 2, -- Gitblit v1.9.1