@bit-sun/business-component 3.2.4 → 3.6.1-alpha.0

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 (143) hide show
  1. package/.umirc.ts +3 -2
  2. package/dist/components/Business/AddSelectBusiness/index.d.ts +4 -4
  3. package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +2 -2
  4. package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +2 -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 +2 -2
  9. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +2 -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 +2 -2
  12. package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +2 -2
  13. package/dist/components/Business/BsLayouts/index.d.ts +1 -1
  14. package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +5 -5
  15. package/dist/components/Business/BsSulaQueryTable/index.d.ts +2 -2
  16. package/dist/components/Business/BsSulaQueryTable/setting.d.ts +7 -7
  17. package/dist/components/Business/BsSulaQueryTable/utils.d.ts +15 -15
  18. package/dist/components/Business/CommodityEntry/index.d.ts +2 -2
  19. package/dist/components/Business/CommonAlert/index.d.ts +2 -2
  20. package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
  21. package/dist/components/Business/DetailPageWrapper/index.d.ts +6 -6
  22. package/dist/components/Business/HomePageWrapper/index.d.ts +2 -2
  23. package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +2 -2
  24. package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +2 -2
  25. package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +2 -2
  26. package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +2 -2
  27. package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +2 -2
  28. package/dist/components/Business/SearchSelect/index.d.ts +1 -1
  29. package/dist/components/Business/StateFlow/index.d.ts +2 -2
  30. package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
  31. package/dist/components/Business/columnSettingTable/columnSetting.d.ts +7 -7
  32. package/dist/components/Business/columnSettingTable/index.d.ts +3 -2
  33. package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +2 -2
  34. package/dist/components/Business/columnSettingTable/utils.d.ts +2 -2
  35. package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
  36. package/dist/components/Common/ExtendedCollapse/ExtendedPanel.d.ts +10 -0
  37. package/dist/components/Common/ExtendedCollapse/index.d.ts +7 -0
  38. package/dist/components/Common/ParagraphCopier/index.d.ts +8 -0
  39. package/dist/components/Common/Section/index.d.ts +29 -0
  40. package/dist/components/Functional/AddSelect/index.d.ts +2 -2
  41. package/dist/components/Functional/AuthButton/index.d.ts +2 -2
  42. package/dist/components/Functional/DataImport/index.d.ts +3 -3
  43. package/dist/components/Functional/DataValidation/index.d.ts +3 -3
  44. package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +2 -2
  45. package/dist/components/Functional/QueryMutipleInput/index.d.ts +4 -3
  46. package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
  47. package/dist/components/Functional/TreeSearchSelect/index.d.ts +2 -2
  48. package/dist/components/Solution/RuleComponent/Formula.d.ts +2 -2
  49. package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +2 -2
  50. package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +2 -2
  51. package/dist/components/Solution/RuleSetter/RuleInstance.d.ts +2 -2
  52. package/dist/components/Solution/RuleSetter/baseRule.d.ts +1 -1
  53. package/dist/components/Solution/RuleSetter/index.d.ts +1 -1
  54. package/dist/index.d.ts +3 -0
  55. package/dist/index.esm.js +1158 -1849
  56. package/dist/index.js +1158 -1850
  57. package/dist/plugin/TableColumnSetting/index.d.ts +6 -5
  58. package/dist/utils/TableUtils.d.ts +19 -19
  59. package/dist/utils/requestUtils.d.ts +0 -1
  60. package/dist/utils/utils.d.ts +0 -3
  61. package/lib/assets/exportFail.svg +9 -9
  62. package/lib/assets/exportProcessing.svg +9 -9
  63. package/lib/assets/exportSuccess.svg +9 -9
  64. package/package.json +15 -16
  65. package/src/assets/caidan.svg +1 -1
  66. package/src/assets/exportFail.svg +9 -9
  67. package/src/assets/exportProcessing.svg +9 -9
  68. package/src/assets/exportSuccess.svg +9 -9
  69. package/src/assets/fixed-left-active.svg +1 -1
  70. package/src/assets/fixed-right-active.svg +1 -1
  71. package/src/components/Business/AddSelectBusiness/index.md +11 -5
  72. package/src/components/Business/AddSelectBusiness/index.tsx +5 -56
  73. package/src/components/Business/BsLayouts/Components/AllFunc/drawContent.tsx +1 -1
  74. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.tsx +1 -1
  75. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/drawContent.less +2 -2
  76. package/src/components/Business/BsLayouts/Components/GlobalHeader/index.less +1 -1
  77. package/src/components/Business/BsLayouts/Components/RightContent/home.less +1 -1
  78. package/src/components/Business/BsLayouts/Components/SearchFunc/index.less +3 -3
  79. package/src/components/Business/BsLayouts/index.tsx +4 -9
  80. package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +2 -1
  81. package/src/components/Business/BsSulaQueryTable/index.md +113 -0
  82. package/src/components/Business/BsSulaQueryTable/index.tsx +240 -162
  83. package/src/components/Business/BsSulaQueryTable/setting.tsx +52 -3
  84. package/src/components/Business/BsSulaQueryTable/utils.less +1 -1
  85. package/src/components/Business/BsSulaQueryTable/utils.tsx +8 -8
  86. package/src/components/Business/CommodityEntry/index.tsx +2 -2
  87. package/src/components/Business/CommonAlert/index.tsx +1 -1
  88. package/src/components/Business/CommonGuideWrapper/index.less +50 -15
  89. package/src/components/Business/CommonGuideWrapper/index.md +36 -14
  90. package/src/components/Business/CommonGuideWrapper/index.tsx +73 -59
  91. package/src/components/Business/DetailPageWrapper/index.less +11 -9
  92. package/src/components/Business/DetailPageWrapper/index.tsx +2 -23
  93. package/src/components/Business/DetailPageWrapper/utils.tsx +1 -1
  94. package/src/components/Business/HomePageWrapper/index.less +6 -3
  95. package/src/components/Business/HomePageWrapper/index.md +2 -2
  96. package/src/components/Business/HomePageWrapper/index.tsx +5 -37
  97. package/src/components/Business/JsonQueryTable/components/FieldsSettingsTable.tsx +2 -2
  98. package/src/components/Business/SearchSelect/BusinessUtils.tsx +40 -38
  99. package/src/components/Business/SearchSelect/index.md +0 -58
  100. package/src/components/Business/SearchSelect/utils.ts +2 -2
  101. package/src/components/Business/StateFlow/index.less +3 -3
  102. package/src/components/Business/TreeSearchSelect/index.md +0 -28
  103. package/src/components/Business/TreeSearchSelect/utils.ts +0 -11
  104. package/src/components/Business/columnSettingTable/columnSetting.tsx +65 -13
  105. package/src/components/Business/columnSettingTable/index.md +1 -15
  106. package/src/components/Business/columnSettingTable/index.tsx +14 -4
  107. package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +5 -4
  108. package/src/components/Business/columnSettingTable/utils.tsx +2 -2
  109. package/src/components/Common/ExtendedCollapse/ExtendedPanel.tsx +51 -0
  110. package/src/components/Common/ExtendedCollapse/index.less +33 -0
  111. package/src/components/Common/ExtendedCollapse/index.md +136 -0
  112. package/src/components/Common/ExtendedCollapse/index.tsx +25 -0
  113. package/src/components/Common/ParagraphCopier/index.md +81 -0
  114. package/src/components/Common/ParagraphCopier/index.tsx +56 -0
  115. package/src/components/Common/Section/index.md +120 -0
  116. package/src/components/Common/Section/index.module.less +16 -0
  117. package/src/components/Common/Section/index.tsx +70 -0
  118. package/src/components/Functional/AddSelect/index.tsx +29 -19
  119. package/src/components/Functional/BillEntry/index.tsx +11 -10
  120. package/src/components/Functional/DataImport/index.tsx +2 -1
  121. package/src/components/Functional/DataValidation/index.tsx +3 -3
  122. package/src/components/Functional/QueryMutipleInput/index.tsx +13 -4
  123. package/src/components/Functional/SearchSelect/index.tsx +3 -10
  124. package/src/components/Solution/RuleComponent/InnerSelect.tsx +1 -0
  125. package/src/components/Solution/RuleComponent/RenderCompItem.tsx +30 -46
  126. package/src/components/Solution/RuleComponent/index.js +18 -13
  127. package/src/components/Solution/RuleComponent/ruleFiled.js +41 -123
  128. package/src/index.ts +5 -0
  129. package/src/plugin/TableColumnSetting/index.tsx +75 -9
  130. package/src/styles/bsDefault.less +26 -18
  131. package/src/utils/TableUtils.less +1 -1
  132. package/src/utils/businessUtils.ts +2 -2
  133. package/src/utils/requestUtils.ts +2 -6
  134. package/src/utils/utils.ts +6 -35
  135. package/src/utils/xlsxUtil.tsx +2 -2
  136. package/tsconfig.json +2 -1
  137. package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.d.ts +0 -3
  138. package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/helps.d.ts +0 -2
  139. package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.d.ts +0 -3
  140. package/src/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.tsx +0 -358
  141. package/src/components/Solution/RuleComponent/CustomPlugin/CustomSelector/function.js +0 -255
  142. package/src/components/Solution/RuleComponent/CustomPlugin/CustomSelector/helps.tsx +0 -58
  143. package/src/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.tsx +0 -129
@@ -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) => React.JSX.Element;
41
+ render: (text: any, record: any) => 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: () => React.JSX.Element;
48
+ render: () => JSX.Element;
49
49
  width?: undefined;
50
50
  })[];
51
51
  showModal: () => void;
@@ -53,12 +53,13 @@ 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) => React.JSX.Element;
57
- DraggableBodyRow: ({ className, style, ...restProps }: any) => React.JSX.Element;
56
+ DraggableContainer: (props: any) => JSX.Element;
57
+ DraggableBodyRow: ({ className, style, ...restProps }: any) => JSX.Element;
58
58
  onChange: (e: any, title: any) => void;
59
59
  handleReset: () => void;
60
+ handleResetSetting: () => Promise<unknown>;
60
61
  onSearch: (e: any) => void;
61
62
  onSearchSort: (e: any) => void;
62
- render(): React.JSX.Element;
63
+ render(): JSX.Element;
63
64
  }
64
65
  export default TableColumnSetting;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ /// <reference types="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) => 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;
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;
61
61
  declare const handleCommonTimeRender: (text: any, format?: any) => any;
62
- declare const handleTooltip: (text: any, timeTrue?: boolean) => React.JSX.Element;
63
- declare const handleTooltipHours: (text: any, timeTrue?: boolean) => React.JSX.Element;
62
+ declare const handleTooltip: (text: any, timeTrue?: boolean) => JSX.Element;
63
+ declare const handleTooltipHours: (text: any, timeTrue?: boolean) => 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) => React.JSX.Element;
69
+ declare const tableColumnsImage: (url?: string, paramsObj?: tableColumnsImageType) => 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) => React.JSX.Element;
85
+ declare const ColumnsEdit: (props: ColumnsEditInterfave) => 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) => React.JSX.Element;
94
- declare const userInfoCard: (props: any) => React.JSX.Element;
93
+ declare const userColumns: (props: UserColumnsType) => JSX.Element;
94
+ declare const userInfoCard: (props: any) => JSX.Element;
95
95
  declare const getItemDefaultWidth: (item: any) => number;
96
- declare const sulaTableRenderTooltip: ({ text }: any) => React.JSX.Element;
96
+ declare const sulaTableRenderTooltip: ({ text }: any) => 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?: {}) => React.JSX.Element;
99
+ declare const handleTextWarpCustom: (text: any, style?: {}) => JSX.Element;
100
100
  declare const calculateValidPeriod: (start: any, end: any) => string;
101
- declare const handleTextWarp: (text: any) => React.JSX.Element;
101
+ declare const handleTextWarp: (text: any) => 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 };
@@ -1,5 +1,4 @@
1
1
  export declare function handleRequestAuthHeader(config?: any): void;
2
- export declare const handleRequestHeader: (url?: any, options?: any) => any;
3
2
  /**
4
3
  * 处理请求路径前缀/请求路径等使用不一的问题
5
4
  * @param {*} defaultUrl 默认请求路径
@@ -2,7 +2,6 @@ export declare function downloadExcel(data: any, fileName?: any, isResUrl?: bool
2
2
  export declare const formatter: (data: any, parentAuthority: any, parentName: any) => any;
3
3
  export declare const memoizeOneFormatter: import("memoize-one").MemoizedFn<(data: any, parentAuthority: any, parentName: any) => any>;
4
4
  export declare const go2BackAndClose: (backHistoryPath: any) => void;
5
- export declare const parseWidth: (widthStr: string) => number;
6
5
  /**
7
6
  * 处理bssulaTable的公共回显样式
8
7
  * @param col 每一具体行
@@ -29,5 +28,3 @@ export declare const noEmptyArr: (obj: any) => boolean;
29
28
  */
30
29
  export declare const randomString: (len?: any) => string;
31
30
  export declare const createUniqID: (length: any) => string;
32
- export declare const handleConvertResponse: (items: any, total: number) => object;
33
- export declare const noEmptyArray: (targetObj: any) => boolean;
@@ -10,18 +10,18 @@
10
10
  <g id="编组-6">
11
11
  <path d="M4,28 L4,2 C4,0.8954305 4.8954305,-1.91384796e-17 6,0 L20.1028879,0 L20.1028879,0 L28,7.2545499 L28,28 C28,29.1045695 27.1045695,30 26,30 L6,30 C4.8954305,30 4,29.1045695 4,28 Z" id="路径-6" fill="#1B79FF"></path>
12
12
  <g id="编组-2" transform="translate(0.000000, 9.000000)">
13
- <path d="M11,0.5 C11.4142136,0.5 11.7892136,0.667893219 12.0606602,0.939339828 C12.3321068,1.21078644 12.5,1.58578644 12.5,2 L12.5,2 L12.5,11 C12.5,11.4142136 12.3321068,11.7892136 12.0606602,12.0606602 C11.7892136,12.3321068 11.4142136,12.5 11,12.5 L11,12.5 L2,12.5 C1.58578644,12.5 1.21078644,12.3321068 0.939339828,12.0606602 C0.667893219,11.7892136 0.5,11.4142136 0.5,11 L0.5,11 L0.5,2 C0.5,1.58578644 0.667893219,1.21078644 0.939339828,0.939339828 C1.21078644,0.667893219 1.58578644,0.5 2,0.5 L2,0.5 Z" id="矩形" stroke="#005CFF" fill="#FFFFFF"></path>
14
- <g id="X" transform="translate(3.986000, 4.100000)" fill="#005CFF" fill-rule="nonzero">
13
+ <path d="M11,0.5 C11.4142136,0.5 11.7892136,0.667893219 12.0606602,0.939339828 C12.3321068,1.21078644 12.5,1.58578644 12.5,2 L12.5,2 L12.5,11 C12.5,11.4142136 12.3321068,11.7892136 12.0606602,12.0606602 C11.7892136,12.3321068 11.4142136,12.5 11,12.5 L11,12.5 L2,12.5 C1.58578644,12.5 1.21078644,12.3321068 0.939339828,12.0606602 C0.667893219,11.7892136 0.5,11.4142136 0.5,11 L0.5,11 L0.5,2 C0.5,1.58578644 0.667893219,1.21078644 0.939339828,0.939339828 C1.21078644,0.667893219 1.58578644,0.5 2,0.5 L2,0.5 Z" id="矩形" stroke="#00A94E" fill="#FFFFFF"></path>
14
+ <g id="X" transform="translate(3.986000, 4.100000)" fill="#00A94E" fill-rule="nonzero">
15
15
  <polygon id="路径" points="3.598 4.9 2.583 3.381 1.582 4.9 0 4.9 1.785 2.422 0.077 0 1.638 0 2.618 1.414 3.584 0 5.082 0 3.374 2.366 5.194 4.9"></polygon>
16
16
  </g>
17
17
  </g>
