@bit-sun/business-component 2.2.6 → 2.2.8

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]; //搜索项字段
@@ -29556,7 +29556,7 @@ var FieldsSettingsTable = (function (props) {
29556
29556
  title: '字段名称',
29557
29557
  width: 100
29558
29558
  }, {
29559
- key: 'code',
29559
+ key: 'isUse',
29560
29560
  title: '是否使用',
29561
29561
  width: 70,
29562
29562
  render: function render(_ref) {
@@ -29566,7 +29566,7 @@ var FieldsSettingsTable = (function (props) {
29566
29566
  return jsonEditorVal.indexOf(text) >= 0 ? '是' : "否";
29567
29567
  }
29568
29568
  }, {
29569
- key: 'code',
29569
+ key: 'codeSnippet',
29570
29570
  title: '代码片段',
29571
29571
  render: function render(_ref2) {
29572
29572
  var text = _ref2.text,
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]; //搜索项字段
@@ -29574,7 +29574,7 @@ var FieldsSettingsTable = (function (props) {
29574
29574
  title: '字段名称',
29575
29575
  width: 100
29576
29576
  }, {
29577
- key: 'code',
29577
+ key: 'isUse',
29578
29578
  title: '是否使用',
29579
29579
  width: 70,
29580
29580
  render: function render(_ref) {
@@ -29584,7 +29584,7 @@ var FieldsSettingsTable = (function (props) {
29584
29584
  return jsonEditorVal.indexOf(text) >= 0 ? '是' : "否";
29585
29585
  }
29586
29586
  }, {
29587
- key: 'code',
29587
+ key: 'codeSnippet',
29588
29588
  title: '代码片段',
29589
29589
  render: function render(_ref2) {
29590
29590
  var text = _ref2.text,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bit-sun/business-component",
3
- "version": "2.2.6",
3
+ "version": "2.2.8",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -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');
@@ -95,7 +95,7 @@ export default (props:any)=>{
95
95
  width: 100
96
96
  },
97
97
  {
98
- key: 'code',
98
+ key: 'isUse',
99
99
  title: '是否使用',
100
100
  width: 70,
101
101
  render: ({text}:any) => {
@@ -105,7 +105,7 @@ export default (props:any)=>{
105
105
  }
106
106
  },
107
107
  {
108
- key: 'code',
108
+ key: 'codeSnippet',
109
109
  title: '代码片段',
110
110
  render: ({text,record}:any) => {
111
111
  if (!codeProps.columns) {