0.2.0 • Published 6 months ago

text-view v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Vue 3 TextView

一个基于 vue3.x 版本的文本展示收起组件

Documentation

https://au1996.github.io/text-view/

Getting started

Installation

First step is to install it using yarn or npm:

npm install text-view

# or use yarn
yarn add text-view

Basic Using

main.js

import { createApp } from 'vue'
import App from './App.vue'
import TextView from 'text-view'

const app = createApp(App)
app.use(TextView)

App.vue

<template>
  <TextView :content="text" :rows="1" />
</template>

<script setup>
import { ref } from 'vue'

const text = ref('这里是很长的一段文本')
</script>
参数说明类型默认值
content文本内容string-
rows控制多少行出现按钮number2
open-text控制展开按钮文本string展开
close-text控制收起按钮文本string收起
link控制是否跳转外部链接string-
content-color文本颜色string-
button-color按钮字体颜色string#077fef
button-background按钮背景颜色string#fff
0.1.0

6 months ago

0.1.2

6 months ago

0.0.3

6 months ago

0.2.0

6 months ago

0.1.1

6 months ago

0.0.2

6 months ago

0.0.1

6 months ago