From 0ced70bbe9c8a7c7baa1e78802e9bc6717b3713f Mon Sep 17 00:00:00 2001 From: iapyang Date: Thu, 8 Aug 2019 15:21:09 +0800 Subject: [PATCH 1/2] =?UTF-8?q?refactor:=20=E5=8E=BB=E6=8E=89fineui?= =?UTF-8?q?=E7=9A=84model=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/core/widget.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/typescript/core/widget.ts b/typescript/core/widget.ts index c833f0658b..92618fe844 100644 --- a/typescript/core/widget.ts +++ b/typescript/core/widget.ts @@ -57,9 +57,7 @@ export interface _Widget extends _OB { */ _renderEngine: RenderEngine; - _store(): any; - - model: any; + _store(): void; // 生命周期函数 /** From 3bac58db01eeff0c871c0400b3b7c5d9ae9bc65a Mon Sep 17 00:00:00 2001 From: iapyang Date: Thu, 8 Aug 2019 15:22:29 +0800 Subject: [PATCH 2/2] =?UTF-8?q?refactor:=20options=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/core/ob.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typescript/core/ob.ts b/typescript/core/ob.ts index 5279babe7c..16ce71024d 100644 --- a/typescript/core/ob.ts +++ b/typescript/core/ob.ts @@ -1,7 +1,7 @@ export interface _OB { props: Props | ((config: T) => Props & T); - options: Props; + options: this["props"]; events?: { [eventName: string]: Function[];