@bit-sun/business-component 4.2.0-alpha.6.9 → 4.2.5-per-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 (88) hide show
  1. package/.umirc.ts +14 -10
  2. package/dist/components/Business/AddSelectBusiness/index.d.ts +3 -4
  3. package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +1 -2
  4. package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +1 -2
  5. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
  6. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
  7. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
  8. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +1 -2
  9. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +1 -2
  10. package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
  11. package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +1 -2
  12. package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +1 -2
  13. package/dist/components/Business/BsLayouts/index.d.ts +1 -1
  14. package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +19 -8
  15. package/dist/components/Business/BsSulaQueryTable/index.d.ts +1 -2
  16. package/dist/components/Business/BsSulaQueryTable/setting.d.ts +9 -17
  17. package/dist/components/Business/BsSulaQueryTable/utils.d.ts +14 -15
  18. package/dist/components/Business/CommodityEntry/index.d.ts +1 -2
  19. package/dist/components/Business/CommonAlert/index.d.ts +1 -2
  20. package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
  21. package/dist/components/Business/DetailPageWrapper/index.d.ts +11 -12
  22. package/dist/components/Business/HomePageWrapper/index.d.ts +1 -2
  23. package/dist/components/Business/ItemPropertySelector/index.d.ts +1 -2
  24. package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +1 -2
  25. package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +1 -2
  26. package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +1 -2
  27. package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +1 -2
  28. package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +1 -2
  29. package/dist/components/Business/PropertyModal/index.d.ts +1 -2
  30. package/dist/components/Business/PropertyModal/propertyGroup.d.ts +1 -1
  31. package/dist/components/Business/SearchSelect/index.d.ts +1 -1
  32. package/dist/components/Business/StateFlow/index.d.ts +1 -2
  33. package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
  34. package/dist/components/Business/columnSettingTable/columnSetting.d.ts +6 -6
  35. package/dist/components/Business/columnSettingTable/components/TableSumComponent.d.ts +1 -2
  36. package/dist/components/Business/columnSettingTable/index.d.ts +3 -3
  37. package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +3 -3
  38. package/dist/components/Business/columnSettingTable/utils.d.ts +1 -2
  39. package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
  40. package/dist/components/Common/ParagraphCopier/index.d.ts +1 -1
  41. package/dist/components/Common/Section/index.d.ts +1 -1
  42. package/dist/components/Functional/AddSelect/index.d.ts +1 -2
  43. package/dist/components/Functional/AuthButton/index.d.ts +1 -2
  44. package/dist/components/Functional/DataImport/index.d.ts +4 -4
  45. package/dist/components/Functional/DataValidation/index.d.ts +5 -5
  46. package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +1 -2
  47. package/dist/components/Functional/QueryMutipleInput/index.d.ts +1 -2
  48. package/dist/components/Functional/QueryMutipleSelect/index.d.ts +1 -2
  49. package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
  50. package/dist/components/Functional/SearchSelect/utils.d.ts +2 -3
  51. package/dist/components/Functional/TreeSearchSelect/index.d.ts +1 -2
  52. package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.d.ts +1 -1
  53. package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.d.ts +1 -2
  54. package/dist/components/Solution/RuleComponent/Formula.d.ts +1 -2
  55. package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +1 -2
  56. package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +1 -2
  57. package/dist/components/Solution/RuleSetter/RuleInstance.d.ts +1 -2
  58. package/dist/components/Solution/RuleSetter/baseRule.d.ts +1 -1
  59. package/dist/components/Solution/RuleSetter/index.d.ts +1 -1
  60. package/dist/index.d.ts +0 -1
  61. package/dist/index.esm.js +2349 -1832
  62. package/dist/index.js +2341 -1826
  63. package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
  64. package/dist/utils/TableUtils.d.ts +18 -19
  65. package/dist/utils/luckysheetLoader.d.ts +21 -0
  66. package/dist/utils/utils.d.ts +0 -41
  67. package/package.json +1 -1
  68. package/src/components/Business/BsLayouts/index.tsx +485 -129
  69. package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +144 -4
  70. package/src/components/Business/BsSulaQueryTable/index.md +120 -0
  71. package/src/components/Business/BsSulaQueryTable/index.tsx +236 -22
  72. package/src/components/Business/BsSulaQueryTable/setting.tsx +232 -17
  73. package/src/components/Business/DetailPageWrapper/index.tsx +30 -27
  74. package/src/components/Business/HomePageWrapper/index.tsx +10 -8
  75. package/src/components/Business/SearchSelect/BusinessUtils.tsx +38 -234
  76. package/src/components/Business/columnSettingTable/index.tsx +6 -7
  77. package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +22 -23
  78. package/src/components/Functional/AddSelect/index.tsx +0 -92
  79. package/src/components/Functional/DataImport/index.tsx +76 -3
  80. package/src/components/Functional/DataValidation/index.tsx +81 -3
  81. package/src/components/Functional/SearchSelect/index.tsx +2 -5
  82. package/src/components/Solution/RuleComponent/index.js +0 -1
  83. package/src/index.ts +0 -2
  84. package/src/utils/luckysheetLoader.ts +164 -0
  85. package/src/utils/utils.ts +1 -41
  86. package/dist/components/Business/SystemLog/index.d.ts +0 -78
  87. package/src/components/Business/SystemLog/index.md +0 -37
  88. package/src/components/Business/SystemLog/index.tsx +0 -87
@@ -1,37 +0,0 @@
1
- ---
2
- nav:
3
- title: '组件'
4
- order: 1
5
- group:
6
- title: 业务组件
7
- order: 1
8
- title: 日志组件
9
- order: 1
10
- ---
11
-
12
- # SystemLog
13
-
14
-
15
- ## 日志业务组件
16
-
17
- ```tsx
18
- import React, { useState } from 'react';
19
- import { SystemLog } from '../../../index.ts';
20
-
21
- export default () => {
22
- const [modeType, setModeType] = useState('view');
23
- const renderLogRef = useRef<any>();
24
-
25
- return {
26
- fields: [
27
- SystemLog({
28
- modeType,
29
- code: '123',
30
- containerName: 'Test_Log_Info',
31
- renderLogRef,
32
- extraParams: {},
33
- })
34
- ],
35
- };
36
- };
37
- ```
@@ -1,87 +0,0 @@
1
- import { handleCommonTimeRender } from '@/utils/TableUtils';
2
- import { formContainerAndItemLayout, handleConvertResponse } from '@/utils/utils';
3
- import { Table as BsTable } from 'bssula';
4
- import React from 'react';
5
-
6
- //操作日志
7
- const SystemLog = ({
8
- modeType,
9
- code,
10
- containerName,
11
- renderLogRef = {},
12
- extraParams = {},
13
- }: {
14
- modeType: string,
15
- code: any
16
- containerName: string,
17
- renderLogRef: object,
18
- extraParams?: object,
19
- }) => {
20
- return {
21
- ...formContainerAndItemLayout('table', '操作日志', containerName),
22
- initialVisible: modeType != 'create',
23
- fields: [
24
- {
25
- name: 'table',
26
- label: false,
27
- itemLayout: {
28
- span: 24,
29
- labelCol: {
30
- span: 0,
31
- },
32
- wrapperCol: {
33
- span: 24,
34
- },
35
- },
36
- field: (ctx: any) => {
37
- return code && <BsTable
38
- remoteDataSource={{
39
- url: `/oms-ops/logInfo?qp-businessCode-eq=${code}`,
40
- convertParams: ({ params }: any) => {
41
- return {
42
- pageSize: params.pageSize,
43
- currentPage: params.current,
44
- ...extraParams,
45
- };
46
- },
47
- converter: ({ data }: any) => {
48
- return {
49
- ...handleConvertResponse(data.list, data.total || data.totalCount),
50
- };
51
- },
52
- }}
53
- columns={[
54
- {
55
- title: '操作人',
56
- dataIndex: 'handlerName',
57
- },
58
- {
59
- title: '操作名称',
60
- dataIndex: 'handlerType',
61
- },
62
- {
63
- title: '操作时间',
64
- dataIndex: 'handlerTime',
65
- render: ({ text }: { text: any }) => handleCommonTimeRender(text)
66
- },
67
- {
68
- title: '操作内容',
69
- dataIndex: 'logcontent',
70
- },
71
- ]}
72
- style={{ width: '100%', marginTop: '-16px', padding: '0px' }}
73
- rowKey="id"
74
- scroll={{ x: 'max-content' }}
75
- pagination={{
76
- showTotal: (total: any) => `共 ${total} 条`,
77
- showQuickJumper: true,
78
- hideOnSinglePage: true,
79
- }}
80
- ref={renderLogRef}
81
- />
82
- },
83
- },
84
- ],
85
- }
86
- }
87
- export default SystemLog