🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

drag-division

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

drag-division

This project was perfect scroll container components

latest
Source
npmnpm
Version
0.1.1
Version published
Weekly downloads
5
-79.17%
Maintainers
1
Weekly downloads
 
Created
Source

DragDivision

DragDivision

分割拖拽组件,可上下方向分割拖拽,左右方向分割拖拽,可十字交叉垂直与水平方向双向拖拽 注意:容器层本身继承父节点的宽高,父节点或者容器层本身的宽高不能变化,否则会影响拖拽效果布局

Install

npm i drag-division

Usage

import { DragDivision } from "drag-division";
function App() {
  return (
    <DragDivision
      topNode={<div className="topDiv">123</div>}
      bottomNode={<div className="bottomDiv">456</div>}
      topMinHeight={"20%"}
      bottomMinHeight={"30%"}
      topHeight="30%"
      // divisionDirection="horizontal"
      // leftNode={<div className="topDiv">123</div>}
      // rightNode={<div className="bottomDiv">456</div>}
      // leftWidth="30%"
      // leftMinWidth={"20%"}
      // rightMinWidth={"30%"}
    />
  );
}

License

MIT License (c) 刘善保

Keywords

drag

FAQs

Package last updated on 07 Jun 2022

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