From 97ce041910b6ca4bef10f939493d6b5a06ea5b07 Mon Sep 17 00:00:00 2001 From: Evan You Date: Sat, 30 Dec 2023 08:57:55 +0800 Subject: [PATCH] fix(defineModel): support local mutation when only prop but no listener is passed --- .../__tests__/apiSetupHelpers.spec.ts | 35 +++++++++++++++++++ packages/runtime-core/src/apiSetupHelpers.ts | 14 +++++++- 2 files changed, 48 insertions(+), 1 deletion(-) diff --git a/packages/runtime-core/__tests__/apiSetupHelpers.spec.ts b/packages/runtime-core/__tests__/apiSetupHelpers.spec.ts index 0528a14577a..b50da90d426 100644 --- a/packages/runtime-core/__tests__/apiSetupHelpers.spec.ts +++ b/packages/runtime-core/__tests__/apiSetupHelpers.spec.ts @@ -279,6 +279,41 @@ describe('SFC