forked from fanruan/fineui
Browse Source
* commit '8e13588dd9ced6407190e56fd768bd776788258d': refactor: KERNEL-936 申明 action && behavermaster
alan
5 years ago
6 changed files with 46 additions and 0 deletions
@ -0,0 +1,5 @@ |
|||||||
|
import { _Action } from "./action"; |
||||||
|
|
||||||
|
export interface _ShowAction extends _Action { |
||||||
|
|
||||||
|
} |
@ -0,0 +1,11 @@ |
|||||||
|
import { _OB } from "../ob"; |
||||||
|
|
||||||
|
export interface _Action extends _OB { |
||||||
|
actionPerformed(src: any, tar: any, callback: Function): void; |
||||||
|
|
||||||
|
actionBack(tar: any, src: any, callback: Function): void; |
||||||
|
} |
||||||
|
|
||||||
|
export interface _ActionFactory { |
||||||
|
createAction(key: string, options: any): _Action; |
||||||
|
} |
@ -0,0 +1,4 @@ |
|||||||
|
import { _Behavior } from "./behavior"; |
||||||
|
export interface _HighlightBehavior extends _Behavior { |
||||||
|
|
||||||
|
} |
@ -0,0 +1,4 @@ |
|||||||
|
import { _Behavior } from "./behavior"; |
||||||
|
export interface _RedMarkBehavior extends _Behavior { |
||||||
|
|
||||||
|
} |
@ -0,0 +1,9 @@ |
|||||||
|
import { _OB } from "../ob"; |
||||||
|
|
||||||
|
export interface _Behavior extends _OB { |
||||||
|
doBehavior(items: any[]): void; |
||||||
|
} |
||||||
|
|
||||||
|
export interface _BehaviorFactory { |
||||||
|
createBehavior(key: string, options: any): _Behavior; |
||||||
|
} |
Loading…
Reference in new issue