-
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.
Merge pull request #3 from kiccer/dev
update
- Loading branch information
Showing
8 changed files
with
123 additions
and
16 deletions.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
import vueDirectiveResize from './vue-directive-resize' | ||
import vueDirectiveMousewheel from './vue-directive-mousewheel' | ||
import vueDirectiveLoad from './vue-directive-load' | ||
|
||
function vueDirectiveExtend (vm) { | ||
vm.use(vueDirectiveResize) | ||
vm.use(vueDirectiveMousewheel) | ||
vm.use(vueDirectiveLoad) | ||
} | ||
|
||
export default vueDirectiveExtend |
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,22 @@ | ||
function vueDirectiveLoad (vm) { | ||
vm.directive('load', { | ||
// bind (el, binding) {}, | ||
inserted (el, binding) { | ||
binding.value && binding.value() | ||
} | ||
// componentUpdated (el) {}, | ||
// update (el) {}, | ||
// unbind (el, binding) {} | ||
}) | ||
vm.directive('unload', { | ||
// bind (el, binding) {}, | ||
// inserted (el, binding) {}, | ||
// componentUpdated (el) {}, | ||
// update (el) {}, | ||
unbind (el, binding) { | ||
binding.value && binding.value() | ||
} | ||
}) | ||
} | ||
|
||
export default vueDirectiveLoad |
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
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 |
---|---|---|
|
@@ -31,5 +31,6 @@ export default { | |
text-align: center; | ||
color: #2c3e50; | ||
margin-top: 60px; | ||
height: 1000px; | ||
} | ||
</style> |
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