File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
packages-private/dts-test Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -2107,3 +2107,38 @@ defineComponent({
21072107 expectType < string > ( this . $props )
21082108 } ,
21092109} )
2110+
2111+ // expose should not break other instance properties
2112+ defineComponent ( {
2113+ setup ( ) {
2114+ const setup1 = ref ( 'setup1' )
2115+ const setup2 = ref ( 'setup2' )
2116+ return { setup1, setup2 }
2117+ } ,
2118+ data ( ) {
2119+ return {
2120+ data1 : 1 ,
2121+ }
2122+ } ,
2123+ props : {
2124+ props1 : {
2125+ type : String ,
2126+ } ,
2127+ } ,
2128+ methods : {
2129+ methods1 ( ) {
2130+ return `methods1`
2131+ } ,
2132+ } ,
2133+ computed : {
2134+ computed1 ( ) {
2135+ this . setup1
2136+ this . setup2
2137+ this . data1
2138+ this . props1
2139+ this . methods1 ( )
2140+ return `computed1`
2141+ } ,
2142+ } ,
2143+ expose : [ 'setup1' ] ,
2144+ } )
You can’t perform that action at this time.
0 commit comments