vuedraggable实现兼容手机端动态新增删除拖拽排序效果代码

代码语言:html

所属分类:拖放

代码描述:vuedraggable实现兼容手机端动态新增删除拖拽排序效果代码

代码标签: vuedraggable 手机端 拖拽 拖放 排序 新增 删除

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum=1.0,minimum=1.0,user-scalable=0" />
    <title>BFW NEW PAGE</title>
    <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/font-awesome-4.7.0/css/font-awesome.min.css">
    <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/vue@2.6.1-dev.js"></script>

    <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/Sortable.1.8.4.js"></script>
    <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/vuedraggable.umd.2.20.js"></script>


    <style>
        .list-group-item:first-child {
            border-top-left-radius: 0.25rem;
            border-top-right-radius: 0.25rem;
        }
        
        .list-group-item {
            position: relative;
            display: block;
            padding: 0.75rem 1.25rem;
            margin-bottom: -1px;
            background-color: #fff;
            border: 1px solid rgba(0,0,0,.125);
        }
        .list-group{
            list-style: none;
            padding: 0;
            margin: 0;
        }
     
        .handle {
           
            padding-top: 8px;
            padding-bottom: 8px;
        }
        
        .list-group-item i {
            cursor: pointer;
        }
    </style>
</head>

<body>
    <div id="app">
        <div class="row">
            <div class="col-1">
                <button class="btn btn-secondary button" @click="add">Add</button>
         .........完整代码请登录后点击上方下载按钮下载查看

网友评论0