ollo
Vue3环境插件
注册局部滚动指令
import { createApp } from 'vue';
import { scroller } from 'ollo';
import App from './App.vue';
const app = createApp(App);
app.use(scroller);
app.use(longtouch);
<template>
<textarea v-scroll />
</template>
<template>
<textarea v-scroll="true" />
</template>
<template>
<textarea v-scroll="false" />
</template>
<template>
<textarea v-scroll="shouldScroll" />
</template>
<template>
<textarea v-longtouch="callback" />
</template>
<template>
<textarea v-longtouch:500="callback" />
</template>
<script setup>
function callback() {
}
</script>