You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

vue-resize-pane

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-resize-pane

Resizable split panes

0.1.2
latest
Source
npmnpm
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

vue-resize-pane

Resizable split panes 可调整的分割布局插件

Installation

npm install vue-resize-pane --save

yarn add vue-resize-pane

Usage

import ResizePane from 'vue-resize-pane'
Vue.use(ResizePane)

or

import ResizePane from 'vue-resize-pane'
new Vue({
    components: {
        ResizePane
    }
})

Next

<ResizePane layout="row" first-min-size="300px" second-min-size="500px">
  <div slot="first"></div> 
  <div slot="second"></div>
</ResizePane> 

first和second为第一格和第二格slot的名称,插件可嵌套使用,嵌套时可以使用不同的布局方向

Options

PropertyDescriptionTypeDefault
layoutrow为横向排列,col为垂直排列Stringrow
firstDefaultSize第一格的默认尺寸,可带css单位String50%
firstMinSize第一格的最小尺寸,可带css单位String100px
secondMinSize第二格的最小尺寸,可带css单位String100px
lineColor中间线条的颜色值String#999999
overflow格子的overflow样式Stringhidden

FAQs

Package last updated on 29 Aug 2020

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