@fle-ui/plus-table 1.2.28-beta.1 → 1.2.29
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/es/{FormSearch → components/FormSearch}/FormRender.d.ts +1 -1
- package/es/{FormSearch → components/FormSearch}/FormRender.js +1 -2
- package/es/{FormSearch → components/FormSearch}/index.js +0 -8
- package/es/{FormSearch → components/FormSearch}/index.less +0 -3
- package/es/index.d.ts +4 -3
- package/es/index.js +425 -345
- package/es/mock/list.json +720 -0
- package/es/utils/common.d.ts +0 -10
- package/es/utils/common.js +0 -5
- package/lib/{FormSearch → components/FormSearch}/FormRender.d.ts +1 -1
- package/lib/{FormSearch → components/FormSearch}/FormRender.js +3 -4
- package/lib/{FormSearch → components/FormSearch}/index.js +0 -8
- package/lib/{FormSearch → components/FormSearch}/index.less +0 -3
- package/lib/index.d.ts +4 -3
- package/lib/index.js +422 -344
- package/lib/mock/list.json +720 -0
- package/lib/utils/common.d.ts +0 -10
- package/lib/utils/common.js +1 -7
- package/package.json +6 -6
- package/es/components/icon/index.d.ts +0 -3
- package/es/components/icon/index.js +0 -7
- package/es/json/columnKeys.d.ts +0 -15
- package/es/json/columnKeys.js +0 -182
- package/es/json/list.d.ts +0 -1365
- package/es/json/list.js +0 -1388
- package/lib/components/icon/index.d.ts +0 -3
- package/lib/components/icon/index.js +0 -13
- package/lib/json/columnKeys.d.ts +0 -15
- package/lib/json/columnKeys.js +0 -188
- package/lib/json/list.d.ts +0 -1365
- package/lib/json/list.js +0 -1394
- /package/es/{FormSearch → components/FormSearch}/index.d.ts +0 -0
- /package/lib/{FormSearch → components/FormSearch}/index.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseQueryFilterProps, ProFormInstance, ProFormProps } from '@ant-design/pro-
|
|
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-
|
|
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';
|
|
@@ -168,14 +168,6 @@ var FormSearch = /*#__PURE__*/function (_React$Component) {
|
|
|
168
168
|
search: search,
|
|
169
169
|
form: _objectSpread(_objectSpread({
|
|
170
170
|
onValuesChange: function onValuesChange(changeValue, allValue) {
|
|
171
|
-
for (var key in changeValue) {
|
|
172
|
-
if (Object.hasOwn(changeValue, key)) {
|
|
173
|
-
if (!changeValue[key]) {
|
|
174
|
-
changeValue[key] = undefined;
|
|
175
|
-
allValue[key] = undefined;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
171
|
_this.props.changeValue(changeValue, allValue);
|
|
180
172
|
},
|
|
181
173
|
autoFocusFirstInput: false
|
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
|
|
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:
|
|
24
|
+
updateSetting?: (params: SettingsColumns) => void;
|
|
25
25
|
resetSetting?: () => Promise<{
|
|
26
26
|
success: boolean;
|
|
27
27
|
}>;
|
|
@@ -34,6 +34,7 @@ interface PlusTableProps<DataSource, U, ValueType> extends Omit<ProTableProps<Da
|
|
|
34
34
|
};
|
|
35
35
|
hasShowFull?: boolean;
|
|
36
36
|
getContainer?: string | HTMLElement | (() => HTMLElement) | false;
|
|
37
|
+
defaultShowFull?: boolean;
|
|
37
38
|
}
|
|
38
39
|
interface PlusTableRef {
|
|
39
40
|
getFieldsValue: () => Promise<any>;
|