@@ -4,7 +4,9 @@ exports[`defineComponent autoReturnFunction fixtures > ./fixtures/define-compone
4
4
"
5
5
import { useAttrs as __MACROS_useAttrs } from "vue";
6
6
import { useModel as __MACROS_useModel } from "vue-jsx-vapor/macros/use-model";
7
- import { withAsyncContext as __MACROS_withAsyncContext } from "vue";import { defineComponent , nextTick } from 'vue'
7
+ import { withAsyncContext as __MACROS_withAsyncContext } from "vue";import { defineComponent , nextTick , unref } from 'vue'
8
+
9
+ const $ = unref
8
10
9
11
const Comp = defineComponent(
10
12
(__MACROS_props) => { const attrs = __MACROS_useAttrs ();
@@ -102,7 +104,9 @@ exports[`fixtures > ./fixtures/define-component.tsx 1`] = `
102
104
"
103
105
import { useAttrs as __MACROS_useAttrs } from "vue";
104
106
import { useModel as __MACROS_useModel } from "vue-jsx-vapor/macros/use-model";
105
- import { withAsyncContext as __MACROS_withAsyncContext } from "vue";import { defineComponent , nextTick } from 'vue'
107
+ import { withAsyncContext as __MACROS_withAsyncContext } from "vue";import { defineComponent , nextTick , unref } from 'vue'
108
+
109
+ const $ = unref
106
110
107
111
const Comp = defineComponent(
108
112
(__MACROS_props) => { const attrs = __MACROS_useAttrs ();
@@ -224,7 +228,9 @@ export const Comp2 = ({ foo, ...__MACROS_props }: any) => {
224
228
exports [` fixtures > ./fixtures/define-model.tsx 1` ] = `
225
229
"
226
230
import { useModel as __MACROS_useModel } from "vue-jsx-vapor/macros/use-model";
227
- import { defineComponent } from 'vue'
231
+ import { defineComponent , unref } from 'vue'
232
+
233
+ const $ = unref
228
234
229
235
export const Comp = defineComponent((__MACROS_props) => {
230
236
const foo = __MACROS_useModel <string , ' m1' | ' m2' >(__MACROS_props , ' foo' , { default: __MACROS_props .bar })
0 commit comments