npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

vue-drag-flex

v1.1.12

Published

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

Downloads

3

Readme

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可互相嵌套,形成类似表格的布局

问题记录

| 描述 | 现象 | 是否解决 | | ---- | ---- | ---- | | layout-item的初始宽高设置为非确切数值(px以外的,如%,vh,vw)。 | 会导致只能缩小拖动,不能变大拖动 | 未解决 |