Git Product home page Git Product logo

vue-drag-flex's Introduction

draglayout

基于flex的可拖拽控制布局,类表格

Build Setup

npm install vue-drag-flex

main.js
import DragLayout from 'vue-drag-flex'
Vue.use(DragLayout)


# build for production with minification
npm run build

npm下载

npm install vue-drag-flex

main.js

import DragLayout from 'vue-drag-flex'
Vue.use(DragLayout)

template

<drag-layout mode="row" dl-height="200px" >
    <drag-layout-item dl-height="100%" dl-width="300px" :min-height="50">
    </drag-layout-item>
</drag-layou>

文档

drag-layout

属性 可选值 类型 说明
mode column、row String 分别为纵向布局与横向布局
dl-height -- String 容器高度
dl-width -- String 容易宽度

drag-layout-item

属性 可选值 类型 说明
dl-width -- String 初始宽度
dl-height -- String 初始高度
min-width -- Number 最小宽度,建议最小设为50;此单位为px
min-height -- Number 最小高度,建议最小设为50;此单位为px

slot

名称 描述
slider 可通过插槽自定义slider样式,如不设置,则使用默认样式

drag-layout-item与drag-layout可互相嵌套,形成类似表格的布局

vue-drag-flex's People

Contributors

emiya-wkq avatar

Stargazers

 avatar

Watchers

 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.