types: ComponentInstance (#8154)

This commit is contained in:
neverland
2021-02-14 17:07:26 +08:00
committed by GitHub
parent 0fb0186fad
commit 4cb974ab02
8 changed files with 40 additions and 41 deletions
+2 -4
View File
@@ -7,12 +7,11 @@ import {
nextTick,
PropType,
onMounted,
ComponentPublicInstance,
} from 'vue';
// Utils
import { deepClone } from '../utils/deep-clone';
import { createNamespace, pick } from '../utils';
import { pick, createNamespace, ComponentInstance } from '../utils';
// Composition
import { useExpose } from '../composables/use-expose';
@@ -66,8 +65,7 @@ export default createComponent({
emits: ['change', 'confirm'],
setup(props, { emit, slots }) {
// eslint-disable-next-line
const pickerRef = ref<ComponentPublicInstance<{}, any>>();
const pickerRef = ref<ComponentInstance>();
const state = reactive({
code: props.value,