fix: 修复loading样式错误、nodata没有正常显示的问题

This commit is contained in:
chenjinsong
2021-12-27 17:11:16 +08:00
parent 43b8ad7016
commit 631619e570

View File

@@ -356,11 +356,9 @@ function noDataDomFactory () {
export const noData = {
updated (el, binding) {
if (el) {
console.info(binding.value, el)
if (binding.value) {
setTimeout(() => {
el.childNodes.forEach(node => {
console.info(node, node.style)
node.style && (node.style.display = 'none')
})
el.insertBefore(noDataDomFactory(), el.childNodes[0])