@bit-sun/business-component 4.2.0-alpha.5 → 4.2.0-alpha.6-test

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 (69) hide show
  1. package/.fatherrc.ts +24 -1
  2. package/README.md +75 -12
  3. package/dist/components/Business/AddSelectBusiness/index.d.ts +3 -4
  4. package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +1 -2
  5. package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +1 -2
  6. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
  7. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
  8. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
  9. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +1 -2
  10. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +1 -2
  11. package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
  12. package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +1 -2
  13. package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +1 -2
  14. package/dist/components/Business/BsLayouts/index.d.ts +1 -1
  15. package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +5 -5
  16. package/dist/components/Business/BsSulaQueryTable/index.d.ts +1 -2
  17. package/dist/components/Business/BsSulaQueryTable/setting.d.ts +6 -6
  18. package/dist/components/Business/BsSulaQueryTable/utils.d.ts +14 -15
  19. package/dist/components/Business/CommodityEntry/index.d.ts +1 -2
  20. package/dist/components/Business/CommonAlert/index.d.ts +1 -2
  21. package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
  22. package/dist/components/Business/DetailPageWrapper/index.d.ts +11 -12
  23. package/dist/components/Business/HomePageWrapper/index.d.ts +1 -2
  24. package/dist/components/Business/ItemPropertySelector/index.d.ts +1 -2
  25. package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +1 -2
  26. package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +1 -2
  27. package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +1 -2
  28. package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +1 -2
  29. package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +1 -2
  30. package/dist/components/Business/PropertyModal/index.d.ts +1 -2
  31. package/dist/components/Business/PropertyModal/propertyGroup.d.ts +1 -1
  32. package/dist/components/Business/SearchSelect/index.d.ts +1 -1
  33. package/dist/components/Business/StateFlow/index.d.ts +1 -2
  34. package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
  35. package/dist/components/Business/columnSettingTable/columnSetting.d.ts +6 -6
  36. package/dist/components/Business/columnSettingTable/components/TableSumComponent.d.ts +1 -2
  37. package/dist/components/Business/columnSettingTable/index.d.ts +3 -3
  38. package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +3 -3
  39. package/dist/components/Business/columnSettingTable/utils.d.ts +1 -2
  40. package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
  41. package/dist/components/Common/ParagraphCopier/index.d.ts +1 -1
  42. package/dist/components/Common/Section/index.d.ts +1 -1
  43. package/dist/components/Functional/AddSelect/index.d.ts +1 -2
  44. package/dist/components/Functional/AuthButton/index.d.ts +1 -2
  45. package/dist/components/Functional/DataImport/index.d.ts +3 -3
  46. package/dist/components/Functional/DataValidation/index.d.ts +4 -4
  47. package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +1 -2
  48. package/dist/components/Functional/QueryMutipleInput/index.d.ts +1 -2
  49. package/dist/components/Functional/QueryMutipleSelect/index.d.ts +1 -2
  50. package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
  51. package/dist/components/Functional/SearchSelect/utils.d.ts +2 -3
  52. package/dist/components/Functional/TreeSearchSelect/index.d.ts +1 -2
  53. package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.d.ts +1 -1
  54. package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.d.ts +1 -2
  55. package/dist/components/Solution/RuleComponent/Formula.d.ts +1 -2
  56. package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +1 -2
  57. package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +1 -2
  58. package/dist/components/Solution/RuleSetter/RuleInstance.d.ts +1 -2
  59. package/dist/components/Solution/RuleSetter/baseRule.d.ts +1 -1
  60. package/dist/components/Solution/RuleSetter/index.d.ts +1 -1
  61. package/dist/index.esm.js +733 -981
  62. package/dist/index.js +733 -981
  63. package/dist/index.umd.js +131990 -0
  64. package/dist/index.umd.min.js +28 -0
  65. package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
  66. package/dist/utils/TableUtils.d.ts +18 -19
  67. package/package.json +2 -1
  68. package/src/components/Business/SearchSelect/BusinessUtils.tsx +1 -1
  69. package/test-umd.html +40 -0
package/.fatherrc.ts CHANGED
@@ -1,5 +1,28 @@
1
1
  export default {
2
2
  esm: 'rollup',
3
3
  cjs: 'rollup',
4
- extraExternals: ['@ant-design/pro-layout', '@babel/parser'],
4
+ umd: {
5
+ name: 'BusinessComponent',
6
+ globals: {
7
+ 'react': 'React',
8
+ 'react-dom': 'ReactDOM',
9
+ 'antd': 'antd',
10
+ '@ant-design/icons': 'AntdIcons',
11
+ '@ant-design/pro-layout': 'ProLayout',
12
+ 'bssula': 'bssula',
13
+ 'umi': 'umi',
14
+ 'umi-plugin-bssula': 'umiPluginBssula'
15
+ }
16
+ },
17
+ extraExternals: [
18
+ '@ant-design/pro-layout',
19
+ '@babel/parser',
20
+ 'react',
21
+ 'react-dom',
22
+ 'antd',
23
+ '@ant-design/icons',
24
+ 'bssula',
25
+ 'umi',
26
+ 'umi-plugin-bssula'
27
+ ],
5
28
  };
package/README.md CHANGED
@@ -1,27 +1,90 @@
1
- # business-component
1
+ # @bit-sun/business-component
2
2
 
3
- ## Getting Started
3
+ 一个基于 React 和 Ant Design 的业务组件库,提供了丰富的业务场景组件。
4
4
 
5
- Install dependencies,
5
+ ## 安装
6
6
 
7
7
  ```bash
8
- $ npm i
8
+ npm install @bit-sun/business-component
9
9
  ```
10
10
 
11
- Start the dev server,
11
+ ## 使用方式
12
12
 
13
- ```bash
14
- $ npm start
13
+ ### 基本引入
14
+
15
+ ```javascript
16
+ import { BsSulaQueryTable, DataValidation, SearchSelect } from '@bit-sun/business-component';
15
17
  ```
16
18
 
17
- Build documentation,
19
+ ### 组件列表
18
20
 
19
- ```bash
20
- $ npm run docs:build
21
+ #### 业务组件 (Business)
22
+ - `BsSulaQueryTable` - 业务查询表格
23
+ - `SearchSelect` - 业务搜索选择器
24
+ - `StateFlow` - 状态流程组件
25
+ - `DetailPageWrapper` - 详情页包装器
26
+ - `HomePageWrapper` - 首页包装器
27
+ - `JsonQueryTable` - JSON 查询表格
28
+ - `ColumnSettingTable` - 列设置表格
29
+ - `MoreTreeTable` - 多级树表格
30
+
31
+ #### 功能组件 (Functional)
32
+ - `DataValidation` - 数据验证组件
33
+ - `DataImport` - 数据导入组件
34
+ - `SearchSelect` - 搜索选择器
35
+ - `AddSelect` - 添加选择器
36
+ - `TreeSearchSelect` - 树形搜索选择器
37
+ - `AuthButton` - 权限按钮
38
+ - `EllipsisTooltip` - 省略号提示
39
+ - `ExportIcon` - 导出图标
40
+
41
+ #### 通用组件 (Common)
42
+ - `ExtendedCollapse` - 扩展折叠面板
43
+ - `Section` - 区域组件
44
+ - `ParagraphCopier` - 段落复制器
45
+
46
+ #### 解决方案组件 (Solution)
47
+ - `RuleComponent` - 规则组件
48
+ - `RuleSetter` - 规则设置器
49
+
50
+ ## 依赖要求
51
+
52
+ 该组件库需要以下 peer dependencies:
53
+
54
+ ```json
55
+ {
56
+ "@ant-design/pro-layout": "^6.5.0",
57
+ "antd": "^4.17.2",
58
+ "bssula": "4.4.3-alpha.1",
59
+ "react-dnd": "^16.0.1",
60
+ "react-dnd-html5-backend": "^16.0.1",
61
+ "umi": "^3.5.20",
62
+ "umi-plugin-bssula": "4.4.3-alpha.1"
63
+ }
21
64
  ```
22
65
 
23
- Build library via `father-build`,
66
+ ## 开发
24
67
 
25
68
  ```bash
26
- $ npm run build
69
+ # 安装依赖
70
+ npm install
71
+
72
+ # 启动开发服务器
73
+ npm start
74
+
75
+ # 构建
76
+ npm run build
77
+
78
+ # 发布
79
+ npm run release
27
80
  ```
81
+
82
+ ## 注意事项
83
+
84
+ 1. 确保项目中已安装所有 peer dependencies
85
+ 2. 组件库基于 TypeScript 开发,建议在 TypeScript 项目中使用
86
+ 3. 部分组件依赖特定的业务逻辑,使用前请查看组件文档
87
+
88
+ ## 许可证
89
+
90
+ MIT
@@ -1,4 +1,3 @@
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
+ export declare const AddSkuSelect: (parProps: any) => JSX.Element;
2
+ export declare const AddSkcSelect: (parProps: any) => JSX.Element;
3
+ export declare const AddSpuSelect: (parProps: any) => JSX.Element;
@@ -1,5 +1,4 @@
1
- import React from 'react';
2
1
  import './index.less';
3
2
  export type SiderTheme = 'light' | 'dark';
4
- declare const DrawContent: ({ onClose, itemPath }: any) => React.JSX.Element;
3
+ declare const DrawContent: ({ onClose, itemPath }: any) => JSX.Element;
5
4
  export default DrawContent;
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- declare const ChooseStore: (props: any) => React.JSX.Element;
1
+ declare const ChooseStore: (props: any) => JSX.Element;
3
2
  export default ChooseStore;
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
2
  import './index.less';
3
- declare const MenuSetting: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
3
+ declare const MenuSetting: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
4
4
  export default MenuSetting;
@@ -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(): React.JSX.Element;
15
+ render(): JSX.Element;
16
16
  }
17
17
  export default LeftTree;
@@ -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) => React.JSX.Element;
28
- render(): React.JSX.Element;
27
+ getChildMenu: (item: any) => JSX.Element;
28
+ render(): JSX.Element;
29
29
  }
30
30
  export default rightTree;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import './drawContent.less';
3
- declare const DrawContent: ({ onClose, originRoutes, itemPath }: any) => React.JSX.Element;
2
+ declare const DrawContent: ({ onClose, originRoutes, itemPath }: any) => JSX.Element;
4
3
  export default DrawContent;
@@ -1,3 +1,2 @@
1
- import React from "react";
2
- declare const CustomerMenuHeader: ({ collapsed, handleClose, originRoutes, itemPath }: any) => React.JSX.Element;
1
+ declare const CustomerMenuHeader: ({ collapsed, handleClose, originRoutes, itemPath }: any) => JSX.Element;
3
2
  export default CustomerMenuHeader;
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
2
  import './index.less';
3
- declare const CustomerMenu: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
3
+ declare const CustomerMenu: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
4
4
  export default CustomerMenu;
@@ -1,5 +1,4 @@
1
- import React from "react";
2
1
  import './index.less';
3
2
  export declare const judgeIsEmpty: (value: any) => boolean;
4
- declare const GlobalHeaderCom: (props: any) => React.JSX.Element;
3
+ declare const GlobalHeaderCom: (props: any) => JSX.Element;
5
4
  export default GlobalHeaderCom;
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- declare const _default: (props: any) => React.JSX.Element;
1
+ declare const _default: (props: any) => JSX.Element;
3
2
  export default _default;
@@ -14,5 +14,5 @@ export type BasicLayoutContext = {
14
14
  } & {
15
15
  breadcrumbNameMap: Record<string, MenuDataItem>;
16
16
  };
17
- declare const _default: (props: any) => React.JSX.Element;
17
+ declare const _default: (props: any) => JSX.Element;
18
18
  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) => React.JSX.Element;
28
+ render: (text: any, record: any) => JSX.Element;
29
29
  className?: undefined;
30
30
  } | {
31
31
  title: string;
32
32
  dataIndex: string;
33
33
  className: string;
34
- render: () => React.JSX.Element;
34
+ render: () => 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) => React.JSX.Element;
44
+ DraggableContainer: (props: any) => JSX.Element;
45
45
  DraggableBodyRow: ({ className, style, ...restProps }: {
46
46
  [x: string]: any;
47
47
  className: any;
48
48
  style: any;
49
- }) => React.JSX.Element;
49
+ }) => 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(): React.JSX.Element;
56
+ render(): JSX.Element;
57
57
  }
58
58
  export default SearchItemTable;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import './bssulaquerytable.less';
3
- declare const _default: (props: any) => React.JSX.Element;
2
+ declare const _default: (props: any) => JSX.Element;
4
3
  export default _default;
@@ -25,18 +25,18 @@ declare class SortableTable extends React.Component {
25
25
  dataIndex: string;
26
26
  className: string;
27
27
  width: number;
28
- render: (text: any, record: any) => React.JSX.Element;
28
+ render: (text: any, record: any) => JSX.Element;
29
29
  } | {
30
30
  title: string;
31
31
  dataIndex: string;
32
- render: (text: any, record: any) => React.JSX.Element;
32
+ render: (text: any, record: any) => JSX.Element;
33
33
  className?: undefined;
34
34
  width?: undefined;
35
35
  } | {
36
36
  title: string;
37
37
  dataIndex: string;
38
38
  className: string;
39
- render: () => React.JSX.Element;
39
+ render: () => JSX.Element;
40
40
  width?: undefined;
41
41
  })[];
42
42
  showModal: () => void;
@@ -47,17 +47,17 @@ declare class SortableTable extends React.Component {
47
47
  oldIndex: any;
48
48
  newIndex: any;
49
49
  }) => void;
50
- DraggableContainer: (props: any) => React.JSX.Element;
50
+ DraggableContainer: (props: any) => JSX.Element;
51
51
  DraggableBodyRow: ({ className, style, ...restProps }: {
52
52
  [x: string]: any;
53
53
  className: any;
54
54
  style: any;
55
- }) => React.JSX.Element;
55
+ }) => JSX.Element;
56
56
  onChange: (e: CheckboxChangeEvent, title: any) => void;
57
57
  handleReset: () => void;
58
58
  handleResetSetting: () => Promise<unknown>;
59
59
  onSearch: (e: any) => void;
60
60
  onSearchSort: (e: any) => void;
61
- render(): React.JSX.Element;
61
+ render(): JSX.Element;
62
62
  }
63
63
  export default SortableTable;
@@ -1,8 +1,7 @@
1
- import React from 'react';
2
1
  import moment from 'moment';
3
2
  import './utils.less';
4
- export declare const handleStatusBadge: (text: any, color: any) => React.JSX.Element;
5
- export declare const HandleTotalCount: (totalParams: any) => React.JSX.Element;
3
+ export declare const handleStatusBadge: (text: any, color: any) => JSX.Element;
4
+ export declare const HandleTotalCount: (totalParams: any) => JSX.Element;
6
5
  export declare const updateGuanDate: (requestParams: any, dateKeyParams?: any) => {
7
6
  type: string;
8
7
  width: number;
@@ -42,18 +41,18 @@ export declare const updateGuanDate: (requestParams: any, dateKeyParams?: any) =
42
41
  };
43
42
  export declare const renderZeroInSummary: (value: any) => number | "-";
44
43
  export declare const calculateValidPeriod: (start: any, end: any) => string;
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;
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 handleTextOverflowNoTooltip: (text: string | undefined, width?: number) => JSX.Element;
48
+ export declare const handleTooltip: (text: any, timeTrue?: boolean) => JSX.Element;
49
+ export declare const handleTooltipHours: (text: any, timeTrue?: boolean) => JSX.Element;
51
50
  type tableColumnsImageType = {
52
51
  width?: number | string;
53
52
  height?: number | string;
54
53
  [key: string]: any;
55
54
  };
56
- export declare const tableColumnsImage: (url?: string, paramsObj?: tableColumnsImageType) => React.JSX.Element;
55
+ export declare const tableColumnsImage: (url?: string, paramsObj?: tableColumnsImageType) => JSX.Element;
57
56
  type UserColumnsType = {
58
57
  name: string;
59
58
  department?: string;
@@ -61,8 +60,8 @@ type UserColumnsType = {
61
60
  company?: string;
62
61
  avatar?: string;
63
62
  };
64
- export declare const userColumns: (props: UserColumnsType) => React.JSX.Element;
65
- export declare const userInfoCard: (props: any) => React.JSX.Element;
63
+ export declare const userColumns: (props: UserColumnsType) => JSX.Element;
64
+ export declare const userInfoCard: (props: any) => JSX.Element;
66
65
  export declare function handleCommonTimeRenderHours(text: any, format?: any): any;
67
66
  export declare function handleCommonTimeRender(text: any, format?: any): any;
68
67
  interface ColumnsEditInterfave {
@@ -80,9 +79,9 @@ interface ColumnsEditInterfave {
80
79
  };
81
80
  [key: string]: any;
82
81
  }
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;
82
+ export declare const ColumnsEdit: (props: ColumnsEditInterfave) => JSX.Element;
83
+ export declare const handleTextDoubleOrId: (textOne: string | undefined, textTwo: string | undefined) => JSX.Element;
84
+ export declare const textIcon: (type: string | number, text?: string) => JSX.Element | undefined;
86
85
  export declare const renderFixed2: (text: any) => any;
87
86
  export declare const getItemDefaultWidth: (item: any) => number;
88
87
  /**
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- declare const CommodityEntry: (props: any) => React.JSX.Element;
1
+ declare const CommodityEntry: (props: any) => JSX.Element;
3
2
  export default CommodityEntry;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import './index.less';
3
- declare const _default: (props: any) => React.JSX.Element;
2
+ declare const _default: (props: any) => JSX.Element;
4
3
  export default _default;
@@ -1,6 +1,6 @@
1
- import React, { Component } from 'react';
1
+ import { 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) => React.JSX.Element;
5
- render(): React.JSX.Element;
4
+ static Field: ({ children, titleExtra, title, extra, bordered, ...props }: any) => JSX.Element;
5
+ render(): JSX.Element;
6
6
  }
@@ -1,16 +1,15 @@
1
- import React from 'react';
2
1
  import './index.less';
3
2
  export declare const iconMap: {
4
- edit: React.JSX.Element;
5
- delete: React.JSX.Element;
6
- submit: React.JSX.Element;
7
- more: React.JSX.Element;
8
- hangUp: React.JSX.Element;
9
- unhook: React.JSX.Element;
10
- refresh: React.JSX.Element;
11
- print: React.JSX.Element;
12
- copy: React.JSX.Element;
13
- cancel: React.JSX.Element;
3
+ edit: JSX.Element;
4
+ delete: JSX.Element;
5
+ submit: JSX.Element;
6
+ more: JSX.Element;
7
+ hangUp: JSX.Element;
8
+ unhook: JSX.Element;
9
+ refresh: JSX.Element;
10
+ print: JSX.Element;
11
+ copy: JSX.Element;
12
+ cancel: JSX.Element;
14
13
  };
15
- declare const _default: (props: any) => React.JSX.Element;
14
+ declare const _default: (props: any) => JSX.Element;
16
15
  export default _default;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import './index.less';
3
- declare const _default: (props: any) => React.JSX.Element;
2
+ declare const _default: (props: any) => JSX.Element;
4
3
  export default _default;
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- declare const ItemPropertySelector: ({ onChange, value, propertyCode, name, ...restProps }: any) => React.JSX.Element;
1
+ declare const ItemPropertySelector: ({ onChange, value, propertyCode, name, ...restProps }: any) => JSX.Element;
3
2
  export default ItemPropertySelector;
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- declare const FieldsModifyModal: (props: any) => React.JSX.Element;
1
+ declare const FieldsModifyModal: (props: any) => JSX.Element;
3
2
  export default FieldsModifyModal;
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- declare const _default: (props: any) => React.JSX.Element;
1
+ declare const _default: (props: any) => JSX.Element;
3
2
  export default _default;
@@ -1,7 +1,6 @@
1
- import React from 'react';
2
1
  declare const App: ({ record, setValue, formula }: {
3
2
  record: any;
4
3
  setValue: any;
5
4
  formula: any;
6
- }) => React.JSX.Element;
5
+ }) => JSX.Element;
7
6
  export default App;
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- declare const _default: (props: any) => React.JSX.Element;
1
+ declare const _default: (props: any) => JSX.Element;
3
2
  export default _default;
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- declare const _default: (props: any) => React.JSX.Element;
1
+ declare const _default: (props: any) => JSX.Element;
3
2
  export default _default;
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import "./index.less";
3
2
  interface propertyValueType {
4
3
  propertyName: string;
@@ -19,5 +18,5 @@ declare const PropertySelector: ({ value, onChange, width, ...restProps }: {
19
18
  value: valueType;
20
19
  onChange: any;
21
20
  width: string;
22
- }) => React.JSX.Element;
21
+ }) => JSX.Element;
23
22
  export default PropertySelector;
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
2
  import './index.less';
3
- declare const _default: React.MemoExoticComponent<(props: any) => React.JSX.Element>;
3
+ declare const _default: React.MemoExoticComponent<(props: any) => JSX.Element>;
4
4
  export default _default;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>>;
2
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>>;
3
3
  export default _default;
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import './index.less';
3
- declare const _default: (props: any) => React.JSX.Element;
2
+ declare const _default: (props: any) => JSX.Element;
4
3
  export default _default;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- declare const _default: React.MemoExoticComponent<(props: any) => React.JSX.Element>;
2
+ declare const _default: React.MemoExoticComponent<(props: any) => JSX.Element>;
3
3
  export default _default;
@@ -25,18 +25,18 @@ declare class SortableTable extends React.Component<SortTableProps> {
25
25
  dataIndex: string;
26
26
  className: string;
27
27
  width: number;
28
- render: (text: any, record: any) => React.JSX.Element;
28
+ render: (text: any, record: any) => JSX.Element;
29
29
  } | {
30
30
  title: string;
31
31
  dataIndex: string;
32
- render: (text: any, record: any) => React.JSX.Element;
32
+ render: (text: any, record: any) => JSX.Element;
33
33
  className?: undefined;
34
34
  width?: undefined;
35
35
  } | {
36
36
  title: string;
37
37
  dataIndex: string;
38
38
  className: string;
39
- render: () => React.JSX.Element;
39
+ render: () => JSX.Element;
40
40
  width?: undefined;
41
41
  })[];
42
42
  showModal: () => void;
@@ -44,14 +44,14 @@ declare class SortableTable extends React.Component<SortTableProps> {
44
44
  handleCancel: (e: React.MouseEvent<HTMLElement>) => void;
45
45
  handleTableHeadHidden: (title: string) => void;
46
46
  onSortEnd: ({ oldIndex, newIndex }: any) => void;
47
- DraggableContainer: (props: any) => React.JSX.Element;
48
- DraggableBodyRow: ({ className, style, ...restProps }: any) => React.JSX.Element;
47
+ DraggableContainer: (props: any) => JSX.Element;
48
+ DraggableBodyRow: ({ className, style, ...restProps }: any) => JSX.Element;
49
49
  onChange: (e: any, title: any) => void;
50
50
  handleReset: () => void;
51
51
  handleResetSetting: () => Promise<unknown>;
52
52
  onSearch: (e: any) => void;
53
53
  onSearchSort: (e: any) => void;
54
54
  getConfigFromlocalstorage: () => any;
55
- render(): React.JSX.Element;
55
+ render(): JSX.Element;
56
56
  }
57
57
  export default SortableTable;
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import './style.less';
3
- declare const _default: ({ summary }: any) => React.JSX.Element;
2
+ declare const _default: ({ summary }: any) => JSX.Element;
4
3
  export default _default;
@@ -19,10 +19,10 @@ export default class ColumnSettingTable extends React.Component {
19
19
  * 合计行逻辑
20
20
  * @returns
21
21
  */
22
- getTableSummaryInfo: () => () => React.JSX.Element;
22
+ getTableSummaryInfo: () => () => JSX.Element;
23
23
  handledynamicColumns: (col: any[]) => any[];
24
24
  handleResize: (index: any) => (_: any, { size }: any) => void;
25
- ResizeableTitle: (props: any) => React.JSX.Element;
25
+ ResizeableTitle: (props: any) => JSX.Element;
26
26
  getTableScrollXWidth: (cols: any[]) => any;
27
27
  /**
28
28
  * 处理行点击事件
@@ -30,5 +30,5 @@ export default class ColumnSettingTable extends React.Component {
30
30
  */
31
31
  handleRowClick: (record: any) => void;
32
32
  recalculateSummary: (nextProps: any) => void;
33
- render(): React.JSX.Element;
33
+ render(): JSX.Element;
34
34
  }
