vue-text-dot
A vue component for clipping text.
Installation
npm install vue-text-dot --save
and in your component:
Usage
Props
Name | Type | Required | Default | Description |
---|---|---|---|---|
msg | String | true | text in dot | |
line | Number | false | 1 | the number of rows that you want to show |
Tips
You'd better set the class for component including 'line-height'
Demo
{{pinfo.desc}}show morehide
......components: dot ...{returndesc: '.....text....'moreText: falsedot: true}methods:// $emit{thismoreText = true}...