vuedraggable支持手机端和pc端拖拽拖放排序的插件示例代码

代码语言:html

所属分类:拖放

代码描述:vuedraggable支持手机端和pc端拖拽拖放排序的插件示例代码

代码标签: vuedraggable vue draggable 手机端 排序 拖拽

下面为部分代码预览,完整代码请点击下载或在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>

    <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;
    }
    .row {
        display: -ms-flexbox;
        display: -webkit-box;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        margin-right: -15px;
        margin-left: -15px;
    }
    .col-3 {
        -ms-flex: 0 0 25%;
        -webkit-box-flex: 0;
        flex: 0 0 25%;
        max-width: 25%;
          margin: 20px;
    }
    .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);
    }
    </style>
</head>

<body>
    <div id="app">
        <div class="row">
            <div class="col-3">
                <h3>Draggable 1</h3>
                <draggable class="dragArea list-group" :list="list1" :group="{ name: 'people', pull: 'clone', put: false }" :.........完整代码请登录后点击上方下载按钮下载查看

网友评论0