1.1.2 • Published 3 years ago

v-expand-text v1.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

v-expand-text

Collapse and expand multiline text for Vue.

Installing

// 安装 
npm install v-expand-text

// 在main.js中添加
import VExpandText from 'v-expand-text'
Vue.use(VExpandText)

Usage

  • 多行文本折叠
<v-expand-text :text="text" />
  • 按钮控制文本折叠/展开
<v-expand-text :text="text" btn />
  • popover展示全文本(hover展示)
<v-expand-text :text="text" popover />

Attributes

参数说明类型可选值默认值
text文本内容String----
rows折叠显示行数Number--3
btn展开、折叠按钮Booleantrue/falsefalse
btnIcon展开、折叠iconBooleantrue/falsetrue
popoverpopover显示全文本Booleantrue/falsefalse
placementpopover位置Stringtop/top-start/top-end/bottom/bottom-start/bottom-end/left/left-start/left-end/right/right-start/right-endbottom
1.1.1

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.1.2

3 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago