
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
text-overflow-title
Advanced tools
<template>
<div>
<div style="width: 100px;margin-bottom: 20px;">
<bk-overflow-title>文本超出33333222222222222222222222222</bk-overflow-title>
</div>
<div style="width: 100px;margin-bottom: 20px;">
<bk-overflow-title type="tips">
文本超出33333222222222222222222222222
</bk-overflow-title>
</div>
</div>
</template>
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|---|---|---|---|---|
| content | 文本内容。没有的话去default slot | String | -- | -- |
| type | 默认给文本加上title,如果tips,则鼠标悬浮添加添加tooltips,但是如果不是纯文本 | String | tipstitle | title |
| calType | 计算文本宽度方式,默认通过dom计算机文本宽度,canvas则通过measureText计算 | String | domcanvas | dom |
| resizeable | 是否监听文本内容变化 | Boolean | -- | false |
<template>
<div>
<div style="width: 100px;margin-bottom: 20px;">
<div
v-overflow-title
class="text-ov"
>
222222222222222222222222
</div>
</div>
</div>
</template>
<script >
import { overflowTitle } from 'bkui-vue';
import { defineComponent } from 'vue';
export default defineComponent({
directives: {
overflowTitle,
},
setup() {
},
});
</script>
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|---|---|---|---|---|
| content | 文本内容。没有的话去default slot | String | -- | -- |
| calType | 计算文本宽度方式,默认通过dom计算机文本宽度,canvas则通过measureText计算 | String | domcanvas | dom |
整个功能已集中到MagicBox组件库 可以使用组件库:https://bkui-vue.woa.com/overflow-title
FAQs
vue3 文本溢出组件与指令,文本溢出,自动计算加上tooltips。文本超出宽度,自动隐藏,鼠标hover 加上提示
The npm package text-overflow-title receives a total of 7 weekly downloads. As such, text-overflow-title popularity was classified as not popular.
We found that text-overflow-title demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.