perf: make the most of streamed rendering

This commit is contained in:
Harttle
2021-10-01 18:36:57 +08:00
committed by harttle
parent 4358c9630f
commit aea34418de
13 changed files with 65 additions and 71 deletions
+5 -1
View File
@@ -3,10 +3,14 @@ import { Drop } from './drop'
export class BlockDrop extends Drop {
constructor (
// the block render from layout template
private superBlockRender: () => Iterable<string> = () => ''
private superBlockRender: () => Iterable<any> = () => ''
) {
super()
}
/**
* Provide parent access in child block by
* {{ block.super }}
*/
public super () {
return this.superBlockRender()
}