File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
src/platforms/mp/compiler/codegen-swan Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
export default {
2
- // 'if': 's-if',
2
+ 'if' : 's-if' ,
3
3
'v-for' : 's-for' ,
4
4
'alias' : 's-for-item' ,
5
5
'iterator1' : 's-for-index' ,
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ function getSlotsName (obj) {
10
10
. join ( ',' )
11
11
}
12
12
13
- function tmplateSlotsObj ( obj ) {
13
+ function tmplateSlotsObj ( obj ) {
14
14
if ( ! obj ) {
15
15
return [ ]
16
16
}
@@ -28,13 +28,13 @@ export default {
28
28
convertComponent ( ast , components , slotName ) {
29
29
const { attrsMap, tag, mpcomid, slots } = ast
30
30
if ( slotName ) {
31
- attrsMap [ 'data' ] = " {{{...$root[$k], $root}}}"
31
+ attrsMap [ 'data' ] = ' {{{...$root[$k], $root}}}'
32
32
// bindedName is available when rendering slot in v-for
33
33
const bindedName = attrsMap [ 'v-bind:name' ]
34
- if ( bindedName ) {
35
- attrsMap [ 'is' ] = " {{$for[" + bindedName + " ]}}"
34
+ if ( bindedName ) {
35
+ attrsMap [ 'is' ] = ' {{$for[' + bindedName + ' ]}}'
36
36
} else {
37
- attrsMap [ 'is' ] = "{{" + slotName + "}}"
37
+ attrsMap [ 'is' ] = '{{' + slotName + '}}'
38
38
}
39
39
} else {
40
40
const slotsName = getSlotsName ( slots )
You can’t perform that action at this time.
0 commit comments