@innoways/drip-form-theme-antd 6.1.0 → 6.2.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Change Log
2
2
 
3
+ ## 6.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - adde version 6.2.0
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+ - @innoways/hooks@6.2.0
13
+ - @innoways/utils@6.2.0
14
+
15
+ ## 6.1.1
16
+
17
+ ### Patch Changes
18
+
19
+ - modified tree table styles
20
+ - Updated dependencies
21
+ - @innoways/hooks@6.1.1
22
+ - @innoways/utils@6.1.1
23
+
3
24
  ## 6.1.0
4
25
 
5
26
  ### Minor Changes
package/dist/index.css CHANGED
@@ -16,6 +16,20 @@
16
16
  font-size: 12px;
17
17
  color: rgb(0 0, 0);
18
18
  }
19
+ .drip_table_field_tree .ant-table {
20
+ background: transparent;
21
+ }
22
+ .drip_table_field_tree .ant-table-cell {
23
+ border: none;
24
+ background: transparent;
25
+ }
26
+ .drip_table_field_tree .ant-table-thead > tr > th {
27
+ background: transparent;
28
+ }
29
+ .drip_table_field_tree .ant-table-row:hover > td,
30
+ .drip_table_field_tree .ant-table-cell-row-hover {
31
+ background: none !important;
32
+ }
19
33
 
20
34
  .drip-form--colorpicker {
21
35
  display: flex;
package/dist/index.js CHANGED
@@ -23960,16 +23960,17 @@ var TableField = function TableField(_ref) {
23960
23960
  preparedColumns = columnsDataIndex.filter(function (item) {
23961
23961
  return !!(item !== null && item !== void 0 && item.column);
23962
23962
  }).map(function (column, i) {
23963
- return {
23963
+ return _objectSpread$1({
23964
23964
  title: (column === null || column === void 0 ? void 0 : column.column) || '',
23965
23965
  dataIndex: (column === null || column === void 0 ? void 0 : column.dataIndex) || i,
23966
- key: (column === null || column === void 0 ? void 0 : column.dataIndex) || i,
23966
+ key: (column === null || column === void 0 ? void 0 : column.dataIndex) || i
23967
+ }, tableMode !== 'tree' ? {
23967
23968
  sorter: function sorter(a, b) {
23968
23969
  var _a$column$dataIndex;
23969
23970
 
23970
23971
  return (_a$column$dataIndex = a[column === null || column === void 0 ? void 0 : column.dataIndex]) === null || _a$column$dataIndex === void 0 ? void 0 : _a$column$dataIndex.localeCompare(b[column === null || column === void 0 ? void 0 : column.dataIndex]);
23971
23972
  }
23972
- };
23973
+ } : {});
23973
23974
  });
23974
23975
 
23975
23976
  if (preparedColumns.length && (showEdit || showDelete)) {
@@ -24158,6 +24159,7 @@ var TableField = function TableField(_ref) {
24158
24159
  return setOpenModal(false);
24159
24160
  }
24160
24161
  }), renderActions(), /*#__PURE__*/React.createElement(_Table, _extends({
24162
+ className: tableMode === 'tree' ? 'drip_table_field_tree' : '',
24161
24163
  pagination: pagination === 'yes' ? {
24162
24164
  pageSize: Number(amountOfDataPerPage) || 20
24163
24165
  } : false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@innoways/drip-form-theme-antd",
3
- "version": "6.1.0",
3
+ "version": "6.2.0",
4
4
  "author": "JDFED",
5
5
  "description": "drip-form antd主题包",
6
6
  "main": "dist/index.js",
@@ -31,8 +31,8 @@
31
31
  "dependencies": {
32
32
  "@ant-design/icons": "^4.7.0",
33
33
  "@babel/runtime": "^7.10.2",
34
- "@innoways/hooks": "^6.1.0",
35
- "@innoways/utils": "^6.1.0",
34
+ "@innoways/hooks": "^6.2.0",
35
+ "@innoways/utils": "^6.2.0",
36
36
  "moment": "^2.26.0",
37
37
  "react-color": "^2.18.1",
38
38
  "use-immer": "^0.6.0"