es-grid-template 1.9.63 → 1.9.64

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.
Files changed (46) hide show
  1. package/es/ali-table/Grid.js +5 -2
  2. package/es/ali-table/InternalTable.js +499 -49
  3. package/es/ali-table/base-table/calculations.js +1 -1
  4. package/es/ali-table/base-table/cell/EditCell.js +14 -6
  5. package/es/ali-table/base-table/renderFilter.js +1 -1
  6. package/es/ali-table/interfaces.d.ts +2 -2
  7. package/es/ali-table/pipeline/features/columnCustom.d.ts +4 -2
  8. package/es/ali-table/pipeline/features/columnCustom.js +112 -48
  9. package/es/ali-table/utils/constants.d.ts +1 -0
  10. package/es/ali-table/utils/constants.js +1 -0
  11. package/es/ali-table/utils/convertColumnsChoose.d.ts +2 -2
  12. package/es/ali-table/utils/convertColumnsChoose.js +1 -2
  13. package/es/ali-table/utils/utility.d.ts +15 -1
  14. package/es/ali-table/utils/utility.js +399 -1
  15. package/es/grid-component/type.d.ts +2 -2
  16. package/es/group-component/hook/utils.d.ts +3 -3
  17. package/es/table-component/TableContainerEdit.js +148 -98
  18. package/es/table-component/body/EditableCell.js +9 -5
  19. package/es/table-component/body/TableBodyCellEdit.js +14 -8
  20. package/es/table-component/header/renderFilter.js +1 -1
  21. package/es/table-component/hook/utils.d.ts +1 -1
  22. package/es/table-component/hook/utils.js +2 -6
  23. package/es/table-component/useContext.d.ts +1 -1
  24. package/lib/ali-table/Grid.js +5 -2
  25. package/lib/ali-table/InternalTable.js +490 -45
  26. package/lib/ali-table/base-table/calculations.js +1 -1
  27. package/lib/ali-table/base-table/cell/EditCell.js +14 -6
  28. package/lib/ali-table/base-table/renderFilter.js +1 -1
  29. package/lib/ali-table/interfaces.d.ts +2 -2
  30. package/lib/ali-table/pipeline/features/columnCustom.d.ts +4 -2
  31. package/lib/ali-table/pipeline/features/columnCustom.js +106 -46
  32. package/lib/ali-table/utils/constants.d.ts +1 -0
  33. package/lib/ali-table/utils/constants.js +2 -1
  34. package/lib/ali-table/utils/convertColumnsChoose.d.ts +2 -2
  35. package/lib/ali-table/utils/convertColumnsChoose.js +1 -2
  36. package/lib/ali-table/utils/utility.d.ts +15 -1
  37. package/lib/ali-table/utils/utility.js +410 -2
  38. package/lib/grid-component/type.d.ts +2 -2
  39. package/lib/table-component/TableContainerEdit.js +148 -98
  40. package/lib/table-component/body/EditableCell.js +9 -5
  41. package/lib/table-component/body/TableBodyCellEdit.js +11 -7
  42. package/lib/table-component/header/renderFilter.js +1 -1
  43. package/lib/table-component/hook/utils.d.ts +1 -1
  44. package/lib/table-component/hook/utils.js +2 -6
  45. package/lib/table-component/useContext.d.ts +1 -1
  46. package/package.json +1 -1
@@ -18,6 +18,7 @@ import { TableContext } from "./useContext";
18
18
  import { StyleTableContainer } from "./base-table/styles";
19
19
  import { ColumnsConfig } from "../table-component/ColumnsConfig";
20
20
  import { convertFlatColumn1 } from "../table-component/hook/utils";
21
+ import { getVisibleColumnFields } from "./utils/utility";
21
22
  // import { StyleTableContainer } from "./base-table/styles";
22
23
 
23
24
  const Grid = /*#__PURE__*/React.forwardRef((props, ref) => {
@@ -55,7 +56,7 @@ const Grid = /*#__PURE__*/React.forwardRef((props, ref) => {
55
56
  originColumns,
56
57
  // columns,
57
58
  groupColumns,
58
- // setVisibleKeys,
59
+ setVisibleKeys,
59
60
  footerDataSource,
60
61
  loading,
61
62
  useVirtual,
@@ -157,12 +158,14 @@ const Grid = /*#__PURE__*/React.forwardRef((props, ref) => {
157
158
  };
158
159
  }, []);
159
160
  const triggerChangeColumns = (cols, keys, type) => {
161
+ const abc = getVisibleColumnFields(cols);
162
+ setVisibleKeys(abc);
160
163
  if (type === 'cellClick') {
161
164
 
162
165
  // setColumns(cols)
163
166
  } else {
164
167
  // setColumns(cols)
165
- pipeline.columns(cols);
168
+ // pipeline.columns(cols)
166
169
 
167
170
  // const aa = flatColumns2(columns).map((it) => it.field)
168
171