Skip to content

Commit

Permalink
feat: update to vue v2.5.13
Browse files Browse the repository at this point in the history
  • Loading branch information
rigor789 committed Dec 21, 2017
1 parent e8cc889 commit 67a1d6a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"he": "^1.1.1",
"lint-staged": "^4.3.0",
"util-inspect": "^0.1.8",
"vue": "^2.5.8"
"vue": "^2.5.13"
},
"peerDependencies": {
"tns-core-modules": "^3.0.0"
Expand Down
9 changes: 0 additions & 9 deletions platform/nativescript/compiler/modules/scopedSlots.js

This file was deleted.

18 changes: 18 additions & 0 deletions platform/nativescript/compiler/modules/v-template.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { addRawAttr } from 'compiler/helpers'

function preTransformNode(el) {
if (el.tag === 'v-template') {
// set +alias property on the v-template component
let alias = el.parent.attrsMap['+alias'] || 'item'
addRawAttr(el, '+alias', alias)
}

if (el.parent && el.parent.tag === 'v-template') {
// set the slot scope to the list-view +alias attribute
el.slotScope = el.parent.parent.attrsMap['+alias'] || 'item'
}
}

export default {
preTransformNode
}

0 comments on commit 67a1d6a

Please sign in to comment.