当前位置:网站首页>el-table表格的拖拽 sortablejs
el-table表格的拖拽 sortablejs
2022-06-24 09:32:00 【Time202051】
npm install sortablejs --save
<el-table :data="tableData" style="width: 100%" >
<el-table-column prop="date" label="日期" width="180"></el-table-column>
<el-table-column prop="name" label="姓名" width="180"></el-table-column>
<el-table-column prop="address" label="地址"></el-table-column>
</el-table>
//注意下面筛选的类名
mounted () {
this.onSortable()
},
onSortable () {
const selector = '.el-table__body-wrapper > table > tbody'
const el = document.querySelectorAll(selector)[0]
Sortable.create(el, {
animation: 150,
ghostClass: 'blue-background-class'
})
}
边栏推荐
- 如何让社交媒体成为跨境电商驱动力?这款独立站工具不能错过!
- LeetCode: 240. 搜索二维矩阵 II
- Tnsnames Ora file configuration
- Handling method of Oracle data file header SCN inconsistency
- Latex formula and table recognition
- Amazing tips for using live chat to drive business sales
- Prct-1400: failed to execute getcrshome resolution
- IDEA 无法保存设置 源根 D:XXXX在模块XXX中重复
- An open source monitoring data collector that can monitor everything
- threejs的点光源+环境光
猜你喜欢

深度学习论文阅读目标检测篇(七)中英对照版:YOLOv4《Optimal Speed and Accuracy of Object Detection》

如何让社交媒体成为跨境电商驱动力?这款独立站工具不能错过!

如何规范化数据中心基础设施管理流程

医学图像开源数据集汇总(二)

nVisual数字基础设施运营管理软件平台

ApplicationContextInitializer的三种使用方法

Thinkphp5 multi language switching project practice

Zero foundation self-study SQL course | related sub query

使用Live Chat促进业务销售的惊人技巧

L01_ How is an SQL query executed?
随机推荐
ggplot2颜色设置总结
Literature Research Report
使用Live Chat促进业务销售的惊人技巧
Codeforces Round #392 (Div. 2) D. Ability To Convert
Oracle数据库EXPDP只导出表的方法
Tnsnames Ora file configuration
grpc本地测试联调工具BloomRPC
Oracle查看数据文件头SCN信息
Learn Tai Chi Maker - esp8226 (12) esp8266 multitasking
Grpc local test joint debugging tool bloomrpc
新手怎么选择投资理财产品的等级?
In depth study paper reading target detection (VII) Chinese English Bilingual Edition: yolov4 optimal speed and accuracy of object detection
How to solve multi-channel customer communication problems in independent stations? This cross-border e-commerce plug-in must be known!
[Eureka registry]
Zero foundation self-study SQL course | sub query
Why is LNX of e equal to X
医学图像开源数据集汇总(二)
Codeforces Round #392 (Div. 2) D. Ability To Convert
Oracle的tnsnames.ora文件配置
五心红娘