@bit-sun/business-component 2.3.19 → 2.3.21

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 (201) hide show
  1. package/.editorconfig +16 -16
  2. package/.fatherrc.ts +5 -5
  3. package/.gitlab-ci.yml +179 -179
  4. package/.prettierignore +7 -7
  5. package/.prettierrc +11 -11
  6. package/.umirc.ts +74 -74
  7. package/README.md +27 -27
  8. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
  9. package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
  10. package/dist/components/Business/SearchSelect/index.d.ts +1 -1
  11. package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
  12. package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
  13. package/dist/index.esm.js +983 -936
  14. package/dist/index.js +989 -942
  15. package/dist/utils/utils.d.ts +1 -1
  16. package/docs/index.md +21 -21
  17. package/lib/assets/drag.svg +17 -17
  18. package/lib/assets/exportFail.svg +37 -37
  19. package/lib/assets/exportProcessing.svg +28 -28
  20. package/lib/assets/exportSuccess.svg +34 -34
  21. package/lib/assets/label_icon_bottom.svg +25 -25
  22. package/lib/assets/upExport.svg +22 -22
  23. package/package.json +78 -78
  24. package/src/assets/32.svg +27 -27
  25. package/src/assets/addIcon.svg +17 -17
  26. package/src/assets/allfunc.svg +27 -27
  27. package/src/assets/arrowRight.svg +24 -24
  28. package/src/assets/btn-delete.svg +29 -29
  29. package/src/assets/btn-edit.svg +19 -19
  30. package/src/assets/btn-more.svg +17 -17
  31. package/src/assets/btn-submit.svg +19 -19
  32. package/src/assets/caidan.svg +11 -11
  33. package/src/assets/close.svg +26 -26
  34. package/src/assets/drag.svg +17 -17
  35. package/src/assets/exportFail.svg +37 -37
  36. package/src/assets/exportProcessing.svg +28 -28
  37. package/src/assets/exportSuccess.svg +34 -34
  38. package/src/assets/fixed-left-active.svg +11 -11
  39. package/src/assets/fixed-left.svg +15 -15
  40. package/src/assets/fixed-right-active.svg +11 -11
  41. package/src/assets/fixed-right.svg +15 -15
  42. package/src/assets/guanbi.svg +15 -15
  43. package/src/assets/icon-quanping.svg +15 -15
  44. package/src/assets/icon-shezhi.svg +17 -17
  45. package/src/assets/label_icon_bottom.svg +25 -25
  46. package/src/assets/list-no-img.svg +21 -21
  47. package/src/assets/morentouxiang-32.svg +23 -23
  48. package/src/assets/scanning.svg +24 -24
  49. package/src/assets/upExport.svg +22 -22
  50. package/src/common/ENUM.ts +41 -41
  51. package/src/components/Business/AddSelectBusiness/index.md +162 -162
  52. package/src/components/Business/AddSelectBusiness/index.tsx +895 -895
  53. package/src/components/Business/BsLayouts/Components/AllFunc/drawContent.tsx +111 -111
  54. package/src/components/Business/BsLayouts/Components/AllFunc/index.less +153 -153
  55. package/src/components/Business/BsLayouts/Components/AllFunc/index.tsx +70 -70
  56. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.less +90 -90
  57. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.tsx +37 -37
  58. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.tsx +242 -242
  59. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.tsx +384 -384
  60. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.tsx +285 -285
  61. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.tsx +74 -74
  62. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/drawContent.less +170 -170
  63. package/src/components/Business/BsLayouts/Components/CustomerMenu/index.less +64 -64
  64. package/src/components/Business/BsLayouts/Components/CustomerMenu/index.tsx +153 -153
  65. package/src/components/Business/BsLayouts/Components/GlobalHeader/index.less +72 -72
  66. package/src/components/Business/BsLayouts/Components/GlobalHeader/index.tsx +157 -157
  67. package/src/components/Business/BsLayouts/Components/RightContent/LoginModal.tsx +85 -85
  68. package/src/components/Business/BsLayouts/Components/RightContent/home.less +218 -218
  69. package/src/components/Business/BsLayouts/Components/RightContent/index.tsx +155 -155
  70. package/src/components/Business/BsLayouts/Components/SearchFunc/index.less +160 -160
  71. package/src/components/Business/BsLayouts/Components/SearchFunc/index.tsx +75 -75
  72. package/src/components/Business/BsLayouts/index.less +79 -79
  73. package/src/components/Business/BsLayouts/index.tsx +1484 -1484
  74. package/src/components/Business/BsLayouts/service.ts +10 -10
  75. package/src/components/Business/BsLayouts/utils.tsx +203 -203
  76. package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +564 -564
  77. package/src/components/Business/BsSulaQueryTable/index.less +221 -221
  78. package/src/components/Business/BsSulaQueryTable/index.tsx +535 -535
  79. package/src/components/Business/BsSulaQueryTable/setting.tsx +852 -852
  80. package/src/components/Business/BsSulaQueryTable/utils.less +65 -65
  81. package/src/components/Business/BsSulaQueryTable/utils.tsx +690 -688
  82. package/src/components/Business/CommodityEntry/index.md +70 -70
  83. package/src/components/Business/CommodityEntry/index.tsx +80 -80
  84. package/src/components/Business/CommonAlert/index.tsx +23 -23
  85. package/src/components/Business/CommonGuideWrapper/index.less +111 -111
  86. package/src/components/Business/CommonGuideWrapper/index.md +39 -39
  87. package/src/components/Business/CommonGuideWrapper/index.tsx +83 -83
  88. package/src/components/Business/DetailPageWrapper/index.less +79 -79
  89. package/src/components/Business/DetailPageWrapper/index.tsx +313 -313
  90. package/src/components/Business/DetailPageWrapper/utils.tsx +100 -100
  91. package/src/components/Business/HomePageWrapper/index.less +33 -33
  92. package/src/components/Business/HomePageWrapper/index.md +45 -45
  93. package/src/components/Business/HomePageWrapper/index.tsx +162 -162
  94. package/src/components/Business/JsonQueryTable/components/FieldsModifyModal.tsx +824 -824
  95. package/src/components/Business/JsonQueryTable/components/FieldsSettingsTable.tsx +205 -205
  96. package/src/components/Business/JsonQueryTable/components/Formula.tsx +205 -205
  97. package/src/components/Business/JsonQueryTable/components/MaintainOptions.tsx +127 -127
  98. package/src/components/Business/JsonQueryTable/configButton/index.js +20 -20
  99. package/src/components/Business/JsonQueryTable/configTree/component/compactArrayView.js +25 -25
  100. package/src/components/Business/JsonQueryTable/configTree/component/compactObjectView.js +30 -30
  101. package/src/components/Business/JsonQueryTable/configTree/index.js +82 -82
  102. package/src/components/Business/JsonQueryTable/configTree/index.less +44 -44
  103. package/src/components/Business/JsonQueryTable/configTree/parser/highlight.js +57 -57
  104. package/src/components/Business/JsonQueryTable/configTree/parser/index.js +124 -124
  105. package/src/components/Business/JsonQueryTable/configTree/render/iconRender.js +29 -29
  106. package/src/components/Business/JsonQueryTable/configTree/render/nameRender.js +22 -22
  107. package/src/components/Business/JsonQueryTable/configTree/treeNode.js +116 -116
  108. package/src/components/Business/JsonQueryTable/drawer/index.tsx +12 -12
  109. package/src/components/Business/JsonQueryTable/function.ts +62 -62
  110. package/src/components/Business/JsonQueryTable/index.less +16 -16
  111. package/src/components/Business/JsonQueryTable/index.md +328 -328
  112. package/src/components/Business/JsonQueryTable/index.tsx +535 -535
  113. package/src/components/Business/JsonQueryTable/jsonEditor/index.js +346 -346
  114. package/src/components/Business/JsonQueryTable/jsonEditor/index.less +22 -22
  115. package/src/components/Business/JsonQueryTable/jsonEditor/lint/basicType.js +147 -147
  116. package/src/components/Business/JsonQueryTable/jsonEditor/lint/index.js +389 -389
  117. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/actions.js +118 -118
  118. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/dependency.js +22 -22
  119. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/index.js +21 -21
  120. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/request.js +65 -65
  121. package/src/components/Business/JsonQueryTable/static.ts +390 -390
  122. package/src/components/Business/SearchSelect/BusinessUtils.ts +1762 -1762
  123. package/src/components/Business/SearchSelect/common.ts +75 -75
  124. package/src/components/Business/SearchSelect/index.md +1329 -1329
  125. package/src/components/Business/SearchSelect/index.tsx +55 -55
  126. package/src/components/Business/SearchSelect/utils.ts +100 -100
  127. package/src/components/Business/StateFlow/index.less +130 -130
  128. package/src/components/Business/StateFlow/index.md +60 -60
  129. package/src/components/Business/StateFlow/index.tsx +29 -29
  130. package/src/components/Business/TreeSearchSelect/index.md +156 -156
  131. package/src/components/Business/TreeSearchSelect/index.tsx +33 -33
  132. package/src/components/Business/TreeSearchSelect/utils.ts +75 -75
  133. package/src/components/Business/columnSettingTable/columnSetting.tsx +764 -764
  134. package/src/components/Business/columnSettingTable/index.less +247 -247
  135. package/src/components/Business/columnSettingTable/index.md +357 -357
  136. package/src/components/Business/columnSettingTable/index.tsx +232 -232
  137. package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +240 -240
  138. package/src/components/Business/columnSettingTable/utils.tsx +71 -69
  139. package/src/components/Business/moreTreeTable/FixedScrollBar.tsx +87 -86
  140. package/src/components/Business/moreTreeTable/hooks/useSticky.ts +21 -21
  141. package/src/components/Business/moreTreeTable/index.less +99 -99
  142. package/src/components/Business/moreTreeTable/index.md +448 -448
  143. package/src/components/Business/moreTreeTable/index.tsx +387 -387
  144. package/src/components/Business/moreTreeTable/utils.ts +126 -126
  145. package/src/components/Functional/AddSelect/helps.ts +14 -14
  146. package/src/components/Functional/AddSelect/index.less +367 -367
  147. package/src/components/Functional/AddSelect/index.md +155 -155
  148. package/src/components/Functional/AddSelect/index.tsx +1282 -1282
  149. package/src/components/Functional/BillEntry/index.less +371 -371
  150. package/src/components/Functional/BillEntry/index.md +39 -39
  151. package/src/components/Functional/BillEntry/index.tsx +772 -772
  152. package/src/components/Functional/BsAntdSula/BsCascader/index.md +62 -62
  153. package/src/components/Functional/BsAntdSula/BsCascader/index.tsx +178 -178
  154. package/src/components/Functional/BsAntdSula/index.ts +2 -2
  155. package/src/components/Functional/DataImport/index.less +63 -63
  156. package/src/components/Functional/DataImport/index.md +44 -44
  157. package/src/components/Functional/DataImport/index.tsx +695 -695
  158. package/src/components/Functional/DataValidation/index.less +63 -63
  159. package/src/components/Functional/DataValidation/index.md +39 -39
  160. package/src/components/Functional/DataValidation/index.tsx +687 -687
  161. package/src/components/Functional/EllipsisTooltip/index.d.ts +5 -5
  162. package/src/components/Functional/EllipsisTooltip/index.js +36 -36
  163. package/src/components/Functional/EllipsisTooltip/index.md +30 -30
  164. package/src/components/Functional/ExportFunctions/ExportIcon/index.md +37 -37
  165. package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +59 -59
  166. package/src/components/Functional/QueryMutipleInput/index.less +37 -37
  167. package/src/components/Functional/QueryMutipleInput/index.md +33 -33
  168. package/src/components/Functional/QueryMutipleInput/index.tsx +128 -128
  169. package/src/components/Functional/SearchSelect/index.less +115 -115
  170. package/src/components/Functional/SearchSelect/index.md +141 -141
  171. package/src/components/Functional/SearchSelect/index.tsx +879 -879
  172. package/src/components/Functional/SearchSelect/utils.ts +3 -3
  173. package/src/components/Functional/TreeSearchSelect/index.md +47 -47
  174. package/src/components/Functional/TreeSearchSelect/index.tsx +199 -199
  175. package/src/components/Solution/RuleComponent/Formula.tsx +335 -335
  176. package/src/components/Solution/RuleComponent/index.d.ts +29 -29
  177. package/src/components/Solution/RuleComponent/index.js +2032 -2032
  178. package/src/components/Solution/RuleComponent/index.less +230 -230
  179. package/src/components/Solution/RuleComponent/renderSpecificAction.js +99 -99
  180. package/src/components/Solution/RuleComponent/ruleFiled.js +2107 -2107
  181. package/src/components/Solution/RuleComponent/services.ts +13 -13
  182. package/src/components/Solution/RuleComponent/util.js +139 -139
  183. package/src/index.ts +38 -38
  184. package/src/plugin/TableColumnSetting/index.less +247 -247
  185. package/src/plugin/TableColumnSetting/index.md +50 -50
  186. package/src/plugin/TableColumnSetting/index.tsx +724 -724
  187. package/src/plugin/TableColumnSetting/utils.ts +19 -19
  188. package/src/styles/bsDefault.less +1912 -1912
  189. package/src/utils/CheckOneUser/index.md +39 -39
  190. package/src/utils/CheckOneUser/index.ts +51 -51
  191. package/src/utils/LocalstorageUtils.ts +95 -95
  192. package/src/utils/TableUtils.tsx +18 -18
  193. package/src/utils/checkUtils.ts +39 -39
  194. package/src/utils/enumConfig.ts +11 -11
  195. package/src/utils/getFormMode.js +12 -12
  196. package/src/utils/index.ts +4 -4
  197. package/src/utils/requestUtils.ts +34 -34
  198. package/src/utils/serialize.js +7 -7
  199. package/src/utils/utils.ts +212 -212
  200. package/tsconfig.json +29 -29
  201. package/typings.d.ts +4 -4
