]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: update snap
authordaiwei <daiwei521@126.com>
Fri, 20 Jun 2025 00:59:51 +0000 (08:59 +0800)
committerdaiwei <daiwei521@126.com>
Fri, 20 Jun 2025 00:59:51 +0000 (08:59 +0800)
packages/compiler-vapor/__tests__/transforms/__snapshots__/expression.spec.ts.snap

index 454e50e9cbc62c95a66c630f0a321b6bd209007b..7e157236bf9f8e6971757aa2256307eda625f1fe 100644 (file)
@@ -34,7 +34,7 @@ export function render(_ctx, $props, $emit, $attrs, $slots) {
 `;
 
 exports[`compiler: expression > update expression 1`] = `
-"import { child as _child, toDisplayString as _toDisplayString, setText as _setText, setProp as _setProp, renderEffect as _renderEffect, template as _template } from 'vue';
+"import { child as _child, setProp as _setProp, toDisplayString as _toDisplayString, setText as _setText, renderEffect as _renderEffect, template as _template } from 'vue';
 const t0 = _template("<div> </div>", true)
 
 export function render(_ctx) {
@@ -44,12 +44,11 @@ export function render(_ctx) {
   _renderEffect(() => {
     const _String = String
     const _foo = _ctx.foo
-    
-    _setText(n0, _toDisplayString(_String(_foo.id++)) + " " + _toDisplayString(_foo) + " " + _toDisplayString(_ctx.bar))
-    _setText(x1, _toDisplayString(_String(_foo.id++)) + " " + _toDisplayString(_foo) + " " + _toDisplayString(_ctx.bar))
     _setProp(n1, "id", _String(_foo.id++))
     _setProp(n1, "foo", _foo)
     _setProp(n1, "bar", _ctx.bar++)
+    _setText(n0, _toDisplayString(_String(_foo.id++)) + " " + _toDisplayString(_foo) + " " + _toDisplayString(_ctx.bar))
+    _setText(x1, _toDisplayString(_String(_foo.id++)) + " " + _toDisplayString(_foo) + " " + _toDisplayString(_ctx.bar))
   })
   return n1
 }"