Home

Awesome

English | ็ฎ€ไฝ“ไธญๆ–‡

<p align="center"> <a href="https://bhuh12.github.io/vue-router-tab/" target="_blank" rel="noopener noreferrer"> <img width="100" src="public/img/logo.png" alt="vue-router-tab logo"> </a> </p> <p align="center"> <a target="_blank" href="https://www.travis-ci.org/bhuh12/vue-router-tab"> <img src="https://www.travis-ci.org/bhuh12/vue-router-tab.svg" alt="Build"> </a> <a href="https://github.com/vuejs/vue"> <img src="https://img.shields.io/badge/vue-2.5.22-brightgreen.svg" alt="vue"> </a> <a href="https://github.com/vuejs/vue-router"> <img src="https://img.shields.io/badge/vue--router-3.0.1-brightgreen.svg" alt="vue-router"> </a> <a target="_blank" href="https://github.com/bhuh12/vue-router-tab"> <img alt="GitHub last commit" src="https://img.shields.io/github/last-commit/bhuh12/vue-router-tab.svg"> </a> </p> <p align="center"> <a target="_blank" href="https://www.npmjs.com/package/vue-router-tab"> <img src="https://img.shields.io/npm/v/vue-router-tab.svg" alt="Version"> </a> <a target="_blank" href="https://npmcharts.com/compare/vue-router-tab?minimal=true"> <img src="https://img.shields.io/npm/dm/vue-router-tab.svg" alt="Downloads"> </a> <a target="_blank" href="https://www.npmjs.com/package/vue-router-tab"> <img alt="npm bundle size" src="https://img.shields.io/bundlephobia/minzip/vue-router-tab.svg?label=gzip:JS"> </a> <a target="_blank" href="https://www.npmjs.com/package/vue-router-tab"> <img alt="gzip size: css" src="http://img.badgesize.io/https://unpkg.com/vue-router-tab/dist/lib/vue-router-tab.css?compression=gzip&label=gzip:CSS"> </a> <a target="_blank" href="https://github.com/bhuh12/vue-router-tab/blob/main/LICENSE"> <img src="https://img.shields.io/npm/l/vue-router-tab.svg" alt="License"> </a> </p> <h2 align="center">Vue Router Tab</h2>

Vue.js tab components, based on Vue Router.

๐Ÿ“Œ Features

โœ… Open or switch to tabs responding to route change

โœ… Tabs mouse wheel scrolling

โœ… Tabs drag sort

โœ… Tab Operations: open, switch, close, refresh, reset

โœ… Iframe tab: for external website

โœ… Customized๏ผštransition, slot, contextmenu

โœ… I18n

โœ… Keep scroll position after tab switching

โœ… Cache control: tab rules, cacheable, maximum keep alive, reusable

โœ… Dynamic Tab Info: title, icon, tooltip

โœ… Initial Tabs: initially opened tabs when entering page

โœ… Restore Tabs: reopen tabs after browser refresh

โœ… Page Leave Confirm

โœ… Nuxt Support

๐Ÿ”— Links

๐Ÿ›  Installation

๐Ÿ“ Documentation (Gitee)

๐Ÿ“บ Online Demo (Gitee)

๐Ÿ‘จโ€๐Ÿ’ป Sample Project

๐Ÿ“ƒ Changelog


๐Ÿท NPM Task

TaskCommandDescription
Lib buildyarn lib:build
Lib build and generate reportyarn lib:build:report
Lib publishyarn lib:publishchange version in package.json
Demo developyarn demo:dev
Demo buildyarn demo:build
Document developyarn docs:dev
Document buildyarn docs:build
Code format check and fixyarn lint
Commit codeyarn commit

License

MIT

Copyright (c) 2019-present, ็ขงๆตทๅนฝ่™น