From 82e613291dbaca4bc0e9964b0111037a94a68918 Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期日, 19 十月 2025 17:53:04 +0800 Subject: [PATCH] fix: bug --- patches/@nutui__nutui-taro@4.3.13.patch | 89 +++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 82 insertions(+), 7 deletions(-) diff --git a/patches/@nutui__nutui-taro@4.3.13.patch b/patches/@nutui__nutui-taro@4.3.13.patch index 04c7fa9..e101441 100644 --- a/patches/@nutui__nutui-taro@4.3.13.patch +++ b/patches/@nutui__nutui-taro@4.3.13.patch @@ -1,5 +1,18 @@ +diff --git a/dist/packages/calendarcard/CalendarCard.js b/dist/packages/calendarcard/CalendarCard.js +index bc08a59cb856db4768fd3581eddf0e72f4cd8008..074fde97f3e0be9db0b37454f7491db7dbd74a8a 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 +index 0d9e8d05c1a1772895054623fb9e7bbe88bfa64c..341cfdf5750ab97975b49c54d15711897522e06c 100644 --- a/dist/packages/index.taro-V9Ta96_T.js +++ b/dist/packages/index.taro-V9Ta96_T.js @@ -29,7 +29,7 @@ const popupProps = { @@ -12,7 +25,7 @@ duration: { type: [Number, String], diff --git a/dist/packages/input/Input.js b/dist/packages/input/Input.js -index bbac0bb44b5ba6d4f50fbf9f90808c851092cb74..9de837d71563c5763127b8b5e852417cc8e155cd 100644 +index bbac0bb44b5ba6d4f50fbf9f90808c851092cb74..9dd26d5b6ecf616025cc4bfdc03d91f3936e5feb 100644 --- a/dist/packages/input/Input.js +++ b/dist/packages/input/Input.js @@ -84,7 +84,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({ @@ -35,8 +48,53 @@ }; }); const styles = computed(() => { +diff --git a/dist/packages/radiogroup/RadioGroup.js b/dist/packages/radiogroup/RadioGroup.js +index 861a0214fe5d148b9af468d7ed5c9720eeef2f74..66f565e4a7d5ef2fe55b8343ced72f783132ebba 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..2af0df1dba70728acb6143bb0fe28e92ca604bb3 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 +index d9084afa94d8bc892f64cfca10eb098d2be4bcb0..df36fde6fb4bfe4e88dcc6197f68cf2bf0564e81 100644 --- a/dist/packages/toast/Toast.js +++ b/dist/packages/toast/Toast.js @@ -102,6 +102,9 @@ const _sfc_main = create({ @@ -50,14 +108,31 @@ ); const hasIcon = computed(() => { diff --git a/dist/packages/uploader/Uploader.js b/dist/packages/uploader/Uploader.js -index 77f3689a95eff13043ed2745aae193282b57f129..7144e12c5eb7dc98ed2ae224db6607a5b1d7428e 100644 +index 77f3689a95eff13043ed2745aae193282b57f129..a12a7c3fa80d779716c66b25ec1e0156cd711c3e 100644 --- a/dist/packages/uploader/Uploader.js +++ b/dist/packages/uploader/Uploader.js -@@ -569,6 +569,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { +@@ -569,14 +569,17 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { createVNode(_component_Failure) ]) ], 8, _hoisted_6)) : createCommentVNode("", true), + 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 +- (((_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, +- class: "nut-uploader__preview-img__c", +- mode: _ctx.mode, +- src: item.url, +- onClick: ($event) => _ctx.fileItemClick(item) +- }, null, 8, _hoisted_7)) : (openBlock(), createElementBlock("view", _hoisted_8, [ ++ (((_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 ? renderSlot(_ctx.$slots, "item", {item: item}, () => [ ++ (openBlock(), createElementBlock("img", { ++ key: 2, ++ class: "nut-uploader__preview-img__c", ++ mode: _ctx.mode, ++ src: item.url, ++ onClick: ($event) => _ctx.fileItemClick(item) ++ }, null, 8, _hoisted_7)) ++ ]) : (openBlock(), createElementBlock("view", _hoisted_8, [ + createElementVNode("view", { + class: "nut-uploader__preview-img__file__name", + onClick: ($event) => _ctx.fileItemClick(item) -- Gitblit v1.9.1