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