Socket
Book a DemoInstallSign in
Socket

mover-node

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

mover-node

一个基于vue自定义拖拽节点的库

1.1.6
unpublished
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

安装方法: npm install --save mover-node

使用方法:

Vue.use(moverNode)
new Vue({
    el: '#app',
    template: `<div id="app">
                        <div class="top" style="height:100px;background:red;"></div>
                        <mover-node topNodeClass="top" bottomNodeClass="bottom">上下节点</mover-node>
                        <div class="bottom" style="height:100px;background:pink;"></div>
                        <div style="display:flex;">
                            <div class="left" style="height:100px;width:200px;background:red;"></div>
                            <mover-node leftNodeClass="left" rightNodeClass="right">左右节点</mover-node>
                            <div class="right" style="height:100px;width:200px;background:pink;"></div>
                        </div>
                        <mover-node style="height:200px;width:200px;background:green;">单独节点</mover-node>
                    </div>`,
})

注意事项:

  • 参数一共四个:topNodeClass、bottomNodeClass、leftNodeClass、rightNodeClass 分别对应上面节点的 className、下面节点的 className、左面节点的 className、右面节点的 className。
  • 参数两两配对使用,若是一个节点上面四个参数都有,上下节点的 className 优先级高于左右节点 className
  • 具体的内容可看源码 src->mover-node.vue

Keywords

rollup

FAQs

Package last updated on 11 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.