🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

vuedrag-html5

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vuedrag-html5

vue drag based on HTML5

latest
npmnpm
Version
1.0.8
Version published
Maintainers
1
Created
Source

vue-drag

vue drag based on HTML5

Build Setup

install

npm install vuedrag-html5

use

<vuedrag v-model="articles">
  <template scope="props">
    <li v-for="(article, index) in articles"
    draggable="true"
    @dragstart="props.dragStart">
      {{article.label}}<br>{{article.value}}
    </li>
  </template>
</vuedrag>
import vuedrag from 'vuedrag-html5'

export default {
  name: 'app',
  data () {
    return {
      articles: [
        {
          label: '第一个',
          value: 10
        },
        {
          label: '第二个',
          value: 20
        },
        {
          label: '第三个',
          value: 30
        }
      ]
    }
  },
  components: {
    vuedrag
  }
}

git

For detailed git

FAQs

Package last updated on 27 May 2017

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