From edb53c35f5cf75988a39a54d5e52605c89d0ab3a Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期一, 20 十月 2025 10:24:20 +0800
Subject: [PATCH] fix: bug
---
patches/@nutui__nutui-taro@4.3.13.patch | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 59 insertions(+), 1 deletions(-)
diff --git a/patches/@nutui__nutui-taro@4.3.13.patch b/patches/@nutui__nutui-taro@4.3.13.patch
index 04c7fa9..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,51 @@
};
});
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
++++ b/dist/packages/range/Range.js
+@@ -288,6 +288,7 @@ const _sfc_main = create({
+ if (disabled.value) {
+ return;
+ }
++ init();
+ touch.start(event);
+ currentValue = props.modelValue;
+ if (isRange(currentValue)) {
diff --git a/dist/packages/toast/Toast.js b/dist/packages/toast/Toast.js
index d9084afa94d8bc892f64cfca10eb098d2be4bcb0..ca2309339c0d8b2fca248081783c88c9fb57d2a2 100644
--- a/dist/packages/toast/Toast.js
@@ -60,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