@jiaozhiye/qm-design-react 1.10.1 → 1.10.3
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/form/src/form.d.ts +5 -5
- package/lib/form/src/types.d.ts +5 -3
- package/lib/form/src/utils.d.ts +2 -2
- package/lib/hooks/useWindowSize.d.ts +6 -0
- package/lib/index.esm.js +1 -1
- package/lib/index.full.js +1 -1
- package/lib/index.js +1 -1
- package/lib/signature/src/signature.d.ts +1 -0
- package/lib/style/index.css +17 -0
- package/lib/style/index.min.css +1 -1
- package/lib/table/src/table/props.d.ts +3 -2
- package/lib/table/src/table/types.d.ts +3 -2
- package/lib/table/style/table.less +373 -360
- package/lib/upload-file/src/upload-file.d.ts +2 -0
- package/lib/upload-img/src/upload-img.d.ts +1 -8
- package/package.json +3 -3
|
@@ -3,7 +3,7 @@ import type { ITableProps } from './types';
|
|
|
3
3
|
/**
|
|
4
4
|
* editRender: 返回值
|
|
5
5
|
* {
|
|
6
|
-
* type: PropTypes.oneOf(['text', 'textarea', 'number', 'select', 'select-multiple', 'checkbox', 'switch', 'search-helper', 'search-helper-multiple', 'date', 'datetime', 'time']).isRequired,
|
|
6
|
+
* type: PropTypes.oneOf(['text', 'textarea', 'number', 'select', 'select-multiple', 'checkbox', 'switch', 'search-helper', 'search-helper-multiple', 'date', 'datetime', 'time', 'month', 'year', 'custom']).isRequired,
|
|
7
7
|
* items: PropTypes.arrayOf(PropTypes.shape({
|
|
8
8
|
* text: PropTypes.string,
|
|
9
9
|
* value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
@@ -32,7 +32,7 @@ import type { ITableProps } from './types';
|
|
|
32
32
|
* cornerSign: PropTypes.bool,
|
|
33
33
|
* password: PropTypes.bool,
|
|
34
34
|
* disabledColor: PropTypes.string,
|
|
35
|
-
*
|
|
35
|
+
* disabledBgColor: PropTypes.string,
|
|
36
36
|
* }),
|
|
37
37
|
* helper: PropTypes.shape({
|
|
38
38
|
* filters: PropTypes.object,
|
|
@@ -53,6 +53,7 @@ import type { ITableProps } from './types';
|
|
|
53
53
|
* message: PropTypes.string,
|
|
54
54
|
* validator: PropTypes.func, // 自定义校验规则,参数: val(表单项的值); 返回值类型: bool
|
|
55
55
|
* })),
|
|
56
|
+
* render: PropTypes.func,
|
|
56
57
|
* onInput: PropTypes.func,
|
|
57
58
|
* onChange: PropTypes.func,
|
|
58
59
|
* onBlur: PropTypes.func,
|
|
@@ -8,7 +8,7 @@ export type IAlign = 'left' | 'center' | 'right';
|
|
|
8
8
|
export type InsertMode = 'before' | 'after';
|
|
9
9
|
export type IFilterType = 'text' | 'textarea' | 'checkbox' | 'radio' | 'number' | 'date' | 'tree';
|
|
10
10
|
export type ICheckStrategy = 'SHOW_ALL' | 'SHOW_PARENT' | 'SHOW_CHILD';
|
|
11
|
-
export type IEditerType = 'text' | 'textarea' | 'number' | 'select' | 'select-multiple' | 'checkbox' | 'switch' | 'search-helper' | 'search-helper-multiple' | 'tree-helper' | 'tree-helper-multiple' | 'date' | 'datetime' | 'time' | 'month' | 'year';
|
|
11
|
+
export type IEditerType = 'text' | 'textarea' | 'number' | 'select' | 'select-multiple' | 'checkbox' | 'switch' | 'search-helper' | 'search-helper-multiple' | 'tree-helper' | 'tree-helper-multiple' | 'date' | 'datetime' | 'time' | 'month' | 'year' | 'custom';
|
|
12
12
|
export type ISelectionType = 'checkbox' | 'radio';
|
|
13
13
|
export type IRecord<T = any> = {
|
|
14
14
|
[key: string]: T;
|
|
@@ -119,7 +119,7 @@ export type IEditerReturn = {
|
|
|
119
119
|
cornerSign?: boolean;
|
|
120
120
|
password?: boolean;
|
|
121
121
|
disabledColor?: string;
|
|
122
|
-
|
|
122
|
+
disabledBgColor?: string;
|
|
123
123
|
autoSize?: {
|
|
124
124
|
minRows?: number;
|
|
125
125
|
maxRows?: number;
|
|
@@ -155,6 +155,7 @@ export type IEditerReturn = {
|
|
|
155
155
|
closed?: (rowData: Record<string, any>) => void;
|
|
156
156
|
};
|
|
157
157
|
rules?: IRule[];
|
|
158
|
+
render?: (record: IRecord, column: IColumn, onChange: (cellValue: ValueOf<IRecord>) => void) => React.ReactNode;
|
|
158
159
|
onInput?: (value: Record<string, string | number>) => void;
|
|
159
160
|
onChange?: (value: Record<string, string | number | Array<string | number>>, record: IRecord, shRecords?: IRecord[]) => void;
|
|
160
161
|
onEnter?: (value: Record<string, string | number | Array<string | number>>, record: IRecord) => void;
|