Mark refs to private (#7600)

pull/7572/merge
Wei Zhu 7 years ago committed by 偏右
parent b59d776554
commit 047f62e9b4

@ -69,7 +69,6 @@ export default class Affix extends React.Component<AffixProps, any> {
scrollEvent: any;
resizeEvent: any;
timeout: any;
fixedNode: HTMLElement;
events = [
'resize',
@ -83,6 +82,8 @@ export default class Affix extends React.Component<AffixProps, any> {
eventHandlers = {};
private fixedNode: HTMLElement;
constructor(props) {
super(props);
this.state = {

@ -95,7 +95,7 @@ export default class Anchor extends React.Component<AnchorProps, any> {
antAnchor: PropTypes.object,
};
inkNode: HTMLElement;
private inkNode: HTMLElement;
private links: String[];
private scrollEvent: any;

@ -24,7 +24,7 @@ export default class Header extends React.Component<HeaderProps, any> {
yearSelectTotal: 20,
};
calenderHeaderNode: any;
private calenderHeaderNode: any;
getYearSelectElement(year) {
const { yearSelectOffset, yearSelectTotal, locale, prefixCls, fullscreen } = this.props;

@ -36,12 +36,12 @@ export interface CardProps {
export default class Card extends Component<CardProps, {}> {
static Grid: typeof Grid = Grid;
static Meta: typeof Meta = Meta;
container: HTMLDivElement;
resizeEvent: any;
updateWiderPaddingCalled: boolean;
state = {
widerPadding: false,
};
private container: HTMLDivElement;
componentDidMount() {
this.updateWiderPadding();
this.resizeEvent = addEventListener(window, 'resize', this.updateWiderPadding);

@ -74,10 +74,10 @@ export default class Carousel extends React.Component<CarouselProps, any> {
draggable: false,
};
slick: any;
innerSlider: any;
private slick: any;
constructor() {
super();
this.onWindowResized = debounce(this.onWindowResized, 500, {

@ -108,7 +108,7 @@ export default class Cascader extends React.Component<CascaderProps, any> {
cachedOptions: CascaderOptionType[];
input: Input;
private input: Input;
constructor(props) {
super(props);

@ -15,7 +15,7 @@ export default class Search extends React.Component<SearchProps, any> {
enterButton: false,
};
input: Input;
private input: Input;
onSearch = () => {
const { onSearch } = this.props;

@ -37,11 +37,13 @@ export default class TextArea extends React.Component<TextAreaProps & HTMLTextar
};
nextFrameActionId: number;
textAreaRef: HTMLTextAreaElement;
state = {
textareaStyles: null,
};
private textAreaRef: HTMLTextAreaElement;
componentDidMount() {
this.resizeTextarea();
}

@ -88,7 +88,6 @@ export default class List extends Component<ListProps> {
scrollEvent: any;
resizeEvent: any;
timeout: any;
node: any;
events = [
'resize',
@ -102,6 +101,8 @@ export default class List extends Component<ListProps> {
infiniteLoaded = false;
eventHandlers = {};
private node: any;
getChildContext() {
return {
grid: this.props.grid,

@ -23,7 +23,7 @@ abstract class Popconfirm extends React.Component<PopconfirmProps, any> {
okType: 'primary',
};
tooltip: Tooltip;
private tooltip: Tooltip;
constructor(props: PopconfirmProps) {
super(props);

@ -19,7 +19,7 @@ export default class Popover extends React.Component<PopoverProps, any> {
overlayStyle: {},
};
tooltip: Tooltip;
private tooltip: Tooltip;
getPopupDomNode() {
return this.tooltip.getPopupDomNode();

@ -55,7 +55,7 @@ abstract class TimePicker extends React.Component<TimePickerProps, any> {
transitionName: 'slide-up',
};
timePickerRef: any;
private timePickerRef: any;
constructor(props: TimePickerProps) {
super(props);

@ -59,7 +59,7 @@ export default class Tooltip extends React.Component<TooltipProps, any> {
autoAdjustOverflow: true,
};
tooltip: any;
private tooltip: any;
constructor(props: TooltipProps) {
super(props);

@ -49,7 +49,7 @@ export default class Upload extends React.Component<UploadProps, any> {
recentUploadStatus: boolean | PromiseLike<any>;
progressTimer: any;
upload: any;
private upload: any;
constructor(props) {
super(props);

Loading…
Cancel
Save