1.2.1 • Published 3 years ago

vue-text-expand v1.2.1

Weekly downloads
91
License
-
Repository
-
Last release
3 years ago

VueTextExpand

Vue组件,用于给文本附加展开/收起能力。使用 js 实现主要逻辑,在各浏览器间有不错的兼容性。

安装

$ npm i -S vue-text-expand

使用

import Vue from 'vue'
import VueTextExpand from 'vue-text-expand'

Vue.use(VueTextExpand)

new Vue({
  data: {
    content: '...',
  },
})
<vue-text-expand :content="content" />

属性

参数说明类型可选值默认值
value/v-model是否展开boolean——false
content文本内容string————
fontSize字体大小(px)number——16
openLabel展开控件文字string——展开
closeLabel收起控件文字string——收起
row收起时最多显示多少行number——1
labelClass展开/收起控件的样式string————
labelColor展开/收起控件的文字颜色string——blue
1.2.0

3 years ago

1.2.1

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.1.2

3 years ago

1.0.12

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago