Git Product home page Git Product logo

vue-pull-refresh's People

Contributors

jezmck avatar lakb248 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

vue-pull-refresh's Issues

pullDownHeight is not working in the configuration object

I tried it just like the documentation tells me to do:
config: { pullDownHeight: 20 }

Doesn't work, seems that it gets completely ignored.

Here is my setup:

<vue-pull-refresh :on-refresh="loadNewImages" :config="pullConfig">...</vue-pull-refresh>

...

<script>
...
pullConfig: {
                    errorLabel: "Beim Laden der Bilder ist ein Fehler aufgetreten ...",
                    startLabel: "Bilder nachladen",
                    readyLabel: "Zum Nachladen loslassen",
                    loadingLabel: "Lade Bilder ..."
                },
...
</script>

Conflict with Vue 2.1.7+

Hey @lakb248,

I would like to use your vue-pull-refresh component but I think the latest version of Vue has created some conflicts.

Release reads:
If you are the author of a plugin/component that ships a pre-compiled dist file:

It is recommended to re-compile the dist file using the latest versions of vue-template-compiler and vue-template-es2015-compiler. The new generated code is backwards-compatible, but code generated by older versions of the compilers may not work properly with the latest runtime.

Code generation changes that affect compatibility are very rare and we will avoid introducing similar changes in future patch releases.

See:
https://github.com/vuejs/vue/releases/tag/v2.1.7

As per above please can you update, recompile/rebuild and publish to npm?

我是刚才楼下的那个用户

你好 我发现就是那个下拉之后生成的哪个header忽然就height=60变成height=0 你看能不能让他们60到0有一个过程 比较设置成1S 谢谢楼主

How do you set the message/labels in vue-pull-refresh?

How do you override the LABELS?

Also is it possible to change it to be set via a property instead

Like

<vue-pull-refresh pullText="Pull to Refresh" releaseText="Release to Refresh"  loadingText="Loading..." errorText="Data Exception">
   <content/>
</vue-pull-refresh>

Any thing not set uses defaults.

What do you think?

任何时候下拉超过距离都会触发onRefresh函数

比如我滚动了1000px的距离,此时向下滑动,也会触发onRefresh函数,应该还需要判断滚动页面是否在顶部。尝试了下,不知道是不是我页面布局有点乱的原因,获取的scrollTop都是0

Cancelling? Using with Hammer.js

Using vue-pull-refresh (VPR) with hammer.js works well, but...

When panning left/right on a page with a VPR component, it would be nice to be able to tell VPR to cancel (resetPullDown) and have VPR stop processing events, but this is private to the mounted/$nextTick handler.

Exposing resetPullDown (I know it's not that simple) would allow both panning and VPR functionality to co-exist. Currently both work, but from a user perspective, once panning begins the VPR functionality should cease.

iOS Safari, white gap above pull down header

on the latest iOS Safari, there is a white gap at the top of the pull-down-header when you pull down the page.

This happens even on the demo page.

Any way to remove the gap?

ReferenceError: window is not defined in Nuxt3

ReferenceError: window is not defined                                                                                                        5:05:33 PM
    at /home/user/repo/vue-app/node_modules/vue-pull-refresh/dist/vue-pull-refresh.min.js:1:14451
    at /home/user/repo/vue-app/node_modules/vue-pull-refresh/dist/vue-pull-refresh.min.js:1:14383
    at n.exports (/home/user/repo/vue-app/node_modules/vue-pull-refresh/dist/vue-pull-refresh.min.js:1:14801)
    at Object.<anonymous> (/home/user/repo/vue-app/node_modules/vue-pull-refresh/dist/vue-pull-refresh.min.js:1:15257)
    at t (/home/user/repo/vue-app/node_modules/vue-pull-refresh/dist/vue-pull-refresh.min.js:1:332)
    at Object.<anonymous> (/home/user/repo/vue-app/node_modules/vue-pull-refresh/dist/vue-pull-refresh.min.js:1:750)
    at t (/home/user/repo/vue-app/node_modules/vue-pull-refresh/dist/vue-pull-refresh.min.js:1:332)
    at Object.<anonymous> (/home/user/repo/vue-app/node_modules/vue-pull-refresh/dist/vue-pull-refresh.min.js:1:4067)
    at t (/home/user/repo/vue-app/node_modules/vue-pull-refresh/dist/vue-pull-refresh.min.js:1:332)
    at /home/user/repo/vue-app/node_modules/vue-pull-refresh/dist/vue-pull-refresh.min.js:1:715

当下拉刷新的内容较多时性能不太好

在手机上操作,当下拉刷新的内容较多时性能不太好,有卡顿感,怀疑是因为修改height导致下面列表的内容回流重绘所致。不知道是否可以用transform之类的方法解决?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.