@jiaozhiye/qm-design-react 1.10.2 → 1.10.4
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/types.d.ts +4 -2
- package/lib/hooks/useCreate.d.ts +1 -0
- package/lib/hooks/useSyncState.d.ts +4 -0
- 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/table/src/table/props.d.ts +2 -1
- package/lib/table/src/table/types.d.ts +2 -1
- 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]),
|
|
@@ -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;
|
|
@@ -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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jiaozhiye/qm-design-react",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.4",
|
|
4
4
|
"description": "A Component Library for React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"React",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"core-js": "^3.32.0",
|
|
102
102
|
"cp-cli": "^2.0.0",
|
|
103
103
|
"cross-env": "^7.0.3",
|
|
104
|
-
"css-loader": "^6.
|
|
104
|
+
"css-loader": "^6.11.0",
|
|
105
105
|
"eslint": "^8.40.0",
|
|
106
106
|
"eslint-plugin-prettier": "^4.2.0",
|
|
107
107
|
"eslint-plugin-react": "^7.32.0",
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
"style-loader": "^3.3.4",
|
|
129
129
|
"ts-loader": "^9.4.4",
|
|
130
130
|
"typescript": "^4.9.5",
|
|
131
|
-
"webpack": "^5.
|
|
131
|
+
"webpack": "^5.94.0",
|
|
132
132
|
"webpack-cli": "^5.1.4",
|
|
133
133
|
"webpack-dev-server": "^4.15.2",
|
|
134
134
|
"webpack-node-externals": "^3.0.0"
|