Skip to content

Commit 4ee8511

Browse files
committed
build: 0.7.5
1 parent a49ca5d commit 4ee8511

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

packages/nativescript-vue-template-compiler/index.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
/*!
3-
* NativeScript-Vue-Template-Compiler v0.7.4
3+
* NativeScript-Vue-Template-Compiler v0.7.5
44
* (Using Vue v2.5.13)
55
* (c) 2017-2017 rigor789
66
* Released under the MIT license.
@@ -4101,8 +4101,15 @@ function transformNode$2(el) {
41014101

41024102
if (attr) {
41034103
var attrName = attr.substr(1);
4104+
var ref = attrName.split('.');
4105+
var arg = ref[0];
4106+
var modifiers = ref.slice(1);
4107+
modifiers = modifiers.reduce(function (mods, mod) {
4108+
mods[mod] = true;
4109+
return mods
4110+
}, {});
41044111
getAndRemoveAttr(el, attr);
4105-
addDirective(el, 'view', ("v-view:" + attrName), '', attrName);
4112+
addDirective(el, 'view', ("v-view:" + attrName), '', arg, modifiers);
41064113
}
41074114
}
41084115

packages/nativescript-vue-template-compiler/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nativescript-vue-template-compiler",
3-
"version": "0.7.4",
3+
"version": "0.7.5",
44
"description": "template compiler for nativescript-vue",
55
"main": "index.js",
66
"repository": {

0 commit comments

Comments
 (0)