types: mark named import type (#10071)

This commit is contained in:
neverland 2021-12-20 20:20:47 +08:00 committed by GitHub
parent ce1d73de30
commit c378b388c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
97 changed files with 221 additions and 180 deletions

View File

@ -1,4 +1,9 @@
import { computed, PropType, defineComponent, ExtractPropTypes } from 'vue';
import {
computed,
defineComponent,
type PropType,
type ExtractPropTypes,
} from 'vue';
import { extend, createNamespace } from '../utils';
import { ACTION_BAR_KEY } from '../action-bar/ActionBar';

View File

@ -1,4 +1,4 @@
import { defineComponent, ExtractPropTypes } from 'vue';
import { defineComponent, type ExtractPropTypes } from 'vue';
import { extend, createNamespace, unknownProp, numericProp } from '../utils';
import { ACTION_BAR_KEY } from '../action-bar/ActionBar';

View File

@ -1,4 +1,4 @@
import { defineComponent, ExtractPropTypes } from 'vue';
import { defineComponent, type ExtractPropTypes } from 'vue';
import { truthProp, createNamespace } from '../utils';
import { useChildren } from '@vant/use';

View File

@ -1,4 +1,4 @@
import { nextTick, defineComponent, ExtractPropTypes } from 'vue';
import { nextTick, defineComponent, type ExtractPropTypes } from 'vue';
// Utils
import {

View File

@ -4,9 +4,9 @@ import {
computed,
nextTick,
reactive,
PropType,
defineComponent,
ExtractPropTypes,
type PropType,
type ExtractPropTypes,
} from 'vue';
// Utils

View File

@ -1,4 +1,4 @@
import { PropType, ref, defineComponent } from 'vue';
import { ref, defineComponent, type PropType } from 'vue';
// Utils
import { createNamespace, numericProp } from '../utils';

View File

@ -1,4 +1,4 @@
import { defineComponent, ExtractPropTypes } from 'vue';
import { defineComponent, type ExtractPropTypes } from 'vue';
// Utils
import {

View File

@ -1,4 +1,4 @@
import { PropType, defineComponent } from 'vue';
import { defineComponent, type PropType } from 'vue';
// Utils
import { createNamespace, extend, makeRequiredProp } from '../utils';

View File

@ -4,10 +4,10 @@ import {
computed,
reactive,
nextTick,
PropType,
onMounted,
defineComponent,
ExtractPropTypes,
type PropType,
type ExtractPropTypes,
} from 'vue';
// Utils

View File

@ -1,9 +1,9 @@
import {
computed,
PropType,
CSSProperties,
defineComponent,
ExtractPropTypes,
type PropType,
type CSSProperties,
type ExtractPropTypes,
} from 'vue';
import {
isDef,

View File

@ -1,8 +1,8 @@
import {
PropType,
CSSProperties,
defineComponent,
ExtractPropTypes,
type PropType,
type CSSProperties,
type ExtractPropTypes,
} from 'vue';
// Utils

View File

@ -2,10 +2,10 @@ import {
ref,
watch,
computed,
PropType,
TeleportProps,
defineComponent,
ExtractPropTypes,
type PropType,
type TeleportProps,
type ExtractPropTypes,
} from 'vue';
// Utils

View File

@ -1,4 +1,9 @@
import { computed, CSSProperties, PropType, defineComponent } from 'vue';
import {
computed,
defineComponent,
type PropType,
type CSSProperties,
} from 'vue';
import { makeNumberProp, createNamespace, makeRequiredProp } from '../utils';
import { bem } from './utils';
import type { CalendarDayItem } from './types';

View File

@ -1,9 +1,9 @@
import {
ref,
computed,
PropType,
defineComponent,
ExtractPropTypes,
type PropType,
type ExtractPropTypes,
} from 'vue';
// Utils

View File

@ -1,4 +1,4 @@
import { defineComponent, ExtractPropTypes } from 'vue';
import { defineComponent, type ExtractPropTypes } from 'vue';
// Utils
import { isDef, numericProp, makeStringProp, createNamespace } from '../utils';

View File

@ -2,9 +2,9 @@ import {
ref,
watch,
nextTick,
PropType,
defineComponent,
ExtractPropTypes,
type PropType,
type ExtractPropTypes,
} from 'vue';
import {
extend,

View File

@ -1,4 +1,4 @@
import { defineComponent, ExtractPropTypes } from 'vue';
import { defineComponent, type ExtractPropTypes } from 'vue';
import { truthProp, createNamespace, BORDER_TOP_BOTTOM } from '../utils';
const [name, bem] = createNamespace('cell-group');

View File

@ -1,8 +1,8 @@
import {
PropType,
CSSProperties,
defineComponent,
ExtractPropTypes,
type PropType,
type CSSProperties,
type ExtractPropTypes,
} from 'vue';
// Utils

View File

@ -1,9 +1,9 @@
import {
watch,
PropType,
InjectionKey,
defineComponent,
ExtractPropTypes,
type PropType,
type InjectionKey,
type ExtractPropTypes,
} from 'vue';
// Utils

View File

@ -1,4 +1,4 @@
import { watch, computed, defineComponent, ExtractPropTypes } from 'vue';
import { watch, computed, defineComponent, type ExtractPropTypes } from 'vue';
// Utils
import { createNamespace, extend, pick, truthProp } from '../utils';

View File

@ -1,4 +1,4 @@
import { ref, computed, PropType, defineComponent } from 'vue';
import { ref, computed, defineComponent, type PropType } from 'vue';
import {
extend,
addUnit,

View File

@ -1,10 +1,10 @@
import {
watch,
computed,
PropType,
CSSProperties,
defineComponent,
ExtractPropTypes,
type PropType,
type CSSProperties,
type ExtractPropTypes,
} from 'vue';
import { raf, cancelRaf } from '@vant/use';
import {

View File

@ -1,4 +1,4 @@
import { computed, defineComponent, ExtractPropTypes } from 'vue';
import { computed, defineComponent, type ExtractPropTypes } from 'vue';
import {
numericProp,
createNamespace,

View File

@ -4,7 +4,7 @@ import {
computed,
nextTick,
defineComponent,
ExtractPropTypes,
type ExtractPropTypes,
} from 'vue';
// Utils

View File

@ -1,4 +1,9 @@
import { PropType, defineComponent, InjectionKey, ExtractPropTypes } from 'vue';
import {
defineComponent,
type PropType,
type InjectionKey,
type ExtractPropTypes,
} from 'vue';
import { truthProp, createNamespace, BORDER_TOP_BOTTOM } from '../utils';
import { useChildren } from '@vant/use';

View File

@ -2,10 +2,10 @@
* Vue Router support
*/
import {
PropType,
ExtractPropTypes,
getCurrentInstance,
ComponentPublicInstance,
type PropType,
type ExtractPropTypes,
type ComponentPublicInstance,
} from 'vue';
import type { RouteLocationRaw } from 'vue-router';

View File

@ -1,11 +1,11 @@
import {
provide,
computed,
PropType,
InjectionKey,
CSSProperties,
defineComponent,
ExtractPropTypes,
type PropType,
type InjectionKey,
type CSSProperties,
type ExtractPropTypes,
} from 'vue';
import { kebabCase, makeStringProp, createNamespace } from '../utils';

View File

@ -1,4 +1,4 @@
import { defineComponent, ExtractPropTypes } from 'vue';
import { defineComponent, type ExtractPropTypes } from 'vue';
import { truthProp, makeStringProp, createNamespace } from '../utils';
import { Cell } from '../cell';

View File

@ -1,9 +1,9 @@
import {
watch,
reactive,
PropType,
defineComponent,
ExtractPropTypes,
type PropType,
type ExtractPropTypes,
} from 'vue';
// Utils

View File

@ -1,4 +1,4 @@
import { PropType, defineComponent, ExtractPropTypes } from 'vue';
import { defineComponent, type PropType, type ExtractPropTypes } from 'vue';
// Utils
import { createNamespace, unknownProp } from '../utils';

View File

@ -1,4 +1,4 @@
import { watch, computed, defineComponent, ExtractPropTypes } from 'vue';
import { watch, computed, defineComponent, type ExtractPropTypes } from 'vue';
// Utils
import {

View File

@ -1,4 +1,4 @@
import { defineComponent, ExtractPropTypes } from 'vue';
import { defineComponent, type ExtractPropTypes } from 'vue';
// Utils
import {

View File

@ -5,7 +5,7 @@ import {
nextTick,
onMounted,
defineComponent,
ExtractPropTypes,
type ExtractPropTypes,
} from 'vue';
// Utils

View File

@ -1,4 +1,4 @@
import { computed, PropType, defineComponent } from 'vue';
import { computed, defineComponent, type PropType } from 'vue';
import { makeStringProp, createNamespace, makeRequiredProp } from '../utils';
import { getDate, formatAmount, formatDiscount } from './utils';
import { Checkbox } from '../checkbox';

View File

@ -1,4 +1,4 @@
import { ref, defineComponent, ExtractPropTypes } from 'vue';
import { ref, defineComponent, type ExtractPropTypes } from 'vue';
import { pick, extend, createNamespace } from '../utils';
import { useExpose } from '../composables/use-expose';
import TimePicker from './TimePicker';

View File

@ -1,6 +1,6 @@
import { PropType } from 'vue';
import { extend } from '../utils';
import { pickerSharedProps } from '../picker/Picker';
import type { PropType } from 'vue';
import type { PickerInstance } from '../picker';
import type { DatetimePickerColumnType } from './types';

View File

@ -1,4 +1,9 @@
import { PropType, reactive, defineComponent, ExtractPropTypes } from 'vue';
import {
reactive,
defineComponent,
type PropType,
type ExtractPropTypes,
} from 'vue';
// Utils
import {

View File

@ -1,4 +1,4 @@
import { defineComponent, ExtractPropTypes } from 'vue';
import { defineComponent, type ExtractPropTypes } from 'vue';
import { truthProp, makeStringProp, createNamespace } from '../utils';
const [name, bem] = createNamespace('divider');

View File

@ -1,11 +1,11 @@
import {
reactive,
Teleport,
PropType,
TeleportProps,
CSSProperties,
defineComponent,
ExtractPropTypes,
type PropType,
type TeleportProps,
type CSSProperties,
type ExtractPropTypes,
} from 'vue';
// Utils

View File

@ -1,10 +1,10 @@
import {
ref,
computed,
InjectionKey,
CSSProperties,
defineComponent,
ExtractPropTypes,
type InjectionKey,
type CSSProperties,
type ExtractPropTypes,
} from 'vue';
// Utils
@ -17,7 +17,7 @@ import {
makeNumericProp,
createNamespace,
HAPTICS_FEEDBACK,
ComponentInstance,
type ComponentInstance,
} from '../utils';
// Composables

View File

@ -1,4 +1,4 @@
import { defineComponent, ExtractPropTypes } from 'vue';
import { defineComponent, type ExtractPropTypes } from 'vue';
import {
numericProp,
getSizeStyle,

View File

@ -5,10 +5,10 @@ import {
computed,
nextTick,
reactive,
PropType,
onMounted,
defineComponent,
ExtractPropTypes,
type PropType,
type ExtractPropTypes,
} from 'vue';
// Utils

View File

@ -1,4 +1,4 @@
import { PropType, defineComponent, ExtractPropTypes } from 'vue';
import { defineComponent, type PropType, type ExtractPropTypes } from 'vue';
// Utils
import {

View File

@ -1,8 +1,8 @@
import {
computed,
CSSProperties,
defineComponent,
ExtractPropTypes,
type CSSProperties,
type ExtractPropTypes,
} from 'vue';
// Utils

View File

@ -1,4 +1,9 @@
import { PropType, defineComponent, ExtractPropTypes, InjectionKey } from 'vue';
import {
defineComponent,
type PropType,
type InjectionKey,
type ExtractPropTypes,
} from 'vue';
import {
createNamespace,
addUnit,

View File

@ -1,4 +1,4 @@
import { defineComponent, inject, computed, ExtractPropTypes } from 'vue';
import { inject, computed, defineComponent, type ExtractPropTypes } from 'vue';
import {
addUnit,
numericProp,

View File

@ -2,12 +2,12 @@ import {
ref,
watch,
nextTick,
PropType,
reactive,
onMounted,
CSSProperties,
defineComponent,
ExtractPropTypes,
type PropType,
type CSSProperties,
type ExtractPropTypes,
} from 'vue';
// Utils

View File

@ -1,4 +1,10 @@
import { watch, computed, reactive, CSSProperties, defineComponent } from 'vue';
import {
watch,
computed,
reactive,
defineComponent,
type CSSProperties,
} from 'vue';
// Utils
import {

View File

@ -1,14 +1,14 @@
import {
ref,
Slot,
watch,
computed,
PropType,
CSSProperties,
onBeforeUnmount,
defineComponent,
ExtractPropTypes,
getCurrentInstance,
type Slot,
type PropType,
type CSSProperties,
type ExtractPropTypes,
} from 'vue';
// Utils

View File

@ -2,9 +2,9 @@ import {
ref,
reactive,
computed,
CSSProperties,
defineComponent,
ExtractPropTypes,
type CSSProperties,
type ExtractPropTypes,
} from 'vue';
// Utils

View File

@ -3,14 +3,14 @@ import {
watch,
computed,
nextTick,
PropType,
Teleport,
onMounted,
InjectionKey,
CSSProperties,
TeleportProps,
defineComponent,
ExtractPropTypes,
type PropType,
type InjectionKey,
type CSSProperties,
type TeleportProps,
type ExtractPropTypes,
} from 'vue';
// Utils

View File

@ -5,7 +5,7 @@ import {
onUpdated,
onMounted,
defineComponent,
ExtractPropTypes,
type ExtractPropTypes,
} from 'vue';
// Utils

View File

@ -1,4 +1,4 @@
import { computed, defineComponent, ExtractPropTypes } from 'vue';
import { computed, defineComponent, type ExtractPropTypes } from 'vue';
import {
extend,
addUnit,

View File

@ -1,4 +1,9 @@
import { ref, CSSProperties, defineComponent, ExtractPropTypes } from 'vue';
import {
ref,
defineComponent,
type CSSProperties,
type ExtractPropTypes,
} from 'vue';
// Utils
import {

View File

@ -2,9 +2,9 @@ import {
ref,
watch,
reactive,
PropType,
defineComponent,
ExtractPropTypes,
type PropType,
type ExtractPropTypes,
} from 'vue';
// Utils

View File

@ -1,4 +1,4 @@
import { defineComponent, ExtractPropTypes } from 'vue';
import { defineComponent, type ExtractPropTypes } from 'vue';
import {
extend,
numericProp,

View File

@ -4,7 +4,7 @@ import {
isObject,
inBrowser,
withInstall,
ComponentInstance,
type ComponentInstance,
} from '../utils';
import { mountComponent, usePopupState } from '../utils/mount-component';
import VanNotify from './Notify';

View File

@ -1,14 +1,14 @@
import {
ref,
Slot,
watch,
computed,
Teleport,
PropType,
Transition,
TeleportProps,
defineComponent,
ExtractPropTypes,
type Slot,
type PropType,
type TeleportProps,
type ExtractPropTypes,
} from 'vue';
// Utils

View File

@ -1,4 +1,4 @@
import { ref, PropType, defineComponent } from 'vue';
import { ref, defineComponent, type PropType } from 'vue';
import { numericProp, createNamespace, preventDefault } from '../utils';
import { useTouch } from '../composables/use-touch';
import { Loading } from '../loading';

View File

@ -1,9 +1,9 @@
import {
PropType,
Transition,
CSSProperties,
defineComponent,
ExtractPropTypes,
type PropType,
type CSSProperties,
type ExtractPropTypes,
} from 'vue';
import {
noop,

View File

@ -1,4 +1,9 @@
import { computed, watchEffect, defineComponent, ExtractPropTypes } from 'vue';
import {
computed,
watchEffect,
defineComponent,
type ExtractPropTypes,
} from 'vue';
import {
clamp,
makeStringProp,

View File

@ -1,4 +1,4 @@
import { defineComponent, ExtractPropTypes } from 'vue';
import { defineComponent, type ExtractPropTypes } from 'vue';
import {
addUnit,
truthProp,

View File

@ -2,9 +2,9 @@ import {
ref,
watch,
computed,
PropType,
defineComponent,
ExtractPropTypes,
type PropType,
type ExtractPropTypes,
} from 'vue';
// Utils

View File

@ -2,13 +2,13 @@ import {
ref,
watch,
nextTick,
PropType,
onMounted,
CSSProperties,
TeleportProps,
onBeforeUnmount,
defineComponent,
ExtractPropTypes,
type PropType,
type CSSProperties,
type TeleportProps,
type ExtractPropTypes,
} from 'vue';
import { Instance, createPopper, offsetModifier } from '@vant/popperjs';
@ -20,10 +20,10 @@ import {
numericProp,
unknownProp,
BORDER_BOTTOM,
makeArrayProp,
makeStringProp,
createNamespace,
ComponentInstance,
makeArrayProp,
type ComponentInstance,
} from '../utils';
// Composables

View File

@ -7,10 +7,10 @@ import {
onMounted,
Transition,
onActivated,
CSSProperties,
onDeactivated,
defineComponent,
ExtractPropTypes,
type CSSProperties,
type ExtractPropTypes,
} from 'vue';
// Utils

View File

@ -1,5 +1,5 @@
import { PropType, CSSProperties, TeleportProps } from 'vue';
import { truthProp, unknownProp, Interceptor, numericProp } from '../utils';
import type { PropType, CSSProperties, TeleportProps } from 'vue';
export const popupSharedProps = {
// whether to show popup

View File

@ -1,4 +1,4 @@
import { computed, defineComponent, ExtractPropTypes } from 'vue';
import { computed, defineComponent, type ExtractPropTypes } from 'vue';
import { addUnit, truthProp, numericProp, createNamespace } from '../utils';
const [name, bem] = createNamespace('progress');

View File

@ -4,7 +4,7 @@ import {
reactive,
nextTick,
defineComponent,
ExtractPropTypes,
type ExtractPropTypes,
} from 'vue';
// Utils

View File

@ -1,9 +1,9 @@
import {
watch,
PropType,
InjectionKey,
defineComponent,
ExtractPropTypes,
type PropType,
type InjectionKey,
type ExtractPropTypes,
} from 'vue';
import { unknownProp, numericProp, createNamespace } from '../utils';
import { useChildren, useCustomFieldValue } from '@vant/use';

View File

@ -1,4 +1,4 @@
import { defineComponent, ExtractPropTypes } from 'vue';
import { defineComponent, type ExtractPropTypes } from 'vue';
// Utils
import { pick, createNamespace } from '../utils';

View File

@ -1,4 +1,4 @@
import { computed, defineComponent, ExtractPropTypes } from 'vue';
import { computed, defineComponent, type ExtractPropTypes } from 'vue';
// Utils
import {

View File

@ -1,10 +1,10 @@
import {
computed,
PropType,
ComputedRef,
InjectionKey,
defineComponent,
ExtractPropTypes,
type PropType,
type ComputedRef,
type InjectionKey,
type ExtractPropTypes,
} from 'vue';
import {
truthProp,

View File

@ -1,4 +1,4 @@
import { ref, defineComponent, ExtractPropTypes } from 'vue';
import { ref, defineComponent, type ExtractPropTypes } from 'vue';
// Utils
import {

View File

@ -1,4 +1,4 @@
import { defineComponent, ExtractPropTypes } from 'vue';
import { defineComponent, type ExtractPropTypes } from 'vue';
// Utils
import {

View File

@ -1,4 +1,4 @@
import { defineComponent, ExtractPropTypes } from 'vue';
import { defineComponent, type ExtractPropTypes } from 'vue';
// Utils
import { extend, numericProp, createNamespace } from '../utils';

View File

@ -1,4 +1,4 @@
import { defineComponent, InjectionKey, ExtractPropTypes } from 'vue';
import { defineComponent, type InjectionKey, type ExtractPropTypes } from 'vue';
import { makeNumericProp, createNamespace } from '../utils';
import { useChildren } from '@vant/use';

View File

@ -1,4 +1,4 @@
import { PropType, defineComponent, ExtractPropTypes } from 'vue';
import { defineComponent, type PropType, type ExtractPropTypes } from 'vue';
import {
addUnit,
truthProp,

View File

@ -1,10 +1,10 @@
import {
ref,
computed,
PropType,
CSSProperties,
defineComponent,
ExtractPropTypes,
type PropType,
type CSSProperties,
type ExtractPropTypes,
} from 'vue';
// Utils

View File

@ -2,10 +2,10 @@ import {
ref,
watch,
computed,
PropType,
nextTick,
defineComponent,
ExtractPropTypes,
type PropType,
type ExtractPropTypes,
} from 'vue';
// Utils

View File

@ -1,4 +1,4 @@
import { defineComponent, ExtractPropTypes, InjectionKey } from 'vue';
import { defineComponent, type ExtractPropTypes, type InjectionKey } from 'vue';
import { makeStringProp, makeNumericProp, createNamespace } from '../utils';
import { useChildren } from '@vant/use';

View File

@ -2,11 +2,11 @@ import {
ref,
watch,
computed,
PropType,
reactive,
CSSProperties,
defineComponent,
ExtractPropTypes,
type PropType,
type CSSProperties,
type ExtractPropTypes,
} from 'vue';
// Utils

View File

@ -1,4 +1,4 @@
import { PropType, defineComponent, ExtractPropTypes } from 'vue';
import { defineComponent, type PropType, type ExtractPropTypes } from 'vue';
import {
truthProp,
makeStringProp,

View File

@ -3,9 +3,9 @@ import {
Ref,
reactive,
computed,
PropType,
defineComponent,
ExtractPropTypes,
type PropType,
type ExtractPropTypes,
} from 'vue';
// Utils

View File

@ -3,8 +3,8 @@ import {
nextTick,
reactive,
onMounted,
CSSProperties,
defineComponent,
type CSSProperties,
} from 'vue';
// Utils

View File

@ -5,12 +5,12 @@ import {
computed,
onMounted,
onActivated,
InjectionKey,
CSSProperties,
onDeactivated,
onBeforeUnmount,
defineComponent,
ExtractPropTypes,
type InjectionKey,
type CSSProperties,
type ExtractPropTypes,
} from 'vue';
// Utils

View File

@ -1,4 +1,4 @@
import { defineComponent, ExtractPropTypes } from 'vue';
import { defineComponent, type ExtractPropTypes } from 'vue';
import { addUnit, numericProp, unknownProp, createNamespace } from '../utils';
import { useCustomFieldValue } from '@vant/use';
import { Loading } from '../loading';

View File

@ -4,10 +4,10 @@ import {
provide,
computed,
nextTick,
PropType,
CSSProperties,
defineComponent,
ExtractPropTypes,
type PropType,
type CSSProperties,
type ExtractPropTypes,
} from 'vue';
// Utils

View File

@ -1,8 +1,8 @@
import {
computed,
defineComponent,
ExtractPropTypes,
getCurrentInstance,
type ExtractPropTypes,
} from 'vue';
// Utils

View File

@ -1,9 +1,9 @@
import {
ref,
PropType,
InjectionKey,
defineComponent,
ExtractPropTypes,
type PropType,
type InjectionKey,
type ExtractPropTypes,
} from 'vue';
// Utils

View File

@ -4,14 +4,14 @@ import {
computed,
reactive,
nextTick,
PropType,
onActivated,
InjectionKey,
CSSProperties,
defineComponent,
ExtractPropTypes,
getCurrentInstance,
ComponentPublicInstance,
type PropType,
type InjectionKey,
type CSSProperties,
type ExtractPropTypes,
type ComponentPublicInstance,
} from 'vue';
// Utils
@ -31,8 +31,8 @@ import {
createNamespace,
makeNumericProp,
setRootScrollTop,
ComponentInstance,
BORDER_TOP_BOTTOM,
type ComponentInstance,
} from '../utils';
import { scrollLeftTo, scrollTopTo } from './utils';

View File

@ -1,4 +1,4 @@
import { computed, CSSProperties, defineComponent } from 'vue';
import { computed, defineComponent, type CSSProperties } from 'vue';
import { isDef, truthProp, numericProp, createNamespace } from '../utils';
import { Badge } from '../badge';

View File

@ -1,9 +1,9 @@
import {
PropType,
Transition,
CSSProperties,
defineComponent,
ExtractPropTypes,
type PropType,
type CSSProperties,
type ExtractPropTypes,
} from 'vue';
import { truthProp, makeStringProp, createNamespace } from '../utils';
import { Icon } from '../icon';

View File

@ -1,11 +1,11 @@
import {
watch,
PropType,
onMounted,
onUnmounted,
CSSProperties,
defineComponent,
ExtractPropTypes,
type PropType,
type CSSProperties,
type ExtractPropTypes,
} from 'vue';
// Utils

View File

@ -1,10 +1,10 @@
import { ref, App, getCurrentInstance, watch } from 'vue';
import { ref, watch, getCurrentInstance, type App } from 'vue';
import {
extend,
isObject,
inBrowser,
withInstall,
ComponentInstance,
type ComponentInstance,
} from '../utils';
import { mountComponent, usePopupState } from '../utils/mount-component';
import VanToast from './Toast';

View File

@ -1,4 +1,4 @@
import { PropType, defineComponent, ExtractPropTypes } from 'vue';
import { defineComponent, type PropType, type ExtractPropTypes } from 'vue';
// Utils
import {

View File

@ -1,10 +1,10 @@
import {
ref,
reactive,
PropType,
defineComponent,
ExtractPropTypes,
onBeforeUnmount,
type PropType,
type ExtractPropTypes,
} from 'vue';
// Utils
@ -19,7 +19,7 @@ import {
makeArrayProp,
makeStringProp,
makeNumericProp,
ComponentInstance,
type ComponentInstance,
} from '../utils';
import {
bem,
@ -37,7 +37,7 @@ import { useExpose } from '../composables/use-expose';
// Components
import { Icon } from '../icon';
import { ImagePreview, ImagePreviewOptions } from '../image-preview';
import { ImagePreview, type ImagePreviewOptions } from '../image-preview';
import UploaderPreviewItem from './UploaderPreviewItem';
// Types

View File

@ -1,4 +1,4 @@
import { PropType, defineComponent } from 'vue';
import { defineComponent, type PropType } from 'vue';
// Utils
import { t, bem, isImageFile } from './utils';