@@ -19,10 +19,10 @@ export default class ColumnSettingSulaTable extends React.Component {
19
19
  * 合计行逻辑
20
20
  * @returns
21
21
  */
22
- getTableSummaryInfo: () => () => React.JSX.Element;
22
+ getTableSummaryInfo: () => () => JSX.Element;
23
23
  handledynamicColumns: (col: any[]) => any[];
24
24
  handleResize: (index: any) => (_: any, { size }: any) => void;
25
- ResizeableTitle: (props: any) => React.JSX.Element;
25
+ ResizeableTitle: (props: any) => JSX.Element;
26
26
  getTableScrollXWidth: (cols: any[]) => any;
27
27
  /**
28
28
  * 处理行点击事件
@@ -30,5 +30,5 @@ export default class ColumnSettingSulaTable extends React.Component {
30
30
  */
31
31
  handleRowClick: (record: any) => void;
32
32
  recalculateSummary: (nextProps: any) => void;
33
- render(): React.JSX.Element;
33
+ render(): JSX.Element;
34
34
  }
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  /**
3
2
  * 非空数组
4
3
  * @param arr 要判断的数据
@@ -6,5 +5,5 @@ import React from 'react';
6
5
  */
7
6
  export declare const noEmptyArray: (arr: any[]) => boolean;
8
7
  export declare const getItemDefaultWidth: (item: any) => number;
9
- export declare const handleTextOverflow: (text: string | undefined, width?: number) => React.JSX.Element;
8
+ export declare const handleTextOverflow: (text: string | undefined, width?: number) => JSX.Element;
10
9
  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<Omit<any, "ref"> & React.RefAttributes<unknown>>;
2
+ declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & 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) => React.JSX.Element;
7
+ declare const ParagraphCopier: (props: ParagraphCopierProps) => JSX.Element;
8
8
  export default ParagraphCopier;