mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
types: mark named import type (#10071)
This commit is contained in:
parent
ce1d73de30
commit
c378b388c2
@ -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 { extend, createNamespace } from '../utils';
|
||||||
import { ACTION_BAR_KEY } from '../action-bar/ActionBar';
|
import { ACTION_BAR_KEY } from '../action-bar/ActionBar';
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { defineComponent, ExtractPropTypes } from 'vue';
|
import { defineComponent, type ExtractPropTypes } from 'vue';
|
||||||
import { extend, createNamespace, unknownProp, numericProp } from '../utils';
|
import { extend, createNamespace, unknownProp, numericProp } from '../utils';
|
||||||
import { ACTION_BAR_KEY } from '../action-bar/ActionBar';
|
import { ACTION_BAR_KEY } from '../action-bar/ActionBar';
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { defineComponent, ExtractPropTypes } from 'vue';
|
import { defineComponent, type ExtractPropTypes } from 'vue';
|
||||||
import { truthProp, createNamespace } from '../utils';
|
import { truthProp, createNamespace } from '../utils';
|
||||||
import { useChildren } from '@vant/use';
|
import { useChildren } from '@vant/use';
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { nextTick, defineComponent, ExtractPropTypes } from 'vue';
|
import { nextTick, defineComponent, type ExtractPropTypes } from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
import {
|
import {
|
||||||
|
@ -4,9 +4,9 @@ import {
|
|||||||
computed,
|
computed,
|
||||||
nextTick,
|
nextTick,
|
||||||
reactive,
|
reactive,
|
||||||
PropType,
|
|
||||||
defineComponent,
|
defineComponent,
|
||||||
ExtractPropTypes,
|
type PropType,
|
||||||
|
type ExtractPropTypes,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { PropType, ref, defineComponent } from 'vue';
|
import { ref, defineComponent, type PropType } from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
import { createNamespace, numericProp } from '../utils';
|
import { createNamespace, numericProp } from '../utils';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { defineComponent, ExtractPropTypes } from 'vue';
|
import { defineComponent, type ExtractPropTypes } from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
import {
|
import {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { PropType, defineComponent } from 'vue';
|
import { defineComponent, type PropType } from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
import { createNamespace, extend, makeRequiredProp } from '../utils';
|
import { createNamespace, extend, makeRequiredProp } from '../utils';
|
||||||
|
@ -4,10 +4,10 @@ import {
|
|||||||
computed,
|
computed,
|
||||||
reactive,
|
reactive,
|
||||||
nextTick,
|
nextTick,
|
||||||
PropType,
|
|
||||||
onMounted,
|
onMounted,
|
||||||
defineComponent,
|
defineComponent,
|
||||||
ExtractPropTypes,
|
type PropType,
|
||||||
|
type ExtractPropTypes,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import {
|
import {
|
||||||
computed,
|
computed,
|
||||||
PropType,
|
|
||||||
CSSProperties,
|
|
||||||
defineComponent,
|
defineComponent,
|
||||||
ExtractPropTypes,
|
type PropType,
|
||||||
|
type CSSProperties,
|
||||||
|
type ExtractPropTypes,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
import {
|
import {
|
||||||
isDef,
|
isDef,
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import {
|
import {
|
||||||
PropType,
|
|
||||||
CSSProperties,
|
|
||||||
defineComponent,
|
defineComponent,
|
||||||
ExtractPropTypes,
|
type PropType,
|
||||||
|
type CSSProperties,
|
||||||
|
type ExtractPropTypes,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
|
@ -2,10 +2,10 @@ import {
|
|||||||
ref,
|
ref,
|
||||||
watch,
|
watch,
|
||||||
computed,
|
computed,
|
||||||
PropType,
|
|
||||||
TeleportProps,
|
|
||||||
defineComponent,
|
defineComponent,
|
||||||
ExtractPropTypes,
|
type PropType,
|
||||||
|
type TeleportProps,
|
||||||
|
type ExtractPropTypes,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
|
@ -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 { makeNumberProp, createNamespace, makeRequiredProp } from '../utils';
|
||||||
import { bem } from './utils';
|
import { bem } from './utils';
|
||||||
import type { CalendarDayItem } from './types';
|
import type { CalendarDayItem } from './types';
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import {
|
import {
|
||||||
ref,
|
ref,
|
||||||
computed,
|
computed,
|
||||||
PropType,
|
|
||||||
defineComponent,
|
defineComponent,
|
||||||
ExtractPropTypes,
|
type PropType,
|
||||||
|
type ExtractPropTypes,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { defineComponent, ExtractPropTypes } from 'vue';
|
import { defineComponent, type ExtractPropTypes } from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
import { isDef, numericProp, makeStringProp, createNamespace } from '../utils';
|
import { isDef, numericProp, makeStringProp, createNamespace } from '../utils';
|
||||||
|
@ -2,9 +2,9 @@ import {
|
|||||||
ref,
|
ref,
|
||||||
watch,
|
watch,
|
||||||
nextTick,
|
nextTick,
|
||||||
PropType,
|
|
||||||
defineComponent,
|
defineComponent,
|
||||||
ExtractPropTypes,
|
type PropType,
|
||||||
|
type ExtractPropTypes,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
import {
|
import {
|
||||||
extend,
|
extend,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { defineComponent, ExtractPropTypes } from 'vue';
|
import { defineComponent, type ExtractPropTypes } from 'vue';
|
||||||
import { truthProp, createNamespace, BORDER_TOP_BOTTOM } from '../utils';
|
import { truthProp, createNamespace, BORDER_TOP_BOTTOM } from '../utils';
|
||||||
|
|
||||||
const [name, bem] = createNamespace('cell-group');
|
const [name, bem] = createNamespace('cell-group');
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import {
|
import {
|
||||||
PropType,
|
|
||||||
CSSProperties,
|
|
||||||
defineComponent,
|
defineComponent,
|
||||||
ExtractPropTypes,
|
type PropType,
|
||||||
|
type CSSProperties,
|
||||||
|
type ExtractPropTypes,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import {
|
import {
|
||||||
watch,
|
watch,
|
||||||
PropType,
|
|
||||||
InjectionKey,
|
|
||||||
defineComponent,
|
defineComponent,
|
||||||
ExtractPropTypes,
|
type PropType,
|
||||||
|
type InjectionKey,
|
||||||
|
type ExtractPropTypes,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { watch, computed, defineComponent, ExtractPropTypes } from 'vue';
|
import { watch, computed, defineComponent, type ExtractPropTypes } from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
import { createNamespace, extend, pick, truthProp } from '../utils';
|
import { createNamespace, extend, pick, truthProp } from '../utils';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { ref, computed, PropType, defineComponent } from 'vue';
|
import { ref, computed, defineComponent, type PropType } from 'vue';
|
||||||
import {
|
import {
|
||||||
extend,
|
extend,
|
||||||
addUnit,
|
addUnit,
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
import {
|
import {
|
||||||
watch,
|
watch,
|
||||||
computed,
|
computed,
|
||||||
PropType,
|
|
||||||
CSSProperties,
|
|
||||||
defineComponent,
|
defineComponent,
|
||||||
ExtractPropTypes,
|
type PropType,
|
||||||
|
type CSSProperties,
|
||||||
|
type ExtractPropTypes,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
import { raf, cancelRaf } from '@vant/use';
|
import { raf, cancelRaf } from '@vant/use';
|
||||||
import {
|
import {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { computed, defineComponent, ExtractPropTypes } from 'vue';
|
import { computed, defineComponent, type ExtractPropTypes } from 'vue';
|
||||||
import {
|
import {
|
||||||
numericProp,
|
numericProp,
|
||||||
createNamespace,
|
createNamespace,
|
||||||
|
@ -4,7 +4,7 @@ import {
|
|||||||
computed,
|
computed,
|
||||||
nextTick,
|
nextTick,
|
||||||
defineComponent,
|
defineComponent,
|
||||||
ExtractPropTypes,
|
type ExtractPropTypes,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
|
@ -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 { truthProp, createNamespace, BORDER_TOP_BOTTOM } from '../utils';
|
||||||
import { useChildren } from '@vant/use';
|
import { useChildren } from '@vant/use';
|
||||||
|
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
* Vue Router support
|
* Vue Router support
|
||||||
*/
|
*/
|
||||||
import {
|
import {
|
||||||
PropType,
|
|
||||||
ExtractPropTypes,
|
|
||||||
getCurrentInstance,
|
getCurrentInstance,
|
||||||
ComponentPublicInstance,
|
type PropType,
|
||||||
|
type ExtractPropTypes,
|
||||||
|
type ComponentPublicInstance,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
import type { RouteLocationRaw } from 'vue-router';
|
import type { RouteLocationRaw } from 'vue-router';
|
||||||
|
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
import {
|
import {
|
||||||
provide,
|
provide,
|
||||||
computed,
|
computed,
|
||||||
PropType,
|
|
||||||
InjectionKey,
|
|
||||||
CSSProperties,
|
|
||||||
defineComponent,
|
defineComponent,
|
||||||
ExtractPropTypes,
|
type PropType,
|
||||||
|
type InjectionKey,
|
||||||
|
type CSSProperties,
|
||||||
|
type ExtractPropTypes,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
import { kebabCase, makeStringProp, createNamespace } from '../utils';
|
import { kebabCase, makeStringProp, createNamespace } from '../utils';
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { defineComponent, ExtractPropTypes } from 'vue';
|
import { defineComponent, type ExtractPropTypes } from 'vue';
|
||||||
import { truthProp, makeStringProp, createNamespace } from '../utils';
|
import { truthProp, makeStringProp, createNamespace } from '../utils';
|
||||||
import { Cell } from '../cell';
|
import { Cell } from '../cell';
|
||||||
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import {
|
import {
|
||||||
watch,
|
watch,
|
||||||
reactive,
|
reactive,
|
||||||
PropType,
|
|
||||||
defineComponent,
|
defineComponent,
|
||||||
ExtractPropTypes,
|
type PropType,
|
||||||
|
type ExtractPropTypes,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { PropType, defineComponent, ExtractPropTypes } from 'vue';
|
import { defineComponent, type PropType, type ExtractPropTypes } from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
import { createNamespace, unknownProp } from '../utils';
|
import { createNamespace, unknownProp } from '../utils';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { watch, computed, defineComponent, ExtractPropTypes } from 'vue';
|
import { watch, computed, defineComponent, type ExtractPropTypes } from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
import {
|
import {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { defineComponent, ExtractPropTypes } from 'vue';
|
import { defineComponent, type ExtractPropTypes } from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
import {
|
import {
|
||||||
|
@ -5,7 +5,7 @@ import {
|
|||||||
nextTick,
|
nextTick,
|
||||||
onMounted,
|
onMounted,
|
||||||
defineComponent,
|
defineComponent,
|
||||||
ExtractPropTypes,
|
type ExtractPropTypes,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { computed, PropType, defineComponent } from 'vue';
|
import { computed, defineComponent, type PropType } from 'vue';
|
||||||
import { makeStringProp, createNamespace, makeRequiredProp } from '../utils';
|
import { makeStringProp, createNamespace, makeRequiredProp } from '../utils';
|
||||||
import { getDate, formatAmount, formatDiscount } from './utils';
|
import { getDate, formatAmount, formatDiscount } from './utils';
|
||||||
import { Checkbox } from '../checkbox';
|
import { Checkbox } from '../checkbox';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { ref, defineComponent, ExtractPropTypes } from 'vue';
|
import { ref, defineComponent, type ExtractPropTypes } from 'vue';
|
||||||
import { pick, extend, createNamespace } from '../utils';
|
import { pick, extend, createNamespace } from '../utils';
|
||||||
import { useExpose } from '../composables/use-expose';
|
import { useExpose } from '../composables/use-expose';
|
||||||
import TimePicker from './TimePicker';
|
import TimePicker from './TimePicker';
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { PropType } from 'vue';
|
|
||||||
import { extend } from '../utils';
|
import { extend } from '../utils';
|
||||||
import { pickerSharedProps } from '../picker/Picker';
|
import { pickerSharedProps } from '../picker/Picker';
|
||||||
|
import type { PropType } from 'vue';
|
||||||
import type { PickerInstance } from '../picker';
|
import type { PickerInstance } from '../picker';
|
||||||
import type { DatetimePickerColumnType } from './types';
|
import type { DatetimePickerColumnType } from './types';
|
||||||
|
|
||||||
|
@ -1,4 +1,9 @@
|
|||||||
import { PropType, reactive, defineComponent, ExtractPropTypes } from 'vue';
|
import {
|
||||||
|
reactive,
|
||||||
|
defineComponent,
|
||||||
|
type PropType,
|
||||||
|
type ExtractPropTypes,
|
||||||
|
} from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
import {
|
import {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { defineComponent, ExtractPropTypes } from 'vue';
|
import { defineComponent, type ExtractPropTypes } from 'vue';
|
||||||
import { truthProp, makeStringProp, createNamespace } from '../utils';
|
import { truthProp, makeStringProp, createNamespace } from '../utils';
|
||||||
|
|
||||||
const [name, bem] = createNamespace('divider');
|
const [name, bem] = createNamespace('divider');
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
import {
|
import {
|
||||||
reactive,
|
reactive,
|
||||||
Teleport,
|
Teleport,
|
||||||
PropType,
|
|
||||||
TeleportProps,
|
|
||||||
CSSProperties,
|
|
||||||
defineComponent,
|
defineComponent,
|
||||||
ExtractPropTypes,
|
type PropType,
|
||||||
|
type TeleportProps,
|
||||||
|
type CSSProperties,
|
||||||
|
type ExtractPropTypes,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
import {
|
import {
|
||||||
ref,
|
ref,
|
||||||
computed,
|
computed,
|
||||||
InjectionKey,
|
|
||||||
CSSProperties,
|
|
||||||
defineComponent,
|
defineComponent,
|
||||||
ExtractPropTypes,
|
type InjectionKey,
|
||||||
|
type CSSProperties,
|
||||||
|
type ExtractPropTypes,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
@ -17,7 +17,7 @@ import {
|
|||||||
makeNumericProp,
|
makeNumericProp,
|
||||||
createNamespace,
|
createNamespace,
|
||||||
HAPTICS_FEEDBACK,
|
HAPTICS_FEEDBACK,
|
||||||
ComponentInstance,
|
type ComponentInstance,
|
||||||
} from '../utils';
|
} from '../utils';
|
||||||
|
|
||||||
// Composables
|
// Composables
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { defineComponent, ExtractPropTypes } from 'vue';
|
import { defineComponent, type ExtractPropTypes } from 'vue';
|
||||||
import {
|
import {
|
||||||
numericProp,
|
numericProp,
|
||||||
getSizeStyle,
|
getSizeStyle,
|
||||||
|
@ -5,10 +5,10 @@ import {
|
|||||||
computed,
|
computed,
|
||||||
nextTick,
|
nextTick,
|
||||||
reactive,
|
reactive,
|
||||||
PropType,
|
|
||||||
onMounted,
|
onMounted,
|
||||||
defineComponent,
|
defineComponent,
|
||||||
ExtractPropTypes,
|
type PropType,
|
||||||
|
type ExtractPropTypes,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { PropType, defineComponent, ExtractPropTypes } from 'vue';
|
import { defineComponent, type PropType, type ExtractPropTypes } from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
import {
|
import {
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import {
|
import {
|
||||||
computed,
|
computed,
|
||||||
CSSProperties,
|
|
||||||
defineComponent,
|
defineComponent,
|
||||||
ExtractPropTypes,
|
type CSSProperties,
|
||||||
|
type ExtractPropTypes,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
|
@ -1,4 +1,9 @@
|
|||||||
import { PropType, defineComponent, ExtractPropTypes, InjectionKey } from 'vue';
|
import {
|
||||||
|
defineComponent,
|
||||||
|
type PropType,
|
||||||
|
type InjectionKey,
|
||||||
|
type ExtractPropTypes,
|
||||||
|
} from 'vue';
|
||||||
import {
|
import {
|
||||||
createNamespace,
|
createNamespace,
|
||||||
addUnit,
|
addUnit,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { defineComponent, inject, computed, ExtractPropTypes } from 'vue';
|
import { inject, computed, defineComponent, type ExtractPropTypes } from 'vue';
|
||||||
import {
|
import {
|
||||||
addUnit,
|
addUnit,
|
||||||
numericProp,
|
numericProp,
|
||||||
|
@ -2,12 +2,12 @@ import {
|
|||||||
ref,
|
ref,
|
||||||
watch,
|
watch,
|
||||||
nextTick,
|
nextTick,
|
||||||
PropType,
|
|
||||||
reactive,
|
reactive,
|
||||||
onMounted,
|
onMounted,
|
||||||
CSSProperties,
|
|
||||||
defineComponent,
|
defineComponent,
|
||||||
ExtractPropTypes,
|
type PropType,
|
||||||
|
type CSSProperties,
|
||||||
|
type ExtractPropTypes,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
|
@ -1,4 +1,10 @@
|
|||||||
import { watch, computed, reactive, CSSProperties, defineComponent } from 'vue';
|
import {
|
||||||
|
watch,
|
||||||
|
computed,
|
||||||
|
reactive,
|
||||||
|
defineComponent,
|
||||||
|
type CSSProperties,
|
||||||
|
} from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
import {
|
import {
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
import {
|
import {
|
||||||
ref,
|
ref,
|
||||||
Slot,
|
|
||||||
watch,
|
watch,
|
||||||
computed,
|
computed,
|
||||||
PropType,
|
|
||||||
CSSProperties,
|
|
||||||
onBeforeUnmount,
|
onBeforeUnmount,
|
||||||
defineComponent,
|
defineComponent,
|
||||||
ExtractPropTypes,
|
|
||||||
getCurrentInstance,
|
getCurrentInstance,
|
||||||
|
type Slot,
|
||||||
|
type PropType,
|
||||||
|
type CSSProperties,
|
||||||
|
type ExtractPropTypes,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
|
@ -2,9 +2,9 @@ import {
|
|||||||
ref,
|
ref,
|
||||||
reactive,
|
reactive,
|
||||||
computed,
|
computed,
|
||||||
CSSProperties,
|
|
||||||
defineComponent,
|
defineComponent,
|
||||||
ExtractPropTypes,
|
type CSSProperties,
|
||||||
|
type ExtractPropTypes,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
|
@ -3,14 +3,14 @@ import {
|
|||||||
watch,
|
watch,
|
||||||
computed,
|
computed,
|
||||||
nextTick,
|
nextTick,
|
||||||
PropType,
|
|
||||||
Teleport,
|
Teleport,
|
||||||
onMounted,
|
onMounted,
|
||||||
InjectionKey,
|
|
||||||
CSSProperties,
|
|
||||||
TeleportProps,
|
|
||||||
defineComponent,
|
defineComponent,
|
||||||
ExtractPropTypes,
|
type PropType,
|
||||||
|
type InjectionKey,
|
||||||
|
type CSSProperties,
|
||||||
|
type TeleportProps,
|
||||||
|
type ExtractPropTypes,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
|
@ -5,7 +5,7 @@ import {
|
|||||||
onUpdated,
|
onUpdated,
|
||||||
onMounted,
|
onMounted,
|
||||||
defineComponent,
|
defineComponent,
|
||||||
ExtractPropTypes,
|
type ExtractPropTypes,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { computed, defineComponent, ExtractPropTypes } from 'vue';
|
import { computed, defineComponent, type ExtractPropTypes } from 'vue';
|
||||||
import {
|
import {
|
||||||
extend,
|
extend,
|
||||||
addUnit,
|
addUnit,
|
||||||
|
@ -1,4 +1,9 @@
|
|||||||
import { ref, CSSProperties, defineComponent, ExtractPropTypes } from 'vue';
|
import {
|
||||||
|
ref,
|
||||||
|
defineComponent,
|
||||||
|
type CSSProperties,
|
||||||
|
type ExtractPropTypes,
|
||||||
|
} from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
import {
|
import {
|
||||||
|
@ -2,9 +2,9 @@ import {
|
|||||||
ref,
|
ref,
|
||||||
watch,
|
watch,
|
||||||
reactive,
|
reactive,
|
||||||
PropType,
|
|
||||||
defineComponent,
|
defineComponent,
|
||||||
ExtractPropTypes,
|
type PropType,
|
||||||
|
type ExtractPropTypes,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { defineComponent, ExtractPropTypes } from 'vue';
|
import { defineComponent, type ExtractPropTypes } from 'vue';
|
||||||
import {
|
import {
|
||||||
extend,
|
extend,
|
||||||
numericProp,
|
numericProp,
|
||||||
|
@ -4,7 +4,7 @@ import {
|
|||||||
isObject,
|
isObject,
|
||||||
inBrowser,
|
inBrowser,
|
||||||
withInstall,
|
withInstall,
|
||||||
ComponentInstance,
|
type ComponentInstance,
|
||||||
} from '../utils';
|
} from '../utils';
|
||||||
import { mountComponent, usePopupState } from '../utils/mount-component';
|
import { mountComponent, usePopupState } from '../utils/mount-component';
|
||||||
import VanNotify from './Notify';
|
import VanNotify from './Notify';
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
import {
|
import {
|
||||||
ref,
|
ref,
|
||||||
Slot,
|
|
||||||
watch,
|
watch,
|
||||||
computed,
|
computed,
|
||||||
Teleport,
|
Teleport,
|
||||||
PropType,
|
|
||||||
Transition,
|
Transition,
|
||||||
TeleportProps,
|
|
||||||
defineComponent,
|
defineComponent,
|
||||||
ExtractPropTypes,
|
type Slot,
|
||||||
|
type PropType,
|
||||||
|
type TeleportProps,
|
||||||
|
type ExtractPropTypes,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { ref, PropType, defineComponent } from 'vue';
|
import { ref, defineComponent, type PropType } from 'vue';
|
||||||
import { numericProp, createNamespace, preventDefault } from '../utils';
|
import { numericProp, createNamespace, preventDefault } from '../utils';
|
||||||
import { useTouch } from '../composables/use-touch';
|
import { useTouch } from '../composables/use-touch';
|
||||||
import { Loading } from '../loading';
|
import { Loading } from '../loading';
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import {
|
import {
|
||||||
PropType,
|
|
||||||
Transition,
|
Transition,
|
||||||
CSSProperties,
|
|
||||||
defineComponent,
|
defineComponent,
|
||||||
ExtractPropTypes,
|
type PropType,
|
||||||
|
type CSSProperties,
|
||||||
|
type ExtractPropTypes,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
import {
|
import {
|
||||||
noop,
|
noop,
|
||||||
|
@ -1,4 +1,9 @@
|
|||||||
import { computed, watchEffect, defineComponent, ExtractPropTypes } from 'vue';
|
import {
|
||||||
|
computed,
|
||||||
|
watchEffect,
|
||||||
|
defineComponent,
|
||||||
|
type ExtractPropTypes,
|
||||||
|
} from 'vue';
|
||||||
import {
|
import {
|
||||||
clamp,
|
clamp,
|
||||||
makeStringProp,
|
makeStringProp,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { defineComponent, ExtractPropTypes } from 'vue';
|
import { defineComponent, type ExtractPropTypes } from 'vue';
|
||||||
import {
|
import {
|
||||||
addUnit,
|
addUnit,
|
||||||
truthProp,
|
truthProp,
|
||||||
|
@ -2,9 +2,9 @@ import {
|
|||||||
ref,
|
ref,
|
||||||
watch,
|
watch,
|
||||||
computed,
|
computed,
|
||||||
PropType,
|
|
||||||
defineComponent,
|
defineComponent,
|
||||||
ExtractPropTypes,
|
type PropType,
|
||||||
|
type ExtractPropTypes,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
|
@ -2,13 +2,13 @@ import {
|
|||||||
ref,
|
ref,
|
||||||
watch,
|
watch,
|
||||||
nextTick,
|
nextTick,
|
||||||
PropType,
|
|
||||||
onMounted,
|
onMounted,
|
||||||
CSSProperties,
|
|
||||||
TeleportProps,
|
|
||||||
onBeforeUnmount,
|
onBeforeUnmount,
|
||||||
defineComponent,
|
defineComponent,
|
||||||
ExtractPropTypes,
|
type PropType,
|
||||||
|
type CSSProperties,
|
||||||
|
type TeleportProps,
|
||||||
|
type ExtractPropTypes,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
import { Instance, createPopper, offsetModifier } from '@vant/popperjs';
|
import { Instance, createPopper, offsetModifier } from '@vant/popperjs';
|
||||||
|
|
||||||
@ -20,10 +20,10 @@ import {
|
|||||||
numericProp,
|
numericProp,
|
||||||
unknownProp,
|
unknownProp,
|
||||||
BORDER_BOTTOM,
|
BORDER_BOTTOM,
|
||||||
|
makeArrayProp,
|
||||||
makeStringProp,
|
makeStringProp,
|
||||||
createNamespace,
|
createNamespace,
|
||||||
ComponentInstance,
|
type ComponentInstance,
|
||||||
makeArrayProp,
|
|
||||||
} from '../utils';
|
} from '../utils';
|
||||||
|
|
||||||
// Composables
|
// Composables
|
||||||
|
@ -7,10 +7,10 @@ import {
|
|||||||
onMounted,
|
onMounted,
|
||||||
Transition,
|
Transition,
|
||||||
onActivated,
|
onActivated,
|
||||||
CSSProperties,
|
|
||||||
onDeactivated,
|
onDeactivated,
|
||||||
defineComponent,
|
defineComponent,
|
||||||
ExtractPropTypes,
|
type CSSProperties,
|
||||||
|
type ExtractPropTypes,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { PropType, CSSProperties, TeleportProps } from 'vue';
|
|
||||||
import { truthProp, unknownProp, Interceptor, numericProp } from '../utils';
|
import { truthProp, unknownProp, Interceptor, numericProp } from '../utils';
|
||||||
|
import type { PropType, CSSProperties, TeleportProps } from 'vue';
|
||||||
|
|
||||||
export const popupSharedProps = {
|
export const popupSharedProps = {
|
||||||
// whether to show popup
|
// whether to show popup
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { computed, defineComponent, ExtractPropTypes } from 'vue';
|
import { computed, defineComponent, type ExtractPropTypes } from 'vue';
|
||||||
import { addUnit, truthProp, numericProp, createNamespace } from '../utils';
|
import { addUnit, truthProp, numericProp, createNamespace } from '../utils';
|
||||||
|
|
||||||
const [name, bem] = createNamespace('progress');
|
const [name, bem] = createNamespace('progress');
|
||||||
|
@ -4,7 +4,7 @@ import {
|
|||||||
reactive,
|
reactive,
|
||||||
nextTick,
|
nextTick,
|
||||||
defineComponent,
|
defineComponent,
|
||||||
ExtractPropTypes,
|
type ExtractPropTypes,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import {
|
import {
|
||||||
watch,
|
watch,
|
||||||
PropType,
|
|
||||||
InjectionKey,
|
|
||||||
defineComponent,
|
defineComponent,
|
||||||
ExtractPropTypes,
|
type PropType,
|
||||||
|
type InjectionKey,
|
||||||
|
type ExtractPropTypes,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
import { unknownProp, numericProp, createNamespace } from '../utils';
|
import { unknownProp, numericProp, createNamespace } from '../utils';
|
||||||
import { useChildren, useCustomFieldValue } from '@vant/use';
|
import { useChildren, useCustomFieldValue } from '@vant/use';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { defineComponent, ExtractPropTypes } from 'vue';
|
import { defineComponent, type ExtractPropTypes } from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
import { pick, createNamespace } from '../utils';
|
import { pick, createNamespace } from '../utils';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { computed, defineComponent, ExtractPropTypes } from 'vue';
|
import { computed, defineComponent, type ExtractPropTypes } from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
import {
|
import {
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
import {
|
import {
|
||||||
computed,
|
computed,
|
||||||
PropType,
|
|
||||||
ComputedRef,
|
|
||||||
InjectionKey,
|
|
||||||
defineComponent,
|
defineComponent,
|
||||||
ExtractPropTypes,
|
type PropType,
|
||||||
|
type ComputedRef,
|
||||||
|
type InjectionKey,
|
||||||
|
type ExtractPropTypes,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
import {
|
import {
|
||||||
truthProp,
|
truthProp,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { ref, defineComponent, ExtractPropTypes } from 'vue';
|
import { ref, defineComponent, type ExtractPropTypes } from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
import {
|
import {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { defineComponent, ExtractPropTypes } from 'vue';
|
import { defineComponent, type ExtractPropTypes } from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
import {
|
import {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { defineComponent, ExtractPropTypes } from 'vue';
|
import { defineComponent, type ExtractPropTypes } from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
import { extend, numericProp, createNamespace } from '../utils';
|
import { extend, numericProp, createNamespace } from '../utils';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { defineComponent, InjectionKey, ExtractPropTypes } from 'vue';
|
import { defineComponent, type InjectionKey, type ExtractPropTypes } from 'vue';
|
||||||
import { makeNumericProp, createNamespace } from '../utils';
|
import { makeNumericProp, createNamespace } from '../utils';
|
||||||
import { useChildren } from '@vant/use';
|
import { useChildren } from '@vant/use';
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { PropType, defineComponent, ExtractPropTypes } from 'vue';
|
import { defineComponent, type PropType, type ExtractPropTypes } from 'vue';
|
||||||
import {
|
import {
|
||||||
addUnit,
|
addUnit,
|
||||||
truthProp,
|
truthProp,
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
import {
|
import {
|
||||||
ref,
|
ref,
|
||||||
computed,
|
computed,
|
||||||
PropType,
|
|
||||||
CSSProperties,
|
|
||||||
defineComponent,
|
defineComponent,
|
||||||
ExtractPropTypes,
|
type PropType,
|
||||||
|
type CSSProperties,
|
||||||
|
type ExtractPropTypes,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
|
@ -2,10 +2,10 @@ import {
|
|||||||
ref,
|
ref,
|
||||||
watch,
|
watch,
|
||||||
computed,
|
computed,
|
||||||
PropType,
|
|
||||||
nextTick,
|
nextTick,
|
||||||
defineComponent,
|
defineComponent,
|
||||||
ExtractPropTypes,
|
type PropType,
|
||||||
|
type ExtractPropTypes,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
|
@ -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 { makeStringProp, makeNumericProp, createNamespace } from '../utils';
|
||||||
import { useChildren } from '@vant/use';
|
import { useChildren } from '@vant/use';
|
||||||
|
|
||||||
|
@ -2,11 +2,11 @@ import {
|
|||||||
ref,
|
ref,
|
||||||
watch,
|
watch,
|
||||||
computed,
|
computed,
|
||||||
PropType,
|
|
||||||
reactive,
|
reactive,
|
||||||
CSSProperties,
|
|
||||||
defineComponent,
|
defineComponent,
|
||||||
ExtractPropTypes,
|
type PropType,
|
||||||
|
type CSSProperties,
|
||||||
|
type ExtractPropTypes,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { PropType, defineComponent, ExtractPropTypes } from 'vue';
|
import { defineComponent, type PropType, type ExtractPropTypes } from 'vue';
|
||||||
import {
|
import {
|
||||||
truthProp,
|
truthProp,
|
||||||
makeStringProp,
|
makeStringProp,
|
||||||
|
@ -3,9 +3,9 @@ import {
|
|||||||
Ref,
|
Ref,
|
||||||
reactive,
|
reactive,
|
||||||
computed,
|
computed,
|
||||||
PropType,
|
|
||||||
defineComponent,
|
defineComponent,
|
||||||
ExtractPropTypes,
|
type PropType,
|
||||||
|
type ExtractPropTypes,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
|
@ -3,8 +3,8 @@ import {
|
|||||||
nextTick,
|
nextTick,
|
||||||
reactive,
|
reactive,
|
||||||
onMounted,
|
onMounted,
|
||||||
CSSProperties,
|
|
||||||
defineComponent,
|
defineComponent,
|
||||||
|
type CSSProperties,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
|
@ -5,12 +5,12 @@ import {
|
|||||||
computed,
|
computed,
|
||||||
onMounted,
|
onMounted,
|
||||||
onActivated,
|
onActivated,
|
||||||
InjectionKey,
|
|
||||||
CSSProperties,
|
|
||||||
onDeactivated,
|
onDeactivated,
|
||||||
onBeforeUnmount,
|
onBeforeUnmount,
|
||||||
defineComponent,
|
defineComponent,
|
||||||
ExtractPropTypes,
|
type InjectionKey,
|
||||||
|
type CSSProperties,
|
||||||
|
type ExtractPropTypes,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { defineComponent, ExtractPropTypes } from 'vue';
|
import { defineComponent, type ExtractPropTypes } from 'vue';
|
||||||
import { addUnit, numericProp, unknownProp, createNamespace } from '../utils';
|
import { addUnit, numericProp, unknownProp, createNamespace } from '../utils';
|
||||||
import { useCustomFieldValue } from '@vant/use';
|
import { useCustomFieldValue } from '@vant/use';
|
||||||
import { Loading } from '../loading';
|
import { Loading } from '../loading';
|
||||||
|
@ -4,10 +4,10 @@ import {
|
|||||||
provide,
|
provide,
|
||||||
computed,
|
computed,
|
||||||
nextTick,
|
nextTick,
|
||||||
PropType,
|
|
||||||
CSSProperties,
|
|
||||||
defineComponent,
|
defineComponent,
|
||||||
ExtractPropTypes,
|
type PropType,
|
||||||
|
type CSSProperties,
|
||||||
|
type ExtractPropTypes,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import {
|
import {
|
||||||
computed,
|
computed,
|
||||||
defineComponent,
|
defineComponent,
|
||||||
ExtractPropTypes,
|
|
||||||
getCurrentInstance,
|
getCurrentInstance,
|
||||||
|
type ExtractPropTypes,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import {
|
import {
|
||||||
ref,
|
ref,
|
||||||
PropType,
|
|
||||||
InjectionKey,
|
|
||||||
defineComponent,
|
defineComponent,
|
||||||
ExtractPropTypes,
|
type PropType,
|
||||||
|
type InjectionKey,
|
||||||
|
type ExtractPropTypes,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
|
@ -4,14 +4,14 @@ import {
|
|||||||
computed,
|
computed,
|
||||||
reactive,
|
reactive,
|
||||||
nextTick,
|
nextTick,
|
||||||
PropType,
|
|
||||||
onActivated,
|
onActivated,
|
||||||
InjectionKey,
|
|
||||||
CSSProperties,
|
|
||||||
defineComponent,
|
defineComponent,
|
||||||
ExtractPropTypes,
|
|
||||||
getCurrentInstance,
|
getCurrentInstance,
|
||||||
ComponentPublicInstance,
|
type PropType,
|
||||||
|
type InjectionKey,
|
||||||
|
type CSSProperties,
|
||||||
|
type ExtractPropTypes,
|
||||||
|
type ComponentPublicInstance,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
@ -31,8 +31,8 @@ import {
|
|||||||
createNamespace,
|
createNamespace,
|
||||||
makeNumericProp,
|
makeNumericProp,
|
||||||
setRootScrollTop,
|
setRootScrollTop,
|
||||||
ComponentInstance,
|
|
||||||
BORDER_TOP_BOTTOM,
|
BORDER_TOP_BOTTOM,
|
||||||
|
type ComponentInstance,
|
||||||
} from '../utils';
|
} from '../utils';
|
||||||
import { scrollLeftTo, scrollTopTo } from './utils';
|
import { scrollLeftTo, scrollTopTo } from './utils';
|
||||||
|
|
||||||
|
@ -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 { isDef, truthProp, numericProp, createNamespace } from '../utils';
|
||||||
import { Badge } from '../badge';
|
import { Badge } from '../badge';
|
||||||
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import {
|
import {
|
||||||
PropType,
|
|
||||||
Transition,
|
Transition,
|
||||||
CSSProperties,
|
|
||||||
defineComponent,
|
defineComponent,
|
||||||
ExtractPropTypes,
|
type PropType,
|
||||||
|
type CSSProperties,
|
||||||
|
type ExtractPropTypes,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
import { truthProp, makeStringProp, createNamespace } from '../utils';
|
import { truthProp, makeStringProp, createNamespace } from '../utils';
|
||||||
import { Icon } from '../icon';
|
import { Icon } from '../icon';
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
import {
|
import {
|
||||||
watch,
|
watch,
|
||||||
PropType,
|
|
||||||
onMounted,
|
onMounted,
|
||||||
onUnmounted,
|
onUnmounted,
|
||||||
CSSProperties,
|
|
||||||
defineComponent,
|
defineComponent,
|
||||||
ExtractPropTypes,
|
type PropType,
|
||||||
|
type CSSProperties,
|
||||||
|
type ExtractPropTypes,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
import { ref, App, getCurrentInstance, watch } from 'vue';
|
import { ref, watch, getCurrentInstance, type App } from 'vue';
|
||||||
import {
|
import {
|
||||||
extend,
|
extend,
|
||||||
isObject,
|
isObject,
|
||||||
inBrowser,
|
inBrowser,
|
||||||
withInstall,
|
withInstall,
|
||||||
ComponentInstance,
|
type ComponentInstance,
|
||||||
} from '../utils';
|
} from '../utils';
|
||||||
import { mountComponent, usePopupState } from '../utils/mount-component';
|
import { mountComponent, usePopupState } from '../utils/mount-component';
|
||||||
import VanToast from './Toast';
|
import VanToast from './Toast';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { PropType, defineComponent, ExtractPropTypes } from 'vue';
|
import { defineComponent, type PropType, type ExtractPropTypes } from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
import {
|
import {
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
import {
|
import {
|
||||||
ref,
|
ref,
|
||||||
reactive,
|
reactive,
|
||||||
PropType,
|
|
||||||
defineComponent,
|
defineComponent,
|
||||||
ExtractPropTypes,
|
|
||||||
onBeforeUnmount,
|
onBeforeUnmount,
|
||||||
|
type PropType,
|
||||||
|
type ExtractPropTypes,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
@ -19,7 +19,7 @@ import {
|
|||||||
makeArrayProp,
|
makeArrayProp,
|
||||||
makeStringProp,
|
makeStringProp,
|
||||||
makeNumericProp,
|
makeNumericProp,
|
||||||
ComponentInstance,
|
type ComponentInstance,
|
||||||
} from '../utils';
|
} from '../utils';
|
||||||
import {
|
import {
|
||||||
bem,
|
bem,
|
||||||
@ -37,7 +37,7 @@ import { useExpose } from '../composables/use-expose';
|
|||||||
|
|
||||||
// Components
|
// Components
|
||||||
import { Icon } from '../icon';
|
import { Icon } from '../icon';
|
||||||
import { ImagePreview, ImagePreviewOptions } from '../image-preview';
|
import { ImagePreview, type ImagePreviewOptions } from '../image-preview';
|
||||||
import UploaderPreviewItem from './UploaderPreviewItem';
|
import UploaderPreviewItem from './UploaderPreviewItem';
|
||||||
|
|
||||||
// Types
|
// Types
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { PropType, defineComponent } from 'vue';
|
import { defineComponent, type PropType } from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
import { t, bem, isImageFile } from './utils';
|
import { t, bem, isImageFile } from './utils';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user