dcp-design-react 1.12.17 → 1.12.18

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.
@@ -261,6 +261,9 @@ export type IFormItem = {
261
261
  text?: string;
262
262
  icon?: React.ReactNode;
263
263
  };
264
+ uploadIcons?: {
265
+ showRemove?: boolean;
266
+ };
264
267
  fieldAliasMap?: (() => Record<string, string>) | Record<string, string>;
265
268
  };
266
269
  extra?: {
@@ -0,0 +1,7 @@
1
+ interface ControlledStateOptions<T, U> {
2
+ value?: T;
3
+ defaultValue?: T;
4
+ onChange?: (value: T, extra?: U) => void;
5
+ }
6
+ export default function useControlledState<T, U = any>(defaultStateValue: T, options?: ControlledStateOptions<T, U>): [T, (value: T, extra?: U) => void];
7
+ export {};