Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

el-table-draggable

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

el-table-draggable

让`vue-draggable`支持`element-ui`中的`el-table`

  • 0.4.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
813
increased by28.44%
Maintainers
1
Weekly downloads
 
Created
Source

el-table-draggable

vue-draggable支持element-ui中的el-table

demo请查看

特性

  • 支持几乎所有sortablejs的配置
  • 支持多个表格之间互相拖动
  • 代码提示

安装

使用npm或者yarn

yarn add el-table-draggable

npm i -S el-table-draggable

使用

import ElTableDraggable from 'el-table-draggable'

export default {
    components: {
        ElTableDraggable
    }
}

template

<template>
    <el-table-draggable>
        <el-table row-key></el-table>
    </el-table-draggable>
</template>

props

tag

包裹的组件,默认为div

其他

差不多支持所有sortablejs的option

事件

input

内部table的数据有因为拖动造成的顺序,增减时进行通知

其他

差不多支持所有sortablejs的option里面那些on开头的事件,绑定事件的时候请去掉on 例如onSort => @sort

todo

  • 支持列拖动
  • 支持拖动展开的列的时候ghost显示展开的部分

Keywords

FAQs

Package last updated on 19 Jul 2021

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc