All files / src/layout/SubtabLayout/props propTypes.js

100% Statements 4/4
100% Branches 0/0
100% Functions 0/0
100% Lines 4/4

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45    1x                                 1x                         1x               1x        
import PropTypes from 'prop-types';
 
export const SubtabHeader_propTypes = {
  children: PropTypes.element,
  className: PropTypes.string,
  dataId: PropTypes.string,
  getLeftPlaceHolder: PropTypes.oneOf([PropTypes.func, PropTypes.object]),
  getRightPlaceHolder: PropTypes.func,
  isPeekView: PropTypes.bool,
  label: PropTypes.string,
  leftClassName: PropTypes.string,
  needBorderShadow: PropTypes.bool,
  needPlusIconLine: PropTypes.bool,
  onAdd: PropTypes.func,
  rightClassName: PropTypes.string,
  title: PropTypes.string,
  type: PropTypes.oneOf(['primary', 'secondary', 'tertiary'])
};
 
export const SubtabFooter_propTypes = {
  children: PropTypes.node,
  className: PropTypes.string,
  dataId: PropTypes.string,
  getRightFooterPlaceHolder: PropTypes.func,
  isPeekView: PropTypes.bool,
  leftClassName: PropTypes.string,
  needPadding: PropTypes.bool,
  rightClassName: PropTypes.string,
  size: PropTypes.oneOf('medium', 'large', 'xlarge'),
  type: PropTypes.oneOf(['primary', 'secondary', 'tertiary'])
};
 
export const SubtabContent_propTypes = {
  children: PropTypes.oneOf([PropTypes.element, PropTypes.array]),
  className: PropTypes.element,
  dataId: PropTypes.string,
  eleRef: PropTypes.func,
  scroll: PropTypes.oneOf(['vertical'])
};
 
export const SubtabLayout_propTypes = {
  children: PropTypes.oneOfType([PropTypes.element, PropTypes.array]),
  dataId: PropTypes.string
};