1.6.4 • Published 4 years ago

vue-tab-component v1.6.4

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

vue-tab-component

VersionDownloadsLicense

A Vue2.0 tab component which can control DOM render number

Feature

  • Custom DOM render number
  • provide goBegin/goEnd Function
  • suppord left、right Position
  • suppord slot to change tab content

EN || 如果它对你有帮助的话,请Star支持!!! exemple project

预览


demo

快速开始


Install

npm install vue-tab-component --save

Usage

A simple project use vue-tab-component

main.js

import Vue from 'vue'
import tabs from 'vue-tab-component'

Vue.use(tabs)

API


Attribute

NameDescriptionTypeDefault
datadata of tab {key:'key',title:'word'}Array[]
tabPositiontab' position, one of 'top','bottom','left','right'Stringbottom
typecss type, one of 'card','line'Stringline
closableif tab can deleteBooleanfalse
activeNameactive tab's keyString''
maxnummax number of DOM render tab at onceNumber20
beforeChangeTabparam: key, tab won't change when return falseFunction(key) => true
stretch (todo)if tab stretchable because of contentBooleanfalse
hideDirectionBarif tab's left/right bar show or hideBooleanfalse

Method

NameDescriptionParam
goBeginjump to tab's begin-
goEndjump to tab's end-
scrollPrevslip to after part-
scrollNextslip to next part-
scrollToActiveTabslip to active tab-

Event

NameDescriptionParam
on-clickwhen tab on clicking, return tab's keykey tab's key
on-tab-removewhen tab on deleting, return tab's keykey tab's key

slot

namedataexemple
tabtab's data<template #tab="{ data }">

License


The 996ICU License (996ICU)

1.6.4

4 years ago

1.6.3

4 years ago

1.6.2

5 years ago

1.6.1

5 years ago

1.6.0

5 years ago

1.5.0

5 years ago

1.4.0

5 years ago

1.3.4

5 years ago

1.3.3

5 years ago

1.3.2

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.8

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago