Git Product home page Git Product logo

nigo-vue-drag's Introduction

nigo-vue-drag v1.1.3

npm install nigo-vue-drag

yarn add nigo-vue-drag

使用示例

import Drag from 'nigo-vue-drag'

  <drag
        mode="list"
        :drag-ary="[{color: '',html:''}]"
        drag-height="100"
        box-width="500"
        @dragMouseup="dragMouseup"
         >
 
         </drag>

props

参数 说明 类型 默认值
box-width 盒子宽度 String auto
drag-height 拖拽元素高度 String 100
drag-mode 是插入模式还是交换位置 Number 0
drag-ary 传入拖拽的数组,object字段可以添加color 和html Array []
dragMouseup 返回拖拽的当前和目标索引值 Events

更新

1.增加mode flex| list

2.增加返回拖拽的当前和目标索引值的事件dragMouseup

3.增加排序模式 交换模式 插入模式

Keywords

vue 、JavaScript 、drag

nigo-vue-drag's People

Contributors

shinewen189 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.