Fix waterfall hide bug (#166)

* fix: waterfall: prevent loadMore after hide

* feat: add waterfall hidden test && remove waterfall auto install

* delete useless code
This commit is contained in:
Yao
2017-09-30 03:41:33 -05:00
committed by GitHub
parent b43b16d04c
commit 367a23ed48
5 changed files with 85 additions and 13 deletions

View File

@@ -1,14 +1,9 @@
import Waterfall from './directive.js';
import Vue from 'vue';
const install = function(Vue) {
Vue.directive('WaterfallLower', Waterfall('lower'));
Vue.directive('WaterfallUpper', Waterfall('upper'));
};
if (!Vue.prototype.$isServer) {
Vue.use(install);
}
Waterfall.install = install;
export default Waterfall;