Giter Club home page Giter Club logo

vdraggable's Introduction

VDraggle

基于H5实现的react拖拽排序组件

使用

npm install vdraggle

import VDraggable from 'vdraggle';

API

参数 说明 类型  默认值
value 数据数组 array []
onChange 释放拖拽时触发 function(item)
style 样式 object
render 生成复杂数据的渲染函数,参数为当前行数据 function(item)
isAcceptAdd 是否接受拖拽复制 boolean false
sortKey 设置根据排序的字段 string
codeKey 制定item中某个字段作为拖拽元素的key,必须唯一 string

vdraggable's People

Contributors

vicecho avatar

Stargazers

fengGuoqu avatar budded avatar  avatar  avatar  avatar  avatar Liang.wang avatar Mou LinJie avatar 大伟 avatar  avatar ning avatar j78742 avatar  avatar  avatar xiexuandong avatar  avatar daysdays avatar  avatar  avatar  avatar  avatar  avatar  avatar Aiolia.Coco avatar 榭安 avatar 郝锐 avatar  avatar  avatar

Watchers

diycp avatar

vdraggable's Issues

demo

你好,可以给个简单的demo吗?调用的时候不怎么该怎么调用,老有报错,谢谢啦

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.