@@ -1,22 +1,22 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <svg width="44px" height="44px" viewBox="0 0 44 44" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
- <title>蒙版</title>
4
- <defs>
5
- <polygon id="path-1" points="-1.56319402e-13 1.84741111e-13 44 1.84741111e-13 44 44 -1.56319402e-13 44"></polygon>
6
- </defs>
7
- <g id="列表功能" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
8
- <g id="星澜-搜索-搜索功能" transform="translate(-354.000000, -672.000000)">
9
- <g id="列表一备份" transform="translate(240.000000, 664.000000)">
10
- <g id="单据编号" transform="translate(106.000000, 0.000000)">
11
- <g id="形状" transform="translate(8.000000, 8.000000)">
12
- <mask id="mask-2" fill="white">
13
- <use xlink:href="#path-1"></use>
14
- </mask>
15
- <use id="蒙版" fill="#E6F3FF" xlink:href="#path-1"></use>
16
- <path d="M28.4962332,15 C29.4007284,15 30.1339666,15.7383979 30.1339666,16.6492578 L30.1339666,27.5596481 C30.1339666,28.4705081 29.4007284,29.208906 28.4962332,29.208906 L14.6377334,29.208906 C13.7332382,29.208906 13,28.4705081 13,27.5596481 L13,16.6492578 C13,15.7383979 13.7332382,15 14.6377334,15 L28.4956873,15 L28.4962332,15 Z M28.4962332,16.6492578 L14.6377334,16.6492578 L14.6377334,27.5596481 L28.4956873,27.5596481 L28.4956873,16.6492578 L28.4962332,16.6492578 Z M26.6996397,18.6899395 L26.6996397,20.3369983 C24.5001638,20.357889 23.12283,21.0967565 22.4448084,22.5305113 L22.3847582,22.6624519 L22.3137897,22.8224299 C21.2241511,25.1880154 19.0819959,26.322155 16.0560105,26.1940627 L16.243258,26.2001099 L16.2443498,24.5508521 C18.5633803,24.6206707 20.0357026,23.8290269 20.8190851,22.1473337 L20.8824107,22.006597 L20.9479201,21.8603628 C21.9158205,19.7680044 23.8767333,18.7196262 26.6996397,18.6899395 L26.6996397,18.6899395 Z M17.5583579,18.3435954 C18.1149239,18.3435954 18.5661099,18.7979562 18.5661099,19.3584387 C18.5661099,19.9189212 18.1149239,20.373282 17.5583579,20.373282 C17.0016411,20.373282 16.550333,19.9187981 16.550333,19.3581638 C16.550333,18.7975295 17.0016411,18.3430456 17.5583579,18.3430456 L17.5583579,18.3435954 Z" fill="#A3D1FF" fill-rule="nonzero" mask="url(#mask-2)"></path>
17
- </g>
18
- </g>
19
- </g>
20
- </g>
21
- </g>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="44px" height="44px" viewBox="0 0 44 44" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>蒙版</title>
4
+ <defs>
5
+ <polygon id="path-1" points="-1.56319402e-13 1.84741111e-13 44 1.84741111e-13 44 44 -1.56319402e-13 44"></polygon>
6
+ </defs>
7
+ <g id="列表功能" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
8
+ <g id="星澜-搜索-搜索功能" transform="translate(-354.000000, -672.000000)">
9
+ <g id="列表一备份" transform="translate(240.000000, 664.000000)">
10
+ <g id="单据编号" transform="translate(106.000000, 0.000000)">
11
+ <g id="形状" transform="translate(8.000000, 8.000000)">
12
+ <mask id="mask-2" fill="white">
13
+ <use xlink:href="#path-1"></use>
14
+ </mask>
15
+ <use id="蒙版" fill="#E6F3FF" xlink:href="#path-1"></use>
16
+ <path d="M28.4962332,15 C29.4007284,15 30.1339666,15.7383979 30.1339666,16.6492578 L30.1339666,27.5596481 C30.1339666,28.4705081 29.4007284,29.208906 28.4962332,29.208906 L14.6377334,29.208906 C13.7332382,29.208906 13,28.4705081 13,27.5596481 L13,16.6492578 C13,15.7383979 13.7332382,15 14.6377334,15 L28.4956873,15 L28.4962332,15 Z M28.4962332,16.6492578 L14.6377334,16.6492578 L14.6377334,27.5596481 L28.4956873,27.5596481 L28.4956873,16.6492578 L28.4962332,16.6492578 Z M26.6996397,18.6899395 L26.6996397,20.3369983 C24.5001638,20.357889 23.12283,21.0967565 22.4448084,22.5305113 L22.3847582,22.6624519 L22.3137897,22.8224299 C21.2241511,25.1880154 19.0819959,26.322155 16.0560105,26.1940627 L16.243258,26.2001099 L16.2443498,24.5508521 C18.5633803,24.6206707 20.0357026,23.8290269 20.8190851,22.1473337 L20.8824107,22.006597 L20.9479201,21.8603628 C21.9158205,19.7680044 23.8767333,18.7196262 26.6996397,18.6899395 L26.6996397,18.6899395 Z M17.5583579,18.3435954 C18.1149239,18.3435954 18.5661099,18.7979562 18.5661099,19.3584387 C18.5661099,19.9189212 18.1149239,20.373282 17.5583579,20.373282 C17.0016411,20.373282 16.550333,19.9187981 16.550333,19.3581638 C16.550333,18.7975295 17.0016411,18.3430456 17.5583579,18.3430456 L17.5583579,18.3435954 Z" fill="#A3D1FF" fill-rule="nonzero" mask="url(#mask-2)"></path>
17
+ </g>
18
+ </g>
19
+ </g>
20
+ </g>
21
+ </g>
22
22
  </svg>
@@ -1,24 +1,24 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <svg width="40px" height="40px" viewBox="0 0 40 40" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
- <title>32</title>
4
- <defs>
5
- <circle id="path-1" cx="13" cy="13" r="13"></circle>
6
- <filter x="-40.4%" y="-40.4%" width="180.8%" height="180.8%" filterUnits="objectBoundingBox" id="filter-2">
7
- <feOffset dx="0" dy="0" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
8
- <feGaussianBlur stdDeviation="3.5" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
9
- <feComposite in="shadowBlurOuter1" in2="SourceAlpha" operator="out" result="shadowBlurOuter1"></feComposite>
10
- <feColorMatrix values="0 0 0 0 0.949019608 0 0 0 0 0.949019608 0 0 0 0 0.949019608 0 0 0 1 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
11
- </filter>
12
- </defs>
13
- <g id="-----6.1-默认图片/-Default-picture" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
14
- <g id="B-Design-体验规范" transform="translate(-1119.000000, -988.000000)" fill-rule="nonzero">
15
- <g id="32" transform="translate(1126.000000, 995.000000)">
16
- <g id="圆形">
17
- <use fill="black" fill-opacity="1" filter="url(#filter-2)" xlink:href="#path-1"></use>
18
- <circle stroke="#FFFFFF" stroke-width="0.8328125" stroke-linejoin="square" fill="#EDF4FF" fill-rule="evenodd" cx="13" cy="13" r="12.5835938"></circle>
19
- </g>
20
- <path d="M15.644709,13.6190476 L18.9119048,15.0892857 L18.9119048,19.5 L7.15,19.5 L7.15,15.0892857 L10.4171958,13.6190476 L15.644709,13.6190476 Z M16.1261905,16.4047619 L13.65,16.4047619 L13.65,17.6428571 L16.1261905,17.6428571 L16.1261905,16.4047619 Z M13.1857143,6.5 C14.9806397,6.5 16.4357143,7.95507456 16.4357143,9.75 C16.4357143,11.5449254 14.9806397,13 13.1857143,13 C11.3907888,13 9.93571429,11.5449254 9.93571429,9.75 C9.93571429,7.95507456 11.3907888,6.5 13.1857143,6.5 Z" id="形状" fill="#9AC4FF"></path>
21
- </g>
22
- </g>
23
- </g>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="40px" height="40px" viewBox="0 0 40 40" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>32</title>
4
+ <defs>
5
+ <circle id="path-1" cx="13" cy="13" r="13"></circle>
6
+ <filter x="-40.4%" y="-40.4%" width="180.8%" height="180.8%" filterUnits="objectBoundingBox" id="filter-2">
7
+ <feOffset dx="0" dy="0" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
8
+ <feGaussianBlur stdDeviation="3.5" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
9
+ <feComposite in="shadowBlurOuter1" in2="SourceAlpha" operator="out" result="shadowBlurOuter1"></feComposite>
10
+ <feColorMatrix values="0 0 0 0 0.949019608 0 0 0 0 0.949019608 0 0 0 0 0.949019608 0 0 0 1 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
11
+ </filter>
12
+ </defs>
13
+ <g id="-----6.1-默认图片/-Default-picture" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
14
+ <g id="B-Design-体验规范" transform="translate(-1119.000000, -988.000000)" fill-rule="nonzero">
15
+ <g id="32" transform="translate(1126.000000, 995.000000)">
16
+ <g id="圆形">
17
+ <use fill="black" fill-opacity="1" filter="url(#filter-2)" xlink:href="#path-1"></use>
18
+ <circle stroke="#FFFFFF" stroke-width="0.8328125" stroke-linejoin="square" fill="#EDF4FF" fill-rule="evenodd" cx="13" cy="13" r="12.5835938"></circle>
19
+ </g>
20
+ <path d="M15.644709,13.6190476 L18.9119048,15.0892857 L18.9119048,19.5 L7.15,19.5 L7.15,15.0892857 L10.4171958,13.6190476 L15.644709,13.6190476 Z M16.1261905,16.4047619 L13.65,16.4047619 L13.65,17.6428571 L16.1261905,17.6428571 L16.1261905,16.4047619 Z M13.1857143,6.5 C14.9806397,6.5 16.4357143,7.95507456 16.4357143,9.75 C16.4357143,11.5449254 14.9806397,13 13.1857143,13 C11.3907888,13 9.93571429,11.5449254 9.93571429,9.75 C9.93571429,7.95507456 11.3907888,6.5 13.1857143,6.5 Z" id="形状" fill="#9AC4FF"></path>
21
+ </g>
22
+ </g>
23
+ </g>
24
24
  </svg>
@@ -1,25 +1,25 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <svg width="34px" height="34px" viewBox="0 0 34 34" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
- <title>scanning@2x</title>
4
- <defs>
5
- <path d="M4.55801813,-4.10857923e-16 L27.4419819,1.84149388e-16 C29.0269041,-1.06996098e-16 29.6016352,0.165023309 30.181059,0.474902584 C30.7604829,0.78478186 31.2152181,1.2395171 31.5250974,1.81894097 C31.8349767,2.39836484 32,2.97309593 32,4.55801813 L32,27.4419819 C32,29.0269041 31.8349767,29.6016352 31.5250974,30.181059 C31.2152181,30.7604829 30.7604829,31.2152181 30.181059,31.5250974 C29.6016352,31.8349767 29.0269041,32 27.4419819,32 L4.55801813,32 C2.97309593,32 2.39836484,31.8349767 1.81894097,31.5250974 C1.2395171,31.2152181 0.78478186,30.7604829 0.474902584,30.181059 C0.165023309,29.6016352 2.03054919e-16,29.0269041 -3.49474794e-16,27.4419819 L1.22766259e-16,4.55801813 C-7.13307317e-17,2.97309593 0.165023309,2.39836484 0.474902584,1.81894097 C0.78478186,1.2395171 1.2395171,0.78478186 1.81894097,0.474902584 C2.39836484,0.165023309 2.97309593,2.38720285e-16 4.55801813,-4.10857923e-16 Z" id="path-1"></path>
6
- </defs>
7
- <g id="列表功能" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
8
- <g id="画板" transform="translate(-63.000000, -69.000000)">
9
- <g id="scanning" transform="translate(64.244061, 70.096401)">
10
- <mask id="mask-2" fill="white">
11
- <use xlink:href="#path-1"></use>
12
- </mask>
13
- <use id="蒙版" stroke="#D9D9D9" stroke-width="0.888888889" xlink:href="#path-1"></use>
14
- <g mask="url(#mask-2)" fill="#000000" fill-rule="nonzero" id="形状结合">
15
- <g transform="translate(8.000000, 8.000000)">
16
- <path d="M5.21873562,9.69278114 L6.28954184,10.7432953 L2.532,14.4997811 L5.24949999,14.5 L5.24949999,16 L1.5,16 C0.671572876,16 0,15.3284271 0,14.5 L0,11 L1.5,11 L1.5,13.4107811 L5.21873562,9.69278114 Z" transform="translate(3.144771, 12.846391) scale(-1, -1) translate(-3.144771, -12.846391) "></path>
17
- <path d="M10.7898541,9.72266777 L14.4990478,13.4326678 L14.5,11 L16,11 L16,14.5 C16,15.3284271 15.3284271,16 14.5,16 L10.7495,16 L10.7495,14.5 L13.4460478,14.4996678 L9.71904783,10.7731819 L10.7898541,9.72266777 Z" transform="translate(12.859524, 12.861334) scale(-1, -1) translate(-12.859524, -12.861334) "></path>
18
- <path d="M14.5,0 C15.3284271,0 16,0.671572876 16,1.5 L16,5 L14.5,5 L14.4990478,2.587 L10.779708,6.3074783 L9.71904783,5.24681813 L13.4650478,1.5 L10.75,1.5 L10.75,0 L14.5,0 Z" transform="translate(12.859524, 3.153739) scale(-1, -1) translate(-12.859524, -3.153739) "></path>
19
- <path d="M5.25000001,0 L5.25000001,1.5 L2.567,1.5 L6.31400442,5.24681813 L5.25334424,6.3074783 L1.5,2.554 L1.5,5 L0,5 L0,1.5 C0,0.671572876 0.671572876,0 1.5,0 L5.25000001,0 Z" transform="translate(3.157002, 3.153739) scale(-1, -1) translate(-3.157002, -3.153739) "></path>
20
- </g>
21
- </g>
22
- </g>
23
- </g>
24
- </g>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="34px" height="34px" viewBox="0 0 34 34" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>scanning@2x</title>
4
+ <defs>
5
+ <path d="M4.55801813,-4.10857923e-16 L27.4419819,1.84149388e-16 C29.0269041,-1.06996098e-16 29.6016352,0.165023309 30.181059,0.474902584 C30.7604829,0.78478186 31.2152181,1.2395171 31.5250974,1.81894097 C31.8349767,2.39836484 32,2.97309593 32,4.55801813 L32,27.4419819 C32,29.0269041 31.8349767,29.6016352 31.5250974,30.181059 C31.2152181,30.7604829 30.7604829,31.2152181 30.181059,31.5250974 C29.6016352,31.8349767 29.0269041,32 27.4419819,32 L4.55801813,32 C2.97309593,32 2.39836484,31.8349767 1.81894097,31.5250974 C1.2395171,31.2152181 0.78478186,30.7604829 0.474902584,30.181059 C0.165023309,29.6016352 2.03054919e-16,29.0269041 -3.49474794e-16,27.4419819 L1.22766259e-16,4.55801813 C-7.13307317e-17,2.97309593 0.165023309,2.39836484 0.474902584,1.81894097 C0.78478186,1.2395171 1.2395171,0.78478186 1.81894097,0.474902584 C2.39836484,0.165023309 2.97309593,2.38720285e-16 4.55801813,-4.10857923e-16 Z" id="path-1"></path>
6
+ </defs>
7
+ <g id="列表功能" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
8
+ <g id="画板" transform="translate(-63.000000, -69.000000)">
9
+ <g id="scanning" transform="translate(64.244061, 70.096401)">
10
+ <mask id="mask-2" fill="white">
11
+ <use xlink:href="#path-1"></use>
12
+ </mask>
13
+ <use id="蒙版" stroke="#D9D9D9" stroke-width="0.888888889" xlink:href="#path-1"></use>
14
+ <g mask="url(#mask-2)" fill="#000000" fill-rule="nonzero" id="形状结合">
15
+ <g transform="translate(8.000000, 8.000000)">
16
+ <path d="M5.21873562,9.69278114 L6.28954184,10.7432953 L2.532,14.4997811 L5.24949999,14.5 L5.24949999,16 L1.5,16 C0.671572876,16 0,15.3284271 0,14.5 L0,11 L1.5,11 L1.5,13.4107811 L5.21873562,9.69278114 Z" transform="translate(3.144771, 12.846391) scale(-1, -1) translate(-3.144771, -12.846391) "></path>
17
+ <path d="M10.7898541,9.72266777 L14.4990478,13.4326678 L14.5,11 L16,11 L16,14.5 C16,15.3284271 15.3284271,16 14.5,16 L10.7495,16 L10.7495,14.5 L13.4460478,14.4996678 L9.71904783,10.7731819 L10.7898541,9.72266777 Z" transform="translate(12.859524, 12.861334) scale(-1, -1) translate(-12.859524, -12.861334) "></path>
18
+ <path d="M14.5,0 C15.3284271,0 16,0.671572876 16,1.5 L16,5 L14.5,5 L14.4990478,2.587 L10.779708,6.3074783 L9.71904783,5.24681813 L13.4650478,1.5 L10.75,1.5 L10.75,0 L14.5,0 Z" transform="translate(12.859524, 3.153739) scale(-1, -1) translate(-12.859524, -3.153739) "></path>
19
+ <path d="M5.25000001,0 L5.25000001,1.5 L2.567,1.5 L6.31400442,5.24681813 L5.25334424,6.3074783 L1.5,2.554 L1.5,5 L0,5 L0,1.5 C0,0.671572876 0.671572876,0 1.5,0 L5.25000001,0 Z" transform="translate(3.157002, 3.153739) scale(-1, -1) translate(-3.157002, -3.153739) "></path>
20
+ </g>
21
+ </g>
22
+ </g>
23
+ </g>
24
+ </g>
25
25
  </svg>
@@ -1,23 +1,23 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
- <title>xinglan-icon-message备份 5</title>
4
- <defs>
5
- <rect id="path-1" x="0" y="0" width="24" height="24"></rect>
6
- </defs>
7
- <g id="导出功能" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
8
- <g id="导出功能-导出数据转入后台提示" transform="translate(-1659.000000, -18.000000)">
9
- <g id="导入、导出记录icon" transform="translate(1659.000000, 18.000000)">
10
- <mask id="mask-2" fill="white">
11
- <use xlink:href="#path-1"></use>
12
- </mask>
13
- <use id="xinglan-icon-message" fill="#D8D8D8" opacity="0" xlink:href="#path-1"></use>
14
- <g id="responsetime" mask="url(#mask-2)" fill="#000000" fill-rule="nonzero">
15
- <g transform="translate(3.000000, 2.000000)">
16
- <path d="M5.21516417,6.74357406 L4.07552238,7.8711358 L0,3.83881343 L3.87940299,0 L5.02011939,1.12756173 L3.05785074,3.06796734 L9.4438209,3.06903059 C14.112,3.06903059 17.9075821,6.76802848 17.9978507,11.3659924 L18,11.5345153 C18,16.2095638 14.1689552,20 9.4438209,20 C4.71814925,20 0.887104494,16.2095638 0.887104469,11.5345153 L2.49904477,11.5345153 C2.49904477,15.3292044 5.6084776,18.4051461 9.4438209,18.4051461 C13.2786269,18.4051461 16.3880597,15.3292044 16.3880597,11.5345153 C16.3880597,7.73982616 13.2786269,4.66388453 9.4438209,4.66388453 L3.11265671,4.66335292 L5.21516417,6.74357406 Z" id="形状"></path>
17
- <path d="M10.4,7.2 L10.399,12.381 L12.4660494,10.315207 L13.6934831,11.5426407 L9.55833777,15.677786 L5.2,11.5508424 L6.44018239,10.31066 L8.599,12.309 L8.6,7.2 L10.4,7.2 Z" id="形状结合" transform="translate(9.446742, 11.438893) scale(1, -1) translate(-9.446742, -11.438893) "></path>
18
- </g>
19
- </g>
20
- </g>
21
- </g>
22
- </g>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>xinglan-icon-message备份 5</title>
4
+ <defs>
5
+ <rect id="path-1" x="0" y="0" width="24" height="24"></rect>
6
+ </defs>
7
+ <g id="导出功能" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
8
+ <g id="导出功能-导出数据转入后台提示" transform="translate(-1659.000000, -18.000000)">
9
+ <g id="导入、导出记录icon" transform="translate(1659.000000, 18.000000)">
10
+ <mask id="mask-2" fill="white">
11
+ <use xlink:href="#path-1"></use>
12
+ </mask>
13
+ <use id="xinglan-icon-message" fill="#D8D8D8" opacity="0" xlink:href="#path-1"></use>
14
+ <g id="responsetime" mask="url(#mask-2)" fill="#000000" fill-rule="nonzero">
15
+ <g transform="translate(3.000000, 2.000000)">
16
+ <path d="M5.21516417,6.74357406 L4.07552238,7.8711358 L0,3.83881343 L3.87940299,0 L5.02011939,1.12756173 L3.05785074,3.06796734 L9.4438209,3.06903059 C14.112,3.06903059 17.9075821,6.76802848 17.9978507,11.3659924 L18,11.5345153 C18,16.2095638 14.1689552,20 9.4438209,20 C4.71814925,20 0.887104494,16.2095638 0.887104469,11.5345153 L2.49904477,11.5345153 C2.49904477,15.3292044 5.6084776,18.4051461 9.4438209,18.4051461 C13.2786269,18.4051461 16.3880597,15.3292044 16.3880597,11.5345153 C16.3880597,7.73982616 13.2786269,4.66388453 9.4438209,4.66388453 L3.11265671,4.66335292 L5.21516417,6.74357406 Z" id="形状"></path>
17
+ <path d="M10.4,7.2 L10.399,12.381 L12.4660494,10.315207 L13.6934831,11.5426407 L9.55833777,15.677786 L5.2,11.5508424 L6.44018239,10.31066 L8.599,12.309 L8.6,7.2 L10.4,7.2 Z" id="形状结合" transform="translate(9.446742, 11.438893) scale(1, -1) translate(-9.446742, -11.438893) "></path>
18
+ </g>
19
+ </g>
20
+ </g>
21
+ </g>
22
+ </g>
23
23
  </svg>
@@ -1,41 +1,41 @@
1
- const ENUM = {
2
- /**
3
- * 事件动作类型枚举
4
- */
5
- VALUE_TYPE: {
6
- STATUS: 1, // 流转状态
7
- TAG: 2, // 添加标签
8
- TIMING: 3, // 定时器
9
- EDIT_FIELD: 4, // 字段变更
10
- },
11
- /**
12
- * 执行动作枚举
13
- */
14
- EXCUSE_ACTION: {
15
- SEND_MESSAGE: 1, // 发送消息
16
- PUSH_TODO_TASK: 2, // 推送任务
17
- },
18
- EXCUSE_ACTION_TEXT: {
19
- SEND_MESSAGE: '发送一条消息',
20
- PUSH_TODO_TASK: '推送一条待办任务',
21
- },
22
- /**
23
- * 消息接收人分组类型枚举
24
- */
25
- RECEIVER_GROUP_TYPE: {
26
- EMPLOYEES: 1, // 指定员工
27
- ORGANIZATION: 2, // 指定组织
28
- ROLE: 3, // 指定角色
29
- PERSON_IN_DOCUMENT: 4, // 单据内人员
30
- SEND_ALL: 5, // 所有人
31
- },
32
- /**
33
- * 消息发送类型枚举
34
- */
35
- MESSAGE_SENDTIME_TYPE: {
36
- IMMEDIATELY_SEND: 1, // 立即发送
37
- REGULARLY_SEND: 2, // 定时发送
38
- },
39
- };
40
-
41
- export default ENUM;
1
+ const ENUM = {
2
+ /**
3
+ * 事件动作类型枚举
4
+ */
5
+ VALUE_TYPE: {
6
+ STATUS: 1, // 流转状态
7
+ TAG: 2, // 添加标签
8
+ TIMING: 3, // 定时器
9
+ EDIT_FIELD: 4, // 字段变更
10
+ },
11
+ /**
12
+ * 执行动作枚举
13
+ */
14
+ EXCUSE_ACTION: {
15
+ SEND_MESSAGE: 1, // 发送消息
16
+ PUSH_TODO_TASK: 2, // 推送任务
17
+ },
18
+ EXCUSE_ACTION_TEXT: {
19
+ SEND_MESSAGE: '发送一条消息',
20
+ PUSH_TODO_TASK: '推送一条待办任务',
21
+ },
22
+ /**
23
+ * 消息接收人分组类型枚举
24
+ */
25
+ RECEIVER_GROUP_TYPE: {
26
+ EMPLOYEES: 1, // 指定员工
27
+ ORGANIZATION: 2, // 指定组织
28
+ ROLE: 3, // 指定角色
29
+ PERSON_IN_DOCUMENT: 4, // 单据内人员
30
+ SEND_ALL: 5, // 所有人
31
+ },
32
+ /**
33
+ * 消息发送类型枚举
34
+ */
35
+ MESSAGE_SENDTIME_TYPE: {
36
+ IMMEDIATELY_SEND: 1, // 立即发送
37
+ REGULARLY_SEND: 2, // 定时发送
38
+ },
39
+ };
40
+
41
+ export default ENUM;
@@ -1,162 +1,162 @@
1
- ---
2
- nav:
3
- title: '组件'
4
- order: 1
5
- group:
6
- title: 业务组件
7
- order: 1
8
- title: 商品档案录入器
9
- order: 1
10
- ---
11
-
12
- # 商品选择录入器
13
-
14
- ## AddSkuSelect
15
-
16
- ### SKU选择录入器
17
-
18
- ```tsx
19
- import React, { useState } from 'react';
20
- import { Tabs } from 'antd';
21
- import { AddSkuSelect } from '../../../index.ts';
22
-
23
- export default () => {
24
- const config = {
25
- buttonText: 'context',
26
- buttonProps: { disabled: false },
27
- // exceptColumns: ['count'],
28
- // tableCodeList: [null,'skuSelect-tableSelectedItemPartCodeNoCount'],
29
- // additionColumns: [
30
- // {
31
- // position: 2,
32
- // column: {
33
- // title: '品牌',
34
- // width: 100,
35
- // dataIndex: 'brandName',
36
- // },
37
- // },
38
- // {
39
- // position: 6,
40
- // column: {
41
- // title: '国际条码',
42
- // width: 100,
43
- // isInputItem: true,
44
- // dataIndex: 'barCode',
45
- // },
46
- // },
47
- // ],
48
- noUseItemEancode: false,
49
- beforeShowModal: () => {
50
- return Promise.resolve(true);
51
- // return Promise.reject('校验有误');
52
- },
53
- onSaveCallback: (rows) => {
54
- console.log('save call', rows);
55
- return Promise.resolve(true);
56
- // return Promise.reject('FAILE')
57
- }
58
- }
59
- return (
60
- <div>
61
- <AddSkuSelect {...config} />
62
- </div>
63
- );
64
- };
65
- ```
66
-
67
- ## AddSkcSelect
68
-
69
- ### SKC选择录入器
70
-
71
- ```tsx
72
- import React, { useState } from 'react';
73
- import { Tabs } from 'antd';
74
- import { AddSkcSelect } from '../../../index.ts';
75
-
76
- export default () => {
77
- const config = {
78
- buttonText: 'context',
79
- buttonProps: { disabled: false },
80
- // isAllowRepeatedSelect: false,
81
- beforeShowModal: () => {
82
- return Promise.resolve(true);
83
- // return Promise.reject('校验有误');
84
- },
85
- onSaveCallback: (rows) => {
86
- console.log('save call', rows);
87
- return Promise.resolve(true);
88
- // return Promise.reject('FAILE')
89
- }
90
- }
91
- return (
92
- <div>
93
- <AddSkcSelect {...config} />
94
- </div>
95
- );
96
- };
97
- ```
98
-
99
-
100
- ## AddSpuSelect
101
-
102
- ### SPU选择录入器
103
-
104
- ```tsx
105
- import React, { useState } from 'react';
106
- import { Tabs } from 'antd';
107
- import { AddSpuSelect } from '../../../index.ts';
108
-
109
- export default () => {
110
- const config = {
111
- buttonText: 'context',
112
- buttonProps: { disabled: false },
113
- exceptColumns: ['colorName','selectPropertyGroupCode','count', 'categoryText', 'className'],
114
- tableCodeList: [null,'spuSelect-tableSelectedItemPartCode_ItemLabel'],
115
- beforeShowModal: () => {
116
- return Promise.resolve(true);
117
- // return Promise.reject('校验有误');
118
- },
119
- onSaveCallback: (rows) => {
120
- console.log('save call', rows);
121
- return Promise.resolve(true);
122
- // return Promise.reject('FAILE')
123
- }
124
- }
125
- return (
126
- <div>
127
- <AddSpuSelect {...config} />
128
- </div>
129
- );
130
- };
131
- ```
132
-
133
- ```tsx
134
- import React, { useState } from 'react';
135
- import { Tabs } from 'antd';
136
- import { AddSpuSelect } from '../../../index.ts';
137
-
138
- export default () => {
139
- const config = {
140
- buttonText: '添加商品(单色配码)',
141
- buttonProps: { disabled: false },
142
- isSingleColor: true,
143
- isAllowRepeatedSelect: true,
144
- exceptColumns: ['ownOrgSignName', 'brandName', 'categoryText', 'className'],
145
- tableCodeList: [null,'spuSelect-tableSelectedItemPartCode_ItemMatchingColor'],
146
- beforeShowModal: () => {
147
- return Promise.resolve(true);
148
- // return Promise.reject('校验有误');
149
- },
150
- onSaveCallback: (rows) => {
151
- console.log('save call', rows);
152
- return Promise.resolve(true);
153
- // return Promise.reject('FAILE')
154
- }
155
- }
156
- return (
157
- <div>
158
- <AddSpuSelect {...config} />
159
- </div>
160
- );
161
- };
162
- ```
1
+ ---
2
+ nav:
3
+ title: '组件'
4
+ order: 1
5
+ group:
6
+ title: 业务组件
7
+ order: 1
8
+ title: 商品档案录入器
9
+ order: 1
10
+ ---
11
+
12
+ # 商品选择录入器
13
+
14
+ ## AddSkuSelect
15
+
16
+ ### SKU选择录入器
17
+
18
+ ```tsx
19
+ import React, { useState } from 'react';
20
+ import { Tabs } from 'antd';
21
+ import { AddSkuSelect } from '../../../index.ts';
22
+
23
+ export default () => {
24
+ const config = {
25
+ buttonText: 'context',
26
+ buttonProps: { disabled: false },
27
+ // exceptColumns: ['count'],
28
+ // tableCodeList: [null,'skuSelect-tableSelectedItemPartCodeNoCount'],
29
+ // additionColumns: [
30
+ // {
31
+ // position: 2,
32
+ // column: {
33
+ // title: '品牌',
34
+ // width: 100,
35
+ // dataIndex: 'brandName',
36
+ // },
37
+ // },
38
+ // {
39
+ // position: 6,
40
+ // column: {
41
+ // title: '国际条码',
42
+ // width: 100,
43
+ // isInputItem: true,
44
+ // dataIndex: 'barCode',
45
+ // },
46
+ // },
47
+ // ],
48
+ noUseItemEancode: false,
49
+ beforeShowModal: () => {
50
+ return Promise.resolve(true);
51
+ // return Promise.reject('校验有误');
52
+ },
53
+ onSaveCallback: (rows) => {
54
+ console.log('save call', rows);
55
+ return Promise.resolve(true);
56
+ // return Promise.reject('FAILE')
57
+ }
58
+ }
59
+ return (
60
+ <div>
61
+ <AddSkuSelect {...config} />
62
+ </div>
63
+ );
64
+ };
65
+ ```
66
+
67
+ ## AddSkcSelect
68
+
69
+ ### SKC选择录入器
70
+
71
+ ```tsx
72
+ import React, { useState } from 'react';
73
+ import { Tabs } from 'antd';
74
+ import { AddSkcSelect } from '../../../index.ts';
75
+
76
+ export default () => {
77
+ const config = {
78
+ buttonText: 'context',
79
+ buttonProps: { disabled: false },
80
+ // isAllowRepeatedSelect: false,
81
+ beforeShowModal: () => {
82
+ return Promise.resolve(true);
83
+ // return Promise.reject('校验有误');
84
+ },
85
+ onSaveCallback: (rows) => {
86
+ console.log('save call', rows);
87
+ return Promise.resolve(true);
88
+ // return Promise.reject('FAILE')
89
+ }
90
+ }
91
+ return (
92
+ <div>
93
+ <AddSkcSelect {...config} />
94
+ </div>
95
+ );
96
+ };
97
+ ```
98
+
99
+
100
+ ## AddSpuSelect
101
+
102
+ ### SPU选择录入器
103
+
104
+ ```tsx
105
+ import React, { useState } from 'react';
106
+ import { Tabs } from 'antd';
107
+ import { AddSpuSelect } from '../../../index.ts';
108
+
109
+ export default () => {
110
+ const config = {
111
+ buttonText: 'context',
112
+ buttonProps: { disabled: false },
113
+ exceptColumns: ['colorName','selectPropertyGroupCode','count', 'categoryText', 'className'],
114
+ tableCodeList: [null,'spuSelect-tableSelectedItemPartCode_ItemLabel'],
115
+ beforeShowModal: () => {
116
+ return Promise.resolve(true);
117
+ // return Promise.reject('校验有误');
118
+ },
119
+ onSaveCallback: (rows) => {
120
+ console.log('save call', rows);
121
+ return Promise.resolve(true);
122
+ // return Promise.reject('FAILE')
123
+ }
124
+ }
125
+ return (
126
+ <div>
127
+ <AddSpuSelect {...config} />
128
+ </div>
129
+ );
130
+ };
131
+ ```
132
+
133
+ ```tsx
134
+ import React, { useState } from 'react';
135
+ import { Tabs } from 'antd';
136
+ import { AddSpuSelect } from '../../../index.ts';
137
+
138
+ export default () => {
139
+ const config = {
140
+ buttonText: '添加商品(单色配码)',
141
+ buttonProps: { disabled: false },
142
+ isSingleColor: true,
143
+ isAllowRepeatedSelect: true,
144
+ exceptColumns: ['ownOrgSignName', 'brandName', 'categoryText', 'className'],
145
+ tableCodeList: [null,'spuSelect-tableSelectedItemPartCode_ItemMatchingColor'],
146
+ beforeShowModal: () => {
147
+ return Promise.resolve(true);
148
+ // return Promise.reject('校验有误');
149
+ },
150
+ onSaveCallback: (rows) => {
151
+ console.log('save call', rows);
152
+ return Promise.resolve(true);
153
+ // return Promise.reject('FAILE')
154
+ }
155
+ }
156
+ return (
157
+ <div>
158
+ <AddSpuSelect {...config} />
159
+ </div>
160
+ );
161
+ };
162
+ ```