ls-pro-common 1.0.20 → 1.0.21
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.
|
@@ -12,6 +12,7 @@ export declare type InputTableProps = ProFormItemProps<InputProps> & {
|
|
|
12
12
|
textField?: string;
|
|
13
13
|
textName?: string;
|
|
14
14
|
tableConfig?: any;
|
|
15
|
+
labelWidth?: number;
|
|
15
16
|
onSelectChange?: (item: any) => void;
|
|
16
17
|
};
|
|
17
18
|
declare function InputTable(prop: InputTableProps): JSX.Element;
|
|
@@ -10,7 +10,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
10
10
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
11
11
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
12
12
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
13
|
-
var _excluded = ["columns", "url", "textName", "name", "tableConfig", "tableHeight", "tableWidth", "readonly", "multiple", "valueField", "textField", "onSelectChange"],
|
|
13
|
+
var _excluded = ["columns", "url", "textName", "name", "tableConfig", "tableHeight", "tableWidth", "readonly", "multiple", "valueField", "labelWidth", "textField", "onSelectChange"],
|
|
14
14
|
_excluded2 = ["current", "pageSize"];
|
|
15
15
|
import React from "react";
|
|
16
16
|
import { useRef, useState, useEffect, useContext } from 'react';
|
|
@@ -54,6 +54,8 @@ function InputTable(prop) {
|
|
|
54
54
|
readonly = _prop$readonly === void 0 ? true : _prop$readonly,
|
|
55
55
|
multiple = prop.multiple,
|
|
56
56
|
valueField = prop.valueField,
|
|
57
|
+
_prop$labelWidth = prop.labelWidth,
|
|
58
|
+
labelWidth = _prop$labelWidth === void 0 ? 70 : _prop$labelWidth,
|
|
57
59
|
textField = prop.textField,
|
|
58
60
|
onSelectChange = prop.onSelectChange,
|
|
59
61
|
rest = _objectWithoutProperties(prop, _excluded);
|
|
@@ -118,7 +120,7 @@ function InputTable(prop) {
|
|
|
118
120
|
manualRequest: false,
|
|
119
121
|
actionRef: tableRef,
|
|
120
122
|
search: {
|
|
121
|
-
labelWidth:
|
|
123
|
+
labelWidth: labelWidth
|
|
122
124
|
},
|
|
123
125
|
options: {
|
|
124
126
|
density: false,
|
|
@@ -12,6 +12,7 @@ export declare type InputTableProps = ProFormItemProps<InputProps> & {
|
|
|
12
12
|
textField?: string;
|
|
13
13
|
textName?: string;
|
|
14
14
|
tableConfig?: any;
|
|
15
|
+
labelWidth?: number;
|
|
15
16
|
onSelectChange?: (item: any) => void;
|
|
16
17
|
};
|
|
17
18
|
declare function InputTable(prop: InputTableProps): JSX.Element;
|
|
@@ -43,7 +43,7 @@ var _icons = require("@ant-design/icons");
|
|
|
43
43
|
|
|
44
44
|
var _http = require("../http");
|
|
45
45
|
|
|
46
|
-
var _excluded = ["columns", "url", "textName", "name", "tableConfig", "tableHeight", "tableWidth", "readonly", "multiple", "valueField", "textField", "onSelectChange"],
|
|
46
|
+
var _excluded = ["columns", "url", "textName", "name", "tableConfig", "tableHeight", "tableWidth", "readonly", "multiple", "valueField", "labelWidth", "textField", "onSelectChange"],
|
|
47
47
|
_excluded2 = ["current", "pageSize"];
|
|
48
48
|
|
|
49
49
|
function InputTable(prop) {
|
|
@@ -81,6 +81,8 @@ function InputTable(prop) {
|
|
|
81
81
|
readonly = _prop$readonly === void 0 ? true : _prop$readonly,
|
|
82
82
|
multiple = prop.multiple,
|
|
83
83
|
valueField = prop.valueField,
|
|
84
|
+
_prop$labelWidth = prop.labelWidth,
|
|
85
|
+
labelWidth = _prop$labelWidth === void 0 ? 70 : _prop$labelWidth,
|
|
84
86
|
textField = prop.textField,
|
|
85
87
|
onSelectChange = prop.onSelectChange,
|
|
86
88
|
rest = (0, _objectWithoutProperties2.default)(prop, _excluded);
|
|
@@ -145,7 +147,7 @@ function InputTable(prop) {
|
|
|
145
147
|
manualRequest: false,
|
|
146
148
|
actionRef: tableRef,
|
|
147
149
|
search: {
|
|
148
|
-
labelWidth:
|
|
150
|
+
labelWidth: labelWidth
|
|
149
151
|
},
|
|
150
152
|
options: {
|
|
151
153
|
density: false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ls-pro-common",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.21",
|
|
4
4
|
"description": "ls-pro-common",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"antd",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@ant-design/icons": "^4.3.0",
|
|
31
|
-
"ls-pro-table": "2.62.
|
|
31
|
+
"ls-pro-table": "2.62.23",
|
|
32
32
|
"ls-pro-form": "1.52.22",
|
|
33
33
|
"@babel/runtime": "^7.16.3",
|
|
34
34
|
"classnames": "^2.2.6",
|