1.0.1 • Published 7 years ago
wc-directive v1.0.1
wc-directive
基于 Vue 2.x 的指令.
Install
npm i wc-directive --save
Quick Start
import {wcPress} from './wc-directive';
Vue.use(wcPress);
<div v-press="press"></div>
指令列表
- v-wc-press // 长按事件
- v-wc-scroll // 固定滚动位置
问题列表
- 绑定长按事件的元素, 因为应用了 user-select:none, 所以文本就不可以被选中;