types: improve ref typing (#8182)

This commit is contained in:
neverland
2021-02-19 20:58:02 +08:00
committed by GitHub
parent 7daca89102
commit 9ad0eafae0
9 changed files with 31 additions and 20 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
import { ref, watch, computed, nextTick, reactive, PropType } from 'vue';
// Utils
import { createNamespace, isObject } from '../utils';
import { ComponentInstance, createNamespace, isObject } from '../utils';
import { isMobile } from '../utils/validate/mobile';
// Composition
@@ -113,7 +113,7 @@ export default createComponent({
],
setup(props, { emit, slots }) {
const areaRef = ref();
const areaRef = ref<ComponentInstance>();
const state = reactive({
data: {} as AddressInfo,