mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 19:49:59 +08:00
parent
ff0595733f
commit
40001d8220
@ -134,8 +134,7 @@ class Sider extends React.Component<SiderProps, SiderState> {
|
||||
|
||||
componentDidMount() {
|
||||
if (this.mql) {
|
||||
const self = this;
|
||||
this.mql.addListener(function() { self.responsiveHandler(this) });
|
||||
this.mql.addListener(this.responsiveHandler);
|
||||
this.responsiveHandler(this.mql);
|
||||
}
|
||||
|
||||
@ -146,8 +145,7 @@ class Sider extends React.Component<SiderProps, SiderState> {
|
||||
|
||||
componentWillUnmount() {
|
||||
if (this.mql) {
|
||||
const self = this;
|
||||
this.mql.removeListener(function() { self.responsiveHandler(this) });
|
||||
this.mql.removeListener(this.responsiveHandler);
|
||||
}
|
||||
|
||||
if (this.context.siderHook) {
|
||||
|
@ -1,14 +1,16 @@
|
||||
import * as React from 'react';
|
||||
import { ThemeType } from '../../../../components/icon';
|
||||
import { ThemeType, IconType } 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 } from 'antd';
|
||||
import { Radio, Icon as AntdIcon } 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