chore: prettier source code

This commit is contained in:
chenjiahan
2020-04-02 15:36:02 +08:00
parent 340c56b3b5
commit 2fb5cca49a
93 changed files with 272 additions and 283 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ const [createComponent, bem] = createNamespace('sticky');
export default createComponent({
mixins: [
BindEventMixin(function(bind, isBind) {
BindEventMixin(function (bind, isBind) {
if (!this.scroller) {
this.scroller = getScroller(this.$el);
}
@@ -67,7 +67,7 @@ export default createComponent({
// compatibility: https://caniuse.com/#feat=intersectionobserver
if (!isServer && window.IntersectionObserver) {
this.observer = new IntersectionObserver(
entries => {
(entries) => {
// trigger scroll when visibility changed
if (entries[0].intersectionRatio > 0) {
this.onScroll();