@fle-ui/plus-table 1.2.28 → 1.2.30-beta.1

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 (33) hide show
  1. package/es/{FormSearch → components/FormSearch}/FormRender.d.ts +1 -1
  2. package/es/{FormSearch → components/FormSearch}/FormRender.js +1 -2
  3. package/es/{FormSearch → components/FormSearch}/index.less +5 -3
  4. package/es/index.d.ts +3 -3
  5. package/es/index.js +420 -336
  6. package/es/mock/list.json +720 -0
  7. package/es/utils/common.d.ts +0 -10
  8. package/es/utils/common.js +0 -5
  9. package/lib/{FormSearch → components/FormSearch}/FormRender.d.ts +1 -1
  10. package/lib/{FormSearch → components/FormSearch}/FormRender.js +3 -4
  11. package/lib/{FormSearch → components/FormSearch}/index.less +5 -3
  12. package/lib/index.d.ts +3 -3
  13. package/lib/index.js +419 -335
  14. package/lib/mock/list.json +720 -0
  15. package/lib/utils/common.d.ts +0 -10
  16. package/lib/utils/common.js +1 -7
  17. package/package.json +6 -6
  18. package/es/components/icon/index.d.ts +0 -3
  19. package/es/components/icon/index.js +0 -7
  20. package/es/json/columnKeys.d.ts +0 -15
  21. package/es/json/columnKeys.js +0 -182
  22. package/es/json/list.d.ts +0 -1365
  23. package/es/json/list.js +0 -1388
  24. package/lib/components/icon/index.d.ts +0 -3
  25. package/lib/components/icon/index.js +0 -13
  26. package/lib/json/columnKeys.d.ts +0 -15
  27. package/lib/json/columnKeys.js +0 -188
  28. package/lib/json/list.d.ts +0 -1365
  29. package/lib/json/list.js +0 -1394
  30. /package/es/{FormSearch → components/FormSearch}/index.d.ts +0 -0
  31. /package/es/{FormSearch → components/FormSearch}/index.js +0 -0
  32. /package/lib/{FormSearch → components/FormSearch}/index.d.ts +0 -0
  33. /package/lib/{FormSearch → components/FormSearch}/index.js +0 -0
@@ -1,4 +1,4 @@
1
- import type { BaseQueryFilterProps, ProFormInstance, ProFormProps } from '@ant-design/pro-form';
1
+ import type { BaseQueryFilterProps, ProFormInstance, ProFormProps } from '@ant-design/pro-components';
2
2
  import type { ProSchemaComponentTypes } from '@ant-design/pro-utils';
3
3
  import type { FormItemProps } from 'antd';
4
4
  import React from 'react';
@@ -12,8 +12,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
12
12
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
13
13
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
14
14
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
15
- import { BetaSchemaForm } from '@ant-design/pro-form';
16
- import { ProProvider } from '@ant-design/pro-provider';
15
+ import { ProProvider, BetaSchemaForm } from '@ant-design/pro-components';
17
16
  import classNames from 'classnames';
18
17
  import omit from 'omit.js';
19
18
  import React, { useContext, useMemo } from 'react';
@@ -3,9 +3,6 @@
3
3
  ::-webkit-scrollbar {
4
4
  width: 2px;
5
5
  }
6
- // .ant-tree-checkbox-checked
7
- // .ant-tree-checkbox-disabled
8
- // pointer-events: none;
9
6
  .ant-pro-query-filter-row {
10
7
  row-gap: 12px;
11
8
  }
@@ -56,4 +53,9 @@
56
53
  &.turn-left {
57
54
  width: calc(100% - 356px);
58
55
  }
56
+
57
+ // antd tree 的虚拟滚动有问题,无法滚动到底部,这里强制使用原生滚动
58
+ .ant-tree.ant-tree-block-node .ant-tree-list-holder-inner {
59
+ transform: none !important;
60
+ }
59
61
  }
package/es/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
2
  import type { ProTableProps, ProColumns } from '@ant-design/pro-components';
3
- import './FormSearch/index.less';
3
+ import './components/FormSearch/index.less';
4
4
  interface PlusColumns extends ProColumns {
5
5
  baseSearch?: boolean;
6
6
  }
7
7
  export type { PlusColumns };
8
- export type settingsColumns = {
8
+ export type SettingsColumns = {
9
9
  [key: string]: {
10
10
  hideInTable?: boolean;
11
11
  show?: boolean;
@@ -21,7 +21,7 @@ interface PlusTableProps<DataSource, U, ValueType> extends Omit<ProTableProps<Da
21
21
  columns: PlusColumns[];
22
22
  top?: number;
23
23
  fetchSetting?: () => Promise<Record<string, any>>;
24
- updateSetting?: (params: settingsColumns) => void;
24
+ updateSetting?: (params: SettingsColumns) => void;
25
25
  resetSetting?: () => Promise<{
26
26
  success: boolean;
27
27
  }>;