From 6cde2408f7f7426e387c623cd40ae8a7662370d6 Mon Sep 17 00:00:00 2001 From: msidolphin Date: Mon, 31 May 2021 14:06:25 +0800 Subject: [PATCH] fix: hot reload (#2077) (#2097) Co-authored-by: yangyu8 --- packages/dialog/src/useDialog.ts | 3 +-- packages/table/src/store/helper.ts | 2 +- packages/table/src/table-column/defaults.ts | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/dialog/src/useDialog.ts b/packages/dialog/src/useDialog.ts index d75cb3713f..a4feaf87f2 100644 --- a/packages/dialog/src/useDialog.ts +++ b/packages/dialog/src/useDialog.ts @@ -6,8 +6,7 @@ import PopupManager from '@element-plus/utils/popup-manager' import { clearTimer, isNumber } from '@element-plus/utils/util' import { useLockScreen, useRestoreActive, useModal } from '@element-plus/hooks' -import type { Ref, CSSProperties } from 'vue' -import type { SetupContext } from '@vue/runtime-core' +import type { Ref, CSSProperties, SetupContext } from 'vue' import type { UseDialogProps } from './dialog' export const CLOSE_EVENT = 'close' diff --git a/packages/table/src/store/helper.ts b/packages/table/src/store/helper.ts index 0d6c3372af..2fdd6d0612 100644 --- a/packages/table/src/store/helper.ts +++ b/packages/table/src/store/helper.ts @@ -2,7 +2,7 @@ import useStore, { Store } from './index' import debounce from 'lodash/debounce' import { Table } from '../table/defaults' import { TableProps } from '../table/defaults' -import { watch } from '@vue/runtime-core' +import { watch } from 'vue' const InitialStateMap = { rowKey: 'rowKey', diff --git a/packages/table/src/table-column/defaults.ts b/packages/table/src/table-column/defaults.ts index a9510a7935..0a4b1300a8 100644 --- a/packages/table/src/table-column/defaults.ts +++ b/packages/table/src/table-column/defaults.ts @@ -1,7 +1,6 @@ import { PropType } from 'vue' import { DefaultRow } from '../table/defaults' -import { VNode } from '@vue/runtime-core' -import { ComponentInternalInstance, Ref } from 'vue' +import { ComponentInternalInstance, Ref, VNode } from 'vue' import { Table } from '../table/defaults' type CI = { column: TableColumnCtx; $index: number; }