Skip to content

Commit 67a1d6a

Browse files
committed
feat: update to vue v2.5.13
1 parent e8cc889 commit 67a1d6a

File tree

3 files changed

+19
-10
lines changed

3 files changed

+19
-10
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"he": "^1.1.1",
4646
"lint-staged": "^4.3.0",
4747
"util-inspect": "^0.1.8",
48-
"vue": "^2.5.8"
48+
"vue": "^2.5.13"
4949
},
5050
"peerDependencies": {
5151
"tns-core-modules": "^3.0.0"

platform/nativescript/compiler/modules/scopedSlots.js

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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+
}

0 commit comments

Comments
 (0)