MCPcopy Index your code
hub / github.com/YvesCoding/vuescroll

github.com/YvesCoding/vuescroll @v4.8.12

Chat with this repo
repository ↗ · DeepWiki ↗ · release v4.8.12 ↗ · + Follow
276 symbols 533 edges 67 files 26 documented · 9%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Vuescroll

VersionBuild Status Coverage License Download prettier

Demo

Online Demo(Recommend to use mobile)

Introduction

Vuescroll is a full customizable scrollbar based on Vue.js, which spports pull-to-refresh and push-to-load. - vuescrolljs.yvescoding.org

It is compitable with both PC and mobile phone.

Features

Basic & native mode features

Slide mode(includes basic & slide mode features) features

  • Support pull to refresh and push to load, for detail, you can checkout this demo, and this demo of SSR version.

  • Support snapping. Snapping means you can scroll same given distance in options at each timem. You can use it to make a time-picker.

  • Support paging. Paging means you can scroll a distance of container at each time. You can use it to make such a Carousel.

Quick Start

Import

In your entry file:

import Vue from 'vue';
import vuescroll from 'vuescroll';
import 'vuescroll/dist/vuescroll.css';

Vue.use(vuescroll);

In order to reduce the size of the bundle, you can also import modes separately

Only import the features of slide mode:

import Vue from 'vue';
import vuescroll from 'vuescroll/dist/vuescroll-slide';
import 'vuescroll/dist/vuescroll.css';

Vue.use(vuescroll);

Only import the features of native mode:

import Vue from 'vue';
import vuescroll from 'vuescroll/dist/vuescroll-native';
import 'vuescroll/dist/vuescroll.css';

Vue.use(vuescroll);

Usage

Wrap the content you need to scroll by vuescroll

  <template>




        <vue-scroll :ops="ops">






        </vue-scroll>



  </template>
  <script>
    export default {
      data() {
        return {
          ops: {
            // some configs....
          }
        }
      }
    }
  </script>

Detailed guides

Changelog

Detailed changes for each release are documented in the release notes.

Contribution

Please check out CONTRIBUTING.

Communication

For bug report or feature request, you can raise an issue or twitter @wangyi70991

License

MIT

Extension points exported contracts — how you extend this code

Vue (Interface)
(no doc)
types/vuescroll-slide.d.ts
Vue (Interface)
(no doc)
types/vuescroll-native.d.ts
Vue (Interface)
(no doc)
types/vue.d.ts
Tips (Interface)
(no doc)
types/Config.d.ts
Tips (Interface)
(no doc)
types/vuescroll-slide.d.ts
Container (Interface)
(no doc)
types/vuescroll-native.d.ts
PullRefreshOrPushLoad (Interface)
(no doc)
types/Config.d.ts
PullRefreshOrPushLoad (Interface)
(no doc)
types/vuescroll-slide.d.ts

Core symbols most depended-on inside this repo

createVue
called by 33
test/unit/util.js
makeTemplate
called by 33
test/unit/util.js
scrollTo
called by 26
types/vuescroll-native.d.ts
startSchedule
called by 26
test/unit/util.js
resolve
called by 13
scripts/config.js
warn
called by 12
src/shared/util.js
trigger
called by 11
test/unit/util.js
destroyVM
called by 10
test/unit/util.js

Shape

Function 222
Interface 28
Method 23
Class 3

Languages

TypeScript100%

Modules by API surface

src/core/index.js26 symbols
types/vuescroll-slide.d.ts25 symbols
src/shared/util.js21 symbols
types/vuescroll-native.d.ts16 symbols
src/mode/slide/mixins/update-slide.js16 symbols
src/mode/slide/mixins/core.js13 symbols
src/mode/shared/bar.js13 symbols
src/mode/mix/mixins/core.js13 symbols
src/mode/native/mixins/core.js12 symbols
test/unit/util.js10 symbols
src/core/mixins/api.js10 symbols
types/Config.d.ts9 symbols

For agents

$ claude mcp add vuescroll \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact