From 8c4eb403723fcdf90fb3839ef1b771eeaaf88b92 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Wed, 6 Oct 2021 22:19:26 +0800 Subject: [PATCH] style: update vue dep --- components/vc-picker/PickerTrigger.tsx | 2 +- components/vc-picker/panels/DatetimePanel/index.tsx | 2 +- components/vc-picker/panels/TimePanel/TimeUnitColumn.tsx | 4 +--- components/vc-picker/panels/TimePanel/index.tsx | 2 +- components/vc-util/Dom/scrollLocker.ts | 2 +- 5 files changed, 5 insertions(+), 7 deletions(-) diff --git a/components/vc-picker/PickerTrigger.tsx b/components/vc-picker/PickerTrigger.tsx index 4b133ff4d..843b30d54 100644 --- a/components/vc-picker/PickerTrigger.tsx +++ b/components/vc-picker/PickerTrigger.tsx @@ -1,4 +1,4 @@ -import type { CSSProperties } from '@vue/runtime-dom'; +import type { CSSProperties } from 'vue'; import type { AlignType } from '../vc-align/interface'; import Trigger from '../vc-trigger'; import classNames from '../_util/classNames'; diff --git a/components/vc-picker/panels/DatetimePanel/index.tsx b/components/vc-picker/panels/DatetimePanel/index.tsx index 79fd79538..013436a15 100644 --- a/components/vc-picker/panels/DatetimePanel/index.tsx +++ b/components/vc-picker/panels/DatetimePanel/index.tsx @@ -7,7 +7,7 @@ import { setDateTime as setTime } from '../../utils/timeUtil'; import type { PanelRefProps, DisabledTime } from '../../interface'; import KeyCode from '../../../_util/KeyCode'; import classNames from '../../../_util/classNames'; -import { ref } from '@vue/reactivity'; +import { ref } from 'vue'; import useMergeProps from '../../hooks/useMergeProps'; export type DatetimePanelProps = { diff --git a/components/vc-picker/panels/TimePanel/TimeUnitColumn.tsx b/components/vc-picker/panels/TimePanel/TimeUnitColumn.tsx index ccd197967..6058639c1 100644 --- a/components/vc-picker/panels/TimePanel/TimeUnitColumn.tsx +++ b/components/vc-picker/panels/TimePanel/TimeUnitColumn.tsx @@ -1,9 +1,7 @@ import { scrollTo, waitElementReady } from '../../utils/uiUtil'; import { useInjectPanel } from '../../PanelContext'; import classNames from '../../../_util/classNames'; -import { ref } from '@vue/reactivity'; -import { onBeforeUnmount, watch } from '@vue/runtime-core'; -import { defineComponent, nextTick } from 'vue'; +import { ref, onBeforeUnmount, watch, defineComponent, nextTick } from 'vue'; export type Unit = { label: any; diff --git a/components/vc-picker/panels/TimePanel/index.tsx b/components/vc-picker/panels/TimePanel/index.tsx index 31530d66b..e2e0f56f7 100644 --- a/components/vc-picker/panels/TimePanel/index.tsx +++ b/components/vc-picker/panels/TimePanel/index.tsx @@ -4,7 +4,7 @@ import TimeBody from './TimeBody'; import type { PanelSharedProps, DisabledTimes } from '../../interface'; import { createKeydownHandler } from '../../utils/uiUtil'; import classNames from '../../../_util/classNames'; -import { ref } from '@vue/reactivity'; +import { ref } from 'vue'; import useMergeProps from '../../hooks/useMergeProps'; export type SharedTimeProps = { diff --git a/components/vc-util/Dom/scrollLocker.ts b/components/vc-util/Dom/scrollLocker.ts index 87320ffc9..7afb6a60f 100644 --- a/components/vc-util/Dom/scrollLocker.ts +++ b/components/vc-util/Dom/scrollLocker.ts @@ -1,4 +1,4 @@ -import type { CSSProperties } from '@vue/runtime-dom'; +import type { CSSProperties } from 'vue'; import getScrollBarSize from '../../_util/getScrollBarSize'; import setStyle from '../../_util/setStyle';