chore(@vant/lazyload): remove @babel/runtime

This commit is contained in:
chenjiahan
2021-04-13 11:24:22 +08:00
committed by neverland
parent 7bfceb508e
commit 9c5ad689eb
4 changed files with 4 additions and 21 deletions

View File

@@ -19,14 +19,13 @@ class LazyContainer {
update({ el, binding }) {
this.el = el;
this.options = { ...defaultOptions, ...binding.value };
this.options = Object.assign({}, defaultOptions, binding.value);
const imgs = this.getImgs();
imgs.forEach((el) => {
this.lazy.add(
el,
{
...this.binding,
Object.assign({}, this.binding, {
value: {
src: 'dataset' in el ? el.dataset.src : el.getAttribute('data-src'),
error:
@@ -38,7 +37,7 @@ class LazyContainer {
? el.dataset.loading
: el.getAttribute('data-loading')) || this.options.loading,
},
},
}),
this.vnode
);
});