add vstack children
This commit is contained in:
8
index.js
8
index.js
@@ -583,6 +583,14 @@ window.VStack = function (cb = () => {}) {
|
|||||||
quillStyles.update(nowRendering.tagName.toLowerCase(), styles)
|
quillStyles.update(nowRendering.tagName.toLowerCase(), styles)
|
||||||
cb()
|
cb()
|
||||||
return nowRendering
|
return nowRendering
|
||||||
|
} else {
|
||||||
|
let div = document.createElement("div")
|
||||||
|
div.classList.add("VStack")
|
||||||
|
div.style.display = "flex"
|
||||||
|
div.style.flexDirection = "column"
|
||||||
|
Registry.render(div)
|
||||||
|
cb()
|
||||||
|
return div
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user