@kingteza/crud-component 1.8.0 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -109,7 +109,6 @@ export interface SelectCrudField<T, ItemType extends SelectFieldItem = SelectFie
|
|
|
109
109
|
export interface EnumCrudField<T> extends InitialCrudField<T>, Copyable<false> {
|
|
110
110
|
type: "enum";
|
|
111
111
|
placeholder?: string;
|
|
112
|
-
name: keyof T;
|
|
113
112
|
enum: object | object[];
|
|
114
113
|
radio?: boolean;
|
|
115
114
|
translation?: object;
|
|
@@ -244,7 +243,7 @@ export type CrudComponentProps<T, FormType = T> = {
|
|
|
244
243
|
onHide?: (id: any) => Promise<any>;
|
|
245
244
|
onDelete?: (id: any) => Promise<any>;
|
|
246
245
|
onUpdate?: (t: FormType & IdProps) => Promise<any>;
|
|
247
|
-
onClickUpdate?: (t: T) =>
|
|
246
|
+
onClickUpdate?: (t: T) => void;
|
|
248
247
|
loadingData?: boolean;
|
|
249
248
|
isCreating?: boolean;
|
|
250
249
|
isHiding?: boolean;
|