mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-04 04:58:55 +08:00
code style
This commit is contained in:
parent
f0c6350e0e
commit
8e744545ff
@ -36,8 +36,8 @@ export default class Demo extends React.Component {
|
|||||||
|
|
||||||
shouldComponentUpdate(nextProps, nextState) {
|
shouldComponentUpdate(nextProps, nextState) {
|
||||||
return (this.state.codeExpand || this.props.expand) !== (nextState.codeExpand || nextProps.expand)
|
return (this.state.codeExpand || this.props.expand) !== (nextState.codeExpand || nextProps.expand)
|
||||||
|| this.state.copied !== nextState.copied
|
|| this.state.copied !== nextState.copied
|
||||||
|| this.state.copyTooltipVisible !== nextState.copyTooltipVisible;
|
|| this.state.copyTooltipVisible !== nextState.copyTooltipVisible;
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
@ -176,7 +176,8 @@ export default class Demo extends React.Component {
|
|||||||
</span>
|
</span>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</section>
|
</section>
|
||||||
<section className={highlightClass}
|
<section
|
||||||
|
className={highlightClass}
|
||||||
key="code"
|
key="code"
|
||||||
>
|
>
|
||||||
<div className="highlight">
|
<div className="highlight">
|
||||||
|
Loading…
Reference in New Issue
Block a user