vue表格单元格数据拖拽互换

帮助兄弟记录下成果,借鉴了https://juejin.cn/post/6844904136056668168

兄弟重写了原生底层,可以直接从下面两个链接参考下载。
很简陋的示例:http://doc.alwaysmissly.com/flexi-table/
NPM仓库地址:https://www.npmjs.com/package/@flexi-table/swapper

比较懒的,可以直接看下面的代码。

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>计划表-支持拖拽</title>
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css" />
    <style>
      .container {
     
        padding: 0 30px;
        background: #f1eded;
        height: 500px;
        padding-top: 30px;
      }
      .filtered {
     
        background-color: #f9f9f9;
      }
    </style>
  </head>
  <body>
    <div id="app" class="container">
      
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值