@jiaozhiye/qm-design-react 1.7.60 → 1.8.1
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/util.d.ts +1 -0
- package/lib/form/src/fields-filter.d.ts +1 -3
- package/lib/form/src/form.d.ts +2 -0
- package/lib/form/src/types.d.ts +4 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.esm.js +1 -1
- package/lib/index.full.js +1 -1
- package/lib/index.js +1 -1
- package/lib/lazy-load/index.d.ts +3 -0
- package/lib/lazy-load/src/lazy-load.d.ts +21 -0
- package/lib/lazy-load/src/observe.d.ts +16 -0
- package/lib/lazy-load/src/useInView.d.ts +19 -0
- package/lib/lazy-load/style/index.less +15 -0
- package/lib/style/index.css +10 -1
- package/lib/style/index.less +40 -39
- package/lib/style/index.min.css +1 -1
- package/lib/table/src/table/types.d.ts +0 -1
- package/lib/table/src/utils/index.d.ts +2 -1
- package/lib/tinymce/src/index.d.ts +5 -1
- package/package.json +3 -3
package/lib/_utils/util.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export declare const isValid: (val: string) => boolean;
|
|
|
21
21
|
export declare const getValueByPath: (obj: AnyObject<any>, paths?: string) => unknown;
|
|
22
22
|
export declare const setValueByPath: (obj: AnyObject<any>, path: string, value: unknown) => void;
|
|
23
23
|
export declare const omit: <T extends object, K extends keyof T>(obj: T, fields: K[] | readonly K[]) => Omit<T, K>;
|
|
24
|
+
export declare const pick: <T extends object, K extends keyof T>(obj: T, keys: (string | K)[]) => Pick<T, K>;
|
|
24
25
|
export declare const deepClone: <T extends object>(target: T, map?: WeakMap<object, any>) => T;
|
|
25
26
|
export declare const getParserWidth: (val: number | string) => string;
|
|
26
27
|
export declare const flatJson: <T extends Record<string, any>>(jsonObj: T) => T;
|
|
@@ -11,7 +11,6 @@ type IState = {
|
|
|
11
11
|
declare class FieldsFilter extends Component<IProps, IState> {
|
|
12
12
|
static contextType: React.Context<import("../../config-provider/context").IConfig>;
|
|
13
13
|
private linkRef;
|
|
14
|
-
private originItems;
|
|
15
14
|
state: IState;
|
|
16
15
|
get formUniqueKey(): string;
|
|
17
16
|
componentDidMount(): void;
|
|
@@ -20,9 +19,8 @@ declare class FieldsFilter extends Component<IProps, IState> {
|
|
|
20
19
|
getLocalFields(): Array<IFormItem> | void;
|
|
21
20
|
setLocalFields(list: IFormItem[]): void;
|
|
22
21
|
initLocalfields(): void;
|
|
23
|
-
setOriginItems(): void;
|
|
24
22
|
changeHandle(items: IFormItem[]): void;
|
|
25
|
-
resetFieldsHandle: () => void;
|
|
23
|
+
resetFieldsHandle: (originItems: IFormItem[]) => void;
|
|
26
24
|
popupRender(): React.JSX.Element;
|
|
27
25
|
render(): React.JSX.Element;
|
|
28
26
|
}
|
package/lib/form/src/form.d.ts
CHANGED
|
@@ -80,6 +80,7 @@ declare class QmForm extends Component<IProps, IState> {
|
|
|
80
80
|
private _fieldAuth;
|
|
81
81
|
private wrapperRef;
|
|
82
82
|
private formRef;
|
|
83
|
+
originItems: IFormItem[];
|
|
83
84
|
state: IState;
|
|
84
85
|
constructor(props: IProps);
|
|
85
86
|
get $size(): any;
|
|
@@ -111,6 +112,7 @@ declare class QmForm extends Component<IProps, IState> {
|
|
|
111
112
|
createInitialValues(): void;
|
|
112
113
|
createInitialOthers(): void;
|
|
113
114
|
createInitialExtras(): void;
|
|
115
|
+
createOriginItems(): void;
|
|
114
116
|
getFormItems: import("memoize-one").MemoizedFn<(items: IFormItem[]) => IFormItem[]>;
|
|
115
117
|
getFlattenItems: import("memoize-one").MemoizedFn<(items: IFormItem[]) => IFormItem[]>;
|
|
116
118
|
setViewValue(fieldName: string, val?: string): void;
|
package/lib/form/src/types.d.ts
CHANGED
|
@@ -187,6 +187,10 @@ export type IFormItem = {
|
|
|
187
187
|
quality?: number;
|
|
188
188
|
tinymce?: Record<string, any>;
|
|
189
189
|
thresholdSize?: number;
|
|
190
|
+
onResizeEditor?: (option: {
|
|
191
|
+
width: number;
|
|
192
|
+
height: number;
|
|
193
|
+
}, ev: any) => void;
|
|
190
194
|
};
|
|
191
195
|
searchHelper?: {
|
|
192
196
|
name?: string;
|
package/lib/index.d.ts
CHANGED
|
@@ -62,6 +62,8 @@ export type { GuideTrackerProps as QmGuideTrackerProps } from './guide-tracker';
|
|
|
62
62
|
export { default as QmGuideTracker } from './guide-tracker';
|
|
63
63
|
export type { WatermarkProps as QmWatermarkProps } from './watermark';
|
|
64
64
|
export { default as QmWatermark } from './watermark';
|
|
65
|
+
export type { LazyLoadProps as QmLazyLoadProps } from './lazy-load';
|
|
66
|
+
export { default as QmLazyLoad } from './lazy-load';
|
|
65
67
|
export type { ConfigProviderProps as DcpConfigProviderProps } from './config-provider';
|
|
66
68
|
export { default as DcpConfigProvider } from './config-provider';
|
|
67
69
|
export type { ButtonProps as DcpButtonProps } from './button';
|
|
@@ -126,6 +128,8 @@ export type { GuideTrackerProps as DcpGuideTrackerProps } from './guide-tracker'
|
|
|
126
128
|
export { default as DcpGuideTracker } from './guide-tracker';
|
|
127
129
|
export type { WatermarkProps as DcpWatermarkProps } from './watermark';
|
|
128
130
|
export { default as DcpWatermark } from './watermark';
|
|
131
|
+
export type { LazyLoadProps as DcpLazyLoadProps } from './lazy-load';
|
|
132
|
+
export { default as DcpLazyLoad } from './lazy-load';
|
|
129
133
|
export { default as pinyin } from './pinyin';
|
|
130
134
|
export { default as version } from './version';
|
|
131
135
|
export * from './antd';
|