@cqsjjb/jjb-react-admin-component 3.0.4 → 3.0.5

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.
@@ -47,6 +47,9 @@ class searchForm extends React.Component {
47
47
  if (this.props.expand && this.state.isOpen) {
48
48
  return arr;
49
49
  }
50
+ if (!this.props.expand && arr.length > 3) {
51
+ return arr;
52
+ }
50
53
  arr.forEach((i, index) => {
51
54
  if (index > 2) {
52
55
  i.show = false;
@@ -68,6 +68,9 @@ class searchForm extends React.Component {
68
68
  if (this.props.expand && this.state.isOpen) {
69
69
  return arr;
70
70
  }
71
+ if(!this.props.expand && arr.length>3){
72
+ return arr;
73
+ }
71
74
  arr.forEach((i,index)=> {
72
75
  if(index>2){
73
76
  i.show=false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cqsjjb/jjb-react-admin-component",
3
- "version": "3.0.4",
3
+ "version": "3.0.5",
4
4
  "description": "jjb-react-admin-组件库@new",
5
5
  "main": "index.js",
6
6
  "author": "jjb-front-team",