mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 02:31:21 +00:00
types: improve ref typing (#8182)
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
import { ref, PropType, CSSProperties } from 'vue';
|
||||
|
||||
// Utils
|
||||
import { pick, createNamespace, preventDefault } from '../utils';
|
||||
import {
|
||||
pick,
|
||||
createNamespace,
|
||||
preventDefault,
|
||||
ComponentInstance,
|
||||
} from '../utils';
|
||||
|
||||
// Composition
|
||||
import { useExpose } from '../composables/use-expose';
|
||||
@@ -44,7 +49,7 @@ export default createComponent({
|
||||
emits: ['update:modelValue', 'search', 'cancel'],
|
||||
|
||||
setup(props, { emit, slots, attrs }) {
|
||||
const filedRef = ref();
|
||||
const filedRef = ref<ComponentInstance>();
|
||||
|
||||
const onCancel = () => {
|
||||
if (!slots.action) {
|
||||
|
Reference in New Issue
Block a user