mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-16 09:39:10 +08:00
d422d71c1e
* chore: back part of styl * chore: all basic * test: part test case * test: part test case * test: more test case * test: update snapshot * test: demo test support * test: update snapshot * chore: adjust mock logic to inject on rc-drawer instead * test: more snapshot * chore: adjust pos * chore: back of render * test: drawer demo extends test
9 lines
360 B
JavaScript
9 lines
360 B
JavaScript
import * as React from 'react';
|
|
import Trigger from 'rc-trigger/lib/mock';
|
|
import { TriggerMockContext } from '../shared/demoTestContext';
|
|
|
|
export default React.forwardRef((props, ref) => {
|
|
const mergedPopupVisible = React.useContext(TriggerMockContext) ?? props.popupVisible;
|
|
return <Trigger {...props} ref={ref} popupVisible={mergedPopupVisible} />;
|
|
});
|