@jiaozhiye/qm-design-react 1.7.32 → 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.
- package/lib/_utils/isMobile.d.ts +1 -0
- package/lib/_utils/util.d.ts +4 -1
- package/lib/form/src/types.d.ts +2 -0
- package/lib/hooks/useMergedState.d.ts +1 -1
- package/lib/index.esm.js +1 -1
- package/lib/index.full.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/lang/en.js +1 -1
- package/lib/locale/lang/zh-cn.js +1 -1
- package/lib/scrollbar/src/scrollbar.d.ts +1 -1
- package/lib/style/index.css +1 -1
- package/lib/style/index.less +1 -1
- package/lib/table/src/context/index.d.ts +1 -0
- package/lib/table/src/hooks/useTableMemo.d.ts +2 -1
- package/lib/table/src/hooks/useTableState.d.ts +1 -0
- package/lib/table/src/utils/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function (): boolean;
|
package/lib/_utils/util.d.ts
CHANGED
|
@@ -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>>(
|
|
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;
|
package/lib/form/src/types.d.ts
CHANGED
|
@@ -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) =>
|
|
6
|
+
postState?: (value: T) => R;
|
|
7
7
|
}): [R, Updater<T>];
|
|
8
8
|
export {};
|