修复公司类的子组件类型,统一为component接口,增强代码一致性
This commit is contained in:
parent
9b51101c27
commit
29fd3f0557
|
|
@ -20,7 +20,7 @@ class Department implements component {
|
|||
|
||||
class Company implements component {
|
||||
name: string;
|
||||
children: Company[] = [];
|
||||
children: component[] = [];
|
||||
constructor(name: string) {
|
||||
this.name = name;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue