Skip to content

Commit 2c2726c

Browse files
committed
style: lint code
1 parent 41324dc commit 2c2726c

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

components/button/button.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import {
44
onBeforeUnmount,
55
onMounted,
66
onUpdated,
7-
Ref,
87
ref,
98
Text,
109
watch,
@@ -18,7 +17,7 @@ import useConfigInject from '../_util/hooks/useConfigInject';
1817
import devWarning from '../vc-util/devWarning';
1918

2019
import type { ButtonType } from './buttonTypes';
21-
import type { VNode } from 'vue';
20+
import type { VNode, Ref } from 'vue';
2221

2322
type Loading = boolean | number;
2423

components/modal/ActionButton.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import { defineComponent } from 'vue';
33
import PropTypes from '../_util/vue-types';
44
import Button from '../button';
55
import BaseMixin from '../_util/BaseMixin';
6-
import { convertLegacyProps, LegacyButtonType } from '../button/buttonTypes';
6+
import type { LegacyButtonType } from '../button/buttonTypes';
7+
import { convertLegacyProps } from '../button/buttonTypes';
78
import { getSlot, findDOMNode } from '../_util/props-util';
89

910
const ActionButtonProps = {

components/modal/Modal.tsx

+2-5
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,8 @@ import addEventListener from '../vc-util/Dom/addEventListener';
77
import { getConfirmLocale } from './locale';
88
import CloseOutlined from '@ant-design/icons-vue/CloseOutlined';
99
import Button from '../button';
10-
import buttonTypes, {
11-
ButtonProps as ButtonPropsType,
12-
convertLegacyProps,
13-
LegacyButtonType,
14-
} from '../button/buttonTypes';
10+
import type { ButtonProps as ButtonPropsType, LegacyButtonType } from '../button/buttonTypes';
11+
import buttonTypes, { convertLegacyProps } from '../button/buttonTypes';
1512
import LocaleReceiver from '../locale-provider/LocaleReceiver';
1613
import { getComponent, getSlot } from '../_util/props-util';
1714
import initDefaultProps from '../_util/props-util/initDefaultProps';

components/popconfirm/index.tsx

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
import omit from 'omit.js';
2-
import { defineComponent, inject, PropType } from 'vue';
2+
import type { PropType } from 'vue';
3+
import { defineComponent, inject } from 'vue';
34
import Tooltip from '../tooltip';
45
import abstractTooltipProps from '../tooltip/abstractTooltipProps';
56
import PropTypes from '../_util/vue-types';
67
import { getOptionProps, hasProp, getComponent, mergeProps } from '../_util/props-util';
78
import BaseMixin from '../_util/BaseMixin';
8-
import { LegacyButtonType, convertLegacyProps } from '../button/buttonTypes';
9+
import type { LegacyButtonType } from '../button/buttonTypes';
10+
import { convertLegacyProps } from '../button/buttonTypes';
911
import ExclamationCircleFilled from '@ant-design/icons-vue/ExclamationCircleFilled';
1012
import Button from '../button';
1113
import LocaleReceiver from '../locale-provider/LocaleReceiver';

components/rate/index.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { ExtractPropTypes, VNode, watch } from 'vue';
1+
import type { ExtractPropTypes, VNode } from 'vue';
2+
import { watch } from 'vue';
23
import { defineComponent, ref, reactive, onMounted } from 'vue';
34
import { initDefaultProps, getPropsSlot, findDOMNode } from '../_util/props-util';
45
import { withInstall } from '../_util/type';

0 commit comments

Comments
 (0)