|
@@ -85,7 +85,7 @@ exports[`handle TS casting syntax 1`] = `
|
|
|
exports[`macro import alias and removal 1`] = `
|
|
exports[`macro import alias and removal 1`] = `
|
|
|
"import { ref as _ref, toRef as _toRef } from 'vue'
|
|
"import { ref as _ref, toRef as _toRef } from 'vue'
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
let a = _ref(1)
|
|
let a = _ref(1)
|
|
|
const __$temp_1 = (useMouse()),
|
|
const __$temp_1 = (useMouse()),
|
|
@@ -184,7 +184,7 @@ exports[`object destructure 1`] = `
|
|
|
d = _toRef(__$temp_1, 'd', 1),
|
|
d = _toRef(__$temp_1, 'd', 1),
|
|
|
f = _toRef(__$temp_1, 'e', 2),
|
|
f = _toRef(__$temp_1, 'e', 2),
|
|
|
h = _toRef(__$temp_1, g)
|
|
h = _toRef(__$temp_1, g)
|
|
|
- let __$temp_2 = (useSomthing(() => 1)),
|
|
|
|
|
|
|
+ let __$temp_2 = (useSomething(() => 1)),
|
|
|
foo = _toRef(__$temp_2, 'foo');
|
|
foo = _toRef(__$temp_2, 'foo');
|
|
|
console.log(n.value, a.value, c.value, d.value, f.value, h.value, foo.value)
|
|
console.log(n.value, a.value, c.value, d.value, f.value, h.value, foo.value)
|
|
|
"
|
|
"
|