1.0.9 • Published 6 years ago

vue-multiple-sortable v1.0.9

Weekly downloads
28
License
MIT
Repository
github
Last release
6 years ago

vue-multiple-sortable

MIT License

You sorting to with multiple selected elements in your Vue.js application.

movie

Demo

https://sympe.github.io/vue-multiple-sortable-demo/dist/

Usage

Install

npm install --save vue-multiple-sortable

A Single File Component Example

<multiple-sortable :items="items" @drag="drag">
  <div slot="item" slot-scope="props">
      {{ ' 【' + props.obj.id + '】' +  props.obj.title }}
  </div>
</multiple-sortable>

<script>
import MultipleSortable from 'vue-multiple-sortable'

export default {
  components: {
    MultipleSortable
  },
  data: function () {
    return {
      items: [
        {
          obj: {
            id: 53,
            title: 'Michael'
          }
        },
        {
          obj: {
            id: 32,
            title: 'John'
          }
        },
        {
          obj: {
            id: 41,
            title: 'Daniel'
          }
        },
        {
          obj: {
            id: 29,
            title: 'Andrew'
          }
        }
      ]
    };
  },
  methods: {
    drag: function (items) {
      this.items = items;
    }
  }
};
</script>

License

MIT

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago