@bit-sun/business-component 1.2.3 → 1.2.4-alpha.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 (169) hide show
  1. package/.fatherrc.ts +1 -0
  2. package/.umirc.ts +31 -16
  3. package/dist/components/Business/AddSelectBusiness/index.d.ts +1 -0
  4. package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +4 -0
  5. package/dist/components/Business/BsLayouts/Components/AllFunc/index.d.ts +4 -0
  6. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +4 -0
  7. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +17 -0
  8. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +30 -0
  9. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +3 -0
  10. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +2 -0
  11. package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +4 -0
  12. package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +4 -0
  13. package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +2 -0
  14. package/dist/components/Business/BsLayouts/Components/RightContent/index.d.ts +8 -0
  15. package/dist/components/Business/BsLayouts/Components/SearchFunc/index.d.ts +8 -0
  16. package/dist/components/Business/BsLayouts/index.d.ts +18 -0
  17. package/dist/components/Business/BsLayouts/service.d.ts +1 -0
  18. package/dist/components/Business/BsLayouts/utils.d.ts +13 -0
  19. package/dist/components/Business/BsSulaQueryTable/index.d.ts +2 -0
  20. package/dist/components/Business/BsSulaQueryTable/setting.d.ts +58 -0
  21. package/dist/components/Business/BsSulaQueryTable/utils.d.ts +98 -0
  22. package/dist/components/Business/CommonAlert/index.d.ts +3 -0
  23. package/dist/components/Business/CommonGuideWrapper/index.d.ts +6 -0
  24. package/dist/components/Business/DetailPageWrapper/index.d.ts +9 -0
  25. package/dist/components/Business/DetailPageWrapper/utils.d.ts +8 -0
  26. package/dist/components/Business/HomePageWrapper/index.d.ts +3 -0
  27. package/dist/components/Business/SearchSelect/BusinessUtils.d.ts +1 -1
  28. package/dist/components/Business/SearchSelect/common.d.ts +5 -1
  29. package/dist/components/Business/SearchSelect/index.d.ts +1 -1
  30. package/dist/components/Business/SearchSelect/utils.d.ts +2 -1
  31. package/dist/components/Business/StateFlow/index.d.ts +3 -0
  32. package/dist/components/Business/TreeSearchSelect/index.d.ts +3 -0
  33. package/dist/components/Business/TreeSearchSelect/utils.d.ts +2 -0
  34. package/dist/components/Business/columnSettingTable/columnSetting.d.ts +54 -0
  35. package/dist/components/Business/columnSettingTable/index.d.ts +16 -0
  36. package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +17 -0
  37. package/dist/components/Business/columnSettingTable/utils.d.ts +8 -0
  38. package/dist/components/Functional/AddSelect/index.d.ts +3 -0
  39. package/dist/components/Functional/BillEntry/index.d.ts +4 -0
  40. package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +12 -0
  41. package/dist/components/Functional/SearchSelect/index.d.ts +2 -1
  42. package/dist/components/Functional/TreeSearchSelect/index.d.ts +2 -0
  43. package/dist/index.d.ts +15 -0
  44. package/dist/index.esm.js +19420 -4457
  45. package/dist/index.js +19451 -4471
  46. package/dist/utils/CheckOneUser/index.d.ts +1 -1
  47. package/dist/utils/enumConfig.d.ts +10 -0
  48. package/dist/utils/requestUtils.d.ts +1 -0
  49. package/dist/utils/utils.d.ts +3 -0
  50. package/lib/assets/arrow_top.png +0 -0
  51. package/lib/assets/drag.svg +17 -0
  52. package/lib/assets/exportFail.svg +38 -0
  53. package/lib/assets/exportProcessing.svg +29 -0
  54. package/lib/assets/exportSuccess.svg +35 -0
  55. package/lib/assets/exportlogo.png +0 -0
  56. package/lib/assets/label_icon_bottom.svg +26 -0
  57. package/lib/assets/upExport.svg +23 -0
  58. package/package.json +26 -5
  59. package/src/assets/32.svg +28 -0
  60. package/src/assets/addIcon.svg +18 -0
  61. package/src/assets/allfunc.svg +28 -0
  62. package/src/assets/arrowRight.svg +25 -0
  63. package/src/assets/arrow_top.png +0 -0
  64. package/src/assets/btn-delete.svg +30 -0
  65. package/src/assets/btn-edit.svg +20 -0
  66. package/src/assets/btn-more.svg +18 -0
  67. package/src/assets/btn-submit.svg +20 -0
  68. package/src/assets/caidan.svg +12 -0
  69. package/src/assets/close.svg +26 -0
  70. package/src/assets/closeicon.png +0 -0
  71. package/src/assets/drag.svg +17 -0
  72. package/src/assets/exportFail.svg +38 -0
  73. package/src/assets/exportProcessing.svg +29 -0
  74. package/src/assets/exportSuccess.svg +35 -0
  75. package/src/assets/exportlogo.png +0 -0
  76. package/src/assets/fixed-left-active.svg +12 -0
  77. package/src/assets/fixed-left.svg +16 -0
  78. package/src/assets/fixed-right-active.svg +12 -0
  79. package/src/assets/fixed-right.svg +16 -0
  80. package/src/assets/guanbi.svg +16 -0
  81. package/src/assets/icon-quanping.svg +16 -0
  82. package/src/assets/icon-shezhi.svg +18 -0
  83. package/src/assets/label_icon_bottom.svg +26 -0
  84. package/src/assets/list-no-img.svg +22 -0
  85. package/src/assets/morentouxiang-32.svg +24 -0
  86. package/src/assets/right.png +0 -0
  87. package/src/assets/scanning.svg +25 -0
  88. package/src/assets/upExport.svg +23 -0
  89. package/src/assets/xinglan-icon-out.png +0 -0
  90. package/src/components/Business/AddSelectBusiness/index.md +41 -0
  91. package/src/components/Business/AddSelectBusiness/index.tsx +290 -0
  92. package/src/components/Business/BsLayouts/Components/AllFunc/drawContent.tsx +112 -0
  93. package/src/components/Business/BsLayouts/Components/AllFunc/index.less +153 -0
  94. package/src/components/Business/BsLayouts/Components/AllFunc/index.tsx +70 -0
  95. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.less +90 -0
  96. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.tsx +38 -0
  97. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.tsx +243 -0
  98. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.tsx +385 -0
  99. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.tsx +286 -0
  100. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.tsx +75 -0
  101. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/drawContent.less +171 -0
  102. package/src/components/Business/BsLayouts/Components/CustomerMenu/index.less +65 -0
  103. package/src/components/Business/BsLayouts/Components/CustomerMenu/index.tsx +154 -0
  104. package/src/components/Business/BsLayouts/Components/GlobalHeader/index.less +73 -0
  105. package/src/components/Business/BsLayouts/Components/GlobalHeader/index.tsx +158 -0
  106. package/src/components/Business/BsLayouts/Components/RightContent/LoginModal.tsx +85 -0
  107. package/src/components/Business/BsLayouts/Components/RightContent/home.less +218 -0
  108. package/src/components/Business/BsLayouts/Components/RightContent/index.tsx +156 -0
  109. package/src/components/Business/BsLayouts/Components/SearchFunc/index.less +161 -0
  110. package/src/components/Business/BsLayouts/Components/SearchFunc/index.tsx +76 -0
  111. package/src/components/Business/BsLayouts/index.less +80 -0
  112. package/src/components/Business/BsLayouts/index.tsx +1465 -0
  113. package/src/components/Business/BsLayouts/service.ts +11 -0
  114. package/src/components/Business/BsLayouts/utils.tsx +211 -0
  115. package/src/components/Business/BsSulaQueryTable/index.less +220 -0
  116. package/src/components/Business/BsSulaQueryTable/index.tsx +505 -0
  117. package/src/components/Business/BsSulaQueryTable/setting.tsx +799 -0
  118. package/src/components/Business/BsSulaQueryTable/utils.less +65 -0
  119. package/src/components/Business/BsSulaQueryTable/utils.tsx +688 -0
  120. package/src/components/Business/CommodityEntry/index.md +4 -3
  121. package/src/components/Business/CommodityEntry/index.tsx +7 -2
  122. package/src/components/Business/CommonAlert/index.less +0 -0
  123. package/src/components/Business/CommonAlert/index.tsx +23 -0
  124. package/src/components/Business/CommonGuideWrapper/index.less +112 -0
  125. package/src/components/Business/CommonGuideWrapper/index.md +39 -0
  126. package/src/components/Business/CommonGuideWrapper/index.tsx +84 -0
  127. package/src/components/Business/DetailPageWrapper/index.less +80 -0
  128. package/src/components/Business/DetailPageWrapper/index.tsx +335 -0
  129. package/src/components/Business/DetailPageWrapper/utils.tsx +101 -0
  130. package/src/components/Business/HomePageWrapper/index.less +33 -0
  131. package/src/components/Business/HomePageWrapper/index.md +45 -0
  132. package/src/components/Business/HomePageWrapper/index.tsx +162 -0
  133. package/src/components/Business/SearchSelect/BusinessUtils.ts +107 -14
  134. package/src/components/Business/SearchSelect/common.ts +20 -1
  135. package/src/components/Business/SearchSelect/index.md +60 -30
  136. package/src/components/Business/SearchSelect/index.tsx +21 -12
  137. package/src/components/Business/SearchSelect/utils.ts +30 -4
  138. package/src/components/Business/StateFlow/index.less +131 -0
  139. package/src/components/Business/StateFlow/index.md +60 -0
  140. package/src/components/Business/StateFlow/index.tsx +30 -0
  141. package/src/components/Business/TreeSearchSelect/index.md +126 -0
  142. package/src/components/Business/TreeSearchSelect/index.tsx +34 -0
  143. package/src/components/Business/TreeSearchSelect/utils.ts +60 -0
  144. package/src/components/Business/columnSettingTable/columnSetting.tsx +764 -0
  145. package/src/components/Business/columnSettingTable/index.less +247 -0
  146. package/src/components/Business/columnSettingTable/index.md +358 -0
  147. package/src/components/Business/columnSettingTable/index.tsx +233 -0
  148. package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +241 -0
  149. package/src/components/Business/columnSettingTable/utils.tsx +69 -0
  150. package/src/components/Functional/AddSelect/index.less +367 -0
  151. package/src/components/Functional/AddSelect/index.md +122 -0
  152. package/src/components/Functional/AddSelect/index.tsx +962 -0
  153. package/src/components/Functional/BillEntry/index.less +371 -0
  154. package/src/components/Functional/BillEntry/index.md +39 -0
  155. package/src/components/Functional/BillEntry/index.tsx +613 -0
  156. package/src/components/Functional/DataImport/index.tsx +7 -2
  157. package/src/components/Functional/DataValidation/index.md +1 -0
  158. package/src/components/Functional/DataValidation/index.tsx +17 -2
  159. package/src/components/Functional/ExportFunctions/ExportIcon/index.md +37 -0
  160. package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +59 -0
  161. package/src/components/Functional/SearchSelect/index.tsx +218 -121
  162. package/src/components/Functional/TreeSearchSelect/index.md +47 -0
  163. package/src/components/Functional/TreeSearchSelect/index.tsx +149 -0
  164. package/src/index.ts +15 -6
  165. package/src/styles/bsDefault.less +1907 -0
  166. package/src/utils/enumConfig.ts +10 -0
  167. package/src/utils/requestUtils.ts +33 -0
  168. package/src/utils/utils.ts +52 -0
  169. package/typings.d.ts +3 -0
