feat:add RefreshableDemo

This commit is contained in:
pengfei.zhou
2019-11-26 11:34:02 +08:00
parent c90547a1f0
commit 9a9482eeb5
8 changed files with 80 additions and 46 deletions

View File

@@ -3,6 +3,7 @@ import { List } from "./list";
import { Scroller } from "./scroller";
import { BridgeContext } from "../runtime/global";
import { layoutConfig } from "./declarative";
import { Image } from "./widgets";
export interface IRefreshable extends IView {
content: List | Scroller
@@ -58,3 +59,13 @@ export function refreshable(config: IRefreshable) {
}
return ret
}
export interface IPullable {
startAnimation(): void
stopAnimation(): void
setProgressRotation(rotation: number): void
}
export class PullableView extends Image {
}