* 批量移除组件
(ids: string[])
| 235 | * 批量移除组件 |
| 236 | */ |
| 237 | public async removeComponents(ids: string[]): Promise<{ [id: string]: boolean }> { |
| 238 | const results: { [id: string]: boolean } = {}; |
| 239 | |
| 240 | for (const id of ids) { |
| 241 | try { |
| 242 | results[id] = await this.removeComponent(id); |
| 243 | } catch (error) { |
| 244 | results[id] = false; |
| 245 | } |
| 246 | } |
| 247 | |
| 248 | return results; |
| 249 | } |
| 250 | |
| 251 | /** |
| 252 | * 重启组件 |
nothing calls this directly
no test coverage detected