chore: bump lazyload and remove todo

This commit is contained in:
chenjiahan
2021-09-24 10:48:24 +08:00
committed by neverland
parent 3aa3bbfa49
commit 8d6d65fa58
3 changed files with 6 additions and 8 deletions
+1 -1
View File
@@ -45,7 +45,7 @@
"license": "MIT",
"dependencies": {
"@vant/icons": "^1.7.1",
"@vant/lazyload": "^1.2.0",
"@vant/lazyload": "^1.3.0",
"@vant/popperjs": "^1.1.0",
"@vant/use": "^1.3.1"
},
+1 -3
View File
@@ -16,7 +16,6 @@ import {
inBrowser,
truthProp,
createNamespace,
ComponentInstance,
} from '../utils';
// Components
@@ -59,8 +58,7 @@ export default defineComponent({
const loading = ref(true);
const imageRef = ref<HTMLElement>();
// TODO: types
const { $Lazyload } = getCurrentInstance()!.proxy as ComponentInstance;
const { $Lazyload } = getCurrentInstance()!.proxy!;
const style = computed(() => {
const style: CSSProperties = {};