chore: remove classnames
parent
c36a984b1b
commit
06b7e33cc0
|
@ -0,0 +1,20 @@
|
|||
import { isArray, isString, isObject } from './util';
|
||||
function classNames(value) {
|
||||
let res = '';
|
||||
if (isString(value)) {
|
||||
res = value;
|
||||
} else if (isArray(value)) {
|
||||
for (let i = 0; i < value.length; i++) {
|
||||
res += classNames(value[i]) + ' ';
|
||||
}
|
||||
} else if (isObject(value)) {
|
||||
for (const name in value) {
|
||||
if (value[name]) {
|
||||
res += name + ' ';
|
||||
}
|
||||
}
|
||||
}
|
||||
return res.trim();
|
||||
}
|
||||
|
||||
export default classNames;
|
|
@ -1,5 +1,5 @@
|
|||
import isPlainObject from 'lodash/isPlainObject';
|
||||
import classNames from 'classnames';
|
||||
import classNames from './classNames';
|
||||
import { isVNode, Fragment, Comment, Text, h } from 'vue';
|
||||
import { camelize, hyphenate, isOn, resolvePropValue } from './util';
|
||||
import isValid from './isValid';
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
const isFunction = val => typeof val === 'function';
|
||||
export const isFunction = val => typeof val === 'function';
|
||||
|
||||
export const isArray = Array.isArray;
|
||||
export const isString = val => typeof val === 'string';
|
||||
export const isSymbol = val => typeof val === 'symbol';
|
||||
export const isObject = val => val !== null && typeof val === 'object';
|
||||
const onRE = /^on[^a-z]/;
|
||||
const isOn = key => onRE.test(key);
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { inject } from 'vue';
|
||||
import PropTypes from '../_util/vue-types';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import omit from 'omit.js';
|
||||
import ResizeObserver from '../vc-resize-observer';
|
||||
import BaseMixin from '../_util/BaseMixin';
|
||||
|
|
|
@ -8,7 +8,7 @@ import CheckCircleFilled from '@ant-design/icons-vue/CheckCircleFilled';
|
|||
import ExclamationCircleFilled from '@ant-design/icons-vue/ExclamationCircleFilled';
|
||||
import InfoCircleFilled from '@ant-design/icons-vue/InfoCircleFilled';
|
||||
import CloseCircleFilled from '@ant-design/icons-vue/CloseCircleFilled';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import BaseMixin from '../_util/BaseMixin';
|
||||
import PropTypes from '../_util/vue-types';
|
||||
import getTransitionProps from '../_util/getTransitionProps';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { inject, provide } from 'vue';
|
||||
import PropTypes from '../_util/vue-types';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import addEventListener from '../vc-util/Dom/addEventListener';
|
||||
import Affix from '../affix';
|
||||
import scrollTo from '../_util/scrollTo';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { inject } from 'vue';
|
||||
import PropTypes from '../_util/vue-types';
|
||||
import { initDefaultProps, getComponent } from '../_util/props-util';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import { ConfigConsumerProps } from '../config-provider';
|
||||
function noop() {}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { inject, Transition } from 'vue';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import PropTypes from '../_util/vue-types';
|
||||
import backTopTypes from './backTopTypes';
|
||||
import addEventListener from '../vc-util/Dom/addEventListener';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import PropTypes from '../_util/vue-types';
|
||||
import ScrollNumber from './ScrollNumber';
|
||||
import { PresetColorTypes } from '../_util/colors';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import { initDefaultProps, getComponent, getSlot } from '../_util/props-util';
|
||||
import { cloneElement } from '../_util/vnode';
|
||||
import getTransitionProps from '../_util/getTransitionProps';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import PropTypes from '../_util/vue-types';
|
||||
import BaseMixin from '../_util/BaseMixin';
|
||||
import omit from 'omit.js';
|
||||
|
|
|
@ -4,7 +4,7 @@ import debounce from 'lodash/debounce';
|
|||
import hasProp, { initDefaultProps, getComponent } from '../_util/props-util';
|
||||
import { ConfigConsumerProps } from '../config-provider';
|
||||
import warning from '../_util/warning';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import SlickCarousel from '../vc-slick/src';
|
||||
|
||||
export const CarouselEffect = PropTypes.oneOf(['scrollx', 'fade']);
|
||||
|
|
|
@ -2,7 +2,7 @@ import { inject, provide } from 'vue';
|
|||
import PropTypes from '../_util/vue-types';
|
||||
import VcCascader from '../vc-cascader';
|
||||
import arrayTreeFilter from 'array-tree-filter';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import omit from 'omit.js';
|
||||
import KeyCode from '../_util/KeyCode';
|
||||
import Input from '../input';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { inject } from 'vue';
|
||||
import PropTypes from '../_util/vue-types';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import VcCheckbox from '../vc-checkbox';
|
||||
import hasProp, { getOptionProps, getSlot } from '../_util/props-util';
|
||||
import { ConfigConsumerProps } from '../config-provider';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import CalendarOutlined from '@ant-design/icons-vue/CalendarOutlined';
|
||||
import { isValidElement } from '../_util/props-util';
|
||||
import { cloneElement } from '../_util/vnode';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
|
||||
const InputIcon = (_, { attrs }) => {
|
||||
const { suffixIcon, prefixCls } = attrs;
|
||||
|
|
|
@ -2,7 +2,7 @@ import { inject } from 'vue';
|
|||
import * as moment from 'moment';
|
||||
import RangeCalendar from '../vc-calendar/src/RangeCalendar';
|
||||
import VcDatePicker from '../vc-calendar/src/Picker';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import shallowequal from '../_util/shallowequal';
|
||||
import CloseCircleFilled from '@ant-design/icons-vue/CloseCircleFilled';
|
||||
import Tag from '../tag';
|
||||
|
|
|
@ -5,7 +5,7 @@ import VcDatePicker from '../vc-calendar/src/Picker';
|
|||
import CloseCircleFilled from '@ant-design/icons-vue/CloseCircleFilled';
|
||||
import { ConfigConsumerProps } from '../config-provider';
|
||||
import { hasProp, getOptionProps, initDefaultProps, getComponent } from '../_util/props-util';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import BaseMixin from '../_util/BaseMixin';
|
||||
import { WeekPickerProps } from './interface';
|
||||
import interopDefault from '../_util/interopDefault';
|
||||
|
|
|
@ -3,7 +3,7 @@ import * as moment from 'moment';
|
|||
import omit from 'lodash/omit';
|
||||
import MonthCalendar from '../vc-calendar/src/MonthCalendar';
|
||||
import VcDatePicker from '../vc-calendar/src/Picker';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import CloseCircleFilled from '@ant-design/icons-vue/CloseCircleFilled';
|
||||
import CalendarOutlined from '@ant-design/icons-vue/CalendarOutlined';
|
||||
import { ConfigConsumerProps } from '../config-provider';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { provide, inject } from 'vue';
|
||||
import TimePickerPanel from '../vc-time-picker/Panel';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import LocaleReceiver from '../locale-provider/LocaleReceiver';
|
||||
import { generateShowHourMinuteSecond } from '../time-picker';
|
||||
import enUS from './locale/en_US';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { inject, provide, nextTick } from 'vue';
|
||||
import classnames from 'classnames';
|
||||
import classnames from '../_util/classNames';
|
||||
import omit from 'omit.js';
|
||||
import VcDrawer from '../vc-drawer/src';
|
||||
import PropTypes from '../_util/vue-types';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { provide, inject } from 'vue';
|
||||
import Button from '../button';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import buttonTypes from '../button/buttonTypes';
|
||||
import { ButtonGroupProps } from '../button/button-group';
|
||||
import Dropdown from './dropdown';
|
||||
|
|
|
@ -3,7 +3,7 @@ import RcDropdown from '../vc-dropdown/src/index';
|
|||
import DropdownButton from './dropdown-button';
|
||||
import PropTypes from '../_util/vue-types';
|
||||
import { cloneElement } from '../_util/vnode';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import {
|
||||
getOptionProps,
|
||||
getPropsData,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { inject, provide } from 'vue';
|
||||
import PropTypes from '../_util/vue-types';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import { ColProps } from '../grid/Col';
|
||||
import isRegExp from 'lodash/isRegExp';
|
||||
import warning from '../_util/warning';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { inject, provide, Transition } from 'vue';
|
||||
import cloneDeep from 'lodash/cloneDeep';
|
||||
import PropTypes from '../_util/vue-types';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import getTransitionProps from '../_util/getTransitionProps';
|
||||
import Row from '../grid/Row';
|
||||
import Col, { ColProps } from '../grid/Col';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { inject } from 'vue';
|
||||
import PropTypes from '../_util/vue-types';
|
||||
import { initDefaultProps, getOptionProps } from '../_util/props-util';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import UpOutlined from '@ant-design/icons-vue/UpOutlined';
|
||||
import DownOutlined from '@ant-design/icons-vue/DownOutlined';
|
||||
import VcInputNumber from '../vc-input-number/src';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import CloseCircleFilled from '@ant-design/icons-vue/CloseCircleFilled';
|
||||
import { getInputClassName } from './Input';
|
||||
import PropTypes from '../_util/vue-types';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { inject } from 'vue';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import omit from 'omit.js';
|
||||
import inputProps from './inputProps';
|
||||
import { hasProp, getComponent, getOptionProps } from '../_util/props-util';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import { getComponent, getOptionProps } from '../_util/props-util';
|
||||
import Input from './Input';
|
||||
import EyeOutlined from '@ant-design/icons-vue/EyeOutlined';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import ResizeObserver from '../vc-resize-observer';
|
||||
import omit from 'omit.js';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import calculateNodeHeight from './calculateNodeHeight';
|
||||
import raf from '../_util/raf';
|
||||
import warning from '../_util/warning';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { inject } from 'vue';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import { isMobile } from 'is-mobile';
|
||||
import Input from './Input';
|
||||
import LoadingOutlined from '@ant-design/icons-vue/LoadingOutlined';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import { inject, provide } from 'vue';
|
||||
import PropTypes from '../_util/vue-types';
|
||||
import {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { inject, provide } from 'vue';
|
||||
import PropTypes from '../_util/vue-types';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import { getOptionProps, getSlot } from '../_util/props-util';
|
||||
import { ConfigConsumerProps } from '../config-provider';
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import PropTypes from '../_util/vue-types';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import { getComponent, isStringElement, isEmptyElement, getSlot } from '../_util/props-util';
|
||||
import { Col } from '../grid';
|
||||
import { ConfigConsumerProps } from '../config-provider';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import PropTypes from '../_util/vue-types';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import omit from 'omit.js';
|
||||
import { ConfigConsumerProps } from '../config-provider';
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { inject } from 'vue';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import omit from 'omit.js';
|
||||
import PropTypes from '../_util/vue-types';
|
||||
import VcMentions from '../vc-mentions';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { inject } from 'vue';
|
||||
import { SubMenu as VcSubMenu } from '../vc-menu';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import Omit from 'omit.js';
|
||||
import { getSlot } from '../_util/props-util';
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import Dialog from './Modal';
|
||||
import ActionButton from './ActionButton';
|
||||
import { getConfirmLocale } from './locale';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { inject } from 'vue';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import Dialog from '../vc-dialog';
|
||||
import PropTypes from '../_util/vue-types';
|
||||
import addEventListener from '../vc-util/Dom/addEventListener';
|
||||
|
|
|
@ -11,7 +11,7 @@ import DoubleLeftOutlined from '@ant-design/icons-vue/DoubleLeftOutlined';
|
|||
import DoubleRightOutlined from '@ant-design/icons-vue/DoubleRightOutlined';
|
||||
import { ConfigConsumerProps } from '../config-provider';
|
||||
import { inject } from 'vue';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
|
||||
export const PaginationProps = () => ({
|
||||
total: PropTypes.number,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { inject } from 'vue';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import PropTypes from '../_util/vue-types';
|
||||
import { getOptionProps, initDefaultProps } from '../_util/props-util';
|
||||
import { ConfigConsumerProps } from '../config-provider';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { provide, inject, nextTick } from 'vue';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import PropTypes from '../_util/vue-types';
|
||||
import Radio from './Radio';
|
||||
import { getOptionProps, filterEmpty, hasProp, getSlot } from '../_util/props-util';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { inject } from 'vue';
|
||||
import PropTypes from '../_util/vue-types';
|
||||
import VcCheckbox from '../vc-checkbox';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import { getOptionProps } from '../_util/props-util';
|
||||
import { ConfigConsumerProps } from '../config-provider';
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import PropTypes from '../_util/vue-types';
|
||||
import { initDefaultProps } from '../_util/props-util';
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { inject } from 'vue';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import PropTypes from '../_util/vue-types';
|
||||
import { initDefaultProps, hasProp } from '../_util/props-util';
|
||||
import { ConfigConsumerProps } from '../config-provider';
|
||||
|
|
|
@ -2,7 +2,7 @@ import DownOutlined from '@ant-design/icons-vue/DownOutlined';
|
|||
import Checkbox from '../checkbox';
|
||||
import Dropdown from '../dropdown';
|
||||
import Menu from '../menu';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import { SelectionCheckboxAllProps } from './interface';
|
||||
import BaseMixin from '../_util/BaseMixin';
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ import { inject, markRaw } from 'vue';
|
|||
import CaretUpFilled from '@ant-design/icons-vue/CaretUpFilled';
|
||||
import CaretDownFilled from '@ant-design/icons-vue/CaretDownFilled';
|
||||
import VcTable, { INTERNAL_COL_DEFINE } from '../vc-table';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import shallowEqual from '../_util/shallowequal';
|
||||
import FilterDropdown from './filterDropdown';
|
||||
import createStore from './createStore';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import FilterFilled from '@ant-design/icons-vue/FilterFilled';
|
||||
import Menu, { SubMenu, Item as MenuItem } from '../vc-menu';
|
||||
import closest from 'dom-closest';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import shallowequal from '../_util/shallowequal';
|
||||
import Dropdown from '../dropdown';
|
||||
import Checkbox from '../checkbox';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { inject, cloneVNode } from 'vue';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import PropTypes from '../_util/vue-types';
|
||||
import {
|
||||
getOptionProps,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { inject } from 'vue';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import PropTypes from '../_util/vue-types';
|
||||
import { getOptionProps, initDefaultProps, getComponent } from '../_util/props-util';
|
||||
import { ConfigConsumerProps } from '../config-provider';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { inject } from 'vue';
|
||||
import VcTooltip from '../vc-tooltip';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import getPlacements from './placements';
|
||||
import PropTypes from '../_util/vue-types';
|
||||
import {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import PropTypes from '../_util/vue-types';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import Lazyload from '../vc-lazy-load';
|
||||
import Checkbox from '../checkbox';
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ import { inject } from 'vue';
|
|||
import PropTypes from '../_util/vue-types';
|
||||
import { hasProp, initDefaultProps, getOptionProps, getComponent } from '../_util/props-util';
|
||||
import BaseMixin from '../_util/BaseMixin';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import List from './list';
|
||||
import Operation from './operation';
|
||||
import LocaleReceiver from '../locale-provider/LocaleReceiver';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import PropTypes from '../_util/vue-types';
|
||||
import {
|
||||
isValidElement,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import VcTreeSelect, { TreeNode, SHOW_ALL, SHOW_PARENT, SHOW_CHILD } from '../vc-tree-select';
|
||||
import { inject } from 'vue';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import { TreeSelectProps } from './interface';
|
||||
import warning from '../_util/warning';
|
||||
import { initDefaultProps, getOptionProps, getComponent, getSlot } from '../_util/props-util';
|
||||
|
|
|
@ -5,7 +5,7 @@ import FolderOpenOutlined from '@ant-design/icons-vue/FolderOpenOutlined';
|
|||
import FolderOutlined from '@ant-design/icons-vue/FolderOutlined';
|
||||
import FileOutlined from '@ant-design/icons-vue/FileOutlined';
|
||||
import PropTypes from '../_util/vue-types';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import { conductExpandParent, convertTreeToEntities } from '../vc-tree/src/util';
|
||||
import Tree, { TreeProps } from './Tree';
|
||||
import {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { inject } from 'vue';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import LoadingOutlined from '@ant-design/icons-vue/LoadingOutlined';
|
||||
import FileOutlined from '@ant-design/icons-vue/FileOutlined';
|
||||
import CaretDownFilled from '@ant-design/icons-vue/CaretDownFilled';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import uniqBy from 'lodash/uniqBy';
|
||||
import findIndex from 'lodash/findIndex';
|
||||
import VcUpload from '../vc-upload';
|
||||
|
|
|
@ -13,7 +13,7 @@ import DownloadOutlined from '@ant-design/icons-vue/DownloadOutlined';
|
|||
import EyeOutlined from '@ant-design/icons-vue/EyeOutlined';
|
||||
import Tooltip from '../tooltip';
|
||||
import Progress from '../progress';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import { UploadListProps } from './interface';
|
||||
|
||||
export default {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import PropTypes from '../../../_util/vue-types';
|
||||
import { getOptionProps } from '../../../_util/props-util';
|
||||
import cx from 'classnames';
|
||||
import cx from '../../../_util/classNames';
|
||||
import DateConstants from './DateConstants';
|
||||
import { getTitleString, getTodayTime } from '../util/';
|
||||
function noop() {}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { nextTick } from 'vue';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../../_util/classNames';
|
||||
import PropTypes from '../../_util/vue-types';
|
||||
import BaseMixin from '../../_util/BaseMixin';
|
||||
import { getOptionProps, hasProp, initDefaultProps } from '../../_util/props-util';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import classnames from 'classnames';
|
||||
import classnames from '../../_util/classNames';
|
||||
import { cloneVNode, Teleport, nextTick } from 'vue';
|
||||
import BaseMixin from '../../_util/BaseMixin';
|
||||
import { initDefaultProps, getSlot } from '../../_util/props-util';
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
import PropTypes from '../../_util/vue-types';
|
||||
import BaseMixin from '../../_util/BaseMixin';
|
||||
import { initDefaultProps, hasProp, getOptionProps } from '../../_util/props-util';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../../_util/classNames';
|
||||
import KeyCode from '../../_util/KeyCode';
|
||||
import InputHandler from './InputHandler';
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import classNames from 'classnames';
|
||||
import classNames from '../../_util/classNames';
|
||||
import { initDefaultProps, getSlot } from '../../_util/props-util';
|
||||
import { cloneElement } from '../../_util/vnode';
|
||||
import warning from '../../_util/warning';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { provide } from 'vue';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../../_util/classNames';
|
||||
import omit from 'omit.js';
|
||||
import KeyCode from '../../_util/KeyCode';
|
||||
import BaseMixin from '../../_util/BaseMixin';
|
||||
|
|
|
@ -3,7 +3,7 @@ import PropTypes from '../_util/vue-types';
|
|||
import { connect } from '../_util/store';
|
||||
import BaseMixin from '../_util/BaseMixin';
|
||||
import KeyCode from '../_util/KeyCode';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import { getKeyFromChildrenIndex, loopMenuItem, noop, isMobileDevice, menuAllProps } from './util';
|
||||
import DOMWrap from './DOMWrap';
|
||||
import { cloneElement } from '../_util/vnode';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import PropTypes from '../_util/vue-types';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import BaseMixin from '../_util/BaseMixin';
|
||||
|
||||
export default {
|
||||
|
|
|
@ -5,7 +5,7 @@ import Pager from './Pager';
|
|||
import Options from './Options';
|
||||
import LOCALE from './locale/zh_CN';
|
||||
import KEYCODE from './KeyCode';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
|
||||
function noop() {}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import PropTypes from '../../_util/vue-types';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../../_util/classNames';
|
||||
import KeyCode from '../../_util/KeyCode';
|
||||
import {
|
||||
initDefaultProps,
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { TransitionGroup } from 'vue';
|
||||
import KeyCode from '../_util/KeyCode';
|
||||
import PropTypes from '../_util/vue-types';
|
||||
import classnames from 'classnames';
|
||||
import classnames from '../_util/classNames';
|
||||
import classes from 'component-classes';
|
||||
import { Item as MenuItem, ItemGroup as MenuItemGroup } from '../vc-menu';
|
||||
import warning from 'warning';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import classnames from 'classnames';
|
||||
import classnames from '../_util/classNames';
|
||||
import raf from 'raf';
|
||||
import Trigger from '../vc-trigger';
|
||||
import PropTypes from '../_util/vue-types';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import classnames from 'classnames';
|
||||
import classnames from '../../_util/classNames';
|
||||
import { cloneElement } from '../../_util/vnode';
|
||||
import { canGoNext } from './utils/innerSliderUtils';
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import classnames from 'classnames';
|
||||
import classnames from '../../_util/classNames';
|
||||
import { cloneElement } from '../../_util/vnode';
|
||||
|
||||
const getDotCount = function(spec) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import debounce from 'lodash/debounce';
|
||||
import classnames from 'classnames';
|
||||
import classnames from '../../_util/classNames';
|
||||
import BaseMixin from '../../_util/BaseMixin';
|
||||
import defaultProps from './default-props';
|
||||
import initialState from './initial-state';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { createVNode } from 'vue';
|
||||
import classnames from 'classnames';
|
||||
import classnames from '../../_util/classNames';
|
||||
import { cloneElement } from '../../_util/vnode';
|
||||
import { flattenChildren } from '../../_util/props-util';
|
||||
import { lazyStartIndex, lazyEndIndex, getPreClones } from './utils/innerSliderUtils';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import classNames from 'classnames';
|
||||
import classNames from '../../_util/classNames';
|
||||
import PropTypes from '../../_util/vue-types';
|
||||
import BaseMixin from '../../_util/BaseMixin';
|
||||
import { getOptionProps } from '../../_util/props-util';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import classNames from 'classnames';
|
||||
import classNames from '../../_util/classNames';
|
||||
import PropTypes from '../../_util/vue-types';
|
||||
import BaseMixin from '../../_util/BaseMixin';
|
||||
import { initDefaultProps, hasProp } from '../../_util/props-util';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import classNames from 'classnames';
|
||||
import classNames from '../../../_util/classNames';
|
||||
import { isValidElement } from '../../../_util/props-util';
|
||||
|
||||
const Marks = (_, { attrs }) => {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import classNames from 'classnames';
|
||||
import classNames from '../../../_util/classNames';
|
||||
import warning from '../../../_util/warning';
|
||||
|
||||
const calcPoints = (vertical, marks, dots, step, min, max) => {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import classNames from 'classnames';
|
||||
import classNames from '../../../_util/classNames';
|
||||
import PropTypes from '../../../_util/vue-types';
|
||||
import addEventListener from '../../../vc-util/Dom/addEventListener';
|
||||
import warning from '../../../_util/warning';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { inject } from 'vue';
|
||||
import PropTypes from '../../_util/vue-types';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../../_util/classNames';
|
||||
import ColGroup from './ColGroup';
|
||||
import TableHeader from './TableHeader';
|
||||
import TableRow from './TableRow';
|
||||
|
|
|
@ -2,7 +2,7 @@ import { inject } from 'vue';
|
|||
import PropTypes from '../../_util/vue-types';
|
||||
import { measureScrollbar } from './utils';
|
||||
import BaseTable from './BaseTable';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../../_util/classNames';
|
||||
|
||||
export default {
|
||||
name: 'HeadTable',
|
||||
|
|
|
@ -3,7 +3,7 @@ import { provide, markRaw } from 'vue';
|
|||
import shallowequal from '../../_util/shallowequal';
|
||||
import merge from 'lodash/merge';
|
||||
import classes from 'component-classes';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../../_util/classNames';
|
||||
import PropTypes from '../../_util/vue-types';
|
||||
import { debounce, getDataAndAriaProps } from './utils';
|
||||
import warning from '../../_util/warning';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { inject } from 'vue';
|
||||
import PropTypes from '../../_util/vue-types';
|
||||
import get from 'lodash/get';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../../_util/classNames';
|
||||
import { isValidElement } from '../../_util/props-util';
|
||||
|
||||
function isInvalidRenderCellText(text) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import classNames from 'classnames';
|
||||
import classNames from '../../_util/classNames';
|
||||
import PropTypes from '../../_util/vue-types';
|
||||
import { connect } from '../../_util/store';
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import classNames from 'classnames';
|
||||
import classNames from '../../_util/classNames';
|
||||
import PropTypes from '../../_util/vue-types';
|
||||
import { connect } from '../../_util/store';
|
||||
import TableCell from './TableCell';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import moment from 'moment';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import PropTypes from '../_util/vue-types';
|
||||
import BaseMixin from '../_util/BaseMixin';
|
||||
import Header from './Header';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import PropTypes from '../_util/vue-types';
|
||||
import BaseMixin from '../_util/BaseMixin';
|
||||
import classnames from 'classnames';
|
||||
import classnames from '../_util/classNames';
|
||||
import raf from 'raf';
|
||||
import { findDOMNode } from '../_util/props-util';
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import moment from 'moment';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import PropTypes from '../_util/vue-types';
|
||||
import BaseMixin from '../_util/BaseMixin';
|
||||
import {
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import { inject } from 'vue';
|
||||
import { createRef } from '../util';
|
||||
import PropTypes from '../../../_util/vue-types';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../../../_util/classNames';
|
||||
import { initDefaultProps, getComponent } from '../../../_util/props-util';
|
||||
import BaseMixin from '../../../_util/BaseMixin';
|
||||
export const selectorPropTypes = () => ({
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import PropTypes from '../../_util/vue-types';
|
||||
import Trigger from '../../vc-trigger';
|
||||
import { createRef } from './util';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../../_util/classNames';
|
||||
import { getSlot } from '../../_util/props-util';
|
||||
|
||||
const BUILT_IN_PLACEMENTS = {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import classNames from 'classnames';
|
||||
import classNames from '../../../../_util/classNames';
|
||||
import PropTypes from '../../../../_util/vue-types';
|
||||
import { toTitle, UNSELECTABLE_ATTRIBUTE, UNSELECTABLE_STYLE } from '../../util';
|
||||
import { getComponent } from '../../../../_util/props-util';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import PropTypes from '../../_util/vue-types';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../../_util/classNames';
|
||||
import warning from 'warning';
|
||||
import { hasProp, initDefaultProps, getOptionProps, getSlot } from '../../_util/props-util';
|
||||
import { cloneElement } from '../../_util/vnode';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { inject, provide, Transition } from 'vue';
|
||||
import PropTypes from '../../_util/vue-types';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../../_util/classNames';
|
||||
import { getNodeChildren, mapChildren, warnOnlyTreeNode, getDataAndAria } from './util';
|
||||
import { initDefaultProps, getComponent, getSlot } from '../../_util/props-util';
|
||||
import BaseMixin from '../../_util/BaseMixin';
|
||||
|
|
|
@ -16,7 +16,7 @@ import Popup from './Popup';
|
|||
import { getAlignFromPlacement, getAlignPopupClassName, noop } from './utils';
|
||||
import BaseMixin from '../_util/BaseMixin';
|
||||
import Portal from '../_util/Portal';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../_util/classNames';
|
||||
import { cloneElement } from '../_util/vnode';
|
||||
|
||||
function returnEmptyString() {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import PropTypes from '../../_util/vue-types';
|
||||
import BaseMixin from '../../_util/BaseMixin';
|
||||
import partition from 'lodash/partition';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../../_util/classNames';
|
||||
import defaultRequest from './request';
|
||||
import getUid from './uid';
|
||||
import attrAccept from './attr-accept';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import PropTypes from '../../_util/vue-types';
|
||||
import BaseMixin from '../../_util/BaseMixin';
|
||||
import classNames from 'classnames';
|
||||
import classNames from '../../_util/classNames';
|
||||
import getUid from './uid';
|
||||
import warning from '../../_util/warning';
|
||||
import { getSlot, findDOMNode } from '../../_util/props-util';
|
||||
|
|
|
@ -191,7 +191,6 @@
|
|||
"array-tree-filter": "^2.1.0",
|
||||
"async-validator": "^3.3.0",
|
||||
"babel-helper-vue-jsx-merge-props": "^2.0.3",
|
||||
"classnames": "^2.2.5",
|
||||
"component-classes": "^1.2.6",
|
||||
"dom-align": "^1.10.4",
|
||||
"dom-closest": "^0.2.0",
|
||||
|
|
Loading…
Reference in New Issue