* 获取组件调试信息
(component: any)
| 254 | * 获取组件调试信息 |
| 255 | */ |
| 256 | private getComponentInfo(component: any): ComponentDebugInfo { |
| 257 | const type = component.constructor.name; |
| 258 | const data: any = {}; |
| 259 | |
| 260 | for (const key of Object.keys(component)) { |
| 261 | if (!key.startsWith('_')) { |
| 262 | const value = component[key]; |
| 263 | if (typeof value !== 'function') { |
| 264 | data[key] = value; |
| 265 | } |
| 266 | } |
| 267 | } |
| 268 | |
| 269 | return { type, data }; |
| 270 | } |
| 271 | |
| 272 | /** |
| 273 | * 查询实体 |