Skip to content

Resize

调整元素的大小

基础用法

loading

更多功能

loading

属性

参数说明类型默认值
directions可调整的方向('left' | 'right' | 'top' | 'bottom')[]['right']
disabled是否禁用booleanfalse
offset使用偏移,适用于元素脱离文档流时使用'transform' | 'position' | 'translate'--
lockAspectRatio锁定纵横比,directions至少需要设置两个方向横向与纵向方向的值booleanfalse
grid网格对齐,固定每次调整的最小距离,单位px,使用小数注意精度问题,建议使用0.5的倍数number[][0.5,0.5]

源码

源代码