mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 08:59:15 +08:00
6bb18b361d
* feat: implement `panelRender` api and add demo * test: add test case * docs: update doc * fix: styles add overlayInnerStyle * fix: variable name * docs: reorder api * refactor: optimize code * test: update snapshot * test: update snapshots * refactor: remove memo * refactor: rename overlayInnerStyle to popupOverlayInner * fix: props error * docs: update demo
11 lines
501 B
TypeScript
11 lines
501 B
TypeScript
import React from 'react';
|
|
import type { PanelPickerProps } from './components/PanelPicker';
|
|
import type { PanelPresetsProps } from './components/PanelPresets';
|
|
|
|
export const PanelPickerContext = React.createContext<PanelPickerProps>({} as PanelPickerProps);
|
|
|
|
export const PanelPresetsContext = React.createContext<PanelPresetsProps>({} as PanelPresetsProps);
|
|
|
|
export const { Provider: PanelPickerProvider } = PanelPickerContext;
|
|
export const { Provider: PanelPresetsProvider } = PanelPresetsContext;
|