Skip to content

Commit

Permalink
fix(ui): rename DCheckboxList to DCheckboxItem
Browse files Browse the repository at this point in the history
  • Loading branch information
xiejay97 committed Nov 29, 2022
1 parent 8d02c08 commit ee94f54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ui/src/components/checkbox/CheckboxGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ import { useFormControl } from '../form';
import { useComponentConfig, usePrefixConfig } from '../root';
import { DCheckbox } from './Checkbox';

export interface DCheckboxList<V extends DId> {
export interface DCheckboxItem<V extends DId> {
label: React.ReactNode;
value: V;
disabled?: boolean;
}
export interface DCheckboxGroupProps<V extends DId> extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> {
dFormControl?: DFormControl;
dModel?: V[];
dList: DCheckboxList<V>[];
dList: DCheckboxItem<V>[];
dDisabled?: boolean;
dVertical?: boolean;
onModelChange?: (values: V[]) => void;
Expand Down

0 comments on commit ee94f54

Please sign in to comment.