@@ -157,7 +157,7 @@ return { props, bar }
157
157
} "
158
158
`;
159
159
160
- exports[`SFC compile <script setup > defineProps/defineEmits in multi-variable decalration (full removal) 1`] = `
160
+ exports[`SFC compile <script setup > defineProps/defineEmits in multi-variable declaration (full removal) 1`] = `
161
161
"export default {
162
162
props : [' item' ],
163
163
emits : [' a' ],
@@ -173,7 +173,7 @@ return { props, emit }
173
173
} "
174
174
`;
175
175
176
- exports[`SFC compile <script setup > defineProps/defineEmits in multi-variable decalration 1`] = `
176
+ exports[`SFC compile <script setup > defineProps/defineEmits in multi-variable declaration 1`] = `
177
177
"export default {
178
178
props : [' item' ],
179
179
emits : [' a' ],
@@ -506,7 +506,7 @@ return (_ctx, _push, _parent, _attrs) => {
506
506
` ;
507
507
508
508
exports [` SFC compile <script setup > inlineTemplate mode template assignment expression codegen 1`] = `
509
- "import { createElementVNode as _createElementVNode , isRef as _isRef , Fragment as _Fragment , openBlock as _openBlock , createElementBlock as _createElementBlock } from \\"vue\\"
509
+ "import { createElementVNode as _createElementVNode , isRef as _isRef , unref as _unref , Fragment as _Fragment , openBlock as _openBlock , createElementBlock as _createElementBlock } from \\"vue\\"
510
510
511
511
import { ref } from 'vue'
512
512
@@ -534,6 +534,26 @@ return (_ctx, _cache) => {
534
534
}),
535
535
_createElementVNode (\\" div\\ " , {
536
536
onClick: _cache [4 ] || (_cache [4 ] = $event => (_isRef (v ) ? v .value -= 1 : v -= 1 ))
537
+ }),
538
+ _createElementVNode (\\" div\\ " , {
539
+ onClick: _cache [5 ] || (_cache [5 ] = () => {
540
+ let a = ' ' + _unref (lett )
541
+ _isRef (v ) ? v .value = a : v = a
542
+ })
543
+ }),
544
+ _createElementVNode (\\" div\\ " , {
545
+ onClick: _cache [6 ] || (_cache [6 ] = () => {
546
+ // nested scopes
547
+ (()=> {
548
+ let x = _ctx .a
549
+ (()=> {
550
+ let z = x
551
+ let z2 = z
552
+ })
553
+ let lz = _ctx .z
554
+ })
555
+ _isRef (v ) ? v .value = _ctx .a : v = _ctx .a
556
+ })
537
557
})
538
558
], 64 /* STABLE_FRAGMENT */ ))
539
559
}
0 commit comments