js: add flowlayout drag declaration

This commit is contained in:
王劲鹏
2022-08-25 10:52:01 +08:00
committed by osborn
parent 55efff976a
commit be6a0cd64c
7 changed files with 84 additions and 0 deletions

View File

@@ -84,6 +84,18 @@ export class FlowLayout extends Superview {
@Property
bounces?: boolean
@Property
canDrag?: boolean
@Property
beforeDragging?: (from: number) => void
@Property
onDragging?: (from: number, to: number) => void
@Property
onDragged?: (from: number, to: number) => void
/**
* @param context
* @returns Returns array of visible view's index.