@bit-sun/business-component 2.2.6 → 2.2.7
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/dist/index.esm.js
CHANGED
|
@@ -17482,7 +17482,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17482
17482
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
17483
17483
|
showColumn = _useState12[0],
|
|
17484
17484
|
setShowColumns = _useState12[1]; // 列字段
|
|
17485
|
-
var _useState13 = useState([]),
|
|
17485
|
+
var _useState13 = useState(props.fields || []),
|
|
17486
17486
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
17487
17487
|
showSearchFields = _useState14[0],
|
|
17488
17488
|
setShowSearchFields = _useState14[1]; //搜索项字段
|
package/dist/index.js
CHANGED
|
@@ -17500,7 +17500,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17500
17500
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
17501
17501
|
showColumn = _useState12[0],
|
|
17502
17502
|
setShowColumns = _useState12[1]; // 列字段
|
|
17503
|
-
var _useState13 = React.useState([]),
|
|
17503
|
+
var _useState13 = React.useState(props.fields || []),
|
|
17504
17504
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
17505
17505
|
showSearchFields = _useState14[0],
|
|
17506
17506
|
setShowSearchFields = _useState14[1]; //搜索项字段
|
package/package.json
CHANGED
|
@@ -55,7 +55,7 @@ export default (props: any) => {
|
|
|
55
55
|
// @ts-nocheck
|
|
56
56
|
const [value, setValue]: any = useState(props);
|
|
57
57
|
const [showColumn, setShowColumns] = useState([]); // 列字段
|
|
58
|
-
const [showSearchFields, setShowSearchFields] = useState([]); //搜索项字段
|
|
58
|
+
const [showSearchFields, setShowSearchFields] = useState(props.fields || []); //搜索项字段
|
|
59
59
|
const { isPage = true, pagination, tableCode } = props;
|
|
60
60
|
|
|
61
61
|
const [height, setHeight]: any = useState('100vh');
|