package/.fatherrc.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export default {
2
2
  esm: 'rollup',
3
3
  cjs: 'rollup',
4
+ extraExternals: ['@ant-design/pro-layout']
4
5
  };
package/.umirc.ts CHANGED
@@ -26,33 +26,48 @@ export default defineConfig({
26
26
  ],
27
27
  proxy: {
28
28
  '/bop/api/': {
29
- // bop
30
- target: 'http://bitsun.product.app.business-operation-platform.v1-dev:8050', // 开发环境
31
- // 英伦
32
- // target: 'http://47.100.87.54:9106/', // 开发环境
33
- // target: 'http://test.i-baby.net/', // 测试环境
29
+ // target: 'http://bitsun.product.app.business-operation-platform.v1-dev:8050', // 开发环境
30
+ target: 'https://test.i-baby.net/', // 测试环境
31
+ // target: 'http://yxzttest.yangzijiang.com/', // 扬子江测试环境
32
+ // target: 'http://yxzt.yangzijiang.com/', // 扬子江测试环境
34
33
  changeOrigin: true,
35
- pathRewrite: { '^/bop/api/': '/bop/' },
34
+ // pathRewrite: { '^/bop/api/': '/bop/' }, // 开发环境
36
35
  },
37
36
  '/wms-ops/': {
37
+ // target: 'http://yxzttest.yangzijiang.com/', // 测试环境
38
+ // target: 'http://yxzt.yangzijiang.com/', // 测试环境
38
39
  // bop
39
- target: 'http://bitsun.product.app.business-operation-platform.v1-dev:8050', // 开发环境
40
+ // target: 'http://bitsun.product.app.business-operation-platform.v1-dev:8050', // 开发环境
40
41
  // 英伦
41
42
  // target: 'http://47.100.87.54:9102/', // 开发环境
42
- // target: 'http://test.i-baby.net/', // 测试环境
43
+ target: 'http://test.i-baby.net/', // 测试环境
44
+ // target: 'http://www.i-baby.net/', // 生产
45
+ changeOrigin: true,
46
+ // pathRewrite: { '^/wms-ops/': '/wms-ops/' }, // 开发环境
47
+ },
48
+ '/user/': {
49
+ target: 'http://omni.bitsun-inc.com/', // 开发环境
50
+ changeOrigin: true,
51
+ },
52
+ '/channel-manage/': {
53
+ target: 'http://omni.bitsun-inc.com/', // 开发环境
54
+ changeOrigin: true,
55
+ },
56
+ '/items/': {
57
+ target: 'http://omni.bitsun-inc.com/', // 开发环境
58
+ changeOrigin: true,
59
+ },
60
+ '/stock/': {
61
+ target: 'http://omni.bitsun-inc.com/', // 开发环境
43
62
  changeOrigin: true,
44
- pathRewrite: { '^/bop/api/': '/bop/' },
45
63
  },
46
- '/user/api/': {
47
- target: 'http://bitsun.product.app.user-manage.v1-dev:8312/um/', // 开发环境
64
+ '/basic/': {
65
+ target: 'http://omni.bitsun-inc.com/', // 开发环境
48
66
  changeOrigin: true,
49
- pathRewrite: { '^/user/api/': '/' }, // 开发环境
50
67
  },
51
- '/channel/api/': {
52
- target: 'http://bitsun.product.app.channel-manage.v1-dev:8301/channel-manage/', // 开发环境
53
- // target: 'http://172.16.0.26:8033/channel-manage/',
68
+ '/srm-ops/': {
69
+ target: 'http://omni.bitsun-inc.com/', // 开发环境
54
70
  changeOrigin: true,
55
- pathRewrite: { '^/channel/api/': '/' }, // 开发环境
56
71
  },
57
72
  },
58
73
  // more config: https://d.umijs.org/config
@@ -0,0 +1 @@
1
+ export declare const AddSkuSelect: (parProps: any) => JSX.Element;
@@ -0,0 +1,4 @@
1
+ import './index.less';
2
+ export declare type SiderTheme = 'light' | 'dark';
3
+ declare const DrawContent: ({ onClose, itemPath }: any) => JSX.Element;
4
+ export default DrawContent;
@@ -0,0 +1,4 @@
1
+ import './index.less';
2
+ export declare type SiderTheme = 'light' | 'dark';
3
+ declare const AllFunc: any;
4
+ export default AllFunc;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import './index.less';
3
+ declare const MenuSetting: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
4
+ export default MenuSetting;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ declare class LeftTree extends React.Component<any> {
4
+ state: {
5
+ treeData: never[];
6
+ expandedKeys: never[];
7
+ searchValue: string;
8
+ autoExpandParent: boolean;
9
+ };
10
+ componentDidMount(): void;
11
+ onExpand: (expandedKeys: any) => void;
12
+ onChange: (e: any) => void;
13
+ getPathList: (originData: any) => Array<any>;
14
+ handleAdd2Menu: (path: string) => void;
15
+ render(): JSX.Element;
16
+ }
17
+ export default LeftTree;
@@ -0,0 +1,30 @@
1
+ import React from 'react';
2
+ import type { FormInstance } from 'antd/es/form';
3
+ import './index.less';
4
+ declare class rightTree extends React.Component<any> {
5
+ formRef: React.RefObject<FormInstance<any>>;
6
+ constructor(props: any);
7
+ state: {
8
+ expandedKeys: string[];
9
+ checkedKeys: never[];
10
+ modalInfo: {
11
+ modalVisible: boolean;
12
+ type: string;
13
+ title: string;
14
+ callBack: null;
15
+ };
16
+ };
17
+ onDragEnter: (info: any) => void;
18
+ onDrop: (info: any) => void;
19
+ handleSubmit: () => void;
20
+ handleModalClose: () => void;
21
+ handleEditTreeNode: (e: any, item: any) => void;
22
+ deleteNode: (oldTreeData: any[], path: string) => void;
23
+ handleDeleteTreeNode: (e: any, item: any) => void;
24
+ handleBatchDelete: () => void;
25
+ handleAddTreeNode: (e: any, item: any) => void;
26
+ onCheck: (checkedKeysValue: React.Key[]) => void;
27
+ getChildMenu: (item: any) => JSX.Element;
28
+ render(): JSX.Element;
29
+ }
30
+ export default rightTree;
@@ -0,0 +1,3 @@
1
+ import './drawContent.less';
2
+ declare const DrawContent: ({ onClose, originRoutes, itemPath }: any) => JSX.Element;
3
+ export default DrawContent;
@@ -0,0 +1,2 @@
1
+ declare const CustomerMenuHeader: ({ collapsed, handleClose, originRoutes, itemPath }: any) => JSX.Element;
2
+ export default CustomerMenuHeader;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import './index.less';
3
+ declare const CustomerMenu: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
4
+ export default CustomerMenu;
@@ -0,0 +1,4 @@
1
+ import './index.less';
2
+ export declare const judgeIsEmpty: (value: any) => boolean;
3
+ declare const GlobalHeaderCom: (props: any) => JSX.Element;
4
+ export default GlobalHeaderCom;
@@ -0,0 +1,2 @@
1
+ declare const _default: (props: any) => JSX.Element;
2
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import './home.less';
3
+ export declare type SiderTheme = 'light' | 'dark';
4
+ export declare type GlobalHeaderRightProps = {
5
+ menu?: boolean;
6
+ };
7
+ declare const GlobalHeaderRight: React.FC<GlobalHeaderRightProps>;
8
+ export default GlobalHeaderRight;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export declare type SiderTheme = 'light' | 'dark';
4
+ export declare type GlobalHeaderRightProps = {
5
+ menu?: boolean;
6
+ };
7
+ declare const AllFunc: React.FC<GlobalHeaderRightProps>;
8
+ export default AllFunc;
@@ -0,0 +1,18 @@
1
+ import type { MenuDataItem, BasicLayoutProps as ProLayoutProps, Settings } from '@ant-design/pro-layout';
2
+ import React from 'react';
3
+ import './index.less';
4
+ export declare const RouterContext: React.Context<{}>;
5
+ export declare type BasicLayoutProps = {
6
+ breadcrumbNameMap: Record<string, MenuDataItem>;
7
+ route: ProLayoutProps['route'] & {
8
+ authority: string[];
9
+ };
10
+ settings: Settings;
11
+ } & ProLayoutProps;
12
+ export declare type BasicLayoutContext = {
13
+ [K in 'location']: BasicLayoutProps[K];
14
+ } & {
15
+ breadcrumbNameMap: Record<string, MenuDataItem>;
16
+ };
17
+ declare const _default: (props: any) => JSX.Element;
18
+ export default _default;
@@ -0,0 +1 @@
1
+ export declare function outLogin(params: any): Promise<import("axios").AxiosResponse<any, any>>;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Public API for matching a URL pathname to a path.
3
+ */
4
+ export declare const matchPath: (pathname: any, options: {} | undefined, pathToRegexp: any) => never;
5
+ export declare const searchMenuData: (router: any, name?: any, callBack: any) => void;
6
+ export declare const setMenuTreeData: (routesData: Array<any>) => void;
7
+ export declare function handleUserID(): any;
8
+ export declare function handleAccountID(): any;
9
+ export declare function handleUserName(): any;
10
+ export declare function handleUserPhone(): any;
11
+ export declare const setLoginOutPath: () => void;
12
+ export declare const getBreadcrumbNameMap: (menuData: any) => {};
13
+ export declare const ergodicMenuRoutes: (routes: any) => any[];
@@ -0,0 +1,2 @@
1
+ declare const _default: (props: any) => JSX.Element;
2
+ export default _default;
@@ -0,0 +1,58 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ declare class SortableTable extends React.Component {
4
+ state: {
5
+ dataSource: never[];
6
+ columns: never[];
7
+ sortDataSource: never[];
8
+ setVisible: boolean;
9
+ searchDataSource: boolean;
10
+ onSearchSort: boolean;
11
+ isDefaultValue: boolean;
12
+ defaultValue: never[];
13
+ };
14
+ patchUserColumnConfig: (config: any) => void;
15
+ getConfigFromlocalstorage: () => any;
16
+ patchConfigToLocalstorage: (configvalue: any) => void;
17
+ setInitValue: (isClick?: boolean) => void;
18
+ componentDidMount(): void;
19
+ columns: ({
20
+ title: string;
21
+ dataIndex: string;
22
+ className: string;
23
+ width: number;
24
+ render?: undefined;
25
+ } | {
26
+ title: string;
27
+ dataIndex: string;
28
+ render: (text: any, record: any) => JSX.Element;
29
+ className?: undefined;
30
+ width?: undefined;
31
+ } | {
32
+ title: string;
33
+ dataIndex: string;
34
+ className: string;
35
+ render: () => JSX.Element;
36
+ width?: undefined;
37
+ })[];
38
+ showModal: () => void;
39
+ handleOk: (e?: React.MouseEvent<HTMLElement>) => void;
40
+ handleCancel: (e: React.MouseEvent<HTMLElement>) => void;
41
+ handleTableHeadHidden: (title: string) => void;
42
+ onSortEnd: ({ oldIndex, newIndex }: {
43
+ oldIndex: any;
44
+ newIndex: any;
45
+ }) => void;
46
+ DraggableContainer: (props: any) => JSX.Element;
47
+ DraggableBodyRow: ({ className, style, ...restProps }: {
48
+ [x: string]: any;
49
+ className: any;
50
+ style: any;
51
+ }) => JSX.Element;
52
+ onChange: (e: CheckboxChangeEvent, title: any) => void;
53
+ handleReset: () => void;
54
+ onSearch: (e: any) => void;
55
+ onSearchSort: (e: any) => void;
56
+ render(): JSX.Element;
57
+ }
58
+ export default SortableTable;
@@ -0,0 +1,98 @@
1
+ import moment from 'moment';
2
+ import './utils.less';
3
+ export declare const handleStatusBadge: (text: any, color: any) => JSX.Element;
4
+ export declare const HandleTotalCount: (totalParams: any) => JSX.Element;
5
+ export declare const updateGuanDate: (requestParams: any, dateKeyParams?: any) => {
6
+ type: string;
7
+ width: number;
8
+ props: {
9
+ maskClosable: boolean;
10
+ };
11
+ title: string;
12
+ mode: string;
13
+ initialValues: (ctx: any) => any;
14
+ fields: {
15
+ name: any;
16
+ label: string;
17
+ field: {
18
+ type: string;
19
+ props: {
20
+ autoSize: boolean;
21
+ placeholder: string;
22
+ disabledDate: (currentDate: any) => boolean;
23
+ style: {
24
+ width: string;
25
+ };
26
+ };
27
+ };
28
+ initialValue: moment.Moment;
29
+ rules: {
30
+ required: boolean;
31
+ message: string;
32
+ }[];
33
+ }[];
34
+ submitButtonProps: {
35
+ children: string;
36
+ };
37
+ backButtonProps: {
38
+ children: string;
39
+ };
40
+ submit: any;
41
+ };
42
+ export declare const renderZeroInSummary: (value: any) => number | "- -";
43
+ export declare const calculateValidPeriod: (start: any, end: any) => string;
44
+ export declare const handleTextDouble: (textOne: string | undefined, textTwo: string | undefined) => JSX.Element;
45
+ export declare const handleTextLineFeed: (text: string | undefined, width?: number) => JSX.Element;
46
+ export declare const handleTextOverflow: (text: string | undefined, width?: number) => JSX.Element;
47
+ export declare const handleTooltip: (text: any, timeTrue?: boolean) => JSX.Element;
48
+ export declare const handleTooltipHours: (text: any, timeTrue?: boolean) => JSX.Element;
49
+ declare type tableColumnsImageType = {
50
+ width?: number | string;
51
+ height?: number | string;
52
+ [key: string]: any;
53
+ };
54
+ export declare const tableColumnsImage: (url?: string, paramsObj?: tableColumnsImageType) => JSX.Element;
55
+ declare type UserColumnsType = {
56
+ name: string;
57
+ department?: string;
58
+ position?: string;
59
+ company?: string;
60
+ avatar?: string;
61
+ };
62
+ export declare const userColumns: (props: UserColumnsType) => JSX.Element;
63
+ export declare const userInfoCard: (props: any) => JSX.Element;
64
+ export declare function handleCommonTimeRenderHours(text: any, format?: any): any;
65
+ export declare function handleCommonTimeRender(text: any, format?: any): any;
66
+ interface ColumnsEditInterfave {
67
+ text?: string;
68
+ record?: any;
69
+ type?: string;
70
+ reqName: string;
71
+ successMessage?: string;
72
+ urlPathId?: boolean;
73
+ disabled: boolean;
74
+ requestProps: {
75
+ url: string;
76
+ converter?: Function;
77
+ method?: string;
78
+ };
79
+ [key: string]: any;
80
+ }
81
+ export declare const ColumnsEdit: (props: ColumnsEditInterfave) => JSX.Element;
82
+ export declare const handleTextDoubleOrId: (textOne: string | undefined, textTwo: string | undefined) => JSX.Element;
83
+ export declare const textIcon: (type: string | number, text?: string) => JSX.Element | undefined;
84
+ export declare const renderFixed2: (text: any) => any;
85
+ export declare const getItemDefaultWidth: (item: any) => number;
86
+ /**
87
+ * 查询参数处理
88
+ * @param params 要应用于查询的参数
89
+ * @returns 返回处理后的查询参数
90
+ */
91
+ export declare function queryParams(params: any, flag?: any): any;
92
+ /**
93
+ * 根据用户权限检验对应按钮是够显示 !!!!现在先去掉
94
+ * @param code 对应权限值
95
+ * @returns boolean
96
+ */
97
+ export declare const authFn: (code?: any) => boolean;
98
+ export {};
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const _default: (props: any) => JSX.Element;
3
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import { Component } from "react";
2
+ import './index.less';
3
+ export default class GuideWrapper extends Component {
4
+ static Field: ({ children, ...props }: any) => JSX.Element;
5
+ render(): JSX.Element;
6
+ }
@@ -0,0 +1,9 @@
1
+ import './index.less';
2
+ export declare const iconMap: {
3
+ edit: JSX.Element;
4
+ delete: JSX.Element;
5
+ submit: JSX.Element;
6
+ more: JSX.Element;
7
+ };
8
+ declare const _default: (props: any) => JSX.Element;
9
+ export default _default;
@@ -0,0 +1,8 @@
1
+ interface actionItem {
2
+ [propName: string]: any;
3
+ }
4
+ export declare const doDetailPageAction: (config: actionItem) => void;
5
+ export declare const getBreadcrumbNameMap: (menuData: any) => {};
6
+ export declare const judgeIsEmpty: (value: any) => boolean;
7
+ export declare const getMainCrumbNameMap: (menuData: any) => {};
8
+ export {};
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const _default: (props: any) => JSX.Element;
3
+ export default _default;
@@ -1,5 +1,5 @@
1
1
  export declare function commonFun(type?: string, prefixUrl: any, requestConfigProp?: any, modalTableBusProps?: any): {
2
2
  modalTableProps: any;
3
3
  requestConfig: any;
4
- needModalTable: boolean;
4
+ needModalTable: any;
5
5
  };
@@ -2,6 +2,10 @@ declare const shopFileType: {
2
2
  text: string;
3
3
  value: string;
4
4
  }[];
5
+ declare const shopFile2Type: {
6
+ text: string;
7
+ value: string;
8
+ }[];
5
9
  declare const arrivalPaySupportList: {
6
10
  text: string;
7
11
  value: number;
@@ -10,4 +14,4 @@ declare const sharingType: {
10
14
  text: string;
11
15
  value: string;
12
16
  }[];
13
- export { shopFileType, arrivalPaySupportList, sharingType };
17
+ export { shopFileType, arrivalPaySupportList, sharingType, shopFile2Type };
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- declare const _default: React.MemoExoticComponent<(props: any) => JSX.Element>;
2
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>>;
3
3
  export default _default;
@@ -1,4 +1,5 @@
1
1
  declare const getDictionarySource: (dicCode: string, needConvertInterger?: boolean) => {};
2
2
  declare const getDictionaryTextByValue: (dicCode: string, value: string | number) => any;
3
3
  declare const loadSelectSource: (url: string, params?: any) => Promise<unknown>;
4
- export { getDictionarySource, getDictionaryTextByValue, loadSelectSource };
4
+ declare const handleDefaultPrefixUrl: (type: string) => string;
5
+ export { getDictionarySource, getDictionaryTextByValue, loadSelectSource, handleDefaultPrefixUrl };
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const _default: (props: any) => JSX.Element;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const _default: React.MemoExoticComponent<(props: any) => JSX.Element>;
3
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const handleDefaultProps: (type: string) => {};
2
+ export { handleDefaultProps };
@@ -0,0 +1,54 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface SortTableProps {
4
+ [propName: string]: any;
5
+ }
6
+ declare class SortableTable extends React.Component<SortTableProps> {
7
+ state: {
8
+ dataSource: never[];
9
+ columns: never[];
10
+ selectedRowKeys: never[];
11
+ sortDataSource: never[];
12
+ setVisible: boolean;
13
+ searchDataSource: boolean;
14
+ onSearchSort: boolean;
15
+ };
16
+ patchUserColumnConfig: (config: any) => void;
17
+ patchConfigToLocalstorage: (configvalue: any, tableCode: string) => void;
18
+ setInitValue: (datasource: any[]) => void;
19
+ componentWillReceiveProps(nextProps: any): void;
20
+ componentDidMount(): void;
21
+ columns: ({
22
+ title: string;
23
+ dataIndex: string;
24
+ className: string;
25
+ width: number;
26
+ render?: undefined;
27
+ } | {
28
+ title: string;
29
+ dataIndex: string;
30
+ render: (text: any, record: any) => JSX.Element;
31
+ className?: undefined;
32
+ width?: undefined;
33
+ } | {
34
+ title: string;
35
+ dataIndex: string;
36
+ className: string;
37
+ render: () => JSX.Element;
38
+ width?: undefined;
39
+ })[];
40
+ showModal: () => void;
41
+ handleOk: (e?: React.MouseEvent<HTMLElement>) => void;
42
+ handleCancel: (e: React.MouseEvent<HTMLElement>) => void;
43
+ handleTableHeadHidden: (title: string) => void;
44
+ onSortEnd: ({ oldIndex, newIndex }: any) => void;
45
+ DraggableContainer: (props: any) => JSX.Element;
46
+ DraggableBodyRow: ({ className, style, ...restProps }: any) => JSX.Element;
47
+ onChange: (e: any, title: any) => void;
48
+ handleReset: () => void;
49
+ onSearch: (e: any) => void;
50
+ onSearchSort: (e: any) => void;
51
+ getConfigFromlocalstorage: () => any;
52
+ render(): JSX.Element;
53
+ }
54
+ export default SortableTable;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ export default class ColumnSettingTable extends React.Component {
3
+ state: any;
4
+ constructor(props: any);
5
+ componentDidMount(): void;
6
+ componentWillReceiveProps(nextProps: any): void;
7
+ setInitialShowColumn: (columns: any[]) => void;
8
+ setShowColumns: (newColumns: Array<any>) => void;
9
+ getConfigFromlocalstorage: () => any;
10
+ getTableSummaryInfo: () => () => any;
11
+ handledynamicColumns: (col: any[]) => any[];
12
+ handleResize: (index: any) => (_: any, { size }: any) => void;
13
+ ResizeableTitle: (props: any) => JSX.Element;
14
+ getTableScrollXWidth: (cols: any[]) => any;
15
+ render(): JSX.Element;
16
+ }
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ export default class ColumnSettingSulaTable extends React.Component {
3
+ sulaTableRef: React.RefObject<unknown>;
4
+ state: any;
5
+ constructor(props: any);
6
+ componentDidMount(): void;
7
+ componentWillReceiveProps(nextProps: any): void;
8
+ setInitialShowColumn: (columns: any[]) => void;
9
+ setShowColumns: (newColumns: Array<any>) => void;
10
+ getConfigFromlocalstorage: () => any;
11
+ getTableSummaryInfo: () => () => any;
12
+ handledynamicColumns: (col: any[]) => any[];
13
+ handleResize: (index: any) => (_: any, { size }: any) => void;
14
+ ResizeableTitle: (props: any) => JSX.Element;
15
+ getTableScrollXWidth: (cols: any[]) => any;
16
+ render(): JSX.Element;
17
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * 非空数组
3
+ * @param arr 要判断的数据
4
+ * @returns boolean
5
+ */
6
+ export declare const noEmptyArray: (arr: any[]) => boolean;
7
+ export declare const getItemDefaultWidth: (item: any) => number;
8
+ export declare const handleTextOverflow: (text: string | undefined, width?: number) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const AddSelect: (props: any) => JSX.Element;
3
+ export default AddSelect;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ declare const BillEntry: React.FC;
4
+ export default BillEntry;
@@ -0,0 +1,12 @@
1
+ interface exportIconType {
2
+ /** others选填,使用axios发请求,*/
3
+ request: {
4
+ url: string;
5
+ params: Function | Object;
6
+ others?: Object;
7
+ };
8
+ /** BsSulaQueryTable的tableRef*/
9
+ tableRef: any;
10
+ }
11
+ declare const ExportIcon: ({ request, tableRef }: exportIconType) => JSX.Element;
12
+ export default ExportIcon;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import './index.less';
2
- declare const SearchSelect: (props: any) => JSX.Element;
3
+ declare const SearchSelect: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
3
4
  export default SearchSelect;
@@ -0,0 +1,2 @@
1
+ declare const TreeSearchSelect: (props: any) => JSX.Element;
2
+ export default TreeSearchSelect;
package/dist/index.d.ts CHANGED
@@ -1,7 +1,22 @@
1
+ import './utils/requestUtils';
1
2
  export { default as DataValidation } from './components/Functional/DataValidation';
2
3
  export { default as DataImport } from './components/Functional/DataImport';
3
4
  export { default as QueryMutipleInput } from './components/Functional/QueryMutipleInput';
4
5
  export { default as SearchSelect } from './components/Functional/SearchSelect';
6
+ export { default as AddSelect } from './components/Functional/AddSelect';
7
+ export { default as BillEntry } from './components/Functional/BillEntry';
5
8
  export { default as BusinessSearchSelect } from './components/Business/SearchSelect';
9
+ export * from './components/Business/AddSelectBusiness';
6
10
  export { default as CommodityEntry } from './components/Business/CommodityEntry';
7
11
  export { default as CheckOneUser } from './utils/CheckOneUser';
12
+ export { default as TreeSearchSelect } from './components/Functional/TreeSearchSelect';
13
+ export { default as BusinessTreeSearchSelect } from './components/Business/TreeSearchSelect';
14
+ export { default as StateFlow } from './components/Business/StateFlow';
15
+ export { default as GuideWrapper } from './components/Business/CommonGuideWrapper';
16
+ export { default as ExportIcon } from './components/Functional/ExportFunctions/ExportIcon';
17
+ export { default as SulaColumnSettingTable } from './components/Business/columnSettingTable/sulaSettingTable';
18
+ export { default as ColumnSettingTable } from './components/Business/columnSettingTable';
19
+ export { default as DetailPageWrapper } from './components/Business/DetailPageWrapper';
20
+ export { default as HomePageWrapper } from './components/Business/HomePageWrapper';
21
+ export { default as BsSulaQueryTable } from './components/Business/BsSulaQueryTable';
22
+ export { default as BsLayout } from './components/Business/BsLayouts';