@jiaozhiye/qm-design-react 1.2.0-beta.33 → 1.2.0-beta.34
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 -1
- package/lib/form/src/form-range-search-helper.d.ts +10 -0
- package/lib/form/src/form.d.ts +2 -1
- package/lib/form/src/types.d.ts +1 -1
- package/lib/form/style/index.less +6 -0
- package/lib/index.d.ts +4 -2
- package/lib/index.esm.js +2 -2
- package/lib/index.full.js +1 -1
- package/lib/index.js +2 -2
- package/lib/locale/lang/en.d.ts +3 -0
- package/lib/locale/lang/en.js +4 -1
- package/lib/locale/lang/zh-cn.d.ts +3 -0
- package/lib/locale/lang/zh-cn.js +4 -1
- package/lib/range-table-helper/index.d.ts +3 -0
- package/lib/range-table-helper/src/range-table-helper.d.ts +22 -0
- package/lib/range-table-helper/style/index.less +14 -0
- package/lib/style/index.css +62 -35
- package/lib/style/index.less +2 -1
- package/lib/style/index.min.css +1 -1
- package/lib/table/src/export/setting.d.ts +7 -1
- package/lib/tree-table-helper/style/index.less +2 -2
- package/package.json +2 -2
package/lib/_utils/util.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ 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 deepClone: (target:
|
|
22
|
+
export declare const deepClone: <T extends object>(target: T, map?: WeakMap<object, any>) => T;
|
|
23
23
|
export declare const getParserWidth: (val: number | string) => string;
|
|
24
24
|
export declare const flatJson: <T extends Record<string, any>>(jsonObject: T) => T;
|
|
25
25
|
export declare const getAuthValue: (code: string) => Record<string, any> | undefined;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import type { IFormItem } from './types';
|
|
3
|
+
declare type IProps = {
|
|
4
|
+
option: IFormItem;
|
|
5
|
+
};
|
|
6
|
+
declare class FormRangeSearchHelper extends Component<IProps> {
|
|
7
|
+
static contextType: React.Context<import("./context").IFormContext | undefined>;
|
|
8
|
+
render(): JSX.Element;
|
|
9
|
+
}
|
|
10
|
+
export default FormRangeSearchHelper;
|
package/lib/form/src/form.d.ts
CHANGED
|
@@ -112,7 +112,7 @@ declare class QmForm extends Component<IProps, IState> {
|
|
|
112
112
|
createInitialExtras(): void;
|
|
113
113
|
getFormItems: import("memoize-one").MemoizedFn<(items: IFormItem[]) => IFormItem[]>;
|
|
114
114
|
getFlattenItems: import("memoize-one").MemoizedFn<(items: IFormItem[]) => IFormItem[]>;
|
|
115
|
-
setViewValue(fieldName: string, val
|
|
115
|
+
setViewValue(fieldName: string, val: any): void;
|
|
116
116
|
getViewValue(fieldName: string): string;
|
|
117
117
|
createInputFocus(): void;
|
|
118
118
|
getFormItemLabel(label: string | IFormItem): string;
|
|
@@ -132,6 +132,7 @@ declare class QmForm extends Component<IProps, IState> {
|
|
|
132
132
|
MULTIPLE_SEARCH_HELPER(option: IFormItem): JSXElement;
|
|
133
133
|
TREE_TABLE_HELPER(option: IFormItem): JSXElement;
|
|
134
134
|
MULTIPLE_TREE_TABLE_HELPER(option: IFormItem): JSXElement;
|
|
135
|
+
RANGE_SEARCH_HELPER(option: IFormItem): JSXElement;
|
|
135
136
|
CHECKBOX(option: IFormItem): JSXElement;
|
|
136
137
|
MULTIPLE_CHECKBOX(option: IFormItem): JSXElement;
|
|
137
138
|
RATE(option: IFormItem): JSXElement;
|
package/lib/form/src/types.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export declare type ILabelAlign = 'left' | 'right';
|
|
|
15
15
|
export declare type IFormType = 'default' | 'search' | 'onlyShow';
|
|
16
16
|
export declare type IValidateTrigger = 'onChange' | 'onBlur';
|
|
17
17
|
export declare type ICheckStrategy = 'SHOW_ALL' | 'SHOW_PARENT' | 'SHOW_CHILD';
|
|
18
|
-
export declare type IFormItemType = 'DIVIDER' | 'INPUT' | 'TEXT_AREA' | 'RANGE_INPUT' | 'INPUT_NUMBER' | 'RANGE_INPUT_NUMBER' | 'CHECKBOX' | 'MULTIPLE_CHECKBOX' | 'RADIO' | 'SWITCH' | 'DATE' | 'RANGE_DATE' | 'TIME' | 'RANGE_TIME' | 'SELECT' | 'MULTIPLE_SELECT' | 'IMMEDIATE' | 'SEARCH_HELPER' | 'MULTIPLE_SEARCH_HELPER' | 'TREE_SELECT' | 'MULTIPLE_TREE_SELECT' | 'CASCADER' | 'MULTIPLE_CASCADER' | 'CITY_SELECT' | 'REGION_SELECT' | 'UPLOAD_FILE' | 'UPLOAD_IMG' | 'TINYMCE';
|
|
18
|
+
export declare type IFormItemType = 'DIVIDER' | 'INPUT' | 'TEXT_AREA' | 'RANGE_INPUT' | 'INPUT_NUMBER' | 'RANGE_INPUT_NUMBER' | 'CHECKBOX' | 'MULTIPLE_CHECKBOX' | 'RADIO' | 'SWITCH' | 'RATE' | 'DATE' | 'RANGE_DATE' | 'TIME' | 'RANGE_TIME' | 'SELECT' | 'MULTIPLE_SELECT' | 'IMMEDIATE' | 'SEARCH_HELPER' | 'MULTIPLE_SEARCH_HELPER' | 'TREE_TABLE_HELPER' | 'MULTIPLE_TREE_TABLE_HELPER' | 'RANGE_SEARCH_HELPER' | 'TREE_SELECT' | 'MULTIPLE_TREE_SELECT' | 'CASCADER' | 'MULTIPLE_CASCADER' | 'CITY_SELECT' | 'REGION_SELECT' | 'UPLOAD_FILE' | 'UPLOAD_IMG' | 'TINYMCE';
|
|
19
19
|
export declare const ARRAY_TYPE: IFormItemType[];
|
|
20
20
|
export declare const BUILT_IN_PLACEMENTS: BuildInPlacements;
|
|
21
21
|
export declare type IFieldsDefine = {
|
|
@@ -74,10 +74,16 @@
|
|
|
74
74
|
}
|
|
75
75
|
.site-input-right {
|
|
76
76
|
border-left-width: 0;
|
|
77
|
+
&.ant-input-search .ant-input-affix-wrapper {
|
|
78
|
+
border-left-width: 0;
|
|
79
|
+
}
|
|
77
80
|
}
|
|
78
81
|
.site-input-right:hover,
|
|
79
82
|
.site-input-right:focus {
|
|
80
83
|
border-left-width: 1px;
|
|
84
|
+
&.ant-input-search .ant-input-affix-wrapper {
|
|
85
|
+
border-left-width: 1px;
|
|
86
|
+
}
|
|
81
87
|
}
|
|
82
88
|
// search-helper-multiple
|
|
83
89
|
.search-helper-multiple {
|
package/lib/index.d.ts
CHANGED
|
@@ -38,14 +38,16 @@ export type { QmUploadImgProps } from './upload-img';
|
|
|
38
38
|
export { default as QmUploadImg } from './upload-img';
|
|
39
39
|
export type { QmTableRef, QmTableProps, QmTableColumn } from './table';
|
|
40
40
|
export { default as QmTable } from './table';
|
|
41
|
+
export type { QmCopyToClipboardProps } from './copy-to-clipboard';
|
|
42
|
+
export { default as QmCopyToClipboard } from './copy-to-clipboard';
|
|
41
43
|
export type { QmSearchHelperProps } from './search-helper';
|
|
42
44
|
export { default as QmSearchHelper } from './search-helper';
|
|
43
45
|
export type { QmTreeTableHelperProps } from './tree-table-helper';
|
|
44
46
|
export { default as QmTreeTableHelper } from './tree-table-helper';
|
|
45
47
|
export type { QmTreeHelperProps } from './tree-helper';
|
|
46
48
|
export { default as QmTreeHelper } from './tree-helper';
|
|
47
|
-
export type {
|
|
48
|
-
export { default as
|
|
49
|
+
export type { QmRangeTableHelperProps } from './range-table-helper';
|
|
50
|
+
export { default as QmRangeTableHelper } from './range-table-helper';
|
|
49
51
|
export type { QmPrintProps } from './print';
|
|
50
52
|
export { default as QmPrint } from './print';
|
|
51
53
|
export { default as pinyin } from './pinyin';
|