Skip to content

Commit 6a97e59

Browse files
committed
chore(fix): revert data and responseData type
1 parent 5d96e02 commit 6a97e59

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/visual-component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)