18
- <path d="M15,10 L18,10 C18.5522847,10 19,10.4477153 19,11 L19,12 C19,12.5522847 18.5522847,13 18,13 L15,13 C14.4477153,13 14,12.5522847 14,12 L14,11 C14,10.4477153 14.4477153,10 15,10 Z" id="矩形备份-7" fill="#005CFF"></path>
19
- <path d="M21,10 L24,10 C24.5522847,10 25,10.4477153 25,11 L25,12 C25,12.5522847 24.5522847,13 24,13 L21,13 C20.4477153,13 20,12.5522847 20,12 L20,11 C20,10.4477153 20.4477153,10 21,10 Z" id="矩形备份-18" fill="#005CFF"></path>
20
- <path d="M15,14 L18,14 C18.5522847,14 19,14.4477153 19,15 L19,16 C19,16.5522847 18.5522847,17 18,17 L15,17 C14.4477153,17 14,16.5522847 14,16 L14,15 C14,14.4477153 14.4477153,14 15,14 Z" id="矩形备份-20" fill="#005CFF"></path>
21
- <path d="M21,14 L24,14 C24.5522847,14 25,14.4477153 25,15 L25,16 C25,16.5522847 24.5522847,17 24,17 L21,17 C20.4477153,17 20,16.5522847 20,16 L20,15 C20,14.4477153 20.4477153,14 21,14 Z" id="矩形备份-19" fill="#005CFF"></path>
22
- <path d="M15,18 L18,18 C18.5522847,18 19,18.4477153 19,19 L19,20 C19,20.5522847 18.5522847,21 18,21 L15,21 C14.4477153,21 14,20.5522847 14,20 L14,19 C14,18.4477153 14.4477153,18 15,18 Z" id="矩形备份-22" fill="#005CFF"></path>
23
- <path d="M21,18 L24,18 C24.5522847,18 25,18.4477153 25,19 L25,20 C25,20.5522847 24.5522847,21 24,21 L21,21 C20.4477153,21 20,20.5522847 20,20 L20,19 C20,18.4477153 20.4477153,18 21,18 Z" id="矩形备份-21" fill="#005CFF"></path>
24
- <polygon id="路径-19" fill="#005CFF" points="20.1168478 0 20.1168478 7.2545499 28 7.2545499"></polygon>
18
+ <path d="M15,10 L18,10 C18.5522847,10 19,10.4477153 19,11 L19,12 C19,12.5522847 18.5522847,13 18,13 L15,13 C14.4477153,13 14,12.5522847 14,12 L14,11 C14,10.4477153 14.4477153,10 15,10 Z" id="矩形备份-7" fill="#00A94E"></path>
19
+ <path d="M21,10 L24,10 C24.5522847,10 25,10.4477153 25,11 L25,12 C25,12.5522847 24.5522847,13 24,13 L21,13 C20.4477153,13 20,12.5522847 20,12 L20,11 C20,10.4477153 20.4477153,10 21,10 Z" id="矩形备份-18" fill="#00A94E"></path>
20
+ <path d="M15,14 L18,14 C18.5522847,14 19,14.4477153 19,15 L19,16 C19,16.5522847 18.5522847,17 18,17 L15,17 C14.4477153,17 14,16.5522847 14,16 L14,15 C14,14.4477153 14.4477153,14 15,14 Z" id="矩形备份-20" fill="#00A94E"></path>
21
+ <path d="M21,14 L24,14 C24.5522847,14 25,14.4477153 25,15 L25,16 C25,16.5522847 24.5522847,17 24,17 L21,17 C20.4477153,17 20,16.5522847 20,16 L20,15 C20,14.4477153 20.4477153,14 21,14 Z" id="矩形备份-19" fill="#00A94E"></path>
22
+ <path d="M15,18 L18,18 C18.5522847,18 19,18.4477153 19,19 L19,20 C19,20.5522847 18.5522847,21 18,21 L15,21 C14.4477153,21 14,20.5522847 14,20 L14,19 C14,18.4477153 14.4477153,18 15,18 Z" id="矩形备份-22" fill="#00A94E"></path>
23
+ <path d="M21,18 L24,18 C24.5522847,18 25,18.4477153 25,19 L25,20 C25,20.5522847 24.5522847,21 24,21 L21,21 C20.4477153,21 20,20.5522847 20,20 L20,19 C20,18.4477153 20.4477153,18 21,18 Z" id="矩形备份-21" fill="#00A94E"></path>
24
+ <polygon id="路径-19" fill="#00A94E" points="20.1168478 0 20.1168478 7.2545499 28 7.2545499"></polygon>
25
25
  </g>
26
26
  <g id="编组-8" transform="translate(17.000000, 19.000000)" stroke="#FFFFFF">
27
27
  <circle id="椭圆形" fill="#FE0300" cx="8" cy="8" r="7.5"></circle>
@@ -9,18 +9,18 @@
9
9
  <g id="编组-6" transform="translate(6.000000, 6.000000)">
10
10
  <path d="M4,28 L4,2 C4,0.8954305 4.8954305,-1.91384796e-17 6,0 L20.1028879,0 L20.1028879,0 L28,7.2545499 L28,28 C28,29.1045695 27.1045695,30 26,30 L6,30 C4.8954305,30 4,29.1045695 4,28 Z" id="路径-6" fill="#1B79FF"></path>
11
11
  <g id="编组-2" transform="translate(0.000000, 9.000000)">
12
- <path d="M11,0.5 C11.4142136,0.5 11.7892136,0.667893219 12.0606602,0.939339828 C12.3321068,1.21078644 12.5,1.58578644 12.5,2 L12.5,2 L12.5,11 C12.5,11.4142136 12.3321068,11.7892136 12.0606602,12.0606602 C11.7892136,12.3321068 11.4142136,12.5 11,12.5 L11,12.5 L2,12.5 C1.58578644,12.5 1.21078644,12.3321068 0.939339828,12.0606602 C0.667893219,11.7892136 0.5,11.4142136 0.5,11 L0.5,11 L0.5,2 C0.5,1.58578644 0.667893219,1.21078644 0.939339828,0.939339828 C1.21078644,0.667893219 1.58578644,0.5 2,0.5 L2,0.5 Z" id="矩形" stroke="#005CFF" fill="#FFFFFF"></path>
13
- <g id="X" transform="translate(3.986000, 4.100000)" fill="#005CFF" fill-rule="nonzero">
12
+ <path d="M11,0.5 C11.4142136,0.5 11.7892136,0.667893219 12.0606602,0.939339828 C12.3321068,1.21078644 12.5,1.58578644 12.5,2 L12.5,2 L12.5,11 C12.5,11.4142136 12.3321068,11.7892136 12.0606602,12.0606602 C11.7892136,12.3321068 11.4142136,12.5 11,12.5 L11,12.5 L2,12.5 C1.58578644,12.5 1.21078644,12.3321068 0.939339828,12.0606602 C0.667893219,11.7892136 0.5,11.4142136 0.5,11 L0.5,11 L0.5,2 C0.5,1.58578644 0.667893219,1.21078644 0.939339828,0.939339828 C1.21078644,0.667893219 1.58578644,0.5 2,0.5 L2,0.5 Z" id="矩形" stroke="#00A94E" fill="#FFFFFF"></path>
13
+ <g id="X" transform="translate(3.986000, 4.100000)" fill="#00A94E" fill-rule="nonzero">
14
14
  <polygon id="路径" points="3.598 4.9 2.583 3.381 1.582 4.9 0 4.9 1.785 2.422 0.077 0 1.638 0 2.618 1.414 3.584 0 5.082 0 3.374 2.366 5.194 4.9"></polygon>
15
15
  </g>
16
16
  </g>
17
- <path d="M15,10 L18,10 C18.5522847,10 19,10.4477153 19,11 L19,12 C19,12.5522847 18.5522847,13 18,13 L15,13 C14.4477153,13 14,12.5522847 14,12 L14,11 C14,10.4477153 14.4477153,10 15,10 Z" id="矩形备份-7" fill="#005CFF"></path>
18
- <path d="M21,10 L24,10 C24.5522847,10 25,10.4477153 25,11 L25,12 C25,12.5522847 24.5522847,13 24,13 L21,13 C20.4477153,13 20,12.5522847 20,12 L20,11 C20,10.4477153 20.4477153,10 21,10 Z" id="矩形备份-18" fill="#005CFF"></path>
19
- <path d="M15,14 L18,14 C18.5522847,14 19,14.4477153 19,15 L19,16 C19,16.5522847 18.5522847,17 18,17 L15,17 C14.4477153,17 14,16.5522847 14,16 L14,15 C14,14.4477153 14.4477153,14 15,14 Z" id="矩形备份-20" fill="#005CFF"></path>
20
- <path d="M21,14 L24,14 C24.5522847,14 25,14.4477153 25,15 L25,16 C25,16.5522847 24.5522847,17 24,17 L21,17 C20.4477153,17 20,16.5522847 20,16 L20,15 C20,14.4477153 20.4477153,14 21,14 Z" id="矩形备份-19" fill="#005CFF"></path>
21
- <path d="M15,18 L18,18 C18.5522847,18 19,18.4477153 19,19 L19,20 C19,20.5522847 18.5522847,21 18,21 L15,21 C14.4477153,21 14,20.5522847 14,20 L14,19 C14,18.4477153 14.4477153,18 15,18 Z" id="矩形备份-22" fill="#005CFF"></path>
22
- <path d="M21,18 L24,18 C24.5522847,18 25,18.4477153 25,19 L25,20 C25,20.5522847 24.5522847,21 24,21 L21,21 C20.4477153,21 20,20.5522847 20,20 L20,19 C20,18.4477153 20.4477153,18 21,18 Z" id="矩形备份-21" fill="#005CFF"></path>
23
- <polygon id="路径-19" fill="#005CFF" points="20.1168478 0 20.1168478 7.2545499 28 7.2545499"></polygon>
17
+ <path d="M15,10 L18,10 C18.5522847,10 19,10.4477153 19,11 L19,12 C19,12.5522847 18.5522847,13 18,13 L15,13 C14.4477153,13 14,12.5522847 14,12 L14,11 C14,10.4477153 14.4477153,10 15,10 Z" id="矩形备份-7" fill="#00A94E"></path>
18
+ <path d="M21,10 L24,10 C24.5522847,10 25,10.4477153 25,11 L25,12 C25,12.5522847 24.5522847,13 24,13 L21,13 C20.4477153,13 20,12.5522847 20,12 L20,11 C20,10.4477153 20.4477153,10 21,10 Z" id="矩形备份-18" fill="#00A94E"></path>
19
+ <path d="M15,14 L18,14 C18.5522847,14 19,14.4477153 19,15 L19,16 C19,16.5522847 18.5522847,17 18,17 L15,17 C14.4477153,17 14,16.5522847 14,16 L14,15 C14,14.4477153 14.4477153,14 15,14 Z" id="矩形备份-20" fill="#00A94E"></path>
20
+ <path d="M21,14 L24,14 C24.5522847,14 25,14.4477153 25,15 L25,16 C25,16.5522847 24.5522847,17 24,17 L21,17 C20.4477153,17 20,16.5522847 20,16 L20,15 C20,14.4477153 20.4477153,14 21,14 Z" id="矩形备份-19" fill="#00A94E"></path>
21
+ <path d="M15,18 L18,18 C18.5522847,18 19,18.4477153 19,19 L19,20 C19,20.5522847 18.5522847,21 18,21 L15,21 C14.4477153,21 14,20.5522847 14,20 L14,19 C14,18.4477153 14.4477153,18 15,18 Z" id="矩形备份-22" fill="#00A94E"></path>
22
+ <path d="M21,18 L24,18 C24.5522847,18 25,18.4477153 25,19 L25,20 C25,20.5522847 24.5522847,21 24,21 L21,21 C20.4477153,21 20,20.5522847 20,20 L20,19 C20,18.4477153 20.4477153,18 21,18 Z" id="矩形备份-21" fill="#00A94E"></path>
23
+ <polygon id="路径-19" fill="#00A94E" points="20.1168478 0 20.1168478 7.2545499 28 7.2545499"></polygon>
24
24
  </g>
25
25
  </g>
26
26
  </g>
@@ -10,18 +10,18 @@
10
10
  <g id="编组-6">
11
11
  <path d="M4,28 L4,2 C4,0.8954305 4.8954305,-1.91384796e-17 6,0 L20.1028879,0 L20.1028879,0 L28,7.2545499 L28,28 C28,29.1045695 27.1045695,30 26,30 L6,30 C4.8954305,30 4,29.1045695 4,28 Z" id="路径-6" fill="#1B79FF"></path>
12
12
  <g id="编组-2" transform="translate(0.000000, 9.000000)">
13
- <path d="M11,0.5 C11.4142136,0.5 11.7892136,0.667893219 12.0606602,0.939339828 C12.3321068,1.21078644 12.5,1.58578644 12.5,2 L12.5,2 L12.5,11 C12.5,11.4142136 12.3321068,11.7892136 12.0606602,12.0606602 C11.7892136,12.3321068 11.4142136,12.5 11,12.5 L11,12.5 L2,12.5 C1.58578644,12.5 1.21078644,12.3321068 0.939339828,12.0606602 C0.667893219,11.7892136 0.5,11.4142136 0.5,11 L0.5,11 L0.5,2 C0.5,1.58578644 0.667893219,1.21078644 0.939339828,0.939339828 C1.21078644,0.667893219 1.58578644,0.5 2,0.5 L2,0.5 Z" id="矩形" stroke="#005CFF" fill="#FFFFFF"></path>
14
- <g id="X" transform="translate(3.986000, 4.100000)" fill="#005CFF" fill-rule="nonzero">
13
+ <path d="M11,0.5 C11.4142136,0.5 11.7892136,0.667893219 12.0606602,0.939339828 C12.3321068,1.21078644 12.5,1.58578644 12.5,2 L12.5,2 L12.5,11 C12.5,11.4142136 12.3321068,11.7892136 12.0606602,12.0606602 C11.7892136,12.3321068 11.4142136,12.5 11,12.5 L11,12.5 L2,12.5 C1.58578644,12.5 1.21078644,12.3321068 0.939339828,12.0606602 C0.667893219,11.7892136 0.5,11.4142136 0.5,11 L0.5,11 L0.5,2 C0.5,1.58578644 0.667893219,1.21078644 0.939339828,0.939339828 C1.21078644,0.667893219 1.58578644,0.5 2,0.5 L2,0.5 Z" id="矩形" stroke="#00A94E" fill="#FFFFFF"></path>
14
+ <g id="X" transform="translate(3.986000, 4.100000)" fill="#00A94E" fill-rule="nonzero">
15
15
  <polygon id="路径" points="3.598 4.9 2.583 3.381 1.582 4.9 0 4.9 1.785 2.422 0.077 0 1.638 0 2.618 1.414 3.584 0 5.082 0 3.374 2.366 5.194 4.9"></polygon>
16
16
  </g>
17
17
  </g>
18
- <path d="M15,10 L18,10 C18.5522847,10 19,10.4477153 19,11 L19,12 C19,12.5522847 18.5522847,13 18,13 L15,13 C14.4477153,13 14,12.5522847 14,12 L14,11 C14,10.4477153 14.4477153,10 15,10 Z" id="矩形备份-7" fill="#005CFF"></path>
19
- <path d="M21,10 L24,10 C24.5522847,10 25,10.4477153 25,11 L25,12 C25,12.5522847 24.5522847,13 24,13 L21,13 C20.4477153,13 20,12.5522847 20,12 L20,11 C20,10.4477153 20.4477153,10 21,10 Z" id="矩形备份-18" fill="#005CFF"></path>
20
- <path d="M15,14 L18,14 C18.5522847,14 19,14.4477153 19,15 L19,16 C19,16.5522847 18.5522847,17 18,17 L15,17 C14.4477153,17 14,16.5522847 14,16 L14,15 C14,14.4477153 14.4477153,14 15,14 Z" id="矩形备份-20" fill="#005CFF"></path>
21
- <path d="M21,14 L24,14 C24.5522847,14 25,14.4477153 25,15 L25,16 C25,16.5522847 24.5522847,17 24,17 L21,17 C20.4477153,17 20,16.5522847 20,16 L20,15 C20,14.4477153 20.4477153,14 21,14 Z" id="矩形备份-19" fill="#005CFF"></path>
22
- <path d="M15,18 L18,18 C18.5522847,18 19,18.4477153 19,19 L19,20 C19,20.5522847 18.5522847,21 18,21 L15,21 C14.4477153,21 14,20.5522847 14,20 L14,19 C14,18.4477153 14.4477153,18 15,18 Z" id="矩形备份-22" fill="#005CFF"></path>
23
- <path d="M21,18 L24,18 C24.5522847,18 25,18.4477153 25,19 L25,20 C25,20.5522847 24.5522847,21 24,21 L21,21 C20.4477153,21 20,20.5522847 20,20 L20,19 C20,18.4477153 20.4477153,18 21,18 Z" id="矩形备份-21" fill="#005CFF"></path>
24
- <polygon id="路径-19" fill="#005CFF" points="20.1168478 0 20.1168478 7.2545499 28 7.2545499"></polygon>
18
+ <path d="M15,10 L18,10 C18.5522847,10 19,10.4477153 19,11 L19,12 C19,12.5522847 18.5522847,13 18,13 L15,13 C14.4477153,13 14,12.5522847 14,12 L14,11 C14,10.4477153 14.4477153,10 15,10 Z" id="矩形备份-7" fill="#00A94E"></path>
19
+ <path d="M21,10 L24,10 C24.5522847,10 25,10.4477153 25,11 L25,12 C25,12.5522847 24.5522847,13 24,13 L21,13 C20.4477153,13 20,12.5522847 20,12 L20,11 C20,10.4477153 20.4477153,10 21,10 Z" id="矩形备份-18" fill="#00A94E"></path>
20
+ <path d="M15,14 L18,14 C18.5522847,14 19,14.4477153 19,15 L19,16 C19,16.5522847 18.5522847,17 18,17 L15,17 C14.4477153,17 14,16.5522847 14,16 L14,15 C14,14.4477153 14.4477153,14 15,14 Z" id="矩形备份-20" fill="#00A94E"></path>
21
+ <path d="M21,14 L24,14 C24.5522847,14 25,14.4477153 25,15 L25,16 C25,16.5522847 24.5522847,17 24,17 L21,17 C20.4477153,17 20,16.5522847 20,16 L20,15 C20,14.4477153 20.4477153,14 21,14 Z" id="矩形备份-19" fill="#00A94E"></path>
22
+ <path d="M15,18 L18,18 C18.5522847,18 19,18.4477153 19,19 L19,20 C19,20.5522847 18.5522847,21 18,21 L15,21 C14.4477153,21 14,20.5522847 14,20 L14,19 C14,18.4477153 14.4477153,18 15,18 Z" id="矩形备份-22" fill="#00A94E"></path>
23
+ <path d="M21,18 L24,18 C24.5522847,18 25,18.4477153 25,19 L25,20 C25,20.5522847 24.5522847,21 24,21 L21,21 C20.4477153,21 20,20.5522847 20,20 L20,19 C20,18.4477153 20.4477153,18 21,18 Z" id="矩形备份-21" fill="#00A94E"></path>
24
+ <polygon id="路径-19" fill="#00A94E" points="20.1168478 0 20.1168478 7.2545499 28 7.2545499"></polygon>
25
25
  </g>
26
26
  <g id="编组-8" transform="translate(17.000000, 19.000000)" stroke="#FFFFFF">
27
27
  <circle id="椭圆形" fill="#14C255" cx="8" cy="8" r="7.5"></circle>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bit-sun/business-component",
3
- "version": "3.2.4",
3
+ "version": "3.6.1-alpha.0",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -27,13 +27,13 @@
27
27
  ]
28
28
  },
29
29
  "peerDependencies": {
30
- "antd": "^4.17.2",
31
- "bssula": "3.1.5",
32
- "umi-plugin-bssula": "3.1.5",
33
- "umi": "^3.5.20",
34
30
  "@ant-design/pro-layout": "^6.5.0",
31
+ "antd": "^4.17.2",
32
+ "bssula": "4.4.3-alpha.1",
35
33
  "react-dnd": "^16.0.1",
36
- "react-dnd-html5-backend": "^16.0.1"
34
+ "react-dnd-html5-backend": "^16.0.1",
35
+ "umi": "^3.5.20",
36
+ "umi-plugin-bssula": "4.4.3-alpha.1"
37
37
  },
38
38
  "dependencies": {
39
39
  "@ant-design/icons": "^4.7.0",
@@ -51,28 +51,26 @@
51
51
  "moment": "^2.25.3",
52
52
  "qs": "^6.11.2",
53
53
  "querystring": "^0.2.1",
54
- "react": "^16.12.0",
54
+ "react": "17.0.2",
55
55
  "react-beautiful-dnd": "10.0.0",
56
56
  "react-resizable": "^3.0.4",
57
57
  "react-sortable-hoc": "^2.0.0",
58
- "umi-request": "^1.4.0",
59
- "ast-types": "^0.13.3",
60
- "js-cookie": "^3.0.1",
61
58
  "serialize-javascript": "^6.0.0",
59
+ "umi-request": "^1.4.0",
62
60
  "warning": "^4.0.3",
63
- "xlsx": "^0.18.5"
61
+ "xlsx": "0.18.5"
64
62
  },
65
63
  "devDependencies": {
66
- "@ant-design/pro-layout": "^7.1.3",
64
+ "@ant-design/pro-layout": "7.1.3",
67
65
  "@types/js-cookie": "^3.0.6",
68
66
  "@types/lodash": "^4.14.185",
69
- "@types/react": "^18.3.3",
70
- "@types/react-dom": "^18.3.0",
67
+ "@types/react": "17.0.2",
68
+ "@types/react-dom": "17.0.2",
71
69
  "@umijs/test": "^3.0.5",
72
70
  "acorn": "^7.2.0",
73
71
  "acorn-walk": "^7.1.1",
74
72
  "antd": "^4.17.2",
75
- "bssula": "3.1.5",
73
+ "bssula": "4.4.3-alpha.1",
76
74
  "dumi": "^1.0.14",
77
75
  "father-build": "^1.17.2",
78
76
  "gh-pages": "^3.0.0",
@@ -80,7 +78,8 @@
80
78
  "prettier": "^2.2.1",
81
79
  "react-dnd": "^16.0.1",
82
80
  "react-dnd-html5-backend": "^16.0.1",
83
- "rollup-plugin-commonjs": "^10.1.0"
81
+ "rollup-plugin-commonjs": "^10.1.0",
82
+ "umi-plugin-bssula": "4.4.3-alpha.1"
84
83
  },
85
84
  "publishConfig": {
86
85
  "access": "public"
@@ -4,7 +4,7 @@
4
4
  <g id="全局导航相关功能需求设计" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
5
  <g id="画板" transform="translate(-20.000000, -19.000000)">
6
6
  <g id="编组" transform="translate(20.000000, 19.000000)">
7
- <rect id="矩形" fill="#005CFF" opacity="0" x="0" y="0" width="48" height="48"></rect>
7
+ <rect id="矩形" fill="#00A94E" opacity="0" x="0" y="0" width="48" height="48"></rect>
8
8
  <path d="M34.4,30.5 L34.4,33.1 L13.6,33.1 L13.6,30.5 L34.4,30.5 Z M34.4,22.7 L34.4,25.3 L13.6,25.3 L13.6,22.7 L34.4,22.7 Z M34.4,14.9 L34.4,17.5 L13.6,17.5 L13.6,14.9 L34.4,14.9 Z" id="nav-line-导航入口" fill="#FFFFFF"></path>
9
9
  </g>
10
10
  </g>
@@ -10,18 +10,18 @@
10
10
  <g id="编组-6">
11
11
  <path d="M4,28 L4,2 C4,0.8954305 4.8954305,-1.91384796e-17 6,0 L20.1028879,0 L20.1028879,0 L28,7.2545499 L28,28 C28,29.1045695 27.1045695,30 26,30 L6,30 C4.8954305,30 4,29.1045695 4,28 Z" id="路径-6" fill="#1B79FF"></path>
12
12
  <g id="编组-2" transform="translate(0.000000, 9.000000)">
13
- <path d="M11,0.5 C11.4142136,0.5 11.7892136,0.667893219 12.0606602,0.939339828 C12.3321068,1.21078644 12.5,1.58578644 12.5,2 L12.5,2 L12.5,11 C12.5,11.4142136 12.3321068,11.7892136 12.0606602,12.0606602 C11.7892136,12.3321068 11.4142136,12.5 11,12.5 L11,12.5 L2,12.5 C1.58578644,12.5 1.21078644,12.3321068 0.939339828,12.0606602 C0.667893219,11.7892136 0.5,11.4142136 0.5,11 L0.5,11 L0.5,2 C0.5,1.58578644 0.667893219,1.21078644 0.939339828,0.939339828 C1.21078644,0.667893219 1.58578644,0.5 2,0.5 L2,0.5 Z" id="矩形" stroke="#005CFF" fill="#FFFFFF"></path>
14
- <g id="X" transform="translate(3.986000, 4.100000)" fill="#005CFF" fill-rule="nonzero">
13
+ <path d="M11,0.5 C11.4142136,0.5 11.7892136,0.667893219 12.0606602,0.939339828 C12.3321068,1.21078644 12.5,1.58578644 12.5,2 L12.5,2 L12.5,11 C12.5,11.4142136 12.3321068,11.7892136 12.0606602,12.0606602 C11.7892136,12.3321068 11.4142136,12.5 11,12.5 L11,12.5 L2,12.5 C1.58578644,12.5 1.21078644,12.3321068 0.939339828,12.0606602 C0.667893219,11.7892136 0.5,11.4142136 0.5,11 L0.5,11 L0.5,2 C0.5,1.58578644 0.667893219,1.21078644 0.939339828,0.939339828 C1.21078644,0.667893219 1.58578644,0.5 2,0.5 L2,0.5 Z" id="矩形" stroke="#00A94E" fill="#FFFFFF"></path>
14
+ <g id="X" transform="translate(3.986000, 4.100000)" fill="#00A94E" fill-rule="nonzero">
15
15
  <polygon id="路径" points="3.598 4.9 2.583 3.381 1.582 4.9 0 4.9 1.785 2.422 0.077 0 1.638 0 2.618 1.414 3.584 0 5.082 0 3.374 2.366 5.194 4.9"></polygon>
16
16
  </g>
17
17
  </g>
18
- <path d="M15,10 L18,10 C18.5522847,10 19,10.4477153 19,11 L19,12 C19,12.5522847 18.5522847,13 18,13 L15,13 C14.4477153,13 14,12.5522847 14,12 L14,11 C14,10.4477153 14.4477153,10 15,10 Z" id="矩形备份-7" fill="#005CFF"></path>
19
- <path d="M21,10 L24,10 C24.5522847,10 25,10.4477153 25,11 L25,12 C25,12.5522847 24.5522847,13 24,13 L21,13 C20.4477153,13 20,12.5522847 20,12 L20,11 C20,10.4477153 20.4477153,10 21,10 Z" id="矩形备份-18" fill="#005CFF"></path>
20
- <path d="M15,14 L18,14 C18.5522847,14 19,14.4477153 19,15 L19,16 C19,16.5522847 18.5522847,17 18,17 L15,17 C14.4477153,17 14,16.5522847 14,16 L14,15 C14,14.4477153 14.4477153,14 15,14 Z" id="矩形备份-20" fill="#005CFF"></path>
21
- <path d="M21,14 L24,14 C24.5522847,14 25,14.4477153 25,15 L25,16 C25,16.5522847 24.5522847,17 24,17 L21,17 C20.4477153,17 20,16.5522847 20,16 L20,15 C20,14.4477153 20.4477153,14 21,14 Z" id="矩形备份-19" fill="#005CFF"></path>
22
- <path d="M15,18 L18,18 C18.5522847,18 19,18.4477153 19,19 L19,20 C19,20.5522847 18.5522847,21 18,21 L15,21 C14.4477153,21 14,20.5522847 14,20 L14,19 C14,18.4477153 14.4477153,18 15,18 Z" id="矩形备份-22" fill="#005CFF"></path>
23
- <path d="M21,18 L24,18 C24.5522847,18 25,18.4477153 25,19 L25,20 C25,20.5522847 24.5522847,21 24,21 L21,21 C20.4477153,21 20,20.5522847 20,20 L20,19 C20,18.4477153 20.4477153,18 21,18 Z" id="矩形备份-21" fill="#005CFF"></path>
24
- <polygon id="路径-19" fill="#005CFF" points="20.1168478 0 20.1168478 7.2545499 28 7.2545499"></polygon>
18
+ <path d="M15,10 L18,10 C18.5522847,10 19,10.4477153 19,11 L19,12 C19,12.5522847 18.5522847,13 18,13 L15,13 C14.4477153,13 14,12.5522847 14,12 L14,11 C14,10.4477153 14.4477153,10 15,10 Z" id="矩形备份-7" fill="#00A94E"></path>
19
+ <path d="M21,10 L24,10 C24.5522847,10 25,10.4477153 25,11 L25,12 C25,12.5522847 24.5522847,13 24,13 L21,13 C20.4477153,13 20,12.5522847 20,12 L20,11 C20,10.4477153 20.4477153,10 21,10 Z" id="矩形备份-18" fill="#00A94E"></path>
20
+ <path d="M15,14 L18,14 C18.5522847,14 19,14.4477153 19,15 L19,16 C19,16.5522847 18.5522847,17 18,17 L15,17 C14.4477153,17 14,16.5522847 14,16 L14,15 C14,14.4477153 14.4477153,14 15,14 Z" id="矩形备份-20" fill="#00A94E"></path>
21
+ <path d="M21,14 L24,14 C24.5522847,14 25,14.4477153 25,15 L25,16 C25,16.5522847 24.5522847,17 24,17 L21,17 C20.4477153,17 20,16.5522847 20,16 L20,15 C20,14.4477153 20.4477153,14 21,14 Z" id="矩形备份-19" fill="#00A94E"></path>
22
+ <path d="M15,18 L18,18 C18.5522847,18 19,18.4477153 19,19 L19,20 C19,20.5522847 18.5522847,21 18,21 L15,21 C14.4477153,21 14,20.5522847 14,20 L14,19 C14,18.4477153 14.4477153,18 15,18 Z" id="矩形备份-22" fill="#00A94E"></path>
23
+ <path d="M21,18 L24,18 C24.5522847,18 25,18.4477153 25,19 L25,20 C25,20.5522847 24.5522847,21 24,21 L21,21 C20.4477153,21 20,20.5522847 20,20 L20,19 C20,18.4477153 20.4477153,18 21,18 Z" id="矩形备份-21" fill="#00A94E"></path>
24
+ <polygon id="路径-19" fill="#00A94E" points="20.1168478 0 20.1168478 7.2545499 28 7.2545499"></polygon>
25
25
  </g>
26
26
  <g id="编组-8" transform="translate(17.000000, 19.000000)" stroke="#FFFFFF">
27
27
  <circle id="椭圆形" fill="#FE0300" cx="8" cy="8" r="7.5"></circle>
@@ -9,18 +9,18 @@
9
9
  <g id="编组-6" transform="translate(6.000000, 6.000000)">
10
10
  <path d="M4,28 L4,2 C4,0.8954305 4.8954305,-1.91384796e-17 6,0 L20.1028879,0 L20.1028879,0 L28,7.2545499 L28,28 C28,29.1045695 27.1045695,30 26,30 L6,30 C4.8954305,30 4,29.1045695 4,28 Z" id="路径-6" fill="#1B79FF"></path>
11
11
  <g id="编组-2" transform="translate(0.000000, 9.000000)">
12
- <path d="M11,0.5 C11.4142136,0.5 11.7892136,0.667893219 12.0606602,0.939339828 C12.3321068,1.21078644 12.5,1.58578644 12.5,2 L12.5,2 L12.5,11 C12.5,11.4142136 12.3321068,11.7892136 12.0606602,12.0606602 C11.7892136,12.3321068 11.4142136,12.5 11,12.5 L11,12.5 L2,12.5 C1.58578644,12.5 1.21078644,12.3321068 0.939339828,12.0606602 C0.667893219,11.7892136 0.5,11.4142136 0.5,11 L0.5,11 L0.5,2 C0.5,1.58578644 0.667893219,1.21078644 0.939339828,0.939339828 C1.21078644,0.667893219 1.58578644,0.5 2,0.5 L2,0.5 Z" id="矩形" stroke="#005CFF" fill="#FFFFFF"></path>
13
- <g id="X" transform="translate(3.986000, 4.100000)" fill="#005CFF" fill-rule="nonzero">
12
+ <path d="M11,0.5 C11.4142136,0.5 11.7892136,0.667893219 12.0606602,0.939339828 C12.3321068,1.21078644 12.5,1.58578644 12.5,2 L12.5,2 L12.5,11 C12.5,11.4142136 12.3321068,11.7892136 12.0606602,12.0606602 C11.7892136,12.3321068 11.4142136,12.5 11,12.5 L11,12.5 L2,12.5 C1.58578644,12.5 1.21078644,12.3321068 0.939339828,12.0606602 C0.667893219,11.7892136 0.5,11.4142136 0.5,11 L0.5,11 L0.5,2 C0.5,1.58578644 0.667893219,1.21078644 0.939339828,0.939339828 C1.21078644,0.667893219 1.58578644,0.5 2,0.5 L2,0.5 Z" id="矩形" stroke="#00A94E" fill="#FFFFFF"></path>
13
+ <g id="X" transform="translate(3.986000, 4.100000)" fill="#00A94E" fill-rule="nonzero">
14
14
  <polygon id="路径" points="3.598 4.9 2.583 3.381 1.582 4.9 0 4.9 1.785 2.422 0.077 0 1.638 0 2.618 1.414 3.584 0 5.082 0 3.374 2.366 5.194 4.9"></polygon>
15
15
  </g>
16
16
  </g>
17
- <path d="M15,10 L18,10 C18.5522847,10 19,10.4477153 19,11 L19,12 C19,12.5522847 18.5522847,13 18,13 L15,13 C14.4477153,13 14,12.5522847 14,12 L14,11 C14,10.4477153 14.4477153,10 15,10 Z" id="矩形备份-7" fill="#005CFF"></path>
18
- <path d="M21,10 L24,10 C24.5522847,10 25,10.4477153 25,11 L25,12 C25,12.5522847 24.5522847,13 24,13 L21,13 C20.4477153,13 20,12.5522847 20,12 L20,11 C20,10.4477153 20.4477153,10 21,10 Z" id="矩形备份-18" fill="#005CFF"></path>
19
- <path d="M15,14 L18,14 C18.5522847,14 19,14.4477153 19,15 L19,16 C19,16.5522847 18.5522847,17 18,17 L15,17 C14.4477153,17 14,16.5522847 14,16 L14,15 C14,14.4477153 14.4477153,14 15,14 Z" id="矩形备份-20" fill="#005CFF"></path>
20
- <path d="M21,14 L24,14 C24.5522847,14 25,14.4477153 25,15 L25,16 C25,16.5522847 24.5522847,17 24,17 L21,17 C20.4477153,17 20,16.5522847 20,16 L20,15 C20,14.4477153 20.4477153,14 21,14 Z" id="矩形备份-19" fill="#005CFF"></path>
21
- <path d="M15,18 L18,18 C18.5522847,18 19,18.4477153 19,19 L19,20 C19,20.5522847 18.5522847,21 18,21 L15,21 C14.4477153,21 14,20.5522847 14,20 L14,19 C14,18.4477153 14.4477153,18 15,18 Z" id="矩形备份-22" fill="#005CFF"></path>
22
- <path d="M21,18 L24,18 C24.5522847,18 25,18.4477153 25,19 L25,20 C25,20.5522847 24.5522847,21 24,21 L21,21 C20.4477153,21 20,20.5522847 20,20 L20,19 C20,18.4477153 20.4477153,18 21,18 Z" id="矩形备份-21" fill="#005CFF"></path>
23
- <polygon id="路径-19" fill="#005CFF" points="20.1168478 0 20.1168478 7.2545499 28 7.2545499"></polygon>
17
+ <path d="M15,10 L18,10 C18.5522847,10 19,10.4477153 19,11 L19,12 C19,12.5522847 18.5522847,13 18,13 L15,13 C14.4477153,13 14,12.5522847 14,12 L14,11 C14,10.4477153 14.4477153,10 15,10 Z" id="矩形备份-7" fill="#00A94E"></path>
18
+ <path d="M21,10 L24,10 C24.5522847,10 25,10.4477153 25,11 L25,12 C25,12.5522847 24.5522847,13 24,13 L21,13 C20.4477153,13 20,12.5522847 20,12 L20,11 C20,10.4477153 20.4477153,10 21,10 Z" id="矩形备份-18" fill="#00A94E"></path>
19
+ <path d="M15,14 L18,14 C18.5522847,14 19,14.4477153 19,15 L19,16 C19,16.5522847 18.5522847,17 18,17 L15,17 C14.4477153,17 14,16.5522847 14,16 L14,15 C14,14.4477153 14.4477153,14 15,14 Z" id="矩形备份-20" fill="#00A94E"></path>
20
+ <path d="M21,14 L24,14 C24.5522847,14 25,14.4477153 25,15 L25,16 C25,16.5522847 24.5522847,17 24,17 L21,17 C20.4477153,17 20,16.5522847 20,16 L20,15 C20,14.4477153 20.4477153,14 21,14 Z" id="矩形备份-19" fill="#00A94E"></path>
21
+ <path d="M15,18 L18,18 C18.5522847,18 19,18.4477153 19,19 L19,20 C19,20.5522847 18.5522847,21 18,21 L15,21 C14.4477153,21 14,20.5522847 14,20 L14,19 C14,18.4477153 14.4477153,18 15,18 Z" id="矩形备份-22" fill="#00A94E"></path>
22
+ <path d="M21,18 L24,18 C24.5522847,18 25,18.4477153 25,19 L25,20 C25,20.5522847 24.5522847,21 24,21 L21,21 C20.4477153,21 20,20.5522847 20,20 L20,19 C20,18.4477153 20.4477153,18 21,18 Z" id="矩形备份-21" fill="#00A94E"></path>
23
+ <polygon id="路径-19" fill="#00A94E" points="20.1168478 0 20.1168478 7.2545499 28 7.2545499"></polygon>
24
24
  </g>
25
25
  </g>
26
26
  </g>
@@ -10,18 +10,18 @@
10
10
  <g id="编组-6">
11
11
  <path d="M4,28 L4,2 C4,0.8954305 4.8954305,-1.91384796e-17 6,0 L20.1028879,0 L20.1028879,0 L28,7.2545499 L28,28 C28,29.1045695 27.1045695,30 26,30 L6,30 C4.8954305,30 4,29.1045695 4,28 Z" id="路径-6" fill="#1B79FF"></path>
12
12
  <g id="编组-2" transform="translate(0.000000, 9.000000)">
13
- <path d="M11,0.5 C11.4142136,0.5 11.7892136,0.667893219 12.0606602,0.939339828 C12.3321068,1.21078644 12.5,1.58578644 12.5,2 L12.5,2 L12.5,11 C12.5,11.4142136 12.3321068,11.7892136 12.0606602,12.0606602 C11.7892136,12.3321068 11.4142136,12.5 11,12.5 L11,12.5 L2,12.5 C1.58578644,12.5 1.21078644,12.3321068 0.939339828,12.0606602 C0.667893219,11.7892136 0.5,11.4142136 0.5,11 L0.5,11 L0.5,2 C0.5,1.58578644 0.667893219,1.21078644 0.939339828,0.939339828 C1.21078644,0.667893219 1.58578644,0.5 2,0.5 L2,0.5 Z" id="矩形" stroke="#005CFF" fill="#FFFFFF"></path>
14
- <g id="X" transform="translate(3.986000, 4.100000)" fill="#005CFF" fill-rule="nonzero">
13
+ <path d="M11,0.5 C11.4142136,0.5 11.7892136,0.667893219 12.0606602,0.939339828 C12.3321068,1.21078644 12.5,1.58578644 12.5,2 L12.5,2 L12.5,11 C12.5,11.4142136 12.3321068,11.7892136 12.0606602,12.0606602 C11.7892136,12.3321068 11.4142136,12.5 11,12.5 L11,12.5 L2,12.5 C1.58578644,12.5 1.21078644,12.3321068 0.939339828,12.0606602 C0.667893219,11.7892136 0.5,11.4142136 0.5,11 L0.5,11 L0.5,2 C0.5,1.58578644 0.667893219,1.21078644 0.939339828,0.939339828 C1.21078644,0.667893219 1.58578644,0.5 2,0.5 L2,0.5 Z" id="矩形" stroke="#00A94E" fill="#FFFFFF"></path>
14
+ <g id="X" transform="translate(3.986000, 4.100000)" fill="#00A94E" fill-rule="nonzero">
15
15
  <polygon id="路径" points="3.598 4.9 2.583 3.381 1.582 4.9 0 4.9 1.785 2.422 0.077 0 1.638 0 2.618 1.414 3.584 0 5.082 0 3.374 2.366 5.194 4.9"></polygon>
16
16
  </g>
17
17
  </g>
18
- <path d="M15,10 L18,10 C18.5522847,10 19,10.4477153 19,11 L19,12 C19,12.5522847 18.5522847,13 18,13 L15,13 C14.4477153,13 14,12.5522847 14,12 L14,11 C14,10.4477153 14.4477153,10 15,10 Z" id="矩形备份-7" fill="#005CFF"></path>
19
- <path d="M21,10 L24,10 C24.5522847,10 25,10.4477153 25,11 L25,12 C25,12.5522847 24.5522847,13 24,13 L21,13 C20.4477153,13 20,12.5522847 20,12 L20,11 C20,10.4477153 20.4477153,10 21,10 Z" id="矩形备份-18" fill="#005CFF"></path>
20
- <path d="M15,14 L18,14 C18.5522847,14 19,14.4477153 19,15 L19,16 C19,16.5522847 18.5522847,17 18,17 L15,17 C14.4477153,17 14,16.5522847 14,16 L14,15 C14,14.4477153 14.4477153,14 15,14 Z" id="矩形备份-20" fill="#005CFF"></path>
21
- <path d="M21,14 L24,14 C24.5522847,14 25,14.4477153 25,15 L25,16 C25,16.5522847 24.5522847,17 24,17 L21,17 C20.4477153,17 20,16.5522847 20,16 L20,15 C20,14.4477153 20.4477153,14 21,14 Z" id="矩形备份-19" fill="#005CFF"></path>
22
- <path d="M15,18 L18,18 C18.5522847,18 19,18.4477153 19,19 L19,20 C19,20.5522847 18.5522847,21 18,21 L15,21 C14.4477153,21 14,20.5522847 14,20 L14,19 C14,18.4477153 14.4477153,18 15,18 Z" id="矩形备份-22" fill="#005CFF"></path>
23
- <path d="M21,18 L24,18 C24.5522847,18 25,18.4477153 25,19 L25,20 C25,20.5522847 24.5522847,21 24,21 L21,21 C20.4477153,21 20,20.5522847 20,20 L20,19 C20,18.4477153 20.4477153,18 21,18 Z" id="矩形备份-21" fill="#005CFF"></path>
24
- <polygon id="路径-19" fill="#005CFF" points="20.1168478 0 20.1168478 7.2545499 28 7.2545499"></polygon>
18
+ <path d="M15,10 L18,10 C18.5522847,10 19,10.4477153 19,11 L19,12 C19,12.5522847 18.5522847,13 18,13 L15,13 C14.4477153,13 14,12.5522847 14,12 L14,11 C14,10.4477153 14.4477153,10 15,10 Z" id="矩形备份-7" fill="#00A94E"></path>
19
+ <path d="M21,10 L24,10 C24.5522847,10 25,10.4477153 25,11 L25,12 C25,12.5522847 24.5522847,13 24,13 L21,13 C20.4477153,13 20,12.5522847 20,12 L20,11 C20,10.4477153 20.4477153,10 21,10 Z" id="矩形备份-18" fill="#00A94E"></path>
20
+ <path d="M15,14 L18,14 C18.5522847,14 19,14.4477153 19,15 L19,16 C19,16.5522847 18.5522847,17 18,17 L15,17 C14.4477153,17 14,16.5522847 14,16 L14,15 C14,14.4477153 14.4477153,14 15,14 Z" id="矩形备份-20" fill="#00A94E"></path>
21
+ <path d="M21,14 L24,14 C24.5522847,14 25,14.4477153 25,15 L25,16 C25,16.5522847 24.5522847,17 24,17 L21,17 C20.4477153,17 20,16.5522847 20,16 L20,15 C20,14.4477153 20.4477153,14 21,14 Z" id="矩形备份-19" fill="#00A94E"></path>
22
+ <path d="M15,18 L18,18 C18.5522847,18 19,18.4477153 19,19 L19,20 C19,20.5522847 18.5522847,21 18,21 L15,21 C14.4477153,21 14,20.5522847 14,20 L14,19 C14,18.4477153 14.4477153,18 15,18 Z" id="矩形备份-22" fill="#00A94E"></path>
23
+ <path d="M21,18 L24,18 C24.5522847,18 25,18.4477153 25,19 L25,20 C25,20.5522847 24.5522847,21 24,21 L21,21 C20.4477153,21 20,20.5522847 20,20 L20,19 C20,18.4477153 20.4477153,18 21,18 Z" id="矩形备份-21" fill="#00A94E"></path>
24
+ <polygon id="路径-19" fill="#00A94E" points="20.1168478 0 20.1168478 7.2545499 28 7.2545499"></polygon>
25
25
  </g>
26
26
  <g id="编组-8" transform="translate(17.000000, 19.000000)" stroke="#FFFFFF">
27
27
  <circle id="椭圆形" fill="#14C255" cx="8" cy="8" r="7.5"></circle>
@@ -5,7 +5,7 @@
5
5
  <g id="画板" transform="translate(-67.000000, -43.000000)">
6
6
  <g id="编组-9" transform="translate(76.000000, 52.000000) scale(1, -1) translate(-76.000000, -52.000000) translate(67.000000, 43.000000)">
7
7
  <rect id="矩形" stroke="#979797" fill="#D8D8D8" opacity="0" x="0.5" y="0.5" width="17" height="17"></rect>
8
- <path d="M9.49980555,4.20269836 L15,9.65415997 L14.1747569,10.4721491 L10.0757645,6.40841633 L10.0757645,15 L8.90867951,15 L8.90906842,6.4246065 L4.82524306,10.4721491 L4,9.65493094 L9.49980555,4.20269836 Z M14.9824996,3 L14.9824996,4.15644073 L4.09333569,4.15644073 L4.09333569,3 L14.9824996,3 Z" id="形状结合" fill="#005CFF" fill-rule="nonzero" transform="translate(9.500000, 9.000000) rotate(-180.000000) translate(-9.500000, -9.000000) "></path>
8
+ <path d="M9.49980555,4.20269836 L15,9.65415997 L14.1747569,10.4721491 L10.0757645,6.40841633 L10.0757645,15 L8.90867951,15 L8.90906842,6.4246065 L4.82524306,10.4721491 L4,9.65493094 L9.49980555,4.20269836 Z M14.9824996,3 L14.9824996,4.15644073 L4.09333569,4.15644073 L4.09333569,3 L14.9824996,3 Z" id="形状结合" fill="#00A94E" fill-rule="nonzero" transform="translate(9.500000, 9.000000) rotate(-180.000000) translate(-9.500000, -9.000000) "></path>
9
9
  </g>
10
10
  </g>
11
11
  </g>
@@ -5,7 +5,7 @@
5
5
  <g id="画板" transform="translate(-89.000000, -43.000000)">
6
6
  <g id="编组-9" transform="translate(89.000000, 43.000000)">
7
7
  <rect id="矩形" stroke="#979797" fill="#D8D8D8" opacity="0" x="0.5" y="0.5" width="17" height="17"></rect>
8
- <path d="M9.49980555,4.20269836 L15,9.65415997 L14.1747569,10.4721491 L10.0757645,6.40841633 L10.0757645,15 L8.90867951,15 L8.90906842,6.4246065 L4.82524306,10.4721491 L4,9.65493094 L9.49980555,4.20269836 Z M14.9824996,3 L14.9824996,4.15644073 L4.09333569,4.15644073 L4.09333569,3 L14.9824996,3 Z" id="形状结合" fill="#005CFF" fill-rule="nonzero" transform="translate(9.500000, 9.000000) rotate(-180.000000) translate(-9.500000, -9.000000) "></path>
8
+ <path d="M9.49980555,4.20269836 L15,9.65415997 L14.1747569,10.4721491 L10.0757645,6.40841633 L10.0757645,15 L8.90867951,15 L8.90906842,6.4246065 L4.82524306,10.4721491 L4,9.65493094 L9.49980555,4.20269836 Z M14.9824996,3 L14.9824996,4.15644073 L4.09333569,4.15644073 L4.09333569,3 L14.9824996,3 Z" id="形状结合" fill="#00A94E" fill-rule="nonzero" transform="translate(9.500000, 9.000000) rotate(-180.000000) translate(-9.500000, -9.000000) "></path>
9
9
  </g>
10
10
  </g>
11
11
  </g>
@@ -54,7 +54,12 @@ export default () => {
54
54
  console.log('save call', rows);
55
55
  return Promise.resolve(true);
56
56
  // return Promise.reject('FAILE')
57
- }
57
+ },
58
+ // 批量个格式化,回调函数
59
+ batchFormatCallback: (rows) => {
60
+ return rows; // 返回格式化之后的数据
61
+ },
62
+ batchFormatBtnTitle: '批量格式化',
58
63
  }
59
64
  return (
60
65
  <div>
@@ -72,7 +77,7 @@ import { AddSkuSelect } from '../../../index.ts';
72
77
 
73
78
  function handleCommonTimeRender(text: any, format?: any) {
74
79
  const formatType = format || 'YYYY-MM-DD HH:mm:ss';
75
- return (text && moment(text).format(formatType)) || '- -';
80
+ return (text && moment(text).format(formatType)) || '-';
76
81
  }
77
82
 
78
83
  function calculateValidPeriod(a: any, b: any) {
@@ -243,7 +248,7 @@ export default () => {
243
248
  text,
244
249
  'YYYY-MM-DD',
245
250
  )
246
- : '- -',
251
+ : '-',
247
252
  },
248
253
  {
249
254
  title: '有效期至',
@@ -258,7 +263,7 @@ export default () => {
258
263
  validityDate,
259
264
  );
260
265
  }
261
- return '- -';
266
+ return '-';
262
267
  },
263
268
  },
264
269
  {
@@ -272,7 +277,8 @@ export default () => {
272
277
  dataIndex: 'skuQuantity',
273
278
  isInputItem: true,
274
279
  inputProps: {
275
-
280
+ max: (record: any) => record?.availableStock, // 支持传入函数
281
+ max: 5, // 直接传入数值
276
282
  }
277
283
  },
278
284
  {