style: lint code

pull/4301/head
tangjinzhou 2021-06-30 14:45:05 +08:00
parent 41324dc1e3
commit 2c2726c827
5 changed files with 11 additions and 11 deletions

View File

@ -4,7 +4,6 @@ import {
onBeforeUnmount, onBeforeUnmount,
onMounted, onMounted,
onUpdated, onUpdated,
Ref,
ref, ref,
Text, Text,
watch, watch,
@ -18,7 +17,7 @@ import useConfigInject from '../_util/hooks/useConfigInject';
import devWarning from '../vc-util/devWarning'; import devWarning from '../vc-util/devWarning';
import type { ButtonType } from './buttonTypes'; import type { ButtonType } from './buttonTypes';
import type { VNode } from 'vue'; import type { VNode, Ref } from 'vue';
type Loading = boolean | number; type Loading = boolean | number;

View File

@ -3,7 +3,8 @@ import { defineComponent } from 'vue';
import PropTypes from '../_util/vue-types'; import PropTypes from '../_util/vue-types';
import Button from '../button'; import Button from '../button';
import BaseMixin from '../_util/BaseMixin'; 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'; import { getSlot, findDOMNode } from '../_util/props-util';
const ActionButtonProps = { const ActionButtonProps = {

View File

@ -7,11 +7,8 @@ import addEventListener from '../vc-util/Dom/addEventListener';
import { getConfirmLocale } from './locale'; import { getConfirmLocale } from './locale';
import CloseOutlined from '@ant-design/icons-vue/CloseOutlined'; import CloseOutlined from '@ant-design/icons-vue/CloseOutlined';
import Button from '../button'; import Button from '../button';
import buttonTypes, { import type { ButtonProps as ButtonPropsType, LegacyButtonType } from '../button/buttonTypes';
ButtonProps as ButtonPropsType, import buttonTypes, { convertLegacyProps } from '../button/buttonTypes';
convertLegacyProps,
LegacyButtonType,
} from '../button/buttonTypes';
import LocaleReceiver from '../locale-provider/LocaleReceiver'; import LocaleReceiver from '../locale-provider/LocaleReceiver';
import { getComponent, getSlot } from '../_util/props-util'; import { getComponent, getSlot } from '../_util/props-util';
import initDefaultProps from '../_util/props-util/initDefaultProps'; import initDefaultProps from '../_util/props-util/initDefaultProps';

View File

@ -1,11 +1,13 @@
import omit from 'omit.js'; 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 Tooltip from '../tooltip';
import abstractTooltipProps from '../tooltip/abstractTooltipProps'; import abstractTooltipProps from '../tooltip/abstractTooltipProps';
import PropTypes from '../_util/vue-types'; import PropTypes from '../_util/vue-types';
import { getOptionProps, hasProp, getComponent, mergeProps } from '../_util/props-util'; import { getOptionProps, hasProp, getComponent, mergeProps } from '../_util/props-util';
import BaseMixin from '../_util/BaseMixin'; 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 ExclamationCircleFilled from '@ant-design/icons-vue/ExclamationCircleFilled';
import Button from '../button'; import Button from '../button';
import LocaleReceiver from '../locale-provider/LocaleReceiver'; import LocaleReceiver from '../locale-provider/LocaleReceiver';

View File

@ -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 { defineComponent, ref, reactive, onMounted } from 'vue';
import { initDefaultProps, getPropsSlot, findDOMNode } from '../_util/props-util'; import { initDefaultProps, getPropsSlot, findDOMNode } from '../_util/props-util';
import { withInstall } from '../_util/type'; import { withInstall } from '../_util/type';