File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -21,14 +21,14 @@ export interface Context {
21
21
22
22
export const createContext = ( parent ?: Context ) : Context => {
23
23
const ctx : Context = {
24
+ delimiters : [ '{{' , '}}' ] ,
25
+ delimitersRE : / \{ \{ ( [ ^ ] + ?) \} \} / g,
24
26
...parent ,
25
27
scope : parent ? parent . scope : reactive ( { } ) ,
26
28
dirs : parent ? parent . dirs : { } ,
27
29
effects : [ ] ,
28
30
blocks : [ ] ,
29
31
cleanups : [ ] ,
30
- delimiters : [ '{{' , '}}' ] ,
31
- delimitersRE : / \{ \{ ( [ ^ ] + ?) \} \} / g,
32
32
effect : ( fn ) => {
33
33
if ( inOnce ) {
34
34
queueJob ( fn )
Original file line number Diff line number Diff line change 6
6
</ script >
7
7
8
8
< div v-scope ="{ count: 1 } ">
9
- < p > count is ${ count }!</ p >
9
+ < p v-if =" count " > count is ${ count }!</ p >
10
10
< button @click ="count++ "> increase</ button >
11
+
12
+ < p v-for ="i in [1, 2, 3] " :key ="i "> ${ i }</ p >
13
+
14
+ < p v-if ="true "> ${ count }</ p >
11
15
</ div >
You can’t perform that action at this time.
0 commit comments