|
@@ -34,10 +34,11 @@ interface MenuCtlProps extends LovProps<string> {
|
|
|
defaultInactiveIds?: string;
|
|
|
selected?: string[];
|
|
|
defaultSelected?: string;
|
|
|
+ expanded?: boolean;
|
|
|
}
|
|
|
|
|
|
const MenuCtl = (props: MenuCtlProps) => {
|
|
|
- const {id, label, onAction, defaultLov = "", width = "15vw", width_Mobile_ = "85vw"} = props;
|
|
|
+ const {id, label, onAction, defaultLov = "", width = "15vw", width_Mobile_ = "85vw",expanded} = props;
|
|
|
const dispatch = useDispatch();
|
|
|
const isMobile = useIsMobile();
|
|
|
const module = useModule();
|
|
@@ -86,10 +87,11 @@ const MenuCtl = (props: MenuCtlProps) => {
|
|
|
width: isMobile ? width_Mobile_ : width,
|
|
|
className: className,
|
|
|
selected: selected,
|
|
|
+ expanded: expanded,
|
|
|
} as MenuProps)
|
|
|
);
|
|
|
return () => dispatch(createSetMenuAction({}));
|
|
|
- }, [label, onAction, active, lovList, inactiveIds, width, width_Mobile_, isMobile, className, dispatch, selected]);
|
|
|
+ }, [label, onAction, active, lovList, inactiveIds, width, width_Mobile_, isMobile, className, dispatch, selected,expanded]);
|
|
|
|
|
|
return <></>;
|
|
|
};
|