@cqsjjb/jjb-react-admin-component 3.3.2 → 3.3.3

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.
@@ -22,7 +22,7 @@
22
22
  .@{com-prefix-cls}-layout-container-tools {
23
23
  margin-top: 0;
24
24
  margin-bottom: 0;
25
- padding: 0 20px 16px 20px;
25
+ padding: 0 20px 0 20px;
26
26
  }
27
27
 
28
28
  .@{com-prefix-cls}-layout-container-content {
@@ -11,8 +11,6 @@ export interface SearchFormProps {
11
11
  expand?: boolean;
12
12
  // 内部默认展开状态,仅在 expand 未传入时生效 默认-false
13
13
  defaultExpand?: boolean;
14
- // 列数 默认-3
15
- colSize?: number;
16
14
  // 查询 loading 状态 默认-false
17
15
  loading?: boolean;
18
16
  // 表单行节点数组 默认-[]
@@ -9,7 +9,6 @@ const SearchForm = ({
9
9
  // 受控
10
10
  defaultExpand = false,
11
11
  // 内部默认展开
12
- colSize = 3,
13
12
  loading = false,
14
13
  formLine = [],
15
14
  initialValues = {},
@@ -83,7 +82,7 @@ const SearchForm = ({
83
82
  formInstance.resetFields();
84
83
  onReset(formInstance.getFieldsValue());
85
84
  }
86
- }, "\u91CD\u7F6E"), formLine.length / colSize > 1 && /*#__PURE__*/React.createElement(Button, {
85
+ }, "\u91CD\u7F6E"), formLine.length > 2 && /*#__PURE__*/React.createElement(Button, {
87
86
  icon: /*#__PURE__*/React.createElement(DoubleRightOutlined, {
88
87
  style: {
89
88
  transform: isOpen ? 'rotate(-90deg)' : 'rotate(90deg)'
@@ -118,10 +117,10 @@ const SearchForm = ({
118
117
  show: true,
119
118
  node
120
119
  }));
121
- if (isOpen || arr.length <= 3) {
120
+ if (isOpen || arr.length <= 2) {
122
121
  return arr;
123
122
  }
124
- return arr.map((item, index) => index > 2 ? {
123
+ return arr.map((item, index) => index > 1 ? {
125
124
  ...item,
126
125
  show: false
127
126
  } : item);
@@ -140,14 +139,21 @@ const SearchForm = ({
140
139
  gutter: [16, 16]
141
140
  }, formItemList.map((item, index) => /*#__PURE__*/React.createElement(Col, {
142
141
  key: index,
143
- span: 24 / colSize,
142
+ span: 8,
144
143
  style: {
145
144
  display: item.show ? 'block' : 'none'
146
145
  }
147
146
  }, item.node)), /*#__PURE__*/React.createElement(Col, {
148
- span: 24 / colSize
147
+ span: 8,
148
+ style: {
149
+ display: 'flex',
150
+ alignItems: 'flex-start'
151
+ }
149
152
  }, /*#__PURE__*/React.createElement(Form.Item, {
150
- noStyle: true
153
+ noStyle: true,
154
+ style: {
155
+ marginBottom: 0
156
+ }
151
157
  }, getButtons()))));
152
158
  };
153
159
  export default SearchForm;
package/Table/index.js CHANGED
@@ -92,7 +92,6 @@ export default function TablePro(props) {
92
92
  y: scrollY || 0
93
93
  } : undefined,
94
94
  className: `${antPrefix}-gbs-pro-table`,
95
- size: "default",
96
95
  options: options
97
96
  }, restProps, {
98
97
  columns: restProps.columns
package/Table/index.less CHANGED
@@ -6,7 +6,7 @@
6
6
  &-body {
7
7
  .@{com-prefix-cls}-pro-table-list-toolbar {
8
8
  &-container {
9
- padding-top: 0;
9
+ padding-block: 0;
10
10
  }
11
11
  }
12
12
  }
@@ -1,12 +1,10 @@
1
1
  import React from 'react';
2
2
  import { tools } from '@cqsjjb/jjb-common-lib';
3
- import { MoreOutlined } from '@ant-design/icons';
4
3
  import { Dropdown, Space } from 'antd';
5
4
  export default function TableAction({
6
5
  maximum = 3,
7
6
  children,
8
7
  space,
9
- icon: Icon = MoreOutlined,
10
8
  placement = 'bottomRight',
11
9
  // 下拉菜单位置,默认 bottomRight
12
10
  trigger = ['hover'] // 下拉触发方式,默认 hover
@@ -26,5 +24,5 @@ export default function TableAction({
26
24
  },
27
25
  placement: placement,
28
26
  trigger: trigger
29
- }, /*#__PURE__*/React.createElement("a", null, /*#__PURE__*/React.createElement(Icon, null))));
27
+ }, /*#__PURE__*/React.createElement("a", null, "\u66F4\u591A")));
30
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cqsjjb/jjb-react-admin-component",
3
- "version": "3.3.2",
3
+ "version": "3.3.3",
4
4
  "description": "jjb-react-admin-组件库@new",
5
5
  "main": "index.js",
6
6
  "author": "jjb-front-team",