File tree Expand file tree Collapse file tree 3 files changed +19
-10
lines changed
platform/nativescript/compiler/modules Expand file tree Collapse file tree 3 files changed +19
-10
lines changed Original file line number Diff line number Diff line change 45
45
"he" : " ^1.1.1" ,
46
46
"lint-staged" : " ^4.3.0" ,
47
47
"util-inspect" : " ^0.1.8" ,
48
- "vue" : " ^2.5.8 "
48
+ "vue" : " ^2.5.13 "
49
49
},
50
50
"peerDependencies" : {
51
51
"tns-core-modules" : " ^3.0.0"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ import { addRawAttr } from 'compiler/helpers'
2
+
3
+ function preTransformNode ( el ) {
4
+ if ( el . tag === 'v-template' ) {
5
+ // set +alias property on the v-template component
6
+ let alias = el . parent . attrsMap [ '+alias' ] || 'item'
7
+ addRawAttr ( el , '+alias' , alias )
8
+ }
9
+
10
+ if ( el . parent && el . parent . tag === 'v-template' ) {
11
+ // set the slot scope to the list-view +alias attribute
12
+ el . slotScope = el . parent . parent . attrsMap [ '+alias' ] || 'item'
13
+ }
14
+ }
15
+
16
+ export default {
17
+ preTransformNode
18
+ }
You can’t perform that action at this time.
0 commit comments