mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 20:49:53 +08:00
fix: more types
This commit is contained in:
parent
fe677e2966
commit
e063e1916d
@ -134,7 +134,8 @@ class Sider extends React.Component<SiderProps, SiderState> {
|
||||
|
||||
componentDidMount() {
|
||||
if (this.mql) {
|
||||
this.mql.addListener(this.responsiveHandler);
|
||||
const self = this;
|
||||
this.mql.addListener(function() { self.responsiveHandler(this) });
|
||||
this.responsiveHandler(this.mql);
|
||||
}
|
||||
|
||||
@ -145,7 +146,8 @@ class Sider extends React.Component<SiderProps, SiderState> {
|
||||
|
||||
componentWillUnmount() {
|
||||
if (this.mql) {
|
||||
this.mql.removeListener(this.responsiveHandler);
|
||||
const self = this;
|
||||
this.mql.removeListener(function() { self.responsiveHandler(this) });
|
||||
}
|
||||
|
||||
if (this.context.siderHook) {
|
||||
|
@ -1,16 +1,14 @@
|
||||
import * as React from 'react';
|
||||
import { ThemeType, IconType } from '../../../../components/icon';
|
||||
import { ThemeType } from '../../../../components/icon';
|
||||
import manifest from '@ant-design/icons/lib/manifest';
|
||||
import { ThemeType as ThemeFolderType } from '@ant-design/icons/lib/types';
|
||||
import Category from './Category';
|
||||
import { Radio, Icon as AntdIcon } from 'antd';
|
||||
import { Radio, Icon } from 'antd';
|
||||
import { RadioChangeEvent } from 'antd/lib/radio/interface';
|
||||
import { FilledIcon, OutlinedIcon, TwoToneIcon } from './themeIcons';
|
||||
import { categories, Categories, CategoriesKeys } from './fields';
|
||||
import { injectIntl, InjectedIntlProps } from 'react-intl';
|
||||
|
||||
const Icon: IconType = AntdIcon as any;
|
||||
|
||||
interface IconDisplayProps extends InjectedIntlProps {
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user