]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: update edison/fix/13169 13170/head
authordaiwei <daiwei521@126.com>
Mon, 26 May 2025 01:05:18 +0000 (09:05 +0800)
committerdaiwei <daiwei521@126.com>
Mon, 26 May 2025 01:06:19 +0000 (09:06 +0800)
packages/compiler-dom/__tests__/transforms/__snapshots__/vModel.spec.ts.snap
packages/compiler-dom/__tests__/transforms/vModel.spec.ts

index 1953974c30837354f2b4d428080f1867dc96d476..b357ac15a1b2a3ea3f433c14bd2da939bb2c7692 100644 (file)
@@ -48,7 +48,7 @@ return function render(_ctx, _cache) {
 }"
 `;
 
-exports[`compiler: transform v-model > input with v-bind shorthand type should use dynamic model 1`] = `
+exports[`compiler: transform v-model > input with v-bind shorthand type after v-model should use dynamic model 1`] = `
 "const _Vue = Vue
 
 return function render(_ctx, _cache) {
index 64e102ff270ea83028f1129a86d82ca50f5dda5b..6891cff11e1b4d1059e7fadf748a7a4cd8b6ec23 100644 (file)
@@ -63,8 +63,8 @@ describe('compiler: transform v-model', () => {
     expect(generate(root).code).toMatchSnapshot()
   })
 
-  test('input with v-bind shorthand type should use dynamic model', () => {
-    const root = transformWithModel('<input :type v-model="model" />')
+  test('input with v-bind shorthand type after v-model should use dynamic model', () => {
+    const root = transformWithModel('<input v-model="model" :type/>')
 
     expect(root.helpers).toContain(V_MODEL_DYNAMIC)
     expect(generate(root).code).toMatchSnapshot()