UNPKG
pc-better-scroll
Version:
latest (1.0.0)
1.0.0
A vue plugins based on better-scroll
pc-better-scroll
/
src
/
lib
/
index.js
15 lines
(9 loc)
•
247 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import
BScroll
from
'./BScroll.vue'
/* istanbul ignore next */
BScroll
.
install
=
function
(
Vue
) {
Vue
.
component
(
BScroll
.
name
,
BScroll
) }
if
(
typeof
window
!==
'undefined'
&&
window
.
Vue
) {
window
.
Vue
.
use
(
BScroll
); }
export
default
BScroll