
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.
card-drag-sort
Advanced tools
npm install card-darg-sort
<template>
...
<card-drag-sort></card-drag-sort>
...
</template>
<style setup lang="ts">
import { CardDragSort } from 'card-drag-sort'
...
</style>
| 属性 | 描述 | 类型 | 是否必填 | 默认值 |
|---|---|---|---|---|
| data | 传入的卡片数据,详情见下表 | Array | Y | - |
| columns | 卡片排列的列数 | Number | N | 3 |
| width | 卡片的宽度 | Number | N | 500 |
| height | 卡片的高度 | Number | N | 300 |
| columnSpace | 卡片列间距 | Number | N | 20 |
| rowSpace | 卡片行间距 | Number | N | 20 |
| duration | 过渡效果时间,单位毫秒 | Number | N | 200 |
| 属性 | 描述 | 类型 | 是否必填 | 默认值 |
|---|---|---|---|---|
| id | 卡片的唯一标识 | String | Y | - |
| title | 卡片的标题 | String | N | 无标题 |
| 属性 | 描述 | 类型 |
|---|---|---|
| header | 自定义标题 | - |
| content | 自定义内容 | - |
<card-drag-sort :data="data">
<template #header="{ card }">
{{ card.title }}
</template>
<template #content="{ card }">
<div v-if="card.id === 'one'">
<!-- 自定义内容 -->
</div>
...
</template>
</card-drag-sort>
| 事件名 | 描述 | 类型 |
|---|---|---|
| drag-start | 点击卡片顶部标题栏时触发,参数为卡片唯一 id | Function |
| drag-end | 在松开鼠标时触发,参数为最新卡片顺序 | Function |
FAQs
Vue3卡片拖拽排序组件
We found that card-drag-sort demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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.