Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
vue-resize-split-pane
Advanced tools
Readme
Splittable and resizable panes for Vue.js
With yarn:
yarn add vue-resize-split-pane
With npm:
npm i vue-resize-split-pane --save
Global import
//main.js
import Vue from 'vue'
import ResSplitPane from 'vue-resize-split-pane'
Vue.component('rs-panes', ResSplitPane)
Local import
<template>
<div id="app">
<rs-panes split-to="columns" :allow-resize="true">
<div slot="firstPane">
FIRST
</div>
<div slot="secondPane">
SECOND
</div>
</rs-panes>
<!-- <router-view></router-view> -->
</div>
</template>
<script>
//App.vue or YourComponent.vue
import ResSplitPane from 'vue-resize-split-pane'
export default {
name: 'app',
components: {
'rs-panes': ResSplitPane,
},
...
</script>
Or you can nest them
<template>
<div id="app">
<rs-panes split-to="columns" :allow-resize="true">
<div slot="firstPane">
LEFT
</div>
<rs-panes :allowResize="true" split-to="rows"
slot="secondPane" primary="second">
<rs-panes :allowResize="true" split-to="columns"
slot="firstPane" primary="second">
<div slot="firstPane">
CENTER
</div>
<div slot="secondPane">
RIGHT
</div>
</rs-panes>
<div slot="secondPane">
BOTTOM
</div>
</rs-panes>
</rs-panes>
</div>
</template>
firstPane
for left column or top row
secondPane
for right column or bottom row
props: {
'allow-resize': { type: Boolean, default: false },
'split-to': { type: String, default: 'columns' }, // columns || rows
'primary': { type: String, default: 'first' }, // first || second
'size': { type: Number, default: 25 }, // in pixels || percents
'units': { type: String, default: 'pixels' }, // pixels || percents
'min-size': { type: Number, default: 16 }, // in pixels || percents
'max-size': { type: Number, default: 0 }, // in pixels || percents
'step': { type: Number, default: 0 }, // in pixels only
'resizerThickness': { type: Number, default: 2 }, //in px - width of the resizer
'resizerColor': { type: String, default: '#AAA' }, // any css color - if you set transparency, it will afect the border too
'resizerBorderColor': { type: String, default: 'rgba(0,0,0, 0.15)' }, // any css color - #FFF, rgb(0,0,0), rgba(0,0,0,0)
'resizerBorderThickness': { type: Number, default: 3 }, // in px - border that forms the shadow
},
primary
prop is used to specify which of the two panes has its size fixed.
size
prop is either width or height depending on how the panes are split.
Events added in v0.1.3
update:size
emited after resize, payload new size.
<rs-panes split-to="columns" v-on:update:size="paneSize = $event" :allow-resize="true">
...
</rs-panes>
Props added in v0.1.0
resizerThickness
- thickness of the resize handler in normal state.
resizerColor
- color of the resize handler in normal state.
resizerBorderThickness
- thickness of the resize handler border in hover state.
resizerBorderColor
- color of the resize handler border in hover state.
MIT © Valentin Bucur
FAQs
Splittable and resizable panes for Vue.js
The npm package vue-resize-split-pane receives a total of 339 weekly downloads. As such, vue-resize-split-pane popularity was classified as not popular.
We found that vue-resize-split-pane demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.