@bit-sun/business-component 4.0.13-alpha.17 → 4.0.13-alpha.18
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/dist/components/Business/AddSelectBusiness/index.d.ts +4 -4
- package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +2 -2
- package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +2 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +2 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +2 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +2 -2
- package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +2 -2
- package/dist/components/Business/BsLayouts/index.d.ts +1 -1
- package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +5 -5
- package/dist/components/Business/BsSulaQueryTable/index.d.ts +2 -2
- package/dist/components/Business/BsSulaQueryTable/setting.d.ts +6 -6
- package/dist/components/Business/BsSulaQueryTable/utils.d.ts +15 -15
- package/dist/components/Business/CommodityEntry/index.d.ts +2 -2
- package/dist/components/Business/CommonAlert/index.d.ts +2 -2
- package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
- package/dist/components/Business/DetailPageWrapper/index.d.ts +6 -6
- package/dist/components/Business/HomePageWrapper/index.d.ts +2 -2
- package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +2 -2
- package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +2 -2
- package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +2 -2
- package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +2 -2
- package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +2 -2
- package/dist/components/Business/PropertyModal/index.d.ts +2 -2
- package/dist/components/Business/PropertyModal/propertyGroup.d.ts +1 -1
- package/dist/components/Business/SearchSelect/index.d.ts +1 -1
- package/dist/components/Business/StateFlow/index.d.ts +2 -2
- package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
- package/dist/components/Business/columnSettingTable/columnSetting.d.ts +6 -6
- package/dist/components/Business/columnSettingTable/components/TableSumComponent.d.ts +2 -2
- package/dist/components/Business/columnSettingTable/index.d.ts +2 -2
- package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +2 -2
- package/dist/components/Business/columnSettingTable/utils.d.ts +2 -2
- package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
- package/dist/components/Common/ParagraphCopier/index.d.ts +1 -1
- package/dist/components/Common/Section/index.d.ts +1 -1
- package/dist/components/Functional/AddSelect/index.d.ts +2 -2
- package/dist/components/Functional/AuthButton/index.d.ts +2 -2
- package/dist/components/Functional/DataImport/index.d.ts +3 -3
- package/dist/components/Functional/DataValidation/index.d.ts +3 -3
- package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +2 -2
- package/dist/components/Functional/QueryMutipleInput/index.d.ts +2 -2
- package/dist/components/Functional/QueryMutipleSelect/index.d.ts +2 -2
- package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
- package/dist/components/Functional/SearchSelect/utils.d.ts +5 -4
- package/dist/components/Functional/TreeSearchSelect/index.d.ts +2 -2
- package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.d.ts +1 -1
- package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.d.ts +2 -2
- package/dist/components/Solution/RuleComponent/Formula.d.ts +2 -2
- package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +2 -2
- package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +2 -2
- package/dist/components/Solution/RuleSetter/RuleInstance.d.ts +2 -2
- package/dist/components/Solution/RuleSetter/baseRule.d.ts +1 -1
- package/dist/components/Solution/RuleSetter/index.d.ts +1 -1
- package/dist/index.esm.js +54 -14
- package/dist/index.js +53 -13
- package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
- package/dist/utils/TableUtils.d.ts +19 -19
- package/package.json +1 -1
- package/src/components/Functional/SearchSelect/index.tsx +22 -3
- package/src/components/Functional/SearchSelect/utils.tsx +6 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const AddSkuSelect: (parProps: any) => JSX.Element;
|
|
3
|
-
export declare const AddSkcSelect: (parProps: any) => JSX.Element;
|
|
4
|
-
export declare const AddSpuSelect: (parProps: any) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const AddSkuSelect: (parProps: any) => React.JSX.Element;
|
|
3
|
+
export declare const AddSkcSelect: (parProps: any) => React.JSX.Element;
|
|
4
|
+
export declare const AddSpuSelect: (parProps: any) => React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import './index.less';
|
|
3
3
|
export type SiderTheme = 'light' | 'dark';
|
|
4
|
-
declare const DrawContent: ({ onClose, itemPath }: any) => JSX.Element;
|
|
4
|
+
declare const DrawContent: ({ onClose, itemPath }: any) => React.JSX.Element;
|
|
5
5
|
export default DrawContent;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const ChooseStore: (props: any) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const ChooseStore: (props: any) => React.JSX.Element;
|
|
3
3
|
export default ChooseStore;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import './index.less';
|
|
3
|
-
declare const MenuSetting: React.ForwardRefExoticComponent<
|
|
3
|
+
declare const MenuSetting: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
|
|
4
4
|
export default MenuSetting;
|
package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts
CHANGED
|
@@ -12,6 +12,6 @@ declare class LeftTree extends React.Component<any> {
|
|
|
12
12
|
onChange: (e: any) => void;
|
|
13
13
|
getPathList: (originData: any) => Array<any>;
|
|
14
14
|
handleAdd2Menu: (path: string) => void;
|
|
15
|
-
render(): JSX.Element;
|
|
15
|
+
render(): React.JSX.Element;
|
|
16
16
|
}
|
|
17
17
|
export default LeftTree;
|
package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ declare class rightTree extends React.Component<any> {
|
|
|
24
24
|
handleBatchDelete: () => void;
|
|
25
25
|
handleAddTreeNode: (e: any, item: any) => void;
|
|
26
26
|
onCheck: (checkedKeysValue: React.Key[]) => void;
|
|
27
|
-
getChildMenu: (item: any) => JSX.Element;
|
|
28
|
-
render(): JSX.Element;
|
|
27
|
+
getChildMenu: (item: any) => React.JSX.Element;
|
|
28
|
+
render(): React.JSX.Element;
|
|
29
29
|
}
|
|
30
30
|
export default rightTree;
|
package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import './drawContent.less';
|
|
3
|
-
declare const DrawContent: ({ onClose, originRoutes, itemPath }: any) => JSX.Element;
|
|
3
|
+
declare const DrawContent: ({ onClose, originRoutes, itemPath }: any) => React.JSX.Element;
|
|
4
4
|
export default DrawContent;
|
package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const CustomerMenuHeader: ({ collapsed, handleClose, originRoutes, itemPath }: any) => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const CustomerMenuHeader: ({ collapsed, handleClose, originRoutes, itemPath }: any) => React.JSX.Element;
|
|
3
3
|
export default CustomerMenuHeader;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import './index.less';
|
|
3
|
-
declare const CustomerMenu: React.ForwardRefExoticComponent<
|
|
3
|
+
declare const CustomerMenu: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
|
|
4
4
|
export default CustomerMenu;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import './index.less';
|
|
3
3
|
export declare const judgeIsEmpty: (value: any) => boolean;
|
|
4
|
-
declare const GlobalHeaderCom: (props: any) => JSX.Element;
|
|
4
|
+
declare const GlobalHeaderCom: (props: any) => React.JSX.Element;
|
|
5
5
|
export default GlobalHeaderCom;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const _default: (props: any) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: (props: any) => React.JSX.Element;
|
|
3
3
|
export default _default;
|
|
@@ -25,13 +25,13 @@ declare class SearchItemTable extends React.Component {
|
|
|
25
25
|
} | {
|
|
26
26
|
title: string;
|
|
27
27
|
dataIndex: string;
|
|
28
|
-
render: (text: any, record: any) => JSX.Element;
|
|
28
|
+
render: (text: any, record: any) => React.JSX.Element;
|
|
29
29
|
className?: undefined;
|
|
30
30
|
} | {
|
|
31
31
|
title: string;
|
|
32
32
|
dataIndex: string;
|
|
33
33
|
className: string;
|
|
34
|
-
render: () => JSX.Element;
|
|
34
|
+
render: () => React.JSX.Element;
|
|
35
35
|
})[];
|
|
36
36
|
showModal: () => void;
|
|
37
37
|
handleOk: (e?: React.MouseEvent<HTMLElement>) => void;
|
|
@@ -41,18 +41,18 @@ declare class SearchItemTable extends React.Component {
|
|
|
41
41
|
oldIndex: any;
|
|
42
42
|
newIndex: any;
|
|
43
43
|
}) => void;
|
|
44
|
-
DraggableContainer: (props: any) => JSX.Element;
|
|
44
|
+
DraggableContainer: (props: any) => React.JSX.Element;
|
|
45
45
|
DraggableBodyRow: ({ className, style, ...restProps }: {
|
|
46
46
|
[x: string]: any;
|
|
47
47
|
className: any;
|
|
48
48
|
style: any;
|
|
49
|
-
}) => JSX.Element;
|
|
49
|
+
}) => React.JSX.Element;
|
|
50
50
|
onChange: (e: CheckboxChangeEvent, name: any) => void;
|
|
51
51
|
handleReset: () => void;
|
|
52
52
|
handleResetSetting: () => void;
|
|
53
53
|
onSearch: (e: any) => void;
|
|
54
54
|
onSearchSort: (e: any) => void;
|
|
55
55
|
showSearchItemLabel: (item: object) => any;
|
|
56
|
-
render(): JSX.Element;
|
|
56
|
+
render(): React.JSX.Element;
|
|
57
57
|
}
|
|
58
58
|
export default SearchItemTable;
|
|
@@ -22,18 +22,18 @@ declare class SortableTable extends React.Component {
|
|
|
22
22
|
dataIndex: string;
|
|
23
23
|
className: string;
|
|
24
24
|
width: number;
|
|
25
|
-
render: (text: any, record: any) => JSX.Element;
|
|
25
|
+
render: (text: any, record: any) => React.JSX.Element;
|
|
26
26
|
} | {
|
|
27
27
|
title: string;
|
|
28
28
|
dataIndex: string;
|
|
29
|
-
render: (text: any, record: any) => JSX.Element;
|
|
29
|
+
render: (text: any, record: any) => React.JSX.Element;
|
|
30
30
|
className?: undefined;
|
|
31
31
|
width?: undefined;
|
|
32
32
|
} | {
|
|
33
33
|
title: string;
|
|
34
34
|
dataIndex: string;
|
|
35
35
|
className: string;
|
|
36
|
-
render: () => JSX.Element;
|
|
36
|
+
render: () => React.JSX.Element;
|
|
37
37
|
width?: undefined;
|
|
38
38
|
})[];
|
|
39
39
|
showModal: () => void;
|
|
@@ -44,17 +44,17 @@ declare class SortableTable extends React.Component {
|
|
|
44
44
|
oldIndex: any;
|
|
45
45
|
newIndex: any;
|
|
46
46
|
}) => void;
|
|
47
|
-
DraggableContainer: (props: any) => JSX.Element;
|
|
47
|
+
DraggableContainer: (props: any) => React.JSX.Element;
|
|
48
48
|
DraggableBodyRow: ({ className, style, ...restProps }: {
|
|
49
49
|
[x: string]: any;
|
|
50
50
|
className: any;
|
|
51
51
|
style: any;
|
|
52
|
-
}) => JSX.Element;
|
|
52
|
+
}) => React.JSX.Element;
|
|
53
53
|
onChange: (e: CheckboxChangeEvent, title: any) => void;
|
|
54
54
|
handleReset: () => void;
|
|
55
55
|
handleResetSetting: () => Promise<unknown>;
|
|
56
56
|
onSearch: (e: any) => void;
|
|
57
57
|
onSearchSort: (e: any) => void;
|
|
58
|
-
render(): JSX.Element;
|
|
58
|
+
render(): React.JSX.Element;
|
|
59
59
|
}
|
|
60
60
|
export default SortableTable;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import moment from 'moment';
|
|
3
3
|
import './utils.less';
|
|
4
|
-
export declare const handleStatusBadge: (text: any, color: any) => JSX.Element;
|
|
5
|
-
export declare const HandleTotalCount: (totalParams: any) => JSX.Element;
|
|
4
|
+
export declare const handleStatusBadge: (text: any, color: any) => React.JSX.Element;
|
|
5
|
+
export declare const HandleTotalCount: (totalParams: any) => React.JSX.Element;
|
|
6
6
|
export declare const updateGuanDate: (requestParams: any, dateKeyParams?: any) => {
|
|
7
7
|
type: string;
|
|
8
8
|
width: number;
|
|
@@ -42,18 +42,18 @@ export declare const updateGuanDate: (requestParams: any, dateKeyParams?: any) =
|
|
|
42
42
|
};
|
|
43
43
|
export declare const renderZeroInSummary: (value: any) => number | "-";
|
|
44
44
|
export declare const calculateValidPeriod: (start: any, end: any) => string;
|
|
45
|
-
export declare const handleTextDouble: (textOne: string | undefined, textTwo: string | undefined) => JSX.Element;
|
|
46
|
-
export declare const handleTextLineFeed: (text: string | undefined, width?: number) => JSX.Element;
|
|
47
|
-
export declare const handleTextOverflow: (text: string | undefined, width?: number) => JSX.Element;
|
|
48
|
-
export declare const handleTextOverflowNoTooltip: (text: string | undefined, width?: number) => JSX.Element;
|
|
49
|
-
export declare const handleTooltip: (text: any, timeTrue?: boolean) => JSX.Element;
|
|
50
|
-
export declare const handleTooltipHours: (text: any, timeTrue?: boolean) => JSX.Element;
|
|
45
|
+
export declare const handleTextDouble: (textOne: string | undefined, textTwo: string | undefined) => React.JSX.Element;
|
|
46
|
+
export declare const handleTextLineFeed: (text: string | undefined, width?: number) => React.JSX.Element;
|
|
47
|
+
export declare const handleTextOverflow: (text: string | undefined, width?: number) => React.JSX.Element;
|
|
48
|
+
export declare const handleTextOverflowNoTooltip: (text: string | undefined, width?: number) => React.JSX.Element;
|
|
49
|
+
export declare const handleTooltip: (text: any, timeTrue?: boolean) => React.JSX.Element;
|
|
50
|
+
export declare const handleTooltipHours: (text: any, timeTrue?: boolean) => React.JSX.Element;
|
|
51
51
|
type tableColumnsImageType = {
|
|
52
52
|
width?: number | string;
|
|
53
53
|
height?: number | string;
|
|
54
54
|
[key: string]: any;
|
|
55
55
|
};
|
|
56
|
-
export declare const tableColumnsImage: (url?: string, paramsObj?: tableColumnsImageType) => JSX.Element;
|
|
56
|
+
export declare const tableColumnsImage: (url?: string, paramsObj?: tableColumnsImageType) => React.JSX.Element;
|
|
57
57
|
type UserColumnsType = {
|
|
58
58
|
name: string;
|
|
59
59
|
department?: string;
|
|
@@ -61,8 +61,8 @@ type UserColumnsType = {
|
|
|
61
61
|
company?: string;
|
|
62
62
|
avatar?: string;
|
|
63
63
|
};
|
|
64
|
-
export declare const userColumns: (props: UserColumnsType) => JSX.Element;
|
|
65
|
-
export declare const userInfoCard: (props: any) => JSX.Element;
|
|
64
|
+
export declare const userColumns: (props: UserColumnsType) => React.JSX.Element;
|
|
65
|
+
export declare const userInfoCard: (props: any) => React.JSX.Element;
|
|
66
66
|
export declare function handleCommonTimeRenderHours(text: any, format?: any): any;
|
|
67
67
|
export declare function handleCommonTimeRender(text: any, format?: any): any;
|
|
68
68
|
interface ColumnsEditInterfave {
|
|
@@ -80,9 +80,9 @@ interface ColumnsEditInterfave {
|
|
|
80
80
|
};
|
|
81
81
|
[key: string]: any;
|
|
82
82
|
}
|
|
83
|
-
export declare const ColumnsEdit: (props: ColumnsEditInterfave) => JSX.Element;
|
|
84
|
-
export declare const handleTextDoubleOrId: (textOne: string | undefined, textTwo: string | undefined) => JSX.Element;
|
|
85
|
-
export declare const textIcon: (type: string | number, text?: string) => JSX.Element | undefined;
|
|
83
|
+
export declare const ColumnsEdit: (props: ColumnsEditInterfave) => React.JSX.Element;
|
|
84
|
+
export declare const handleTextDoubleOrId: (textOne: string | undefined, textTwo: string | undefined) => React.JSX.Element;
|
|
85
|
+
export declare const textIcon: (type: string | number, text?: string) => React.JSX.Element | undefined;
|
|
86
86
|
export declare const renderFixed2: (text: any) => any;
|
|
87
87
|
export declare const getItemDefaultWidth: (item: any) => number;
|
|
88
88
|
/**
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const CommodityEntry: (props: any) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const CommodityEntry: (props: any) => React.JSX.Element;
|
|
3
3
|
export default CommodityEntry;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Component } from 'react';
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
2
|
import './index.less';
|
|
3
3
|
export default class GuideWrapper extends Component {
|
|
4
|
-
static Field: ({ children, titleExtra, title, extra, bordered, ...props }: any) => JSX.Element;
|
|
5
|
-
render(): JSX.Element;
|
|
4
|
+
static Field: ({ children, titleExtra, title, extra, bordered, ...props }: any) => React.JSX.Element;
|
|
5
|
+
render(): React.JSX.Element;
|
|
6
6
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import './index.less';
|
|
3
3
|
export declare const iconMap: {
|
|
4
|
-
edit: JSX.Element;
|
|
5
|
-
delete: JSX.Element;
|
|
6
|
-
submit: JSX.Element;
|
|
7
|
-
more: JSX.Element;
|
|
4
|
+
edit: React.JSX.Element;
|
|
5
|
+
delete: React.JSX.Element;
|
|
6
|
+
submit: React.JSX.Element;
|
|
7
|
+
more: React.JSX.Element;
|
|
8
8
|
};
|
|
9
|
-
declare const _default: (props: any) => JSX.Element;
|
|
9
|
+
declare const _default: (props: any) => React.JSX.Element;
|
|
10
10
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const FieldsModifyModal: (props: any) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const FieldsModifyModal: (props: any) => React.JSX.Element;
|
|
3
3
|
export default FieldsModifyModal;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const _default: (props: any) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: (props: any) => React.JSX.Element;
|
|
3
3
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const _default: (props: any) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: (props: any) => React.JSX.Element;
|
|
3
3
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const _default: (props: any) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: (props: any) => React.JSX.Element;
|
|
3
3
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import "./index.less";
|
|
3
3
|
interface propertyValueType {
|
|
4
4
|
propertyName: string;
|
|
@@ -19,5 +19,5 @@ declare const PropertySelector: ({ value, onChange, width, ...restProps }: {
|
|
|
19
19
|
value: valueType;
|
|
20
20
|
onChange: any;
|
|
21
21
|
width: string;
|
|
22
|
-
}) => JSX.Element;
|
|
22
|
+
}) => React.JSX.Element;
|
|
23
23
|
export default PropertySelector;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<
|
|
2
|
+
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>>;
|
|
3
3
|
export default _default;
|
|
@@ -24,18 +24,18 @@ declare class SortableTable extends React.Component<SortTableProps> {
|
|
|
24
24
|
dataIndex: string;
|
|
25
25
|
className: string;
|
|
26
26
|
width: number;
|
|
27
|
-
render: (text: any, record: any) => JSX.Element;
|
|
27
|
+
render: (text: any, record: any) => React.JSX.Element;
|
|
28
28
|
} | {
|
|
29
29
|
title: string;
|
|
30
30
|
dataIndex: string;
|
|
31
|
-
render: (text: any, record: any) => JSX.Element;
|
|
31
|
+
render: (text: any, record: any) => React.JSX.Element;
|
|
32
32
|
className?: undefined;
|
|
33
33
|
width?: undefined;
|
|
34
34
|
} | {
|
|
35
35
|
title: string;
|
|
36
36
|
dataIndex: string;
|
|
37
37
|
className: string;
|
|
38
|
-
render: () => JSX.Element;
|
|
38
|
+
render: () => React.JSX.Element;
|
|
39
39
|
width?: undefined;
|
|
40
40
|
})[];
|
|
41
41
|
showModal: () => void;
|
|
@@ -43,14 +43,14 @@ declare class SortableTable extends React.Component<SortTableProps> {
|
|
|
43
43
|
handleCancel: (e: React.MouseEvent<HTMLElement>) => void;
|
|
44
44
|
handleTableHeadHidden: (title: string) => void;
|
|
45
45
|
onSortEnd: ({ oldIndex, newIndex }: any) => void;
|
|
46
|
-
DraggableContainer: (props: any) => JSX.Element;
|
|
47
|
-
DraggableBodyRow: ({ className, style, ...restProps }: any) => JSX.Element;
|
|
46
|
+
DraggableContainer: (props: any) => React.JSX.Element;
|
|
47
|
+
DraggableBodyRow: ({ className, style, ...restProps }: any) => React.JSX.Element;
|
|
48
48
|
onChange: (e: any, title: any) => void;
|
|
49
49
|
handleReset: () => void;
|
|
50
50
|
handleResetSetting: () => Promise<unknown>;
|
|
51
51
|
onSearch: (e: any) => void;
|
|
52
52
|
onSearchSort: (e: any) => void;
|
|
53
53
|
getConfigFromlocalstorage: () => any;
|
|
54
|
-
render(): JSX.Element;
|
|
54
|
+
render(): React.JSX.Element;
|
|
55
55
|
}
|
|
56
56
|
export default SortableTable;
|
|
@@ -11,7 +11,7 @@ export default class ColumnSettingTable extends React.Component {
|
|
|
11
11
|
getTableSummaryInfo: () => () => any;
|
|
12
12
|
handledynamicColumns: (col: any[]) => any[];
|
|
13
13
|
handleResize: (index: any) => (_: any, { size }: any) => void;
|
|
14
|
-
ResizeableTitle: (props: any) => JSX.Element;
|
|
14
|
+
ResizeableTitle: (props: any) => React.JSX.Element;
|
|
15
15
|
getTableScrollXWidth: (cols: any[]) => any;
|
|
16
|
-
render(): JSX.Element;
|
|
16
|
+
render(): React.JSX.Element;
|
|
17
17
|
}
|
|
@@ -11,7 +11,7 @@ export default class ColumnSettingSulaTable extends React.Component {
|
|
|
11
11
|
getTableSummaryInfo: () => () => any;
|
|
12
12
|
handledynamicColumns: (col: any[]) => any[];
|
|
13
13
|
handleResize: (index: any) => (_: any, { size }: any) => void;
|
|
14
|
-
ResizeableTitle: (props: any) => JSX.Element;
|
|
14
|
+
ResizeableTitle: (props: any) => React.JSX.Element;
|
|
15
15
|
getTableScrollXWidth: (cols: any[]) => any;
|
|
16
|
-
render(): JSX.Element;
|
|
16
|
+
render(): React.JSX.Element;
|
|
17
17
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
/**
|
|
3
3
|
* 非空数组
|
|
4
4
|
* @param arr 要判断的数据
|
|
@@ -6,5 +6,5 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export declare const noEmptyArray: (arr: any[]) => boolean;
|
|
8
8
|
export declare const getItemDefaultWidth: (item: any) => number;
|
|
9
|
-
export declare const handleTextOverflow: (text: string | undefined, width?: number) => JSX.Element;
|
|
9
|
+
export declare const handleTextOverflow: (text: string | undefined, width?: number) => React.JSX.Element;
|
|
10
10
|
export declare const getShowColumns: (originColumns: any[], configs: any[]) => any[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
declare const _default: React.ForwardRefExoticComponent<
|
|
2
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
|
|
3
3
|
export default _default;
|
|
@@ -4,5 +4,5 @@ export interface ParagraphCopierProps {
|
|
|
4
4
|
text: string;
|
|
5
5
|
enableHover?: boolean;
|
|
6
6
|
}
|
|
7
|
-
declare const ParagraphCopier: (props: ParagraphCopierProps) => JSX.Element;
|
|
7
|
+
declare const ParagraphCopier: (props: ParagraphCopierProps) => React.JSX.Element;
|
|
8
8
|
export default ParagraphCopier;
|
|
@@ -25,5 +25,5 @@ interface IProps {
|
|
|
25
25
|
ellipsis?: ellipsisProps;
|
|
26
26
|
}
|
|
27
27
|
export type SectionProps = PropsWithChildren<IProps>;
|
|
28
|
-
declare const Section: ({ children, copyable, label, icon, ellipsis, }: SectionProps) => JSX.Element;
|
|
28
|
+
declare const Section: ({ children, copyable, label, icon, ellipsis, }: SectionProps) => React.JSX.Element;
|
|
29
29
|
export default Section;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const AuthButton: (props: any) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const AuthButton: (props: any) => React.JSX.Element;
|
|
3
3
|
export default AuthButton;
|
|
@@ -137,10 +137,10 @@ declare class DataImport extends React.Component {
|
|
|
137
137
|
toggleData: () => void;
|
|
138
138
|
onChange: (e: any) => void;
|
|
139
139
|
errorChange: (e: any) => void;
|
|
140
|
-
menuList: JSX.Element;
|
|
141
|
-
leftMenu: JSX.Element;
|
|
140
|
+
menuList: React.JSX.Element;
|
|
141
|
+
leftMenu: React.JSX.Element;
|
|
142
142
|
getSheetMap: () => {};
|
|
143
143
|
importExcelToLuckySheet: (resultData: any) => void;
|
|
144
|
-
render(): JSX.Element;
|
|
144
|
+
render(): React.JSX.Element;
|
|
145
145
|
}
|
|
146
146
|
export default DataImport;
|
|
@@ -137,10 +137,10 @@ declare class DataValidation extends React.Component {
|
|
|
137
137
|
toggleData: () => void;
|
|
138
138
|
onChange: (e: any) => void;
|
|
139
139
|
errorChange: (e: any) => void;
|
|
140
|
-
menuList: JSX.Element;
|
|
141
|
-
leftMenu: JSX.Element;
|
|
140
|
+
menuList: React.JSX.Element;
|
|
141
|
+
leftMenu: React.JSX.Element;
|
|
142
142
|
getSheetMap: () => {};
|
|
143
143
|
importExcelToLuckySheet: (resultData: any) => void;
|
|
144
|
-
render(): JSX.Element;
|
|
144
|
+
render(): React.JSX.Element;
|
|
145
145
|
}
|
|
146
146
|
export default DataValidation;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
interface exportIconType {
|
|
3
3
|
/** others选填,使用axios发请求,*/
|
|
4
4
|
request: {
|
|
@@ -9,5 +9,5 @@ interface exportIconType {
|
|
|
9
9
|
/** BsSulaQueryTable的tableRef*/
|
|
10
10
|
tableRef: any;
|
|
11
11
|
}
|
|
12
|
-
declare const ExportIcon: ({ request: exportRequest, tableRef, allowSelect, columnsRowKey }: exportIconType) => JSX.Element;
|
|
12
|
+
declare const ExportIcon: ({ request: exportRequest, tableRef, allowSelect, columnsRowKey }: exportIconType) => React.JSX.Element;
|
|
13
13
|
export default ExportIcon;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import './index.less';
|
|
3
3
|
declare const QueryMutipleInput: ({ onValueChange, onPressEnter }: {
|
|
4
4
|
onValueChange: any;
|
|
5
5
|
onPressEnter: any;
|
|
6
|
-
}) => JSX.Element;
|
|
6
|
+
}) => React.JSX.Element;
|
|
7
7
|
export default QueryMutipleInput;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import './index.less';
|
|
3
3
|
export declare const getValue: (value: any, selectMode?: any) => any;
|
|
4
|
-
declare const QueryMutipleSearchSelect: ({ onValueChange, requestConfig, selectProps, ctx }: any) => JSX.Element;
|
|
4
|
+
declare const QueryMutipleSearchSelect: ({ onValueChange, requestConfig, selectProps, ctx }: any) => React.JSX.Element;
|
|
5
5
|
export default QueryMutipleSearchSelect;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './index.less';
|
|
3
|
-
declare const SearchSelect: React.ForwardRefExoticComponent<
|
|
3
|
+
declare const SearchSelect: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
|
|
4
4
|
export default SearchSelect;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/// <reference types="lodash" />
|
|
2
|
-
|
|
2
|
+
import React from 'react';
|
|
3
3
|
export declare const columnsPerRow = 4;
|
|
4
4
|
export declare const ColSpan = 6;
|
|
5
5
|
export declare const handleSourceName: (sName: any) => any;
|
|
6
6
|
export declare const makeUniqueValue: () => string;
|
|
7
|
-
export declare const getFormRowInfo: (list: any) => {
|
|
7
|
+
export declare const getFormRowInfo: (list: any, tableSearchColSpan: number) => {
|
|
8
8
|
totalRows: number;
|
|
9
9
|
emptyArray: any[];
|
|
10
|
+
ColSpan: number;
|
|
10
11
|
};
|
|
11
12
|
export declare const defaultVisibleFieldsCount = 7;
|
|
12
13
|
export declare const getVisibleFieldsCount: (modalTableProps: any) => any;
|
|
@@ -23,7 +24,7 @@ export declare const convertUrlQueryParams: (params: any) => string;
|
|
|
23
24
|
export declare const convertBodyParams: (params: any) => any;
|
|
24
25
|
export declare const convertResData: (requestConfig: any, res: any, selectProps: any) => any;
|
|
25
26
|
export declare const handleSelectOptionsShowValue: (specialBracket: boolean, noNeedSplit: boolean, item: any) => any;
|
|
26
|
-
export declare const LightHeightOption: (props: any) => JSX.Element;
|
|
27
|
-
export declare const maxTagPlaceholder: (selectedValues: any, { selectProps, onChange, value, setIsMaxTagsOpen }: any) => JSX.Element;
|
|
27
|
+
export declare const LightHeightOption: (props: any) => React.JSX.Element;
|
|
28
|
+
export declare const maxTagPlaceholder: (selectedValues: any, { selectProps, onChange, value, setIsMaxTagsOpen }: any) => React.JSX.Element;
|
|
28
29
|
export declare const handleTableColumns: (tableColumns: any) => any;
|
|
29
30
|
export declare const getShowStr: ({ viewShowValueStr, labelInValue, selectMode, value, items }: any) => any;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const TreeSearchSelect: (props: any) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const TreeSearchSelect: (props: any) => React.JSX.Element;
|
|
3
3
|
export default TreeSearchSelect;
|
package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
declare const _default: React.ForwardRefExoticComponent<
|
|
2
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
|
|
3
3
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const _default: (props: any) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: (props: any) => React.JSX.Element;
|
|
3
3
|
export default _default;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
declare const App: ({ setValue, formula, record, sourceData, disabled }: {
|
|
3
3
|
setValue: any;
|
|
4
4
|
record: any;
|
|
5
5
|
sourceData: any;
|
|
6
6
|
formula?: any;
|
|
7
7
|
disabled?: boolean | undefined;
|
|
8
|
-
}) => JSX.Element;
|
|
8
|
+
}) => React.JSX.Element;
|
|
9
9
|
export default App;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
interface Iprops {
|
|
3
3
|
disabled: boolean;
|
|
4
4
|
inputType: number;
|
|
@@ -8,5 +8,5 @@ interface Iprops {
|
|
|
8
8
|
onChange: any;
|
|
9
9
|
dictionaryCode?: string;
|
|
10
10
|
}
|
|
11
|
-
declare const _default: (props: Iprops) => JSX.Element;
|
|
11
|
+
declare const _default: (props: Iprops) => React.JSX.Element;
|
|
12
12
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export default function RenderCompItem(props: any): JSX.Element | undefined;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export default function RenderCompItem(props: any): React.JSX.Element | undefined;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const _default: (props: any) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: (props: any) => React.JSX.Element;
|
|
3
3
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
declare const _default: React.ForwardRefExoticComponent<
|
|
2
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
|
|
3
3
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
declare const _default: React.ForwardRefExoticComponent<
|
|
2
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
|
|
3
3
|
export default _default;
|
package/dist/index.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import axios from 'axios';
|
|
2
2
|
import request$1 from 'umi-request';
|
|
3
3
|
import cookie from 'js-cookie';
|
|
4
|
-
import { message as message$1, Tooltip, Image, Popover, Card, Avatar, Badge, Menu, Input, InputNumber, Space, Button, Dropdown, Upload, Checkbox, Modal, ConfigProvider, Tag, Select, Spin, Form, Table, Empty, Row, Col, Tabs, TreeSelect, Typography, Alert, Breadcrumb, Drawer as Drawer$1, List, Radio, Tree, Result, Affix, Cascader,
|
|
4
|
+
import { message as message$1, Tooltip, Image, Popover, Card, Avatar, Badge, Menu, Input, InputNumber, Space, Button, Dropdown, Upload, Checkbox, Modal, ConfigProvider, Tag, Select, Spin, Form, Table, Empty, Row, Col, Tabs, TreeSelect, DatePicker, Typography, Alert, Breadcrumb, Drawer as Drawer$1, List, Radio, Tree, Result, Affix, Cascader, TimePicker, Divider, Switch, Collapse } from 'antd';
|
|
5
5
|
import _, { omit, uniqBy, escapeRegExp, isNil, debounce, cloneDeep as cloneDeep$1, throttle, isEmpty } from 'lodash';
|
|
6
6
|
import memoizeOne from 'memoize-one';
|
|
7
7
|
import { formatMessage, history, useLocation, Link, useModel, setLocale, useIntl, request as request$3 } from 'umi';
|
|
@@ -4092,14 +4092,16 @@ var makeUniqueValue = function makeUniqueValue() {
|
|
|
4092
4092
|
return generateUnitKey;
|
|
4093
4093
|
};
|
|
4094
4094
|
// ------------------------------------------处理样式相关--开始----------------------------------------
|
|
4095
|
-
var getFormRowInfo = function getFormRowInfo(list) {
|
|
4096
|
-
var
|
|
4097
|
-
var
|
|
4098
|
-
var
|
|
4095
|
+
var getFormRowInfo = function getFormRowInfo(list, tableSearchColSpan) {
|
|
4096
|
+
var lastColumnsPerRow = tableSearchColSpan == 6 ? columnsPerRow : 3;
|
|
4097
|
+
var totalRows = Math.ceil(list.length / lastColumnsPerRow); // 计算总行数
|
|
4098
|
+
var lastRowColumns = (list.length + 1) % lastColumnsPerRow; // 计算最后一行的实际列数
|
|
4099
|
+
var emptySlots = lastRowColumns === 0 ? 0 : lastColumnsPerRow - lastRowColumns; // 计算最后一行的空位数
|
|
4099
4100
|
var emptyArray = new Array(emptySlots).fill(null); // 生成长度为 emptySlots 的数组
|
|
4100
4101
|
return {
|
|
4101
4102
|
totalRows: totalRows,
|
|
4102
|
-
emptyArray: emptyArray
|
|
4103
|
+
emptyArray: emptyArray,
|
|
4104
|
+
ColSpan: tableSearchColSpan !== null && tableSearchColSpan !== void 0 ? tableSearchColSpan : ColSpan
|
|
4103
4105
|
};
|
|
4104
4106
|
};
|
|
4105
4107
|
var defaultVisibleFieldsCount = 7;
|
|
@@ -5926,15 +5928,16 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5926
5928
|
return false;
|
|
5927
5929
|
}
|
|
5928
5930
|
};
|
|
5929
|
-
var _getFormRowInfo = getFormRowInfo(list),
|
|
5930
|
-
emptyArray = _getFormRowInfo.emptyArray
|
|
5931
|
+
var _getFormRowInfo = getFormRowInfo(list, modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchColSpan),
|
|
5932
|
+
emptyArray = _getFormRowInfo.emptyArray,
|
|
5933
|
+
ColSpan = _getFormRowInfo.ColSpan;
|
|
5931
5934
|
var addKong = (emptyArray === null || emptyArray === void 0 ? void 0 : emptyArray.map(function (i) {
|
|
5932
5935
|
return {
|
|
5933
5936
|
type: 'kong'
|
|
5934
5937
|
};
|
|
5935
5938
|
})) || [];
|
|
5936
5939
|
return list === null || list === void 0 ? void 0 : (_list$concat = list.concat(addKong)) === null || _list$concat === void 0 ? void 0 : _list$concat.map(function (i, index) {
|
|
5937
|
-
var _i$field, _i$field3, _i$field5, _i$
|
|
5940
|
+
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field10, _i$field11, _i$field12, _i$field13;
|
|
5938
5941
|
if ((i === null || i === void 0 ? void 0 : i.type) === 'kong') return /*#__PURE__*/React$1.createElement(Col, {
|
|
5939
5942
|
span: ColSpan,
|
|
5940
5943
|
key: i
|
|
@@ -5983,7 +5986,44 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5983
5986
|
disabled: setDisabled(i.name)
|
|
5984
5987
|
}))));
|
|
5985
5988
|
}
|
|
5986
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === '
|
|
5989
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'rangepicker' || (i === null || i === void 0 ? void 0 : (_i$field5 = i.field) === null || _i$field5 === void 0 ? void 0 : _i$field5.type) === 'rangepicker') {
|
|
5990
|
+
var _i$initialValue, _i$field6;
|
|
5991
|
+
return /*#__PURE__*/React$1.createElement(Col, {
|
|
5992
|
+
span: ColSpan,
|
|
5993
|
+
key: i.name
|
|
5994
|
+
}, /*#__PURE__*/React$1.createElement(Form.Item, {
|
|
5995
|
+
name: i.name,
|
|
5996
|
+
label: i.label,
|
|
5997
|
+
key: i.name,
|
|
5998
|
+
initialValue: (_i$initialValue = i === null || i === void 0 ? void 0 : i.initialValue) !== null && _i$initialValue !== void 0 ? _i$initialValue : []
|
|
5999
|
+
}, /*#__PURE__*/React$1.createElement(DatePicker.RangePicker, _objectSpread2(_objectSpread2({
|
|
6000
|
+
style: {
|
|
6001
|
+
width: '100%'
|
|
6002
|
+
},
|
|
6003
|
+
placeholder: "\u8BF7\u9009\u62E9"
|
|
6004
|
+
}, i === null || i === void 0 ? void 0 : (_i$field6 = i.field) === null || _i$field6 === void 0 ? void 0 : _i$field6.props), {}, {
|
|
6005
|
+
disabled: setDisabled(i.name)
|
|
6006
|
+
}))));
|
|
6007
|
+
}
|
|
6008
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'datepicker' || (i === null || i === void 0 ? void 0 : (_i$field7 = i.field) === null || _i$field7 === void 0 ? void 0 : _i$field7.type) === 'datepicker') {
|
|
6009
|
+
var _i$field8;
|
|
6010
|
+
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6011
|
+
span: ColSpan,
|
|
6012
|
+
key: i.name
|
|
6013
|
+
}, /*#__PURE__*/React$1.createElement(Form.Item, {
|
|
6014
|
+
name: i.name,
|
|
6015
|
+
label: i.label,
|
|
6016
|
+
key: i.name
|
|
6017
|
+
}, /*#__PURE__*/React$1.createElement(DatePicker, _objectSpread2(_objectSpread2({
|
|
6018
|
+
style: {
|
|
6019
|
+
width: '100%'
|
|
6020
|
+
},
|
|
6021
|
+
placeholder: "\u8BF7\u9009\u62E9"
|
|
6022
|
+
}, i === null || i === void 0 ? void 0 : (_i$field8 = i.field) === null || _i$field8 === void 0 ? void 0 : _i$field8.props), {}, {
|
|
6023
|
+
disabled: setDisabled(i.name)
|
|
6024
|
+
}))));
|
|
6025
|
+
}
|
|
6026
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'businessSearchSelect' || (i === null || i === void 0 ? void 0 : (_i$field9 = i.field) === null || _i$field9 === void 0 ? void 0 : _i$field9.type) === 'businessSearchSelect') {
|
|
5987
6027
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
5988
6028
|
span: ColSpan,
|
|
5989
6029
|
key: i.name
|
|
@@ -5995,7 +6035,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5995
6035
|
disabled: setDisabled(i.name)
|
|
5996
6036
|
}))));
|
|
5997
6037
|
}
|
|
5998
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6038
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$field10 = i.field) === null || _i$field10 === void 0 ? void 0 : _i$field10.type) === 'multipleQueryInput') {
|
|
5999
6039
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6000
6040
|
span: ColSpan,
|
|
6001
6041
|
key: i.name
|
|
@@ -6009,7 +6049,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6009
6049
|
}
|
|
6010
6050
|
})));
|
|
6011
6051
|
}
|
|
6012
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6052
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field11 = i.field) === null || _i$field11 === void 0 ? void 0 : _i$field11.type) === 'proppertySelector') {
|
|
6013
6053
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6014
6054
|
span: ColSpan,
|
|
6015
6055
|
key: i.name
|
|
@@ -6019,7 +6059,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6019
6059
|
key: i.name
|
|
6020
6060
|
}, /*#__PURE__*/React$1.createElement(PropertySelector, null)));
|
|
6021
6061
|
}
|
|
6022
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6062
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field12 = i.field) === null || _i$field12 === void 0 ? void 0 : _i$field12.type) === 'multipleQuerySearchSelect') {
|
|
6023
6063
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6024
6064
|
span: ColSpan,
|
|
6025
6065
|
key: i.name
|
|
@@ -6048,7 +6088,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6048
6088
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
6049
6089
|
allowClear: true,
|
|
6050
6090
|
maxLength: 100
|
|
6051
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6091
|
+
}, i === null || i === void 0 ? void 0 : (_i$field13 = i.field) === null || _i$field13 === void 0 ? void 0 : _i$field13.props), {}, {
|
|
6052
6092
|
disabled: setDisabled(i.name)
|
|
6053
6093
|
}))));
|
|
6054
6094
|
});
|
package/dist/index.js
CHANGED
|
@@ -4115,14 +4115,16 @@ var makeUniqueValue = function makeUniqueValue() {
|
|
|
4115
4115
|
return generateUnitKey;
|
|
4116
4116
|
};
|
|
4117
4117
|
// ------------------------------------------处理样式相关--开始----------------------------------------
|
|
4118
|
-
var getFormRowInfo = function getFormRowInfo(list) {
|
|
4119
|
-
var
|
|
4120
|
-
var
|
|
4121
|
-
var
|
|
4118
|
+
var getFormRowInfo = function getFormRowInfo(list, tableSearchColSpan) {
|
|
4119
|
+
var lastColumnsPerRow = tableSearchColSpan == 6 ? columnsPerRow : 3;
|
|
4120
|
+
var totalRows = Math.ceil(list.length / lastColumnsPerRow); // 计算总行数
|
|
4121
|
+
var lastRowColumns = (list.length + 1) % lastColumnsPerRow; // 计算最后一行的实际列数
|
|
4122
|
+
var emptySlots = lastRowColumns === 0 ? 0 : lastColumnsPerRow - lastRowColumns; // 计算最后一行的空位数
|
|
4122
4123
|
var emptyArray = new Array(emptySlots).fill(null); // 生成长度为 emptySlots 的数组
|
|
4123
4124
|
return {
|
|
4124
4125
|
totalRows: totalRows,
|
|
4125
|
-
emptyArray: emptyArray
|
|
4126
|
+
emptyArray: emptyArray,
|
|
4127
|
+
ColSpan: tableSearchColSpan !== null && tableSearchColSpan !== void 0 ? tableSearchColSpan : ColSpan
|
|
4126
4128
|
};
|
|
4127
4129
|
};
|
|
4128
4130
|
var defaultVisibleFieldsCount = 7;
|
|
@@ -5949,15 +5951,16 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5949
5951
|
return false;
|
|
5950
5952
|
}
|
|
5951
5953
|
};
|
|
5952
|
-
var _getFormRowInfo = getFormRowInfo(list),
|
|
5953
|
-
emptyArray = _getFormRowInfo.emptyArray
|
|
5954
|
+
var _getFormRowInfo = getFormRowInfo(list, modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchColSpan),
|
|
5955
|
+
emptyArray = _getFormRowInfo.emptyArray,
|
|
5956
|
+
ColSpan = _getFormRowInfo.ColSpan;
|
|
5954
5957
|
var addKong = (emptyArray === null || emptyArray === void 0 ? void 0 : emptyArray.map(function (i) {
|
|
5955
5958
|
return {
|
|
5956
5959
|
type: 'kong'
|
|
5957
5960
|
};
|
|
5958
5961
|
})) || [];
|
|
5959
5962
|
return list === null || list === void 0 ? void 0 : (_list$concat = list.concat(addKong)) === null || _list$concat === void 0 ? void 0 : _list$concat.map(function (i, index) {
|
|
5960
|
-
var _i$field, _i$field3, _i$field5, _i$
|
|
5963
|
+
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field10, _i$field11, _i$field12, _i$field13;
|
|
5961
5964
|
if ((i === null || i === void 0 ? void 0 : i.type) === 'kong') return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
5962
5965
|
span: ColSpan,
|
|
5963
5966
|
key: i
|
|
@@ -6006,7 +6009,44 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6006
6009
|
disabled: setDisabled(i.name)
|
|
6007
6010
|
}))));
|
|
6008
6011
|
}
|
|
6009
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === '
|
|
6012
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'rangepicker' || (i === null || i === void 0 ? void 0 : (_i$field5 = i.field) === null || _i$field5 === void 0 ? void 0 : _i$field5.type) === 'rangepicker') {
|
|
6013
|
+
var _i$initialValue, _i$field6;
|
|
6014
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6015
|
+
span: ColSpan,
|
|
6016
|
+
key: i.name
|
|
6017
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
6018
|
+
name: i.name,
|
|
6019
|
+
label: i.label,
|
|
6020
|
+
key: i.name,
|
|
6021
|
+
initialValue: (_i$initialValue = i === null || i === void 0 ? void 0 : i.initialValue) !== null && _i$initialValue !== void 0 ? _i$initialValue : []
|
|
6022
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.DatePicker.RangePicker, _objectSpread2(_objectSpread2({
|
|
6023
|
+
style: {
|
|
6024
|
+
width: '100%'
|
|
6025
|
+
},
|
|
6026
|
+
placeholder: "\u8BF7\u9009\u62E9"
|
|
6027
|
+
}, i === null || i === void 0 ? void 0 : (_i$field6 = i.field) === null || _i$field6 === void 0 ? void 0 : _i$field6.props), {}, {
|
|
6028
|
+
disabled: setDisabled(i.name)
|
|
6029
|
+
}))));
|
|
6030
|
+
}
|
|
6031
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'datepicker' || (i === null || i === void 0 ? void 0 : (_i$field7 = i.field) === null || _i$field7 === void 0 ? void 0 : _i$field7.type) === 'datepicker') {
|
|
6032
|
+
var _i$field8;
|
|
6033
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6034
|
+
span: ColSpan,
|
|
6035
|
+
key: i.name
|
|
6036
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
6037
|
+
name: i.name,
|
|
6038
|
+
label: i.label,
|
|
6039
|
+
key: i.name
|
|
6040
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.DatePicker, _objectSpread2(_objectSpread2({
|
|
6041
|
+
style: {
|
|
6042
|
+
width: '100%'
|
|
6043
|
+
},
|
|
6044
|
+
placeholder: "\u8BF7\u9009\u62E9"
|
|
6045
|
+
}, i === null || i === void 0 ? void 0 : (_i$field8 = i.field) === null || _i$field8 === void 0 ? void 0 : _i$field8.props), {}, {
|
|
6046
|
+
disabled: setDisabled(i.name)
|
|
6047
|
+
}))));
|
|
6048
|
+
}
|
|
6049
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'businessSearchSelect' || (i === null || i === void 0 ? void 0 : (_i$field9 = i.field) === null || _i$field9 === void 0 ? void 0 : _i$field9.type) === 'businessSearchSelect') {
|
|
6010
6050
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6011
6051
|
span: ColSpan,
|
|
6012
6052
|
key: i.name
|
|
@@ -6018,7 +6058,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6018
6058
|
disabled: setDisabled(i.name)
|
|
6019
6059
|
}))));
|
|
6020
6060
|
}
|
|
6021
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6061
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$field10 = i.field) === null || _i$field10 === void 0 ? void 0 : _i$field10.type) === 'multipleQueryInput') {
|
|
6022
6062
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6023
6063
|
span: ColSpan,
|
|
6024
6064
|
key: i.name
|
|
@@ -6032,7 +6072,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6032
6072
|
}
|
|
6033
6073
|
})));
|
|
6034
6074
|
}
|
|
6035
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6075
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field11 = i.field) === null || _i$field11 === void 0 ? void 0 : _i$field11.type) === 'proppertySelector') {
|
|
6036
6076
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6037
6077
|
span: ColSpan,
|
|
6038
6078
|
key: i.name
|
|
@@ -6042,7 +6082,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6042
6082
|
key: i.name
|
|
6043
6083
|
}, /*#__PURE__*/React__default['default'].createElement(PropertySelector, null)));
|
|
6044
6084
|
}
|
|
6045
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6085
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field12 = i.field) === null || _i$field12 === void 0 ? void 0 : _i$field12.type) === 'multipleQuerySearchSelect') {
|
|
6046
6086
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6047
6087
|
span: ColSpan,
|
|
6048
6088
|
key: i.name
|
|
@@ -6071,7 +6111,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6071
6111
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
6072
6112
|
allowClear: true,
|
|
6073
6113
|
maxLength: 100
|
|
6074
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6114
|
+
}, i === null || i === void 0 ? void 0 : (_i$field13 = i.field) === null || _i$field13 === void 0 ? void 0 : _i$field13.props), {}, {
|
|
6075
6115
|
disabled: setDisabled(i.name)
|
|
6076
6116
|
}))));
|
|
6077
6117
|
});
|
|
@@ -38,14 +38,14 @@ declare class TableColumnSetting extends React.Component<TableColumnSettingProps
|
|
|
38
38
|
} | {
|
|
39
39
|
title: string;
|
|
40
40
|
dataIndex: string;
|
|
41
|
-
render: (text: any, record: any) => JSX.Element;
|
|
41
|
+
render: (text: any, record: any) => React.JSX.Element;
|
|
42
42
|
className?: undefined;
|
|
43
43
|
width?: undefined;
|
|
44
44
|
} | {
|
|
45
45
|
title: string;
|
|
46
46
|
dataIndex: string;
|
|
47
47
|
className: string;
|
|
48
|
-
render: () => JSX.Element;
|
|
48
|
+
render: () => React.JSX.Element;
|
|
49
49
|
width?: undefined;
|
|
50
50
|
})[];
|
|
51
51
|
showModal: () => void;
|
|
@@ -53,12 +53,12 @@ declare class TableColumnSetting extends React.Component<TableColumnSettingProps
|
|
|
53
53
|
handleCancel: (e: React.MouseEvent<HTMLElement>) => void;
|
|
54
54
|
handleTableHeadHidden: (title: string) => void;
|
|
55
55
|
onSortEnd: ({ oldIndex, newIndex }: any) => void;
|
|
56
|
-
DraggableContainer: (props: any) => JSX.Element;
|
|
57
|
-
DraggableBodyRow: ({ className, style, ...restProps }: any) => JSX.Element;
|
|
56
|
+
DraggableContainer: (props: any) => React.JSX.Element;
|
|
57
|
+
DraggableBodyRow: ({ className, style, ...restProps }: any) => React.JSX.Element;
|
|
58
58
|
onChange: (e: any, title: any) => void;
|
|
59
59
|
handleReset: () => void;
|
|
60
60
|
onSearch: (e: any) => void;
|
|
61
61
|
onSearchSort: (e: any) => void;
|
|
62
|
-
render(): JSX.Element;
|
|
62
|
+
render(): React.JSX.Element;
|
|
63
63
|
}
|
|
64
64
|
export default TableColumnSetting;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import moment from 'moment';
|
|
3
3
|
type mediaListType = {
|
|
4
4
|
type: number;
|
|
@@ -49,24 +49,24 @@ declare const updateGuanDate: (requestParams: any, dateKeyParams?: any) => {
|
|
|
49
49
|
};
|
|
50
50
|
submit: any;
|
|
51
51
|
};
|
|
52
|
-
declare const textIcon: (type: string | number, text?: string) => JSX.Element | undefined;
|
|
53
|
-
declare const handleTextDoubleOrId: (textOne: string | undefined, textTwo: string | undefined) => JSX.Element;
|
|
54
|
-
declare const handleTextDouble: (textOne: string | undefined, textTwo: string | undefined) => JSX.Element;
|
|
55
|
-
declare const handleTextOverflow: (text: string | undefined, width?: number) => JSX.Element;
|
|
56
|
-
declare const handleTextLineFeed: (text: string | undefined, width?: number) => JSX.Element;
|
|
57
|
-
declare const handleTextTooltip: (text: any) => JSX.Element;
|
|
58
|
-
declare const handleTextBreakSpaces: (text: any) => JSX.Element;
|
|
59
|
-
declare const handleStatusBadge: (text: any, color: any) => JSX.Element;
|
|
60
|
-
declare const HandleTotalCount: (totalParams: any) => JSX.Element;
|
|
52
|
+
declare const textIcon: (type: string | number, text?: string) => React.JSX.Element | undefined;
|
|
53
|
+
declare const handleTextDoubleOrId: (textOne: string | undefined, textTwo: string | undefined) => React.JSX.Element;
|
|
54
|
+
declare const handleTextDouble: (textOne: string | undefined, textTwo: string | undefined) => React.JSX.Element;
|
|
55
|
+
declare const handleTextOverflow: (text: string | undefined, width?: number) => React.JSX.Element;
|
|
56
|
+
declare const handleTextLineFeed: (text: string | undefined, width?: number) => React.JSX.Element;
|
|
57
|
+
declare const handleTextTooltip: (text: any) => React.JSX.Element;
|
|
58
|
+
declare const handleTextBreakSpaces: (text: any) => React.JSX.Element;
|
|
59
|
+
declare const handleStatusBadge: (text: any, color: any) => React.JSX.Element;
|
|
60
|
+
declare const HandleTotalCount: (totalParams: any) => React.JSX.Element;
|
|
61
61
|
declare const handleCommonTimeRender: (text: any, format?: any) => any;
|
|
62
|
-
declare const handleTooltip: (text: any, timeTrue?: boolean) => JSX.Element;
|
|
63
|
-
declare const handleTooltipHours: (text: any, timeTrue?: boolean) => JSX.Element;
|
|
62
|
+
declare const handleTooltip: (text: any, timeTrue?: boolean) => React.JSX.Element;
|
|
63
|
+
declare const handleTooltipHours: (text: any, timeTrue?: boolean) => React.JSX.Element;
|
|
64
64
|
type tableColumnsImageType = {
|
|
65
65
|
width?: number | string;
|
|
66
66
|
height?: number | string;
|
|
67
67
|
[key: string]: any;
|
|
68
68
|
};
|
|
69
|
-
declare const tableColumnsImage: (url?: string, paramsObj?: tableColumnsImageType) => JSX.Element;
|
|
69
|
+
declare const tableColumnsImage: (url?: string, paramsObj?: tableColumnsImageType) => React.JSX.Element;
|
|
70
70
|
interface ColumnsEditInterfave {
|
|
71
71
|
text?: string;
|
|
72
72
|
record?: any;
|
|
@@ -82,7 +82,7 @@ interface ColumnsEditInterfave {
|
|
|
82
82
|
};
|
|
83
83
|
[key: string]: any;
|
|
84
84
|
}
|
|
85
|
-
declare const ColumnsEdit: (props: ColumnsEditInterfave) => JSX.Element;
|
|
85
|
+
declare const ColumnsEdit: (props: ColumnsEditInterfave) => React.JSX.Element;
|
|
86
86
|
type UserColumnsType = {
|
|
87
87
|
name: string;
|
|
88
88
|
department?: string;
|
|
@@ -90,13 +90,13 @@ type UserColumnsType = {
|
|
|
90
90
|
company?: string;
|
|
91
91
|
avatar?: string;
|
|
92
92
|
};
|
|
93
|
-
declare const userColumns: (props: UserColumnsType) => JSX.Element;
|
|
94
|
-
declare const userInfoCard: (props: any) => JSX.Element;
|
|
93
|
+
declare const userColumns: (props: UserColumnsType) => React.JSX.Element;
|
|
94
|
+
declare const userInfoCard: (props: any) => React.JSX.Element;
|
|
95
95
|
declare const getItemDefaultWidth: (item: any) => number;
|
|
96
|
-
declare const sulaTableRenderTooltip: ({ text }: any) => JSX.Element;
|
|
96
|
+
declare const sulaTableRenderTooltip: ({ text }: any) => React.JSX.Element;
|
|
97
97
|
declare const renderNumberText: ({ text }: any) => any;
|
|
98
98
|
declare const renderFixed2: (text: any) => any;
|
|
99
|
-
declare const handleTextWarpCustom: (text: any, style?: {}) => JSX.Element;
|
|
99
|
+
declare const handleTextWarpCustom: (text: any, style?: {}) => React.JSX.Element;
|
|
100
100
|
declare const calculateValidPeriod: (start: any, end: any) => string;
|
|
101
|
-
declare const handleTextWarp: (text: any) => JSX.Element;
|
|
101
|
+
declare const handleTextWarp: (text: any) => React.JSX.Element;
|
|
102
102
|
export { getSkuImg, updateGuanDate, textIcon, handleTextDoubleOrId, handleTextDouble, handleTextOverflow, handleTextLineFeed, handleTextTooltip, handleTextBreakSpaces, handleStatusBadge, HandleTotalCount, handleTooltip, handleCommonTimeRender, handleTooltipHours, tableColumnsImage, ColumnsEdit, userColumns, userInfoCard, getItemDefaultWidth, renderNumberText, sulaTableRenderTooltip, renderFixed2, handleTextWarpCustom, handleTextWarp, calculateValidPeriod };
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import React, { useState, useEffect, forwardRef, useImperativeHandle } from 'react';
|
|
3
3
|
import { useDebounceFn } from 'ahooks';
|
|
4
|
-
import { Input, Button, Modal, Select, Divider, message, Spin, Form, Table, Checkbox, TreeSelect, Tooltip, Tag, Row, Col, Space, Tabs, Empty } from 'antd';
|
|
4
|
+
import { Input, Button, Modal, Select, Divider, message, Spin, Form, Table, Checkbox, TreeSelect, Tooltip, Tag, Row, Col, Space, Tabs, Empty, DatePicker } from 'antd';
|
|
5
5
|
import { SearchOutlined, CopyOutlined, CaretLeftOutlined } from '@ant-design/icons';
|
|
6
6
|
import request from '@/utils/request';
|
|
7
7
|
import _, { escapeRegExp, isNil, values } from "lodash"
|
|
8
8
|
import './index.less';
|
|
9
9
|
import { BusinessSearchSelect, QueryMutipleInput, QueryMutipleSearchSelect } from '@/index';
|
|
10
|
-
import { handleSourceName, getFormRowInfo, hasMoreQueryFields, defaultVisibleFieldsCount, getRealStr,
|
|
10
|
+
import { handleSourceName, getFormRowInfo, hasMoreQueryFields, defaultVisibleFieldsCount, getRealStr, getTableHeigth, getCurrentSRKs, getRenderSource, handleParams, convertUrlQueryParams, convertBodyParams, formatSelectedValue, convertResData, makeUniqueValue, handleSelectOptionsShowValue, LightHeightOption, maxTagPlaceholder, getShowStr, handleTableColumns } from './utils';
|
|
11
11
|
import { judgeIsRequestError } from '@/utils/requestUtils';
|
|
12
12
|
import zhankaitiaojian from '../../../assets/zhankaitiaojian-icon.svg';
|
|
13
13
|
import PropertySelector from '@/components/Business/PropertyModal';
|
|
@@ -573,7 +573,7 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
|
|
|
573
573
|
}
|
|
574
574
|
};
|
|
575
575
|
|
|
576
|
-
const { emptyArray } = getFormRowInfo(list);
|
|
576
|
+
const { emptyArray, ColSpan } = getFormRowInfo(list, modalTableProps?.tableSearchColSpan);
|
|
577
577
|
const addKong = emptyArray?.map((i: any) =>({ type: 'kong'}))||[];
|
|
578
578
|
return list?.concat(addKong)?.map((i: any, index: number) => {
|
|
579
579
|
if(i?.type === 'kong') return <Col span={ColSpan} key={i}></Col>;
|
|
@@ -602,6 +602,25 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
|
|
|
602
602
|
)
|
|
603
603
|
}
|
|
604
604
|
|
|
605
|
+
if (i?.type === 'rangepicker' || i?.field?.type === 'rangepicker') {
|
|
606
|
+
return (
|
|
607
|
+
<Col span={ColSpan} key={i.name}>
|
|
608
|
+
<Form.Item name={i.name} label={i.label} key={i.name} initialValue={i?.initialValue ?? []}>
|
|
609
|
+
<DatePicker.RangePicker style={{ width: '100%' }} placeholder='请选择' {...i?.field?.props} disabled={setDisabled(i.name)}></DatePicker.RangePicker>
|
|
610
|
+
</Form.Item>
|
|
611
|
+
</Col>
|
|
612
|
+
)
|
|
613
|
+
}
|
|
614
|
+
if (i?.type === 'datepicker' || i?.field?.type === 'datepicker') {
|
|
615
|
+
return (
|
|
616
|
+
<Col span={ColSpan} key={i.name}>
|
|
617
|
+
<Form.Item name={i.name} label={i.label} key={i.name}>
|
|
618
|
+
<DatePicker style={{ width: '100%' }} placeholder='请选择' {...i?.field?.props} disabled={setDisabled(i.name)}></DatePicker>
|
|
619
|
+
</Form.Item>
|
|
620
|
+
</Col>
|
|
621
|
+
)
|
|
622
|
+
}
|
|
623
|
+
|
|
605
624
|
if (i?.type === 'businessSearchSelect' || i?.field?.type === 'businessSearchSelect') {
|
|
606
625
|
return (
|
|
607
626
|
<Col span={ColSpan} key={i.name}>
|
|
@@ -17,12 +17,13 @@ export const handleSourceName = (sName: any) => {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
// ------------------------------------------处理样式相关--开始----------------------------------------
|
|
20
|
-
export const getFormRowInfo = (list: any) => {
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
20
|
+
export const getFormRowInfo = (list: any, tableSearchColSpan: number) => {
|
|
21
|
+
const lastColumnsPerRow = tableSearchColSpan == 6 ? columnsPerRow : 3;
|
|
22
|
+
const totalRows = Math.ceil(list.length / lastColumnsPerRow); // 计算总行数
|
|
23
|
+
const lastRowColumns = (list.length+1) % lastColumnsPerRow; // 计算最后一行的实际列数
|
|
24
|
+
const emptySlots = lastRowColumns === 0 ? 0 : lastColumnsPerRow - lastRowColumns; // 计算最后一行的空位数
|
|
24
25
|
const emptyArray = new Array(emptySlots).fill(null); // 生成长度为 emptySlots 的数组
|
|
25
|
-
return { totalRows, emptyArray }
|
|
26
|
+
return { totalRows, emptyArray, ColSpan: tableSearchColSpan ?? ColSpan}
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
export const defaultVisibleFieldsCount = 7;
|