npm i jy-wing-tabs --save
import { JyWingTabs } from 'jy-wing-tabs'
实现中间内容超出时,自动多左右两侧切换按钮,点击左右两侧按钮,可以移动中间内容。
<script setup lang="ts">
import {JyWingTabs} from "jy-wing-tabs";
</script>
<template>
<div>
首页
<JyWingTabs>
<div class="temp">
我是中间内容asdsadasd adsadsadasdasdasdasdsaddasdsadsd
</div>
</JyWingTabs>
</div>
</template>
<style scoped lang="less">
.temp {
height: 80px;
width: 1000px;
background-color: red;
}
</style>