forked from AlloyTeam/PhyTouch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
abwang(王振东)
committed
Dec 26, 2016
1 parent
b2b79ef
commit 84483c9
Showing
3 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
;(function(){ | ||
var Transform = typeof require === 'function' | ||
? require('../transform.js') | ||
: window.Transform; | ||
|
||
var vueTransform = {} | ||
|
||
vueTransform.install = function(Vue){ | ||
var isVue2 = !!(Vue.version.substr(0,1) == 2); | ||
|
||
var directiveBinding = { | ||
bind: function(el, binding){ | ||
Transform(el); | ||
var value = binding.value; | ||
for(var key in value){ | ||
el[key] = value[key]; | ||
} | ||
}, | ||
update: function(el, binding){ | ||
for(var key in value){ | ||
el[key] = value[key]; | ||
} | ||
}, | ||
unbind: function(){ | ||
|
||
} | ||
} | ||
} | ||
|
||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters