UNPKG
@xiaohaih/drag
Version:
beta (1.0.0-beta)
latest (1.0.0-beta.3)
1.0.0-beta.3
1.0.0-beta.2
1.0.0-beta.1
1.0.0-beta
0.1.0
拖拽插件, 可通过指令或函数调用来拖拽元素移动
@xiaohaih/drag
/
packages
/
direction
/
types.ts
10 lines
(9 loc)
•
167 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
export
interface
DirectionOption
{
/** 是否启用 */
enable?:
boolean
;
/** * 设定拖拽方向 *
@default
x */
orient?:
'x'
|
'y'
; }