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 = { export const noData = {
updated (el, binding) { updated (el, binding) {
if (el) { if (el) {
console.info(binding.value, el)
if (binding.value) { if (binding.value) {
setTimeout(() => { setTimeout(() => {
el.childNodes.forEach(node => { el.childNodes.forEach(node => {
console.info(node, node.style)
node.style && (node.style.display = 'none') node.style && (node.style.display = 'none')
}) })
el.insertBefore(noDataDomFactory(), el.childNodes[0]) el.insertBefore(noDataDomFactory(), el.childNodes[0])