(views: SolidViewDataType[])
| 204 | } |
| 205 | |
| 206 | public setViews(views: SolidViewDataType[]): void { |
| 207 | if (isNil(this.currentPage)) { |
| 208 | return; |
| 209 | } |
| 210 | this.currentPage.views = []; |
| 211 | forEach(views, (item) => { |
| 212 | this.currentPage?.views.push(item); |
| 213 | this.viewMap.set(`${item.id}`, item); |
| 214 | this.views.push(item); |
| 215 | }); |
| 216 | } |
| 217 | |
| 218 | public removeView(id: string): void { |
| 219 | if (isNil(this.currentPage)) { |