mirror of
https://github.com/youzan/vant.git
synced 2026-05-05 01:00:55 +08:00
types: reduce any
This commit is contained in:
+8
-2
@@ -7,7 +7,13 @@ import {
|
||||
onBeforeUnmount,
|
||||
getCurrentInstance,
|
||||
} from 'vue';
|
||||
import { isDef, addUnit, inBrowser, createNamespace } from '../utils';
|
||||
import {
|
||||
isDef,
|
||||
addUnit,
|
||||
inBrowser,
|
||||
createNamespace,
|
||||
ComponentInstance,
|
||||
} from '../utils';
|
||||
import Icon from '../icon';
|
||||
|
||||
const [createComponent, bem] = createNamespace('image');
|
||||
@@ -51,7 +57,7 @@ export default createComponent({
|
||||
const imageRef = ref<HTMLElement>();
|
||||
|
||||
// TODO: types
|
||||
const { $Lazyload } = getCurrentInstance()!.proxy as any;
|
||||
const { $Lazyload } = getCurrentInstance()!.proxy as ComponentInstance;
|
||||
|
||||
const style = computed(() => {
|
||||
const style: CSSProperties = {};
|
||||
|
||||
Reference in New Issue
Block a user