@jiaozhiye/qm-design-react 1.7.31 → 1.7.33

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.
@@ -0,0 +1 @@
1
+ export default function (): boolean;
@@ -19,6 +19,9 @@ export declare const camelize: (input: string) => string;
19
19
  export declare const isEmpty: (val: any) => boolean;
20
20
  export declare const isValid: (val: string) => boolean;
21
21
  export declare const getValueByPath: (obj: AnyObject<any>, paths?: string) => unknown;
22
+ export declare const setValueByPath: (obj: AnyObject<any>, path: string, value: unknown) => void;
23
+ export declare const omit: <T extends object, K extends keyof T>(obj: T, fields: K[] | readonly K[]) => Omit<T, K>;
22
24
  export declare const deepClone: <T extends object>(target: T, map?: WeakMap<object, any>) => T;
23
25
  export declare const getParserWidth: (val: number | string) => string;
24
- export declare const flatJson: <T extends Record<string, any>>(jsonObject: T) => T;
26
+ export declare const flatJson: <T extends Record<string, any>>(jsonObj: T) => T;
27
+ export declare const parseJson: <T extends Record<string, any>>(jsonObj: T) => T;
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import PropTypes from 'prop-types';
3
+ import type { Dayjs } from 'dayjs';
3
4
  import type { UploadProps } from '../../antd';
4
5
  import type { BuildInPlacements } from 'rc-trigger';
5
6
  import type { IFetch, IColumn, IRowKey } from '../../table/src/table/types';
@@ -141,6 +142,7 @@ export type IFormItem = {
141
142
  disableds?: [boolean, boolean];
142
143
  shortCuts?: boolean;
143
144
  format?: string;
145
+ disabledDate?: (current: Dayjs) => boolean;
144
146
  timeType?: ITimeType;
145
147
  hourStep?: number;
146
148
  minuteStep?: number;
@@ -3,6 +3,6 @@ export default function useMergedState<T, R = T>(defaultStateValue: T | (() => T
3
3
  defaultValue?: T | (() => T);
4
4
  value?: T;
5
5
  onChange?: (value: T, prevValue: T) => void;
6
- postState?: (value: T) => T;
6
+ postState?: (value: T) => R;
7
7
  }): [R, Updater<T>];
8
8
  export {};