mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-09 15:39:24 +08:00
Merge branch 'next' into develop
This commit is contained in:
commit
51c4286a5a
@ -23,6 +23,7 @@ export const PopupContextProvider: React.FC<{
|
||||
}> = (props) => {
|
||||
const { visible: visibleFromProps, setVisible: setVisibleFromProps } = props;
|
||||
const [visible, setVisible] = useState(false);
|
||||
const [formValueChanged, setFormValueChanged] = useState(false);
|
||||
const { visible: visibleWithURL, setVisible: setVisibleWithURL } = useContext(PopupVisibleProviderContext) || {
|
||||
visible: false,
|
||||
setVisible: () => {},
|
||||
@ -46,6 +47,8 @@ export const PopupContextProvider: React.FC<{
|
||||
setVisible={_setVisible}
|
||||
openMode={openMode}
|
||||
openSize={openSize}
|
||||
formValueChanged={formValueChanged}
|
||||
setFormValueChanged={setFormValueChanged}
|
||||
>
|
||||
{props.children}
|
||||
</ActionContextProvider>
|
||||
|
Loading…
x
Reference in New Issue
Block a user