Skip to content

Commit bf086d2

Browse files
committed
fix: ts
1 parent 83802c9 commit bf086d2

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

docs/examples/formError.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class Test extends Component {
3434
visible={this.state.visible}
3535
motion={{ motionName: 'rc-tooltip-zoom' }}
3636
trigger={[]}
37-
overlayStyle={{ zIndex: 1000 }}
37+
styles={{ root: { zIndex: 1000 } }}
3838
overlay={<span>required!</span>}
3939
>
4040
<input onChange={this.handleChange} />

docs/examples/placement.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ const Test: React.FC = () => (
9494
<h5>Debug Usage</h5>
9595
<Popup
9696
prefixCls="rc-tooltip"
97-
className="rc-tooltip-placement-top"
98-
style={{ display: 'inline-block', position: 'relative' }}
97+
classNames={{ body: 'rc-tooltip-placement-top' }}
98+
styles={{ body: { display: 'inline-block', position: 'relative' } }}
9999
>
100100
Test
101101
</Popup>

docs/examples/point.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const Test: React.FC = () => {
3030
<Tooltip
3131
placement="top"
3232
overlay={text}
33-
overlayInnerStyle={{ width: 300, height: 50 }}
33+
styles={{ body: { width: 300, height: 50 } }}
3434
popupVisible
3535
arrowContent={<div className="rc-tooltip-arrow-inner" />}
3636
>

docs/examples/simple.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ class Test extends Component<any, TestState> {
217217
offset: [this.state.offsetX, this.state.offsetY],
218218
}}
219219
motion={{ motionName: this.state.transitionName }}
220-
overlayInnerStyle={state.overlayInnerStyle}
220+
styles={{ body: state.overlayInnerStyle }}
221221
>
222222
<div style={{ height: 100, width: 100, border: '1px solid red' }}>trigger</div>
223223
</Tooltip>

0 commit comments

Comments
 (0)