@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.
- package/PageLayout/index.less +1 -1
- package/SearchForm/index.d.ts +0 -2
- package/SearchForm/index.js +13 -7
- package/Table/index.js +0 -1
- package/Table/index.less +1 -1
- package/TableAction/index.js +1 -3
- package/package.json +1 -1
package/PageLayout/index.less
CHANGED
package/SearchForm/index.d.ts
CHANGED
package/SearchForm/index.js
CHANGED
|
@@ -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
|
|
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 <=
|
|
120
|
+
if (isOpen || arr.length <= 2) {
|
|
122
121
|
return arr;
|
|
123
122
|
}
|
|
124
|
-
return arr.map((item, index) => index >
|
|
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:
|
|
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:
|
|
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
package/Table/index.less
CHANGED
package/TableAction/index.js
CHANGED
|
@@ -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,
|
|
27
|
+
}, /*#__PURE__*/React.createElement("a", null, "\u66F4\u591A")));
|
|
30
28
|
}
|