fix(striker-ui): expose form control props in SelectWithLabel

main
Tsu-ba-me 2 years ago
parent 04ee5288bb
commit e40fe93681
  1. 3
      striker-ui/components/SelectWithLabel.tsx
  2. 1
      striker-ui/types/SelectWithLabel.d.ts

@ -17,6 +17,7 @@ const SelectWithLabel: FC<SelectWithLabelProps> = ({
selectItems, selectItems,
checkItem, checkItem,
disableItem, disableItem,
formControlProps,
hideItem, hideItem,
inputLabelProps = {}, inputLabelProps = {},
isReadOnly = false, isReadOnly = false,
@ -92,7 +93,7 @@ const SelectWithLabel: FC<SelectWithLabelProps> = ({
); );
return ( return (
<MUIFormControl> <MUIFormControl fullWidth {...formControlProps}>
{labelElement} {labelElement}
<Select <Select
id={id} id={id}

@ -11,6 +11,7 @@ type OperateSelectItemFunction = (value: string) => boolean;
type SelectWithLabelOptionalProps = { type SelectWithLabelOptionalProps = {
checkItem?: OperateSelectItemFunction; checkItem?: OperateSelectItemFunction;
disableItem?: OperateSelectItemFunction; disableItem?: OperateSelectItemFunction;
formControlProps?: import('@mui/material').FormControlProps;
hideItem?: OperateSelectItemFunction; hideItem?: OperateSelectItemFunction;
isCheckableItems?: boolean; isCheckableItems?: boolean;
isReadOnly?: boolean; isReadOnly?: boolean;

Loading…
Cancel
Save