File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -96,13 +96,13 @@ export class VisualComponent {
9696 apis : VisualApis = { } ;
9797
9898 /** 静态数据 */
99- data : { [ k : string ] : any [ ] | undefined ; source ?: any [ ] } = { } ;
99+ data : Record < string , any [ ] > = { } ;
100100
101101 /** 数据源配置 */
102102 dataConfig : Record < string , VisualDataConfig > = { } ;
103103
104104 /** 请求响应数据 */
105- responseData : { [ k : string ] : any [ ] | undefined ; source ?: any [ ] } = { } ;
105+ responseData : Record < string , any [ ] > = { } ;
106106
107107 /** 资源路径 */
108108 resources : Record < string , any > = { } ;
@@ -161,7 +161,7 @@ export class VisualComponent {
161161 mergeObject ( this . options , newOptions ) ;
162162 }
163163 if ( ! isEmpty ( this . apis ) ) {
164- this . render ( this . responseData . source , this . options ) ;
164+ this . render ( this . responseData [ ' source' ] , this . options ) ;
165165 }
166166 this . detectChanges ( ) ;
167167 }
You can’t perform that action at this time.
0 commit comments