feat(sfc): css modules support

This commit is contained in:
Evan You
2019-12-17 21:28:24 -05:00
parent abfea8eb45
commit d84cf3a538
5 changed files with 39 additions and 3 deletions

View File

@@ -59,9 +59,11 @@ function createRecord(id: string, comp: ComponentOptions): boolean {
return true
}
function rerender(id: string, newRender: RenderFunction) {
function rerender(id: string, newRender?: RenderFunction) {
map.get(id)!.instances.forEach(instance => {
instance.render = newRender
if (newRender) {
instance.render = newRender
}
instance.renderCache = []
// this flag forces child components with slot content to update
instance.renderUpdated = true