0.0.9 • Published 5 years ago

v-dotdotdot v0.0.9

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

v-dotdotdot

vue directive for ellipsis on multiple line content

Usage

// global register in main.js or import inside the component and use as directive
import Dotdotdot from 'v-dotdotdot'
import 'v-dotdotdot/dist/v-dotdotdot.css'

Vue.use(Dotdotdot)
// Vue.use(Dotdotdot, { line: 2 })

<component v-dotdotdot />
// <component v-dotdotdot="{ line: 3, className: 'my-class', moreType: 'icon' }" />

Configuration

optiondescriptiontypedefaut
linenum of line to keep in clampnumber0 (no clamp)
classNamecustom class namestring''
moreTypetype of more tagtext | icontext
moreTexttext of more tagstring'show more' (effect with text moreType only)
disableAutoDotauto clamp with dot initiallybooleanfalse
0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.5

5 years ago

0.0.6

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago