| | |
| | | }); |
| | | }; |
| | | BarChart.prototype.setOption = function (option) {}; |
| | | |
| | | Vue.directive('swipeleft', { |
| | | var FragmentFactory = Vue.FragmentFactory; |
| | | var remove = Vue.util.remove; |
| | | var createAnchor = Vue.util.createAnchor; |
| | | console.log(createAnchor); |
| | | console.log(FragmentFactory); |
| | | // 定义v-lazy指令 |
| | | Vue.directive('lazy', { |
| | | terminal: true, |
| | | // 当绑定元素插入到 DOM 中。 |
| | | inserted: function inserted(el) { |
| | | var pinch = new Hammer.Pinch(); |
| | | var rotate = new Hammer.Rotate(); |
| | | pinch.recognizeWith(rotate); |
| | | console.log(pinch); |
| | | console.log(Vue.FragmentFactory); |
| | | } |
| | | }); |