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

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

Loading…
Cancel
Save