size-drag
TypeScript icon, indicating that this package has built-in type declarations

0.5.5 • Public • Published

size-drag

NPM version

introduce

vue-directive: v-sizeDrag. make the element size draggable

\\ in main.ts
import size-drag/dist/index.css 
import sizeDrag from 'size-drag';
app.use(sizeDrag)

\\in *.vue
\\myCallback:((el:htmlElement)=>void)|null
<div v-sizeDrag="myCallback" />

\\in style,use css to config bar size ,now only suppot px.default:4px. 
--size-drag-bar: 4px

License

MIT License © 2022

Readme

Keywords

Package Sidebar

Install

npm i size-drag

Weekly Downloads

1

Version

0.5.5

License

MIT

Unpacked Size

25.9 kB

Total Files

7

Last publish

Collaborators

  • jxffffff