提交 4cfc8f97 作者: 方治民

fix: 修复 fui-lazyload 组件 fix 更新时被覆盖的问题

上级 1f7fd45a
......@@ -88,14 +88,17 @@
}
},
data() {
const isLocalFile = this.src.indexOf('http') === -1
return {
show: false,
local: isLocalFile,
show: isLocalFile,
visible: false,
elId: `fui_lazy_${Math.ceil(Math.random() * 10e5).toString(36)}`
};
},
created() {
this.visible = this.placeholder ? true : false;
this.visible = this.local ? true : (this.placeholder ? true : false);
this.observer = null;
},
// #ifndef APP-NVUE
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论