diff --git a/components/button/button.tsx b/components/button/button.tsx index 7d31284d0..aebd6fb95 100644 --- a/components/button/button.tsx +++ b/components/button/button.tsx @@ -4,7 +4,6 @@ import { onBeforeUnmount, onMounted, onUpdated, - Ref, ref, Text, watch, @@ -18,7 +17,7 @@ import useConfigInject from '../_util/hooks/useConfigInject'; import devWarning from '../vc-util/devWarning'; import type { ButtonType } from './buttonTypes'; -import type { VNode } from 'vue'; +import type { VNode, Ref } from 'vue'; type Loading = boolean | number; diff --git a/components/modal/ActionButton.tsx b/components/modal/ActionButton.tsx index 25e0e000e..f3aa99f7f 100644 --- a/components/modal/ActionButton.tsx +++ b/components/modal/ActionButton.tsx @@ -3,7 +3,8 @@ import { defineComponent } from 'vue'; import PropTypes from '../_util/vue-types'; import Button from '../button'; import BaseMixin from '../_util/BaseMixin'; -import { convertLegacyProps, LegacyButtonType } from '../button/buttonTypes'; +import type { LegacyButtonType } from '../button/buttonTypes'; +import { convertLegacyProps } from '../button/buttonTypes'; import { getSlot, findDOMNode } from '../_util/props-util'; const ActionButtonProps = { diff --git a/components/modal/Modal.tsx b/components/modal/Modal.tsx index 9ed3a4df2..8e9a97614 100644 --- a/components/modal/Modal.tsx +++ b/components/modal/Modal.tsx @@ -7,11 +7,8 @@ import addEventListener from '../vc-util/Dom/addEventListener'; import { getConfirmLocale } from './locale'; import CloseOutlined from '@ant-design/icons-vue/CloseOutlined'; import Button from '../button'; -import buttonTypes, { - ButtonProps as ButtonPropsType, - convertLegacyProps, - LegacyButtonType, -} from '../button/buttonTypes'; +import type { ButtonProps as ButtonPropsType, LegacyButtonType } from '../button/buttonTypes'; +import buttonTypes, { convertLegacyProps } from '../button/buttonTypes'; import LocaleReceiver from '../locale-provider/LocaleReceiver'; import { getComponent, getSlot } from '../_util/props-util'; import initDefaultProps from '../_util/props-util/initDefaultProps'; diff --git a/components/popconfirm/index.tsx b/components/popconfirm/index.tsx index f4d739f3c..509581926 100644 --- a/components/popconfirm/index.tsx +++ b/components/popconfirm/index.tsx @@ -1,11 +1,13 @@ import omit from 'omit.js'; -import { defineComponent, inject, PropType } from 'vue'; +import type { PropType } from 'vue'; +import { defineComponent, inject } from 'vue'; import Tooltip from '../tooltip'; import abstractTooltipProps from '../tooltip/abstractTooltipProps'; import PropTypes from '../_util/vue-types'; import { getOptionProps, hasProp, getComponent, mergeProps } from '../_util/props-util'; import BaseMixin from '../_util/BaseMixin'; -import { LegacyButtonType, convertLegacyProps } from '../button/buttonTypes'; +import type { LegacyButtonType } from '../button/buttonTypes'; +import { convertLegacyProps } from '../button/buttonTypes'; import ExclamationCircleFilled from '@ant-design/icons-vue/ExclamationCircleFilled'; import Button from '../button'; import LocaleReceiver from '../locale-provider/LocaleReceiver'; diff --git a/components/rate/index.tsx b/components/rate/index.tsx index d386ff9f6..312a3dac0 100644 --- a/components/rate/index.tsx +++ b/components/rate/index.tsx @@ -1,4 +1,5 @@ -import { ExtractPropTypes, VNode, watch } from 'vue'; +import type { ExtractPropTypes, VNode } from 'vue'; +import { watch } from 'vue'; import { defineComponent, ref, reactive, onMounted } from 'vue'; import { initDefaultProps, getPropsSlot, findDOMNode } from '../_util/props-util'; import { withInstall } from '../_util/type';