@@ -4,6 +4,7 @@ exports[`defineComponent autoReturnFunction fixtures > ./fixtures/define-compone
44"
55import { useAttrs as __MACROS_useAttrs } from "vue";
66import { useModel as __MACROS_useModel } from "vue-jsx-vapor/macros/use-model";
7+ import { useFullProps as __MACROS_useFullProps } from "vue-jsx-vapor";
78import { withAsyncContext as __MACROS_withAsyncContext } from "vue";import { defineComponent , nextTick , unref } from 'vue'
89
910const $ = unref
@@ -38,7 +39,7 @@ const Comp = defineComponent(
3839}, ... { Comp: Object }} } ,
3940)
4041
41- const Comp1 = defineComponent((props: { bar : ' bar ' ; ' onUpdate:bar ' : any , comp : any } ) => {
42+ const Comp1 = defineComponent((__MACROS_props ) => { const props = __MACROS_useFullProps ();
4243 const foo = __MACROS_useModel (props , ' foo' )
4344 return () => <div >
4445 { [foo .value , props [' bar' ], props [' onUpdate:bar' ]]}
@@ -104,6 +105,7 @@ exports[`fixtures > ./fixtures/define-component.tsx 1`] = `
104105"
105106import { useAttrs as __MACROS_useAttrs } from "vue";
106107import { useModel as __MACROS_useModel } from "vue-jsx-vapor/macros/use-model";
108+ import { useFullProps as __MACROS_useFullProps } from "vue-jsx-vapor";
107109import { withAsyncContext as __MACROS_withAsyncContext } from "vue";import { defineComponent , nextTick , unref } from 'vue'
108110
109111const $ = unref
@@ -138,7 +140,7 @@ const Comp = defineComponent(
138140}, ... { Comp: Object }} } ,
139141)
140142
141- const Comp1 = defineComponent((props: { bar : ' bar ' ; ' onUpdate:bar ' : any , comp : any } ) => {
143+ const Comp1 = defineComponent((__MACROS_props ) => { const props = __MACROS_useFullProps ();
142144 const foo = __MACROS_useModel (props , ' foo' )
143145 return <div >
144146 { [foo .value , props [' bar' ], props [' onUpdate:bar' ]]}
@@ -202,22 +204,22 @@ defineComponent((__MACROS_props) => {
202204
203205exports [` fixtures > ./fixtures/define-expose.tsx 1` ] = `
204206"
205- import { currentInstance as __MACROS_currentInstance } from "vue";export function Comp(__MACROS_props) {
206- ;(__MACROS_currentInstance .exposed = {
207+ import { getCurrentInstance as __MACROS_getCurrentInstance } from "vue-jsx-vapor ";export function Comp(__MACROS_props) {
208+ ;(__MACROS_getCurrentInstance () .exposed = {
207209 foo: 1 ,
208210 })
209211 return <div />
210212}
211213
212214export const Comp1 = function (props: any) {
213- ;(__MACROS_currentInstance .exposed = {
215+ ;(__MACROS_getCurrentInstance () .exposed = {
214216 foo: props .foo ,
215217 })
216218 return <div />
217219}
218220
219221export const Comp2 = ({ foo , ... __MACROS_props } : any) => {
220- ;(__MACROS_currentInstance .exposed = {
222+ ;(__MACROS_getCurrentInstance () .exposed = {
221223 foo ,
222224 })
223225 return <div />
0 commit comments