All Projects → JanssenZhang → vue-drag-select

JanssenZhang / vue-drag-select

Licence: MIT license
基于Vue的仿原生操作系统鼠标拖拽选择

Programming Languages

Vue
7211 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to vue-drag-select

Ngx Drag To Select
A lightweight, fast, configurable and reactive drag-to-select component for Angular 6 and beyond
Stars: ✭ 262 (+315.87%)
Mutual labels:  select, drag
Plain Draggable
The simple and high performance library to allow HTML/SVG element to be dragged.
Stars: ✭ 362 (+474.6%)
Mutual labels:  dom, drag
Ninaselectionview
Way to select your buttons.
Stars: ✭ 87 (+38.1%)
Mutual labels:  select, drag
Selectable
Touch enabled selectable plugin inspired by the jQuery UI widget.
Stars: ✭ 131 (+107.94%)
Mutual labels:  select, drag
React Ds
🔥 React Drag To Select component (tiny, touch friendly, and no dependencies!)
Stars: ✭ 153 (+142.86%)
Mutual labels:  select, drag
m4q
Small library for DOM manipulation and animation. This library similar to jQuery, but written more simply.
Stars: ✭ 30 (-52.38%)
Mutual labels:  dom
insect
🛠 Highly customisable, minimalistic input x select field for React.
Stars: ✭ 33 (-47.62%)
Mutual labels:  select
ready
Detect element availability on the initial page load and those dynamically appended to the DOM
Stars: ✭ 77 (+22.22%)
Mutual labels:  dom
use-downshift
use-downshift.now.sh
Stars: ✭ 38 (-39.68%)
Mutual labels:  select
vue-dialog
A drag-able dialog for Vue.js
Stars: ✭ 21 (-66.67%)
Mutual labels:  drag
solid-dnd
A lightweight, performant, extensible drag and drop toolkit for Solid JS.
Stars: ✭ 251 (+298.41%)
Mutual labels:  drag
save-html-as-image
Download the HTML (DOM) to Image (JPG, PNG)
Stars: ✭ 26 (-58.73%)
Mutual labels:  dom
CalDOM
An agnostic, reactive & minimalist (3kb) JavaScript UI library with direct access to native DOM.
Stars: ✭ 176 (+179.37%)
Mutual labels:  dom
smart-custom-element
Smart a lightweight web component library that provides capabilities for web components, such as data binding, using es6 native class inheritance. This library is focused for providing the developer the ability to write robust and native web components without the need of dependencies and an overhead of a framework.
Stars: ✭ 17 (-73.02%)
Mutual labels:  dom
react-native-autocomplete-dropdown
Dropdown Item picker with search and autocomplete (typeahead) functionality for react native
Stars: ✭ 87 (+38.1%)
Mutual labels:  select
drop
A LÖVE visualizer and music player
Stars: ✭ 17 (-73.02%)
Mutual labels:  drag
affiliate
Add affiliation tags to links automatically in the browser
Stars: ✭ 77 (+22.22%)
Mutual labels:  dom
MVideo
An imitation of WeChat circle of friends video effects, can drag and zoom ,video view,base on ijkplayer.
Stars: ✭ 179 (+184.13%)
Mutual labels:  drag
respo.cljs
A virtual DOM library built with ClojureScript, inspired by React and Reagent.
Stars: ✭ 232 (+268.25%)
Mutual labels:  dom
FloatingDragButton
拖拽浮动按钮,效果炫酷,实现简单
Stars: ✭ 66 (+4.76%)
Mutual labels:  drag

License: MIT

基于Vue的鼠标拖拽选择组件

Demo

online demo

Getting Started

Install

npm install vue-drag-select-pro --save
yarn add vue-drag-select-pro

Document

Import

import Vue from 'vue'
import App from './App.vue'

import vueDragSelectPro from 'vue-drag-select-pro'
// 注意:一定要引入css样式
import 'vue-drag-select-pro/lib/vueDragSelectPro.css'
Vue.use(vueDragSelectPro)

Usage

<template>
  <div>
    <vue-drag-select v-model="selectedList" value-key="name" :item-margin="[0, 10, 10, 0]" ref="dragSelect">
      <template v-for="(item, index) in dataList">
        <drag-select-option :key="item.id" :value="item" :item-index="index">
          <div class="item-self">
            // 自定义内容
          </div>
        </drag-select-option>
      </template>
    </vue-drag-select>
  </div>
</template>
export default {
  data () {
    return {
      selectedList: [],
      dataList: []
    }
  }
}

Select Attributes

参数 说明 类型 默认值
value / v-model 绑定选中值 Array []
value-key 作为 value 唯一标识的键名,option绑定值为对象类型时必填 string value
item-width option元素的宽度 Number 100
item-height option元素的高度 Number 105
item-margin option元素的margin Array(number) [20,20,20,20]
warpper-padding 内容器的padding Array(number) [20,20,20,20]
slow-speed 滚动的最小速度 Number 0
fast-speed 滚动的最大速度 Number 20

Select Methods

方法名 说明 参数
elementLayout 重排option位置 -

option Attributes

参数 说明 类型 默认值
value option绑定值 string/number/object -
item-index 用于选择项排序(就传遍历时的index,很重要!!!) Number -
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].