File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ import App from './App.tsx'
30
30
createApp (App ).use (vaporInteropPlugin ).mount (' #app' )
31
31
```
32
32
33
- ``` tsx [App.tsx] twoslash1
33
+ ``` tsx [App.tsx] twoslash
34
34
import {
35
35
computed ,
36
36
defineComponent ,
@@ -51,11 +51,7 @@ export default defineComponent(() => {
51
51
const compRef = useRef ()
52
52
return () => (
53
53
<>
54
- <input
55
- value = { count .value }
56
- onInput = { (e ) => (count .value = + e .currentTarget .value )}
57
- />
58
-
54
+ <input v-model = { count .value } />
59
55
<Comp count = { count .value } ref = { compRef } ></Comp >
60
56
{ compRef .value ?.double }
61
57
</>
@@ -93,7 +89,7 @@ import App from './App.tsx'
93
89
createVaporApp (App ).use (vaporInteropPlugin ).mount (' #app' )
94
90
```
95
91
96
- ``` tsx [App.tsx] twoslash1
92
+ ``` tsx [App.tsx] twoslash
97
93
import {
98
94
computed ,
99
95
defineComponent ,
@@ -114,11 +110,7 @@ export default defineComponent(() => {
114
110
const compRef = useRef ()
115
111
return () => (
116
112
<>
117
- <input
118
- value = { count .value }
119
- onInput = { (e ) => (count .value = + e .currentTarget .value )}
120
- />
121
-
113
+ <input v-model = { count .value } />
122
114
<Comp count = { count .value } ref = { compRef } ></Comp >
123
115
{ compRef .value ?.double }
124
116
</>
You can’t perform that action at this time.
0 commit comments