baojun-ui
v0.1.1
Published
A touch swipe tab for vue 3.0
Downloads
5
Readme
vue3-tabs
A touch swipe tab for vue 3.0
Demo
Install
npm i --save baojun-ui
Register Global Component
import { createApp } from 'vue';
import App from './App.vue'
import Tabs from 'baojun-ui';
const app = createApp(App);
app.use(Tabs);
app.mount('#app')
Register Local Component
import { MyTabs, MyTabPane } from 'baojun-ui';
Example
<my-tabs v-model="activeValue" @tab-click="handleClick">
<my-tab-pane
v-for="(item, index) in tabList"
:key="index"
:label="item.label"
:name="item.name"
></my-tab-pane>
</my-tabs>