
BetterScroll
让滚动完美
臧小川
我很酷 你想跟我一样酷吗 关注我吧
展开
-
react+better-movable
效果图 下载 npm install @better-scroll/movable --save // or yarn add @better-scroll/movable JS import React, { useEffect, useRef, useState } from 'react' import styles from './style.less' import { BS } from './utils/index' const index = () => { useEf原创 2022-01-14 11:43:41 · 227 阅读 · 0 评论 -
react + better-scroll 横向滚动案例
JS import React, { useState, useEffect, useRef } from 'react' import styles from './style.less' import { RestOutlined, RedditOutlined } from '@ant-design/icons' import { DS } from './utils/index' const data = [ { event: '向女神表白被拒', location: '钱柜KTV', s.原创 2021-12-17 18:00:30 · 2140 阅读 · 0 评论 -
react + better_scroll 简单封装
JS import React, { useRef, useEffect, useState, Fragment } from 'react' import styles from './style.less' import { BS, DS, debounce } from './utils/index' import { Select } from 'antd'; const { Option } = Select const index = () => { const [rollingA原创 2021-12-12 18:46:24 · 592 阅读 · 0 评论 -
React+BetterScroll简单应用
npm install @better-scroll/core --save // or yarn add @better-scroll/core原创 2021-12-10 14:31:12 · 1501 阅读 · 0 评论