Browse Source

refactor: move ConfigConsumerProps to own file (#3524)

pull/3586/head
Luka Jeran 4 years ago committed by GitHub
parent
commit
1e2814608d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      components/_util/wave.jsx
  2. 2
      components/affix/index.jsx
  3. 2
      components/alert/index.jsx
  4. 2
      components/anchor/Anchor.jsx
  5. 2
      components/anchor/AnchorLink.jsx
  6. 2
      components/auto-complete/index.jsx
  7. 2
      components/avatar/Avatar.jsx
  8. 2
      components/back-top/index.jsx
  9. 2
      components/badge/Badge.jsx
  10. 2
      components/badge/ScrollNumber.jsx
  11. 2
      components/breadcrumb/Breadcrumb.jsx
  12. 2
      components/breadcrumb/BreadcrumbItem.jsx
  13. 2
      components/breadcrumb/BreadcrumbSeparator.jsx
  14. 2
      components/button/button-group.jsx
  15. 2
      components/button/button.jsx
  16. 2
      components/calendar/Header.jsx
  17. 2
      components/calendar/index.jsx
  18. 2
      components/card/Card.jsx
  19. 2
      components/card/Grid.jsx
  20. 2
      components/card/Meta.jsx
  21. 2
      components/carousel/index.jsx
  22. 2
      components/cascader/index.jsx
  23. 2
      components/checkbox/Checkbox.jsx
  24. 2
      components/checkbox/Group.jsx
  25. 2
      components/collapse/Collapse.jsx
  26. 2
      components/collapse/CollapsePanel.jsx
  27. 2
      components/color-picker/ColorPicker.jsx
  28. 2
      components/comment/index.jsx
  29. 9
      components/config-provider/configConsumerProps.jsx
  30. 8
      components/config-provider/index.jsx
  31. 2
      components/config-provider/renderEmpty.jsx
  32. 2
      components/date-picker/RangePicker.jsx
  33. 2
      components/date-picker/WeekPicker.jsx
  34. 2
      components/date-picker/createPicker.js
  35. 2
      components/date-picker/wrapPicker.js
  36. 2
      components/descriptions/index.jsx
  37. 2
      components/divider/index.jsx
  38. 2
      components/drawer/index.jsx
  39. 2
      components/dropdown/dropdown-button.jsx
  40. 2
      components/dropdown/dropdown.jsx
  41. 2
      components/empty/index.jsx
  42. 2
      components/form-model/Form.jsx
  43. 2
      components/form-model/FormItem.jsx
  44. 2
      components/form/Form.jsx
  45. 2
      components/form/FormItem.jsx
  46. 2
      components/grid/Col.jsx
  47. 2
      components/grid/Row.jsx
  48. 2
      components/input-number/index.jsx
  49. 2
      components/input/Group.jsx
  50. 2
      components/input/Input.jsx
  51. 2
      components/input/Search.jsx
  52. 2
      components/input/TextArea.jsx
  53. 2
      components/layout/Sider.jsx
  54. 2
      components/layout/layout.jsx
  55. 2
      components/list/Item.jsx
  56. 2
      components/list/index.jsx
  57. 2
      components/mentions/index.jsx
  58. 2
      components/menu/index.jsx
  59. 2
      components/modal/Modal.jsx
  60. 2
      components/page-header/index.jsx
  61. 2
      components/pagination/Pagination.jsx
  62. 2
      components/popconfirm/index.jsx
  63. 2
      components/popover/index.jsx
  64. 2
      components/progress/progress.jsx
  65. 2
      components/radio/Group.jsx
  66. 2
      components/radio/Radio.jsx
  67. 2
      components/radio/RadioButton.jsx
  68. 2
      components/rate/index.jsx
  69. 2
      components/result/index.jsx
  70. 2
      components/select/index.jsx
  71. 2
      components/skeleton/index.jsx
  72. 2
      components/slider/index.jsx
  73. 2
      components/space/index.jsx
  74. 2
      components/spin/Spin.jsx
  75. 2
      components/statistic/Statistic.jsx
  76. 2
      components/steps/index.jsx
  77. 2
      components/switch/index.jsx
  78. 2
      components/table/Table.jsx
  79. 2
      components/tabs/tabs.jsx
  80. 2
      components/tag/CheckableTag.jsx
  81. 2
      components/tag/Tag.jsx
  82. 2
      components/time-picker/index.jsx
  83. 2
      components/timeline/Timeline.jsx
  84. 2
      components/timeline/TimelineItem.jsx
  85. 2
      components/tooltip/Tooltip.jsx
  86. 2
      components/transfer/index.jsx
  87. 2
      components/tree-select/index.jsx
  88. 2
      components/tree/DirectoryTree.jsx
  89. 2
      components/tree/Tree.jsx
  90. 2
      components/upload/Upload.jsx
  91. 2
      components/upload/UploadList.jsx

2
components/_util/wave.jsx

@ -1,6 +1,6 @@
import TransitionEvents from './css-animation/Event';
import raf from './raf';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
let styleForPesudo;
// Where el is the DOM element you'd like to test for visibility

2
components/affix/index.jsx

@ -4,7 +4,7 @@ import omit from 'omit.js';
import ResizeObserver from '../vc-resize-observer';
import BaseMixin from '../_util/BaseMixin';
import throttleByAnimationFrame from '../_util/throttleByAnimationFrame';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import Base from '../base';
import warning from '../_util/warning';
import {

2
components/alert/index.jsx

@ -5,7 +5,7 @@ import PropTypes from '../_util/vue-types';
import getTransitionProps from '../_util/getTransitionProps';
import { getComponentFromProp, isValidElement } from '../_util/props-util';
import { cloneElement } from '../_util/vnode';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import Base from '../base';
function noop() {}

2
components/anchor/Anchor.jsx

@ -6,7 +6,7 @@ import scrollTo from '../_util/scrollTo';
import getScroll from '../_util/getScroll';
import { initDefaultProps } from '../_util/props-util';
import BaseMixin from '../_util/BaseMixin';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
function getDefaultContainer() {
return window;

2
components/anchor/AnchorLink.jsx

@ -1,7 +1,7 @@
import PropTypes from '../_util/vue-types';
import { initDefaultProps, getComponentFromProp } from '../_util/props-util';
import classNames from 'classnames';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
export const AnchorLinkProps = {
prefixCls: PropTypes.string,

2
components/auto-complete/index.jsx

@ -3,7 +3,7 @@ import Select, { AbstractSelectProps, SelectValue } from '../select';
import Input from '../input';
import InputElement from './InputElement';
import PropTypes from '../_util/vue-types';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import {
getComponentFromProp,
getOptionProps,

2
components/avatar/Avatar.jsx

@ -1,4 +1,4 @@
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import Icon from '../icon';
import { getListeners, getComponentFromProp } from '../_util/props-util';
import PropTypes from '../_util/vue-types';

2
components/back-top/index.jsx

@ -3,7 +3,7 @@ import addEventListener from '../vc-util/Dom/addEventListener';
import getScroll from '../_util/getScroll';
import BaseMixin from '../_util/BaseMixin';
import getTransitionProps from '../_util/getTransitionProps';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import Base from '../base';
import { getListeners } from '../_util/props-util';
import scrollTo from '../_util/scrollTo';

2
components/badge/Badge.jsx

@ -11,7 +11,7 @@ import {
import { cloneElement } from '../_util/vnode';
import getTransitionProps from '../_util/getTransitionProps';
import isNumeric from '../_util/isNumeric';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
const BadgeProps = {
/** Number to show in badge */

2
components/badge/ScrollNumber.jsx

@ -4,7 +4,7 @@ import BaseMixin from '../_util/BaseMixin';
import { getStyle } from '../_util/props-util';
import omit from 'omit.js';
import { cloneElement } from '../_util/vnode';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
function getNumberArray(num) {
return num

2
components/breadcrumb/Breadcrumb.jsx

@ -2,7 +2,7 @@ import PropTypes from '../_util/vue-types';
import { cloneElement } from '../_util/vnode';
import { filterEmpty, getComponentFromProp, getSlotOptions } from '../_util/props-util';
import warning from '../_util/warning';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import BreadcrumbItem from './BreadcrumbItem';
import Menu from '../menu';

2
components/breadcrumb/BreadcrumbItem.jsx

@ -1,6 +1,6 @@
import PropTypes from '../_util/vue-types';
import { hasProp, getComponentFromProp } from '../_util/props-util';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import DropDown from '../dropdown/dropdown';
import Icon from '../icon';

2
components/breadcrumb/BreadcrumbSeparator.jsx

@ -1,4 +1,4 @@
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import PropTypes from '../_util/vue-types';
export default {

2
components/button/button-group.jsx

@ -1,6 +1,6 @@
import { filterEmpty } from '../_util/props-util';
import PropTypes from '../_util/vue-types';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
const ButtonGroupProps = {
prefixCls: PropTypes.string,

2
components/button/button.jsx

@ -2,7 +2,7 @@ import Wave from '../_util/wave';
import Icon from '../icon';
import buttonTypes from './buttonTypes';
import { filterEmpty, getListeners, getComponentFromProp } from '../_util/props-util';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
const rxTwoCNChar = /^[\u4e00-\u9fa5]{2}$/;
const isTwoCNChar = rxTwoCNChar.test.bind(rxTwoCNChar);

2
components/calendar/Header.jsx

@ -2,7 +2,7 @@ import Select from '../select';
import { Group, Button } from '../radio';
import PropTypes from '../_util/vue-types';
import { initDefaultProps } from '../_util/props-util';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
const { Option } = Select;

2
components/calendar/index.jsx

@ -6,7 +6,7 @@ import FullCalendar from '../vc-calendar/src/FullCalendar';
import Header from './Header';
import LocaleReceiver from '../locale-provider/LocaleReceiver';
import interopDefault from '../_util/interopDefault';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import enUS from './locale/en_US';
import Base from '../base';
import { checkValidate, stringToMoment, momentToString, TimeType } from '../_util/moment-util';

2
components/card/Card.jsx

@ -10,7 +10,7 @@ import {
getListeners,
} from '../_util/props-util';
import BaseMixin from '../_util/BaseMixin';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
const { TabPane } = Tabs;
export default {

2
components/card/Grid.jsx

@ -1,5 +1,5 @@
import PropTypes from '../_util/vue-types';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import { getListeners } from '../_util/props-util';
export default {

2
components/card/Meta.jsx

@ -1,6 +1,6 @@
import PropTypes from '../_util/vue-types';
import { getComponentFromProp, getListeners } from '../_util/props-util';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
export default {
name: 'ACardMeta',

2
components/carousel/index.jsx

@ -6,7 +6,7 @@ import hasProp, {
filterEmpty,
getListeners,
} from '../_util/props-util';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import Base from '../base';
import warning from '../_util/warning';
import classNames from 'classnames';

2
components/cascader/index.jsx

@ -20,7 +20,7 @@ import {
import BaseMixin from '../_util/BaseMixin';
import { cloneElement } from '../_util/vnode';
import warning from '../_util/warning';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import Base from '../base';
const CascaderOptionType = PropTypes.shape({

2
components/checkbox/Checkbox.jsx

@ -2,7 +2,7 @@ import PropTypes from '../_util/vue-types';
import classNames from 'classnames';
import VcCheckbox from '../vc-checkbox';
import hasProp, { getOptionProps, getAttrs, getListeners } from '../_util/props-util';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import warning from '../_util/warning';
function noop() {}

2
components/checkbox/Group.jsx

@ -1,7 +1,7 @@
import PropTypes from '../_util/vue-types';
import Checkbox from './Checkbox';
import hasProp from '../_util/props-util';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
function noop() {}
export default {

2
components/collapse/Collapse.jsx

@ -9,7 +9,7 @@ import {
import { cloneElement } from '../_util/vnode';
import VcCollapse, { collapseProps } from '../vc-collapse';
import Icon from '../icon';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
export default {
name: 'ACollapse',

2
components/collapse/CollapsePanel.jsx

@ -1,6 +1,6 @@
import { getOptionProps, getComponentFromProp, getListeners } from '../_util/props-util';
import VcCollapse, { panelProps } from '../vc-collapse';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
export default {
name: 'ACollapsePanel',

2
components/color-picker/ColorPicker.jsx

@ -1,5 +1,5 @@
import PropTypes from '../_util/vue-types';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import BaseMixin from '../_util/BaseMixin';
import Pickr from '@simonwep/pickr/dist/pickr.es5.min';
import Icon from '../icon';

2
components/comment/index.jsx

@ -1,6 +1,6 @@
import PropsTypes from '../_util/vue-types';
import { getComponentFromProp, getListeners } from '../_util/props-util';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import Base from '../base';
export const CommentProps = {
actions: PropsTypes.array,

9
components/config-provider/configConsumerProps.jsx

@ -0,0 +1,9 @@
import defaultRenderEmpty from './renderEmpty';
export const ConfigConsumerProps = {
getPrefixCls: (suffixCls, customizePrefixCls) => {
if (customizePrefixCls) return customizePrefixCls;
return `ant-${suffixCls}`;
},
renderEmpty: defaultRenderEmpty,
};

8
components/config-provider/index.jsx

@ -82,14 +82,6 @@ const ConfigProvider = {
},
};
export const ConfigConsumerProps = {
getPrefixCls: (suffixCls, customizePrefixCls) => {
if (customizePrefixCls) return customizePrefixCls;
return `ant-${suffixCls}`;
},
renderEmpty: defaultRenderEmpty,
};
/* istanbul ignore next */
ConfigProvider.install = function(Vue) {
Vue.use(Base);

2
components/config-provider/renderEmpty.jsx

@ -1,6 +1,6 @@
import PropTypes from '../_util/vue-types';
import Empty from '../empty';
import { ConfigConsumerProps } from './';
import { ConfigConsumerProps } from './configConsumerProps';
const RenderEmpty = {
functional: true,

2
components/date-picker/RangePicker.jsx

@ -5,7 +5,7 @@ import classNames from 'classnames';
import shallowequal from 'shallowequal';
import Icon from '../icon';
import Tag from '../tag';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import interopDefault from '../_util/interopDefault';
import { RangePickerProps } from './interface';
import {

2
components/date-picker/WeekPicker.jsx

@ -2,7 +2,7 @@ import * as moment from 'moment';
import Calendar from '../vc-calendar';
import VcDatePicker from '../vc-calendar/src/Picker';
import Icon from '../icon';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import {
hasProp,
getOptionProps,

2
components/date-picker/createPicker.js

@ -4,7 +4,7 @@ import MonthCalendar from '../vc-calendar/src/MonthCalendar';
import VcDatePicker from '../vc-calendar/src/Picker';
import classNames from 'classnames';
import Icon from '../icon';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import interopDefault from '../_util/interopDefault';
import BaseMixin from '../_util/BaseMixin';
import {

2
components/date-picker/wrapPicker.js

@ -4,7 +4,7 @@ import LocaleReceiver from '../locale-provider/LocaleReceiver';
import { generateShowHourMinuteSecond } from '../time-picker';
import enUS from './locale/en_US';
import { getOptionProps, initDefaultProps, getListeners } from '../_util/props-util';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import { checkValidate, stringToMoment, momentToString } from '../_util/moment-util';
const DEFAULT_FORMAT = {

2
components/descriptions/index.jsx

@ -1,6 +1,6 @@
import warning from '../_util/warning';
import ResponsiveObserve, { responsiveArray } from '../_util/responsiveObserve';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import Col from './Col';
import PropTypes from '../_util/vue-types';
import {

2
components/divider/index.jsx

@ -1,5 +1,5 @@
import PropTypes from '../_util/vue-types';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import Base from '../base';
const Divider = {

2
components/drawer/index.jsx

@ -5,7 +5,7 @@ import PropTypes from '../_util/vue-types';
import BaseMixin from '../_util/BaseMixin';
import Icon from '../icon';
import { getComponentFromProp, getOptionProps, getListeners } from '../_util/props-util';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import Base from '../base';
const Drawer = {

2
components/dropdown/dropdown-button.jsx

@ -5,7 +5,7 @@ import Dropdown from './dropdown';
import PropTypes from '../_util/vue-types';
import { hasProp, getComponentFromProp } from '../_util/props-util';
import getDropdownProps from './getDropdownProps';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import Icon from '../icon';
const ButtonTypesProps = buttonTypes();

2
components/dropdown/dropdown.jsx

@ -9,7 +9,7 @@ import {
getListeners,
} from '../_util/props-util';
import getDropdownProps from './getDropdownProps';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import Icon from '../icon';
const DropdownProps = getDropdownProps();

2
components/empty/index.jsx

@ -1,5 +1,5 @@
import PropTypes from '../_util/vue-types';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import { getComponentFromProp, getListeners } from '../_util/props-util';
import LocaleReceiver from '../locale-provider/LocaleReceiver';
import DefaultEmptyImg from './empty';

2
components/form-model/Form.jsx

@ -5,7 +5,7 @@ import isRegExp from 'lodash/isRegExp';
import warning from '../_util/warning';
import FormItem from './FormItem';
import { initDefaultProps, getListeners } from '../_util/props-util';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
export const FormProps = {
layout: PropTypes.oneOf(['horizontal', 'inline', 'vertical']),

2
components/form-model/FormItem.jsx

@ -11,7 +11,7 @@ import {
isValidElement,
} from '../_util/props-util';
import BaseMixin from '../_util/BaseMixin';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import FormItem from '../form/FormItem';
import { cloneElement } from '../_util/vnode';

2
components/form/Form.jsx

@ -9,7 +9,7 @@ import createFormField from '../vc-form/src/createFormField';
import FormItem from './FormItem';
import { FIELD_META_PROP, FIELD_DATA_PROP } from './constants';
import { initDefaultProps, getListeners } from '../_util/props-util';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import Base from '../base';
export const FormCreateOption = {

2
components/form/FormItem.jsx

@ -17,7 +17,7 @@ import getTransitionProps from '../_util/getTransitionProps';
import BaseMixin from '../_util/BaseMixin';
import { cloneElement, cloneVNodes } from '../_util/vnode';
import Icon from '../icon';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
function noop() {}

2
components/grid/Col.jsx

@ -1,5 +1,5 @@
import PropTypes from '../_util/vue-types';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import { getListeners } from '../_util/props-util';
const stringOrNumber = PropTypes.oneOfType([PropTypes.string, PropTypes.number]);

2
components/grid/Row.jsx

@ -1,6 +1,6 @@
import PropTypes from '../_util/vue-types';
import BaseMixin from '../_util/BaseMixin';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import ResponsiveObserve from '../_util/responsiveObserve';
const RowProps = {

2
components/input-number/index.jsx

@ -3,7 +3,7 @@ import { initDefaultProps, getOptionProps, getListeners } from '../_util/props-u
import classNames from 'classnames';
import Icon from '../icon';
import VcInputNumber from '../vc-input-number/src';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import Base from '../base';
export const InputNumberProps = {

2
components/input/Group.jsx

@ -1,6 +1,6 @@
import PropTypes from '../_util/vue-types';
import { filterEmpty, getListeners } from '../_util/props-util';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
export default {
name: 'AInputGroup',

2
components/input/Input.jsx

@ -3,7 +3,7 @@ import TextArea from './TextArea';
import omit from 'omit.js';
import inputProps from './inputProps';
import { hasProp, getComponentFromProp, getListeners, getOptionProps } from '../_util/props-util';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import ClearableLabeledInput from './ClearableLabeledInput';
function noop() {}

2
components/input/Search.jsx

@ -7,7 +7,7 @@ import Button from '../button';
import { cloneElement } from '../_util/vnode';
import PropTypes from '../_util/vue-types';
import { getOptionProps, getComponentFromProp, getListeners } from '../_util/props-util';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
export default {
name: 'AInputSearch',

2
components/input/TextArea.jsx

@ -2,7 +2,7 @@ import ClearableLabeledInput from './ClearableLabeledInput';
import ResizableTextArea from './ResizableTextArea';
import inputProps from './inputProps';
import hasProp, { getListeners, getOptionProps } from '../_util/props-util';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import { fixControlledValue, resolveOnChange } from './Input';
import PropTypes from '../_util/vue-types';

2
components/layout/Sider.jsx

@ -9,7 +9,7 @@ import {
} from '../_util/props-util';
import BaseMixin from '../_util/BaseMixin';
import isNumeric from '../_util/isNumeric';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import Icon from '../icon';
// matchMedia polyfill for

2
components/layout/layout.jsx

@ -1,7 +1,7 @@
import PropTypes from '../_util/vue-types';
import classNames from 'classnames';
import { getOptionProps, getListeners } from '../_util/props-util';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
export const BasicProps = {
prefixCls: PropTypes.string,

2
components/list/Item.jsx

@ -7,7 +7,7 @@ import {
isEmptyElement,
} from '../_util/props-util';
import { Col } from '../grid';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import { ListGridType } from './index';
import { cloneElement } from '../_util/vnode';

2
components/list/index.jsx

@ -1,7 +1,7 @@
import PropTypes from '../_util/vue-types';
import classNames from 'classnames';
import omit from 'omit.js';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import Spin from '../spin';
import Pagination, { PaginationConfig } from '../pagination';

2
components/mentions/index.jsx

@ -6,7 +6,7 @@ import { mentionsProps } from '../vc-mentions/src/mentionsProps';
import Base from '../base';
import Spin from '../spin';
import BaseMixin from '../_util/BaseMixin';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import {
getOptionProps,
getComponentFromProp,

2
components/menu/index.jsx

@ -8,7 +8,7 @@ import Item from './MenuItem';
import { hasProp, getListeners, getOptionProps } from '../_util/props-util';
import BaseMixin from '../_util/BaseMixin';
import commonPropsType from '../vc-menu/commonPropsType';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import Base from '../base';
// import raf from '../_util/raf';

2
components/modal/Modal.jsx

@ -16,7 +16,7 @@ import {
mergeProps,
getListeners,
} from '../_util/props-util';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
let mousePosition = null;
// ref: https://github.com/ant-design/ant-design/issues/15795

2
components/page-header/index.jsx

@ -1,6 +1,6 @@
import PropTypes from '../_util/vue-types';
import { getComponentFromProp, getOptionProps } from '../_util/props-util';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import Icon from '../icon';
import Breadcrumb from '../breadcrumb';
import Avatar from '../avatar';

2
components/pagination/Pagination.jsx

@ -6,7 +6,7 @@ import { getOptionProps, getListeners } from '../_util/props-util';
import VcPagination from '../vc-pagination';
import enUS from '../vc-pagination/locale/en_US';
import Icon from '../icon';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
export const PaginationProps = () => ({
total: PropTypes.number,

2
components/popconfirm/index.jsx

@ -9,7 +9,7 @@ import Icon from '../icon';
import Button from '../button';
import LocaleReceiver from '../locale-provider/LocaleReceiver';
import defaultLocale from '../locale-provider/default';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import Base from '../base';
const tooltipProps = abstractTooltipProps();

2
components/popover/index.jsx

@ -2,7 +2,7 @@ import Tooltip from '../tooltip';
import abstractTooltipProps from '../tooltip/abstractTooltipProps';
import PropTypes from '../_util/vue-types';
import { getOptionProps, getComponentFromProp, getListeners } from '../_util/props-util';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import Base from '../base';
const props = abstractTooltipProps();

2
components/progress/progress.jsx

@ -1,7 +1,7 @@
import classNames from 'classnames';
import PropTypes from '../_util/vue-types';
import { getOptionProps, initDefaultProps, getListeners } from '../_util/props-util';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import Icon from '../icon';
import Line from './line';
import Circle from './circle';

2
components/radio/Group.jsx

@ -2,7 +2,7 @@ import classNames from 'classnames';
import PropTypes from '../_util/vue-types';
import Radio from './Radio';
import { getOptionProps, filterEmpty, hasProp, getListeners } from '../_util/props-util';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
function noop() {}
export default {

2
components/radio/Radio.jsx

@ -2,7 +2,7 @@ import PropTypes from '../_util/vue-types';
import VcCheckbox from '../vc-checkbox';
import classNames from 'classnames';
import { getOptionProps, getAttrs, getListeners } from '../_util/props-util';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
function noop() {}

2
components/radio/RadioButton.jsx

@ -1,6 +1,6 @@
import Radio from './Radio';
import { getOptionProps, getListeners } from '../_util/props-util';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
export default {
name: 'ARadioButton',

2
components/rate/index.jsx

@ -1,7 +1,7 @@
import omit from 'omit.js';
import PropTypes from '../_util/vue-types';
import { getOptionProps, getComponentFromProp, getListeners } from '../_util/props-util';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import VcRate from '../vc-rate';
import Icon from '../icon';
import Tooltip from '../tooltip';

2
components/result/index.jsx

@ -1,6 +1,6 @@
import PropTypes from '../_util/vue-types';
import { getComponentFromProp } from '../_util/props-util';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import Icon from '../icon';
import Base from '../base';
import noFound from './noFound';

2
components/select/index.jsx

@ -2,7 +2,7 @@ import warning from '../_util/warning';
import omit from 'omit.js';
import PropTypes from '../_util/vue-types';
import { Select as VcSelect, Option, OptGroup } from '../vc-select';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import {
getComponentFromProp,
getOptionProps,

2
components/skeleton/index.jsx

@ -1,7 +1,7 @@
import classNames from 'classnames';
import PropTypes from '../_util/vue-types';
import { initDefaultProps, hasProp } from '../_util/props-util';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import Avatar, { SkeletonAvatarProps } from './Avatar';
import Title, { SkeletonTitleProps } from './Title';
import Paragraph, { SkeletonParagraphProps } from './Paragraph';

2
components/slider/index.jsx

@ -6,7 +6,7 @@ import VcRange from '../vc-slider/src/Range';
import VcHandle from '../vc-slider/src/Handle';
import Tooltip from '../tooltip';
import Base from '../base';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import abstractTooltipProps from '../tooltip/abstractTooltipProps';
// export interface SliderMarks {

2
components/space/index.jsx

@ -1,6 +1,6 @@
import PropTypes from '../_util/vue-types';
import { filterEmpty, initDefaultProps } from '../_util/props-util';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
export const SpaceSizeType = PropTypes.oneOfType([
PropTypes.number,

2
components/spin/Spin.jsx

@ -9,7 +9,7 @@ import {
getListeners,
} from '../_util/props-util';
import { cloneElement } from '../_util/vnode';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
export const SpinSize = PropTypes.oneOf(['small', 'default', 'large']);

2
components/statistic/Statistic.jsx

@ -1,6 +1,6 @@
import PropTypes from '../_util/vue-types';
import { getComponentFromProp, initDefaultProps } from '../_util/props-util';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import StatisticNumber from './Number';
export const StatisticProps = {

2
components/steps/index.jsx

@ -2,7 +2,7 @@ import PropTypes from '../_util/vue-types';
import { initDefaultProps, getOptionProps, getListeners } from '../_util/props-util';
import VcSteps from '../vc-steps';
import Icon from '../icon';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import Base from '../base';
const getStepsProps = (defaultProps = {}) => {

2
components/switch/index.jsx

@ -3,7 +3,7 @@ import hasProp, { getOptionProps, getComponentFromProp, getListeners } from '../
import VcSwitch from '../vc-switch';
import Wave from '../_util/wave';
import Icon from '../icon';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import Base from '../base';
import warning from '../_util/warning';

2
components/table/Table.jsx

@ -11,7 +11,7 @@ import createBodyRow from './createBodyRow';
import { flatArray, treeMap, flatFilter } from './util';
import { initDefaultProps, mergeProps, getOptionProps, getListeners } from '../_util/props-util';
import BaseMixin from '../_util/BaseMixin';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import { TableProps } from './interface';
import Pagination from '../pagination';
import Icon from '../icon';

2
components/tabs/tabs.jsx

@ -11,7 +11,7 @@ import {
} from '../_util/props-util';
import { cloneElement } from '../_util/vnode';
import isValid from '../_util/isValid';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import TabBar from './TabBar';
export default {

2
components/tag/CheckableTag.jsx

@ -1,5 +1,5 @@
import PropTypes from '../_util/vue-types';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
export default {
name: 'ACheckableTag',

2
components/tag/Tag.jsx

@ -5,7 +5,7 @@ import omit from 'omit.js';
import Wave from '../_util/wave';
import { hasProp, getListeners, getOptionProps } from '../_util/props-util';
import BaseMixin from '../_util/BaseMixin';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import warning from '../_util/warning';
const PresetColorTypes = [

2
components/time-picker/index.jsx

@ -15,7 +15,7 @@ import {
getListeners,
} from '../_util/props-util';
import { cloneElement } from '../_util/vnode';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import Base from '../base';
import {
checkValidate,

2
components/timeline/Timeline.jsx

@ -11,7 +11,7 @@ import {
import { cloneElement } from '../_util/vnode';
import TimelineItem from './TimelineItem';
import Icon from '../icon';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
export const TimelineProps = {
prefixCls: PropTypes.string,

2
components/timeline/TimelineItem.jsx

@ -6,7 +6,7 @@ import {
getComponentFromProp,
getListeners,
} from '../_util/props-util';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
export const TimeLineItemProps = {
prefixCls: PropTypes.string,

2
components/tooltip/Tooltip.jsx

@ -10,7 +10,7 @@ import {
isValidElement,
getListeners,
} from '../_util/props-util';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import abstractTooltipProps from './abstractTooltipProps';
const splitObject = (obj, keys) => {

2
components/transfer/index.jsx

@ -12,7 +12,7 @@ import List from './list';
import Operation from './operation';
import LocaleReceiver from '../locale-provider/LocaleReceiver';
import defaultLocale from '../locale-provider/default';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import warning from '../_util/warning';
import Base from '../base';

2
components/tree-select/index.jsx

@ -9,7 +9,7 @@ import {
filterEmpty,
getListeners,
} from '../_util/props-util';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import Base from '../base';
export { TreeData, TreeSelectProps } from './interface';

2
components/tree/DirectoryTree.jsx

@ -18,7 +18,7 @@ import {
getListeners,
getComponentFromProp,
} from '../_util/props-util';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
// export type ExpandAction = false | 'click' | 'dblclick'; export interface
// DirectoryTreeProps extends TreeProps { expandAction?: ExpandAction; }

2
components/tree/Tree.jsx

@ -10,7 +10,7 @@ import {
getListeners,
} from '../_util/props-util';
import { cloneElement } from '../_util/vnode';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import Icon from '../icon';
function TreeProps() {

2
components/upload/Upload.jsx

@ -7,7 +7,7 @@ import BaseMixin from '../_util/BaseMixin';
import { getOptionProps, initDefaultProps, hasProp, getListeners } from '../_util/props-util';
import LocaleReceiver from '../locale-provider/LocaleReceiver';
import defaultLocale from '../locale-provider/default';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import Dragger from './Dragger';
import UploadList from './UploadList';
import { UploadProps } from './interface';

2
components/upload/UploadList.jsx

@ -1,7 +1,7 @@
import BaseMixin from '../_util/BaseMixin';
import { getOptionProps, initDefaultProps, getListeners } from '../_util/props-util';
import getTransitionProps from '../_util/getTransitionProps';
import { ConfigConsumerProps } from '../config-provider';
import { ConfigConsumerProps } from '../config-provider/configConsumerProps';
import { previewImage, isImageUrl } from './utils';
import Icon from '../icon';
import Tooltip from '../tooltip';

Loading…
Cancel
Save