(id: string)
| 216 | } |
| 217 | |
| 218 | public removeView(id: string): void { |
| 219 | if (isNil(this.currentPage)) { |
| 220 | return; |
| 221 | } |
| 222 | const index = this.currentPage.views.findIndex((item) => item.id === id); |
| 223 | if (index > -1) { |
| 224 | this.currentPage.views.splice(index, 1); |
| 225 | } |
| 226 | this.viewMap.delete(id); |
| 227 | this.views = this.views.filter((item) => item.id !== id); |
| 228 | } |
| 229 | |
| 230 | public getPrepareSavingModel(): SolidModelDataType | undefined { |
| 231 | if (isNil(this.model)) { |