Skip to content

Commit

Permalink
finish the vuerouter example
Browse files Browse the repository at this point in the history
  • Loading branch information
Degfy committed Jul 24, 2017
1 parent bbc59f5 commit 3429143
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion example-vuerouter-webpack.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = Object.assign({
resolve: {
alias: {
'vue$': 'vue/dist/vue.common.js',
// 'vue-perfect-scrollbar$':path.join(__dirname, 'dist/index.js'),
'vue-perfect-scrollbar$':path.join(__dirname, './index.js'),
}
},
devServer: {
Expand Down
1 change: 1 addition & 0 deletions example/example-vueRouter/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const router = new VueRouter({
routes: [{
name: 'root',
path: '/',
redirect: '/random',
component: Panel,
children: [{
name: 'random-list',
Expand Down
2 changes: 1 addition & 1 deletion index.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<section ref="container" @ps-scroll-y="scrollHanle" @ps-scroll-x="scrollHanle" @ps-scroll-up="scrollHanle" @ps-scroll-down="scrollHanle" @ps-scroll-left="scrollHanle" @ps-scroll-right="scrollHanle" @ps-y-reach-start="scrollHanle" @ps-y-reach-end="scrollHanle" @ps-x-reach-start="scrollHanle" @ps-x-reach-end="scrollHanle">
<section class="ps-container" ref="container" @ps-scroll-y="scrollHanle" @ps-scroll-x="scrollHanle" @ps-scroll-up="scrollHanle" @ps-scroll-down="scrollHanle" @ps-scroll-left="scrollHanle" @ps-scroll-right="scrollHanle" @ps-y-reach-start="scrollHanle" @ps-y-reach-end="scrollHanle" @ps-x-reach-start="scrollHanle" @ps-x-reach-end="scrollHanle">
<slot></slot>
</section>
</template>
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-perfect-scrollbar",
"version": "0.0.11",
"version": "0.0.12",
"description": "",
"main": "dist/index.js",
"scripts": {
Expand Down Expand Up @@ -38,6 +38,7 @@
"cross-env": "^3.0.0",
"css-loader": "^0.25.0",
"file-loader": "^0.9.0",
"node-sass": "^4.5.3",
"perfect-scrollbar": "^0.7.1",
"sass-loader": "^4.1.1",
"scss-loader": "0.0.1",
Expand All @@ -50,4 +51,4 @@
"webpack": "^2.5.1",
"webpack-dev-server": "^2.4.5"
}
}
}

0 comments on commit 3429143

Please sign in to comment.