🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

ellipsis-vue3

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ellipsis-vue3

vue3版 溢出隐藏指令

latest
npmnpm
Version
1.0.2
Version published
Weekly downloads
23
130%
Maintainers
1
Weekly downloads
 
Created
Source

ellipsis-vue3

一个 vue3 版本的自定义指令,用于溢出隐藏时鼠标悬浮显示所有内容

支持 ts 和 js

安装

npm install ellipsis-vue3

使用

import ellipsis from 'ellipsis-vue3'
createApp(App).use(ellipsis)
<!-- 使用 v-ellipsis 指令 -->
<span v-ellipsis style="width: 100%;">默认单行文本溢出隐藏并以...显示</span>

<!-- 超过指定行数隐藏 -->
<span v-ellipsis="2" style="width: 100%;">如果给定参数,则是多行文本溢出隐藏并以...显示</span>

Keywords

vue3

FAQs

Package last updated on 12 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts