zy-react-library 1.0.89 → 1.0.91

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.
@@ -159,7 +159,7 @@ const FormItemsRenderer = ({
159
159
 
160
160
  case FORM_ITEM_RENDER_ENUM.SELECT:
161
161
  return (
162
- <Select placeholder={placeholder} showSearch allowClear {...componentProps}>
162
+ <Select placeholder={placeholder} showSearch allowClear optionFilterProp="children" {...componentProps}>
163
163
  {(option.items || []).map((item) => {
164
164
  const value = item[itemsFieldKey.valueKey];
165
165
  const label = item[itemsFieldKey.labelKey];
@@ -98,6 +98,7 @@ function HiddenInfo(props) {
98
98
  { label: "存在风险", children: info.hiddenCheckListCO.existingRisks },
99
99
  { label: "风险分级", children: info.hiddenCheckListCO.riskLevel },
100
100
  { label: "隐患清单", children: info.hiddenCheckListCO.listName },
101
+ { label: "检查内容", children: info.hiddenCheckListCO.inspectionContent },
101
102
  ]
102
103
  : []
103
104
  ),
@@ -1,7 +1,15 @@
1
1
  import { TreeSelect } from "antd";
2
2
  import { useEffect } from "react";
3
- import { getTreeNodePaths, processTreeDataByLevel, processTreeDataForOnlyLastLevel } from "../../../utils";
4
3
 
4
+ const getTreeNodePaths = () => {
5
+
6
+ };
7
+ const processTreeDataByLevel = () => {
8
+
9
+ };
10
+ const processTreeDataForOnlyLastLevel = ({ data }) => {
11
+ return data;
12
+ };
5
13
  /**
6
14
  * 基础下拉树组件(不建议直接使用此组件,二次继承使用)
7
15
  */
@@ -70,6 +78,7 @@ function BasicSelectTree(props) {
70
78
  allowClear
71
79
  treeData={processedTreeData}
72
80
  fieldNames={{ label: nameKey, value: idKey, children: childrenKey }}
81
+ treeNodeFilterProp={nameKey}
73
82
  {...restProps}
74
83
  />
75
84
  );
@@ -13,9 +13,16 @@ function Table(props) {
13
13
  } = props;
14
14
  function calcColumns() {
15
15
  showIndexColumn && columns.unshift({...getIndexColumn(props.pagination), fixed: indexColumnFixed});
16
- return columns.map(item => ({ align: useAlignCenter ? "center" : "left", ...item }));
16
+
17
+ const setAlign = (column) => ({
18
+ ...column,
19
+ align: useAlignCenter ? "center" : "left",
20
+ ...(column.children ? { children: column.children.map(setAlign) } : {})
21
+ });
22
+
23
+ return columns.map(setAlign);
17
24
  }
18
- return <TablePro rowKey={rowKey} columns={calcColumns()} {...restProps} />;
25
+ return <TablePro rowKey={rowKey} columns={calcColumns()} bordered {...restProps} />;
19
26
  }
20
27
 
21
28
  export default Table;
@@ -13,6 +13,7 @@ export const HIDDEN_STATE_ENUM = [
13
13
  { bianma: "100", name: "待确认" },
14
14
  { bianma: "200", name: "待整改" },
15
15
  { bianma: "201", name: "确认打回" },
16
+ { bianma: "202", name: "特殊处置" },
16
17
  { bianma: "300", name: "待验收" },
17
18
  { bianma: "301", name: "已验收" },
18
19
  { bianma: "302", name: "验收打回" },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zy-react-library",
3
3
  "private": false,
4
- "version": "1.0.89",
4
+ "version": "1.0.91",
5
5
  "type": "module",
6
6
  "description": "",
7
7
  "author": "LiuJiaNan",