fix: 修复loading样式错误、nodata没有正常显示的问题
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user