@ccs-ui/rc-pro 2.4.7-beta.1 → 2.4.7-beta.11

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 (259) hide show
  1. package/docs-dist/404.html +2 -2
  2. package/docs-dist/{1080.145ad951.async.js → 6025.8fc7c55e.async.js} +224 -224
  3. package/docs-dist/atom__demos.018af23a.async.js +1 -0
  4. package/docs-dist/docs__rc-pro__atom___api__index.md.c5e40391.async.js +1 -0
  5. package/docs-dist/docs__rc-pro__atom___api__interfaces__AtomLoadingProps.md.ef6008b3.async.js +1 -0
  6. package/docs-dist/docs__rc-pro__atom___api__type-aliases__AtomCountdownInstance.md.848197ad.async.js +1 -0
  7. package/docs-dist/{docs__rc-pro__atom___api__type-aliases__AtomResizeProps.md.8d06e954.async.js → docs__rc-pro__atom___api__type-aliases__AtomResizeProps.md.bf89a64a.async.js} +1 -1
  8. package/docs-dist/docs__rc-pro__index.md.25f3dfbd.async.js +1 -0
  9. package/docs-dist/docs__rc-pro__page-layout___api__index.md.c535e6b4.async.js +1 -0
  10. package/docs-dist/docs__rc-pro__page-layout___api__interfaces__KeepAliveTabsProps.md.eb8758c8.async.js +1 -0
  11. package/docs-dist/docs__rc-pro__page-layout___api__interfaces__SinglePageProps.md.998482de.async.js +1 -0
  12. package/docs-dist/docs__rc-pro__page-layout___api__type-aliases__MenuType.md.c1ce3b8d.async.js +1 -0
  13. package/docs-dist/guide/index.html +2 -2
  14. package/docs-dist/index.html +2 -2
  15. package/docs-dist/meta__docs.67dd31e4.async.js +176 -0
  16. package/docs-dist/{meta__packages.5b16e5e9.chunk.css → meta__packages.6918a5b3.chunk.css} +1 -1
  17. package/docs-dist/{meta__packages.cc6973b6.async.js → meta__packages.6de41e0e.async.js} +1523 -446
  18. package/docs-dist/{packages__rc-pro__src__layout-keep-alive__index.md.c96442ea.async.js → packages__rc-pro__src__page-layout__index.md.aea364ef.async.js} +1 -1
  19. package/docs-dist/packages__rc-pro__src__pro-table__index.md.038f16c9.async.js +27 -0
  20. package/docs-dist/plugins/index.html +2 -2
  21. package/docs-dist/preload_helper.5834d842.js +1 -0
  22. package/docs-dist/pro-table__demos.c20007f1.async.js +1 -0
  23. package/docs-dist/rc-pro/atom/_api/enumerations/DataEvent.md/index.html +2 -2
  24. package/docs-dist/rc-pro/atom/_api/index.md/index.html +2 -2
  25. package/docs-dist/rc-pro/atom/_api/interfaces/AtomCheckboxProps.md/index.html +2 -2
  26. package/docs-dist/rc-pro/atom/_api/interfaces/AtomEllipsisProps.md/index.html +2 -2
  27. package/docs-dist/rc-pro/atom/_api/interfaces/AtomFullScreenProps.md/index.html +2 -2
  28. package/docs-dist/rc-pro/{layout-keep-alive/_api/index.md → atom/_api/interfaces/AtomLoadingProps.md}/index.html +2 -2
  29. package/docs-dist/rc-pro/atom/_api/interfaces/AtomMultiStateProps.md/index.html +2 -2
  30. package/docs-dist/rc-pro/atom/_api/interfaces/ResizeSize.md/index.html +2 -2
  31. package/docs-dist/rc-pro/{layout-keep-alive/_api/interfaces/KeepAliveTabsProps.md → atom/_api/type-aliases/AtomCountdownInstance.md}/index.html +2 -2
  32. package/docs-dist/rc-pro/atom/_api/type-aliases/AtomCountdownProps.md/index.html +2 -2
  33. package/docs-dist/rc-pro/atom/_api/type-aliases/AtomFilterInstance.md/index.html +2 -2
  34. package/docs-dist/rc-pro/atom/_api/type-aliases/AtomFilterProps.md/index.html +2 -2
  35. package/docs-dist/rc-pro/atom/_api/type-aliases/AtomFormItem.md/index.html +2 -2
  36. package/docs-dist/rc-pro/atom/_api/type-aliases/AtomFormItems.md/index.html +2 -2
  37. package/docs-dist/rc-pro/atom/_api/type-aliases/AtomOperationProps.md/index.html +2 -2
  38. package/docs-dist/rc-pro/atom/_api/type-aliases/AtomPageRequestProps.md/index.html +2 -2
  39. package/docs-dist/rc-pro/atom/_api/type-aliases/AtomResizeProps.md/index.html +2 -2
  40. package/docs-dist/rc-pro/atom/_api/type-aliases/AtomTitleProps.md/index.html +2 -2
  41. package/docs-dist/rc-pro/atom/_api/type-aliases/TableEventHandle.md/index.html +2 -2
  42. package/docs-dist/rc-pro/button/_api/index.md/index.html +2 -2
  43. package/docs-dist/rc-pro/button/_api/interfaces/ButtonGroupProps.md/index.html +2 -2
  44. package/docs-dist/rc-pro/button/_api/interfaces/DropdownProps.md/index.html +2 -2
  45. package/docs-dist/rc-pro/button/_api/interfaces/GroupButtonItem.md/index.html +2 -2
  46. package/docs-dist/rc-pro/button/_api/type-aliases/ButtonProps.md/index.html +2 -2
  47. package/docs-dist/rc-pro/button/_api/type-aliases/DropdownClick.md/index.html +2 -2
  48. package/docs-dist/rc-pro/button/_api/type-aliases/DropdownMenuItemType.md/index.html +2 -2
  49. package/docs-dist/rc-pro/button/_api/type-aliases/GroupClick.md/index.html +2 -2
  50. package/docs-dist/rc-pro/cascader/_api/index.md/index.html +2 -2
  51. package/docs-dist/rc-pro/cascader/_api/type-aliases/ApiCascaderProps.md/index.html +2 -2
  52. package/docs-dist/rc-pro/context/_api/index.md/index.html +2 -2
  53. package/docs-dist/rc-pro/context/_api/type-aliases/AppConfigType.md/index.html +2 -2
  54. package/docs-dist/rc-pro/context/_api/type-aliases/AppFieldNames.md/index.html +2 -2
  55. package/docs-dist/rc-pro/context/_api/type-aliases/FnContextType.md/index.html +2 -2
  56. package/docs-dist/rc-pro/context/_api/type-aliases/PageContextType.md/index.html +2 -2
  57. package/docs-dist/rc-pro/context/_api/type-aliases/PageFieldNames.md/index.html +2 -2
  58. package/docs-dist/rc-pro/date-picker/_api/index.md/index.html +2 -2
  59. package/docs-dist/rc-pro/date-picker/_api/type-aliases/DatePickerProps.md/index.html +2 -2
  60. package/docs-dist/rc-pro/date-picker/_api/type-aliases/RangePickerProps.md/index.html +2 -2
  61. package/docs-dist/rc-pro/dialog/_api/index.md/index.html +2 -2
  62. package/docs-dist/rc-pro/dialog/_api/interfaces/DialogContextType.md/index.html +2 -2
  63. package/docs-dist/rc-pro/dialog/_api/interfaces/DialogDrawer.md/index.html +2 -2
  64. package/docs-dist/rc-pro/dialog/_api/interfaces/DialogInterface.md/index.html +2 -2
  65. package/docs-dist/rc-pro/dialog/_api/interfaces/DialogModal.md/index.html +2 -2
  66. package/docs-dist/rc-pro/dialog/_api/interfaces/DialogProps.md/index.html +2 -2
  67. package/docs-dist/rc-pro/dialog/_api/type-aliases/DialogButtonsProps.md/index.html +2 -2
  68. package/docs-dist/rc-pro/dialog/_api/type-aliases/DialogDrawerProps.md/index.html +2 -2
  69. package/docs-dist/rc-pro/dialog/_api/type-aliases/DialogModalProps.md/index.html +2 -2
  70. package/docs-dist/rc-pro/dialog/_api/type-aliases/OkBtnProps.md/index.html +2 -2
  71. package/docs-dist/rc-pro/dialog/_api/type-aliases/OkEvent.md/index.html +2 -2
  72. package/docs-dist/rc-pro/dialog/_api/type-aliases/Service.md/index.html +2 -2
  73. package/docs-dist/rc-pro/editor/_api/index.md/index.html +2 -2
  74. package/docs-dist/rc-pro/editor/_api/type-aliases/EditorCodeProps.md/index.html +2 -2
  75. package/docs-dist/rc-pro/editor/_api/type-aliases/EditorRichProps.md/index.html +2 -2
  76. package/docs-dist/rc-pro/editor/_api/type-aliases/LexicalEditorBaseProps.md/index.html +2 -2
  77. package/docs-dist/rc-pro/editor/_api/type-aliases/RichImageUpload.md/index.html +2 -2
  78. package/docs-dist/rc-pro/form/_api/index.md/index.html +2 -2
  79. package/docs-dist/rc-pro/form/_api/type-aliases/FormItem.md/index.html +2 -2
  80. package/docs-dist/rc-pro/form/_api/type-aliases/FormItemChildren.md/index.html +2 -2
  81. package/docs-dist/rc-pro/form/_api/type-aliases/FormItemProps.md/index.html +2 -2
  82. package/docs-dist/rc-pro/form/_api/type-aliases/FormListProps.md/index.html +2 -2
  83. package/docs-dist/rc-pro/form/_api/type-aliases/ListItemBtnProps.md/index.html +2 -2
  84. package/docs-dist/rc-pro/form/_api/type-aliases/RenderItem.md/index.html +2 -2
  85. package/docs-dist/rc-pro/form/_api/type-aliases/RenderItemButton.md/index.html +2 -2
  86. package/docs-dist/rc-pro/form/_api/type-aliases/RenderItemProps.md/index.html +2 -2
  87. package/docs-dist/rc-pro/form/_api/type-aliases/RuleType.md/index.html +2 -2
  88. package/docs-dist/rc-pro/form/_api/type-aliases/ShowValidateEvent.md/index.html +2 -2
  89. package/docs-dist/rc-pro/index.html +2 -2
  90. package/docs-dist/rc-pro/index.md/index.html +2 -2
  91. package/docs-dist/rc-pro/{layout-keep-alive/_api/type-aliases/MenuType.md → page-layout/_api/index.md}/index.html +2 -2
  92. package/docs-dist/rc-pro/{layout-single-page/_api/index.md → page-layout/_api/interfaces/KeepAliveTabsProps.md}/index.html +2 -2
  93. package/docs-dist/rc-pro/page-layout/_api/interfaces/SinglePageProps.md/index.html +15 -0
  94. package/docs-dist/rc-pro/page-layout/_api/type-aliases/MenuType.md/index.html +15 -0
  95. package/docs-dist/rc-pro/pro-table/_api/index.md/index.html +2 -2
  96. package/docs-dist/rc-pro/pro-table/_api/interfaces/ProTableProps.md/index.html +2 -2
  97. package/docs-dist/rc-pro/pro-table/_api/interfaces/TableInstance.md/index.html +2 -2
  98. package/docs-dist/rc-pro/pro-table/_api/interfaces/TableProps.md/index.html +2 -2
  99. package/docs-dist/rc-pro/pro-table/_api/type-aliases/LeafVerify.md/index.html +2 -2
  100. package/docs-dist/rc-pro/pro-table/_api/type-aliases/TableColumn.md/index.html +2 -2
  101. package/docs-dist/rc-pro/pro-table/_api/type-aliases/TableColumns.md/index.html +2 -2
  102. package/docs-dist/rc-pro/pro-table/_api/type-aliases/TableData.md/index.html +2 -2
  103. package/docs-dist/rc-pro/pro-table/_api/type-aliases/TableFormItems.md/index.html +2 -2
  104. package/docs-dist/rc-pro/pro-table/_api/type-aliases/TableInstanceRef.md/index.html +2 -2
  105. package/docs-dist/rc-pro/pro-table/_api/type-aliases/TreeInstance.md/index.html +2 -2
  106. package/docs-dist/rc-pro/pro-tabs/_api/index.md/index.html +2 -2
  107. package/docs-dist/rc-pro/pro-tabs/_api/interfaces/TabsChangeProps.md/index.html +2 -2
  108. package/docs-dist/rc-pro/pro-tabs/_api/interfaces/TabsContextType.md/index.html +2 -2
  109. package/docs-dist/rc-pro/pro-tabs/_api/type-aliases/TabProps.md/index.html +2 -2
  110. package/docs-dist/rc-pro/select/_api/index.md/index.html +2 -2
  111. package/docs-dist/rc-pro/select/_api/type-aliases/ApiSelectProps.md/index.html +2 -2
  112. package/docs-dist/rc-pro/select/_api/type-aliases/CacheType.md/index.html +2 -2
  113. package/docs-dist/rc-pro/select/_api/type-aliases/CustomizeSelectProps.md/index.html +2 -2
  114. package/docs-dist/rc-pro/select/_api/type-aliases/ModalSelectProps.md/index.html +2 -2
  115. package/docs-dist/rc-pro/select/_api/type-aliases/SelectChildrenProps.md/index.html +2 -2
  116. package/docs-dist/rc-pro/select/_api/type-aliases/SelectProps.md/index.html +2 -2
  117. package/docs-dist/rc-pro/upload/_api/index.md/index.html +2 -2
  118. package/docs-dist/rc-pro/upload/_api/interfaces/ImageInfo.md/index.html +2 -2
  119. package/docs-dist/rc-pro/upload/_api/type-aliases/FileUploadList.md/index.html +2 -2
  120. package/docs-dist/rc-pro/upload/_api/type-aliases/UploadImageProps.md/index.html +2 -2
  121. package/docs-dist/rc-pro/upload/_api/type-aliases/UploadProps.md/index.html +2 -2
  122. package/docs-dist/rc-pro/upload/_api/type-aliases/UploadRequest.md/index.html +2 -2
  123. package/docs-dist/rc-pro/water-mark/_api/index.md/index.html +2 -2
  124. package/docs-dist/rc-pro/water-mark/_api/type-aliases/WaterMarkProps.md/index.html +2 -2
  125. package/docs-dist/rc-pros/atom/index.html +2 -2
  126. package/docs-dist/rc-pros/auth/index.html +2 -2
  127. package/docs-dist/rc-pros/button/index.html +2 -2
  128. package/docs-dist/rc-pros/cascader/index.html +2 -2
  129. package/docs-dist/rc-pros/date-picker/index.html +2 -2
  130. package/docs-dist/rc-pros/dialog/index.html +2 -2
  131. package/docs-dist/rc-pros/editor/index.html +2 -2
  132. package/docs-dist/rc-pros/form/index.html +2 -2
  133. package/docs-dist/rc-pros/index.html +2 -2
  134. package/docs-dist/rc-pros/page-layout/index.html +15 -0
  135. package/docs-dist/rc-pros/pro-table/index.html +2 -2
  136. package/docs-dist/rc-pros/pro-tabs/index.html +2 -2
  137. package/docs-dist/rc-pros/result/index.html +2 -2
  138. package/docs-dist/rc-pros/select/index.html +2 -2
  139. package/docs-dist/rc-pros/time-picker/index.html +2 -2
  140. package/docs-dist/rc-pros/upload/index.html +2 -2
  141. package/docs-dist/rc-pros/water-mark/index.html +2 -2
  142. package/docs-dist/{umi.052a8ebd.js → umi.115ca78a.js} +53 -53
  143. package/docs-dist/utils/index.html +2 -2
  144. package/docs-dist/~demos/:id/index.html +2 -2
  145. package/docs-dist/~demos/atom-demo-base/index.html +2 -2
  146. package/docs-dist/~demos/atom-demo-ellipsis/index.html +2 -2
  147. package/docs-dist/~demos/atom-demo-filter/index.html +2 -2
  148. package/docs-dist/~demos/atom-demo-operation/index.html +2 -2
  149. package/docs-dist/~demos/atom-demo-state/index.html +2 -2
  150. package/docs-dist/~demos/auth-demo-basic/index.html +2 -2
  151. package/docs-dist/~demos/button-demo-button/index.html +2 -2
  152. package/docs-dist/~demos/button-demo-group/index.html +2 -2
  153. package/docs-dist/~demos/cascader-demo-basic/index.html +2 -2
  154. package/docs-dist/~demos/cascader-demo-cache/index.html +2 -2
  155. package/docs-dist/~demos/date-picker-demo-basic/index.html +2 -2
  156. package/docs-dist/~demos/date-picker-demo-range/index.html +2 -2
  157. package/docs-dist/~demos/dialog-demo-demos/index.html +2 -2
  158. package/docs-dist/~demos/dialog-demo-form/index.html +2 -2
  159. package/docs-dist/~demos/dialog-demo-prompt/index.html +2 -2
  160. package/docs-dist/~demos/editor-demo-demos/index.html +2 -2
  161. package/docs-dist/~demos/editor-demo-rich/index.html +2 -2
  162. package/docs-dist/~demos/form-demo-demos/index.html +2 -2
  163. package/docs-dist/~demos/packages-utils-src-demo-demos/index.html +2 -2
  164. package/docs-dist/~demos/pro-table-demo-basic/index.html +2 -2
  165. package/docs-dist/~demos/pro-table-demo-cascade/index.html +15 -0
  166. package/docs-dist/~demos/pro-table-demo-extra/index.html +15 -0
  167. package/docs-dist/~demos/pro-table-demo-filter/index.html +15 -0
  168. package/docs-dist/~demos/pro-table-demo-fixed/index.html +15 -0
  169. package/docs-dist/~demos/pro-table-demo-refresh/index.html +15 -0
  170. package/docs-dist/~demos/pro-table-demo-selection/index.html +15 -0
  171. package/docs-dist/~demos/pro-table-demo-show-depend/index.html +15 -0
  172. package/docs-dist/~demos/pro-table-demo-tree-async/index.html +15 -0
  173. package/docs-dist/~demos/pro-tabs-demo-basic/index.html +2 -2
  174. package/docs-dist/~demos/pro-tabs-demo-tab/index.html +2 -2
  175. package/docs-dist/~demos/result-demo-basic/index.html +2 -2
  176. package/docs-dist/~demos/select-demo-api/index.html +2 -2
  177. package/docs-dist/~demos/select-demo-basic/index.html +2 -2
  178. package/docs-dist/~demos/select-demo-customize/index.html +2 -2
  179. package/docs-dist/~demos/select-demo-customize-label/index.html +2 -2
  180. package/docs-dist/~demos/time-picker-demo-basic/index.html +2 -2
  181. package/docs-dist/~demos/upload-demo-basic/index.html +2 -2
  182. package/docs-dist/~demos/upload-demo-image/index.html +2 -2
  183. package/docs-dist/~demos/water-mark-demo-basic/index.html +2 -2
  184. package/es/atom/_api.d.ts +16 -2
  185. package/es/atom/_api.js +3 -1
  186. package/es/atom/count-down.d.ts +8 -12
  187. package/es/atom/count-down.js +13 -7
  188. package/es/atom/ellipsis.js +26 -3
  189. package/es/atom/index.d.ts +12 -6
  190. package/es/atom/index.js +4 -0
  191. package/es/atom/index.less +14 -0
  192. package/es/atom/loading.d.ts +6 -0
  193. package/es/{loading/index.js → atom/loading.js} +3 -4
  194. package/es/atom/operation.js +2 -2
  195. package/es/atom/resize-observer.d.ts +1 -3
  196. package/es/atom/resize-observer.js +18 -15
  197. package/es/ccs.d.ts +1 -3
  198. package/es/ccs.js +1 -3
  199. package/es/dialog/button.d.ts +1 -1
  200. package/es/index.d.ts +3 -5
  201. package/es/index.js +3 -6
  202. package/es/{layout-keep-alive → page-layout}/_api.d.ts +7 -0
  203. package/es/page-layout/index.d.ts +16 -0
  204. package/es/page-layout/index.js +23 -0
  205. package/es/page-layout/index.less +63 -0
  206. package/es/{layout-keep-alive → page-layout/keep-alive}/index.d.ts +1 -2
  207. package/es/{layout-keep-alive → page-layout/keep-alive}/index.js +3 -6
  208. package/es/{layout-keep-alive → page-layout/keep-alive}/page.js +11 -9
  209. package/es/{layout-single-page → page-layout/single-page}/index.d.ts +1 -2
  210. package/es/{layout-single-page → page-layout/single-page}/index.js +2 -3
  211. package/es/{layout-single-page → page-layout/single-page}/page.d.ts +1 -1
  212. package/es/{layout-single-page → page-layout/single-page}/page.js +10 -8
  213. package/es/pro-table/_utils.js +1 -1
  214. package/es/pro-table/table.js +1 -2
  215. package/es/table/index.js +16 -10
  216. package/package.json +1 -3
  217. package/docs-dist/atom__demos.634b9888.async.js +0 -1
  218. package/docs-dist/docs__rc-pro__atom___api__index.md.0c77e6cb.async.js +0 -1
  219. package/docs-dist/docs__rc-pro__index.md.1815af96.async.js +0 -1
  220. package/docs-dist/docs__rc-pro__layout-keep-alive___api__index.md.3b1ec665.async.js +0 -1
  221. package/docs-dist/docs__rc-pro__layout-keep-alive___api__interfaces__KeepAliveTabsProps.md.8861c03e.async.js +0 -1
  222. package/docs-dist/docs__rc-pro__layout-keep-alive___api__type-aliases__MenuType.md.a322e04c.async.js +0 -1
  223. package/docs-dist/docs__rc-pro__layout-single-page___api__index.md.8ed4f72f.async.js +0 -1
  224. package/docs-dist/docs__rc-pro__layout-single-page___api__interfaces__SinglePageProps.md.d396b5f1.async.js +0 -1
  225. package/docs-dist/docs__rc-pro__loading___api__index.md.7e626bac.async.js +0 -1
  226. package/docs-dist/docs__rc-pro__loading___api__interfaces__LoadingProps.md.cc583085.async.js +0 -1
  227. package/docs-dist/loading__demos.ef45e3bb.async.js +0 -1
  228. package/docs-dist/meta__docs.9484e17c.async.js +0 -176
  229. package/docs-dist/packages__rc-pro__src__layout-keep-alive__index.md.33be0665.chunk.css +0 -1
  230. package/docs-dist/packages__rc-pro__src__loading__index.md.33be0665.chunk.css +0 -1
  231. package/docs-dist/packages__rc-pro__src__loading__index.md.e9b4169f.async.js +0 -1
  232. package/docs-dist/packages__rc-pro__src__pro-table__index.md.3ea59efb.async.js +0 -27
  233. package/docs-dist/preload_helper.33755354.js +0 -1
  234. package/docs-dist/pro-table__demos.900f956a.async.js +0 -1
  235. package/docs-dist/rc-pro/layout-single-page/_api/interfaces/SinglePageProps.md/index.html +0 -15
  236. package/docs-dist/rc-pro/loading/_api/index.md/index.html +0 -15
  237. package/docs-dist/rc-pro/loading/_api/interfaces/LoadingProps.md/index.html +0 -15
  238. package/docs-dist/rc-pros/layout-keep-alive/index.html +0 -15
  239. package/docs-dist/rc-pros/loading/index.html +0 -15
  240. package/docs-dist/~demos/loading-demo-basic/index.html +0 -15
  241. package/es/interval-button/index.d.ts +0 -14
  242. package/es/interval-button/index.js +0 -129
  243. package/es/layout-keep-alive/index.less +0 -79
  244. package/es/layout-single-page/_api.d.ts +0 -8
  245. package/es/layout-single-page/_api.js +0 -1
  246. package/es/layout-single-page/index.less +0 -15
  247. package/es/loading/_api.d.ts +0 -11
  248. package/es/loading/_api.js +0 -1
  249. package/es/loading/index.d.ts +0 -7
  250. package/es/loading/index.less +0 -13
  251. /package/docs-dist/{docs__rc-pro__layout-keep-alive___api__index.md.33be0665.chunk.css → docs__rc-pro__atom___api__interfaces__AtomLoadingProps.md.33be0665.chunk.css} +0 -0
  252. /package/docs-dist/{docs__rc-pro__layout-keep-alive___api__interfaces__KeepAliveTabsProps.md.33be0665.chunk.css → docs__rc-pro__atom___api__type-aliases__AtomCountdownInstance.md.33be0665.chunk.css} +0 -0
  253. /package/docs-dist/{docs__rc-pro__layout-keep-alive___api__type-aliases__MenuType.md.33be0665.chunk.css → docs__rc-pro__page-layout___api__index.md.33be0665.chunk.css} +0 -0
  254. /package/docs-dist/{docs__rc-pro__layout-single-page___api__index.md.33be0665.chunk.css → docs__rc-pro__page-layout___api__interfaces__KeepAliveTabsProps.md.33be0665.chunk.css} +0 -0
  255. /package/docs-dist/{docs__rc-pro__layout-single-page___api__interfaces__SinglePageProps.md.33be0665.chunk.css → docs__rc-pro__page-layout___api__interfaces__SinglePageProps.md.33be0665.chunk.css} +0 -0
  256. /package/docs-dist/{docs__rc-pro__loading___api__index.md.33be0665.chunk.css → docs__rc-pro__page-layout___api__type-aliases__MenuType.md.33be0665.chunk.css} +0 -0
  257. /package/docs-dist/{docs__rc-pro__loading___api__interfaces__LoadingProps.md.33be0665.chunk.css → packages__rc-pro__src__page-layout__index.md.33be0665.chunk.css} +0 -0
  258. /package/es/{layout-keep-alive → page-layout}/_api.js +0 -0
  259. /package/es/{layout-keep-alive → page-layout/keep-alive}/page.d.ts +0 -0
package/es/atom/_api.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { DebounceOptions } from 'ahooks/lib/useDebounce/debounceOptions';
1
2
  import { ButtonProps, FormInstance, FormProps, PopoverProps, TableProps } from 'antd';
2
3
  import { CheckboxGroupProps } from 'antd/es/checkbox';
3
4
  import { SizeType } from 'antd/es/config-provider/SizeContext';
@@ -143,8 +144,8 @@ export type AtomResizeProps = {
143
144
  targetRef?: React.RefObject<HTMLDivElement>;
144
145
  /** 回调方法 */
145
146
  onResize: (size: ResizeSize) => void;
146
- /** 防抖时间 */
147
- wait?: number;
147
+ /** 防抖参数 */
148
+ option?: DebounceOptions;
148
149
  };
149
150
  export type AtomCountdownProps = ButtonProps & {
150
151
  /** 计时数 */
@@ -154,6 +155,9 @@ export type AtomCountdownProps = ButtonProps & {
154
155
  /** 缓存key */
155
156
  cacheKey?: string;
156
157
  };
158
+ export type AtomCountdownInstance = {
159
+ onStart: () => void;
160
+ };
157
161
  export interface AtomEllipsisProps {
158
162
  /** 文本内容 */
159
163
  content: string;
@@ -168,3 +172,13 @@ export interface AtomMultiStateProps<T> {
168
172
  InitialState: Partial<T>;
169
173
  options: {};
170
174
  }
175
+ /** loading 组件参数 */
176
+ export interface AtomLoadingProps {
177
+ /**
178
+ * loading 状态
179
+ * @default false
180
+ */
181
+ loading?: boolean;
182
+ /** loading 文字说明 */
183
+ loadingTip?: ReactNode;
184
+ }
package/es/atom/_api.js CHANGED
@@ -15,4 +15,6 @@ export var DataEvent = /*#__PURE__*/function (DataEvent) {
15
15
  return DataEvent;
16
16
  }({});
17
17
 
18
- /** table 事件处理函数 */
18
+ /** table 事件处理函数 */
19
+
20
+ /** loading 组件参数 */
@@ -1,12 +1,8 @@
1
- import { AtomCountdownProps } from './_api';
2
- /**
3
- * 倒计时按钮组件
4
- * @param PropsType
5
- * @param IntervalInstance
6
- * @returns
7
- */
8
- declare function AtomCountdown({ num, cacheKey, disabledText, children, ...restProps }: AtomCountdownProps): import("react/jsx-runtime").JSX.Element | null;
9
- declare namespace AtomCountdown {
10
- var displayName: string;
11
- }
12
- export default AtomCountdown;
1
+ /// <reference types="react" />
2
+ import { AtomCountdownInstance } from './_api';
3
+ declare const _default: import("react").ForwardRefExoticComponent<import("antd").ButtonProps & {
4
+ num?: number | undefined;
5
+ disabledText?: string | undefined;
6
+ cacheKey?: string | undefined;
7
+ } & import("react").RefAttributes<AtomCountdownInstance>>;
8
+ export default _default;
@@ -18,7 +18,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
18
18
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
19
19
  import { useInterval } from 'ahooks';
20
20
  import { Button } from 'antd';
21
- import { useLayoutEffect, useMemo, useState } from 'react';
21
+ import { forwardRef, useImperativeHandle, useLayoutEffect, useMemo, useState } from 'react';
22
22
  import { jsx as _jsx } from "react/jsx-runtime";
23
23
  /**
24
24
  * 倒计时按钮组件
@@ -26,12 +26,11 @@ import { jsx as _jsx } from "react/jsx-runtime";
26
26
  * @param IntervalInstance
27
27
  * @returns
28
28
  */
29
- function AtomCountdown(_ref) {
29
+ function AtomCountdown(_ref, ref) {
30
30
  var _ref$num = _ref.num,
31
31
  num = _ref$num === void 0 ? 60 : _ref$num,
32
32
  cacheKey = _ref.cacheKey,
33
- _ref$disabledText = _ref.disabledText,
34
- disabledText = _ref$disabledText === void 0 ? '' : _ref$disabledText,
33
+ disabledText = _ref.disabledText,
35
34
  children = _ref.children,
36
35
  restProps = _objectWithoutProperties(_ref, _excluded);
37
36
  var _useState = useState(-1),
@@ -111,13 +110,20 @@ function AtomCountdown(_ref) {
111
110
  }));
112
111
  }
113
112
  };
114
- return count === -1 ? null : /*#__PURE__*/_jsx(Button, _objectSpread(_objectSpread({}, restProps), {}, {
113
+ useImperativeHandle(ref, function () {
114
+ return {
115
+ onStart: onStart
116
+ };
117
+ });
118
+ return count === -1 ? null : /*#__PURE__*/_jsx(Button, _objectSpread(_objectSpread({
119
+ type: "primary"
120
+ }, restProps), {}, {
115
121
  onClick: restProps.onClick ? restProps.onClick : onStart,
116
122
  disabled: restProps.disabled ? true : disabled,
117
- children: disabled ? "".concat(count, "\u79D2").concat(disabledText) : children
123
+ children: disabled ? "".concat(count, "\u79D2").concat(disabledText) : "".concat(children)
118
124
  }));
119
125
  }
120
126
  if (process.env.NODE_ENV !== 'production') {
121
127
  AtomCountdown.displayName = 'AtomCountdown';
122
128
  }
123
- export default AtomCountdown;
129
+ export default /*#__PURE__*/forwardRef(AtomCountdown);
@@ -9,6 +9,7 @@ import CcsUtils from '@ccs-ui/utils';
9
9
  import { Button, message, Tooltip } from 'antd';
10
10
  import React, { useEffect, useRef, useState } from 'react';
11
11
  import runes from 'runes2';
12
+ import { CcsAtom } from '..';
12
13
  import { jsx as _jsx } from "react/jsx-runtime";
13
14
  import { Fragment as _Fragment } from "react/jsx-runtime";
14
15
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -23,8 +24,9 @@ var MEASURE_STATUS = /*#__PURE__*/function (MEASURE_STATUS) {
23
24
  MEASURE_STATUS[MEASURE_STATUS["NO_ELLIPSIS"] = 0] = "NO_ELLIPSIS";
24
25
  MEASURE_STATUS[MEASURE_STATUS["MEASURE_WALKING"] = 200] = "MEASURE_WALKING";
25
26
  MEASURE_STATUS[MEASURE_STATUS["STABLE_ELLIPSIS"] = 400] = "STABLE_ELLIPSIS";
27
+ MEASURE_STATUS[MEASURE_STATUS["NULL"] = -1] = "NULL";
26
28
  return MEASURE_STATUS;
27
- }(MEASURE_STATUS || {}); // 稳定省略号
29
+ }(MEASURE_STATUS || {}); //
28
30
  var ELLIPSIS_TEXT = '...';
29
31
 
30
32
  /**
@@ -66,8 +68,12 @@ function AtomEllipsis(_ref) {
66
68
  var chatLength = contentChars.length;
67
69
  // 设置最大显示高度,防止数据抖动
68
70
  if (status === MEASURE_STATUS.INIT) {
69
- var _singleRowRef$current;
71
+ var _singleRowRef$current, _singleRowRef$current2;
70
72
  var maxHeight = (((_singleRowRef$current = singleRowRef.current) === null || _singleRowRef$current === void 0 ? void 0 : _singleRowRef$current.offsetHeight) || 0) * rows;
73
+ if (((_singleRowRef$current2 = singleRowRef.current) === null || _singleRowRef$current2 === void 0 ? void 0 : _singleRowRef$current2.offsetHeight) === 0) {
74
+ setStatus(MEASURE_STATUS.NULL);
75
+ return;
76
+ }
71
77
  dataRef.current.maxHeight = maxHeight;
72
78
  dataRef.current.step = chatLength;
73
79
 
@@ -107,6 +113,8 @@ function AtomEllipsis(_ref) {
107
113
  setIndexNumber(function (state) {
108
114
  return state - 1;
109
115
  });
116
+ setStatus(MEASURE_STATUS.STABLE_ELLIPSIS);
117
+ return;
110
118
  }
111
119
  // 二分减少
112
120
  setIndexNumber(function (state) {
@@ -118,6 +126,7 @@ function AtomEllipsis(_ref) {
118
126
 
119
127
  // 字符拼接
120
128
  var renderContent = function renderContent() {
129
+ if (indexNumber === 0) return '.';
121
130
  if (direction === 'start') {
122
131
  return "".concat(ELLIPSIS_TEXT).concat(contentChars.slice(contentChars.length - indexNumber).join(''));
123
132
  }
@@ -169,6 +178,12 @@ function AtomEllipsis(_ref) {
169
178
  children: renderContent()
170
179
  });
171
180
  }
181
+ var onResize = function onResize(e) {
182
+ if (e.height === 0 || e.width === 0) {
183
+ return;
184
+ }
185
+ // setStatus(MEASURE_STATUS.INIT);
186
+ };
172
187
  return /*#__PURE__*/_jsx(_Fragment, {
173
188
  children: /*#__PURE__*/_jsxs("div", {
174
189
  className: "ccs-ellipsis",
@@ -184,7 +199,15 @@ function AtomEllipsis(_ref) {
184
199
  },
185
200
  className: "ccs-ellipsis-scroll",
186
201
  children: renderContent()
187
- }, "measure-walking")]
202
+ }, "measure-walking"), status === MEASURE_STATUS.NULL && /*#__PURE__*/_jsxs(_Fragment, {
203
+ children: [/*#__PURE__*/_jsx("div", {
204
+ ref: walkingContentRef,
205
+ children: "\xA0"
206
+ }), /*#__PURE__*/_jsx(CcsAtom.Resize, {
207
+ targetRef: walkingContentRef,
208
+ onResize: onResize
209
+ })]
210
+ })]
188
211
  })
189
212
  });
190
213
  }
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  import AtomCheckbox from './check';
3
- import AtomCountdown from './count-down';
4
3
  import AtomFullScreen from './full-screen';
5
4
  import './index.less';
6
5
  import AtomOperation from './operation';
6
+ import AtomResize from './resize-observer';
7
7
  import AtomTitle from './title';
8
8
  import useComplexState from './useComplexState';
9
9
  import usePageRequest from './usePageRequest';
@@ -33,12 +33,13 @@ declare const Atom: {
33
33
  /** 标题 */
34
34
  Title: typeof AtomTitle;
35
35
  /** 尺寸变更监听 */
36
- Resize: import("react").MemoExoticComponent<{
37
- (props: import("../ccs").AtomResizeProps): import("react/jsx-runtime").JSX.Element;
38
- displayName: string;
39
- }>;
36
+ Resize: typeof AtomResize;
40
37
  /** 尺寸变更监听 */
41
- Countdown: typeof AtomCountdown;
38
+ Countdown: import("react").ForwardRefExoticComponent<import("antd").ButtonProps & {
39
+ num?: number | undefined;
40
+ disabledText?: string | undefined;
41
+ cacheKey?: string | undefined;
42
+ } & import("react").RefAttributes<import("../ccs").AtomCountdownInstance>>;
42
43
  /** 文本缩略 */
43
44
  Ellipsis: import("react").MemoExoticComponent<{
44
45
  ({ content, rows, direction, showTooltip, }: import("../ccs").AtomEllipsisProps): string | import("react/jsx-runtime").JSX.Element | undefined;
@@ -48,6 +49,11 @@ declare const Atom: {
48
49
  usePageRequest: typeof usePageRequest;
49
50
  /** 多状态管理 */
50
51
  useComplexState: typeof useComplexState;
52
+ /** 相对loading */
53
+ Loading: {
54
+ ({ loading, loadingTip }: import("../ccs").AtomLoadingProps): import("react/jsx-runtime").JSX.Element | null;
55
+ displayName: string;
56
+ };
51
57
  displayName: string;
52
58
  };
53
59
  export default Atom;
package/es/atom/index.js CHANGED
@@ -4,6 +4,7 @@ import AtomEllipsis from "./ellipsis";
4
4
  import AtomFilter from "./filter";
5
5
  import AtomFullScreen from "./full-screen";
6
6
  import "./index.less";
7
+ import AtomLoading from "./loading";
7
8
  import AtomOperation from "./operation";
8
9
  import AtomResize from "./resize-observer";
9
10
  import AtomTitle from "./title";
@@ -49,6 +50,9 @@ Atom.usePageRequest = usePageRequest;
49
50
 
50
51
  /** 多状态管理 */
51
52
  Atom.useComplexState = useComplexState;
53
+
54
+ /** 相对loading */
55
+ Atom.Loading = AtomLoading;
52
56
  if (process.env.NODE_ENV !== 'production') {
53
57
  Atom.displayName = 'CcsAtom';
54
58
  }
@@ -89,3 +89,17 @@
89
89
  .ccs-ellipsis-tootip {
90
90
  max-width: 50%;
91
91
  }
92
+
93
+ .ccs-loading {
94
+ position: absolute;
95
+ inset: 0;
96
+ background: rgba(0, 0, 0, 10%);
97
+ z-index: 9999;
98
+ }
99
+
100
+ .ccs-loading-content {
101
+ top: 50%;
102
+ left: 50%;
103
+ transform: translate(-50%, -50%);
104
+ position: absolute;
105
+ }
@@ -0,0 +1,6 @@
1
+ import { AtomLoadingProps } from './_api';
2
+ declare const AtomLoading: {
3
+ ({ loading, loadingTip }: AtomLoadingProps): import("react/jsx-runtime").JSX.Element | null;
4
+ displayName: string;
5
+ };
6
+ export default AtomLoading;
@@ -1,9 +1,8 @@
1
1
  import { LoadingOutlined } from '@ant-design/icons';
2
2
  import { Space, Spin } from 'antd';
3
- import "./index.less";
4
3
  import { jsx as _jsx } from "react/jsx-runtime";
5
4
  import { jsxs as _jsxs } from "react/jsx-runtime";
6
- var Loading = function Loading(_ref) {
5
+ var AtomLoading = function AtomLoading(_ref) {
7
6
  var loading = _ref.loading,
8
7
  loadingTip = _ref.loadingTip;
9
8
  return loading ? /*#__PURE__*/_jsx("div", {
@@ -23,6 +22,6 @@ var Loading = function Loading(_ref) {
23
22
  }) : null;
24
23
  };
25
24
  if (process.env.NODE_ENV !== 'production') {
26
- Loading.displayName = 'CcsLoading';
25
+ AtomLoading.displayName = 'AtomLoading';
27
26
  }
28
- export default Loading;
27
+ export default AtomLoading;
@@ -8,7 +8,7 @@ import { ColumnHeightOutlined, RedoOutlined } from '@ant-design/icons';
8
8
  import { Button, Dropdown, Tooltip } from 'antd';
9
9
  import classNames from 'classnames';
10
10
  import { classAtomPrefix } from '.';
11
- import { CcsFullScreenButton } from '..';
11
+ import AtomFullScreen from "./full-screen";
12
12
  import ProBaseItem from "./item";
13
13
  import { jsx as _jsx } from "react/jsx-runtime";
14
14
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -67,7 +67,7 @@ function AtomOperation(props) {
67
67
  icon: /*#__PURE__*/_jsx(RedoOutlined, {}),
68
68
  type: "text"
69
69
  })
70
- }), parentHtmlId !== undefined && /*#__PURE__*/_jsx(CcsFullScreenButton, {
70
+ }), parentHtmlId !== undefined && /*#__PURE__*/_jsx(AtomFullScreen, {
71
71
  parentHtmlId: "ccs-pro-table"
72
72
  })]
73
73
  })]
@@ -1,8 +1,6 @@
1
- import React from 'react';
2
1
  import { AtomResizeProps } from './_api';
3
2
  declare function AtomResize(props: AtomResizeProps): import("react/jsx-runtime").JSX.Element;
4
3
  declare namespace AtomResize {
5
4
  var displayName: string;
6
5
  }
7
- declare const _default: React.MemoExoticComponent<typeof AtomResize>;
8
- export default _default;
6
+ export default AtomResize;
@@ -5,28 +5,30 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
5
5
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
6
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
7
  import { useDebounce, useSize } from 'ahooks';
8
- import _debounce from 'lodash.debounce';
9
- import React, { useCallback, useEffect, useRef } from 'react';
8
+ import { useEffect, useRef } from 'react';
10
9
  import { jsx as _jsx } from "react/jsx-runtime";
11
10
  function ResizeObserver(_ref) {
12
11
  var onResize = _ref.onResize,
13
- _ref$wait = _ref.wait,
14
- wait = _ref$wait === void 0 ? 500 : _ref$wait;
12
+ option = _ref.option;
15
13
  var sizeRef = useRef();
16
14
  var ref = useRef(null);
17
15
  var size = useSize(ref);
18
16
 
19
17
  // 监听容器尺寸变化
20
- var handleOnResize = useCallback(_debounce(onResize, wait), []);
18
+ var debouncedValue = useDebounce(size, _objectSpread({
19
+ wait: 500,
20
+ leading: false,
21
+ trailing: true
22
+ }, option));
21
23
  useEffect(function () {
22
- if (size) {
24
+ if (debouncedValue) {
23
25
  // 避免首次触发回调
24
26
  if (sizeRef.current) {
25
- handleOnResize(size);
27
+ onResize(debouncedValue);
26
28
  }
27
- sizeRef.current = size;
29
+ sizeRef.current = debouncedValue;
28
30
  }
29
- }, [size === null || size === void 0 ? void 0 : size.height, size === null || size === void 0 ? void 0 : size.width]);
31
+ }, [debouncedValue]);
30
32
  return /*#__PURE__*/_jsx("div", {
31
33
  ref: ref
32
34
  });
@@ -34,15 +36,16 @@ function ResizeObserver(_ref) {
34
36
 
35
37
  /** 监听容器尺寸变化,防抖 */
36
38
  function ResizeObserverTarget(_ref2) {
37
- var _ref2$wait = _ref2.wait,
38
- wait = _ref2$wait === void 0 ? 500 : _ref2$wait,
39
+ var option = _ref2.option,
39
40
  targetRef = _ref2.targetRef,
40
41
  onResize = _ref2.onResize;
41
42
  var sizeRef = useRef();
42
43
  var size = useSize(targetRef);
43
- var debouncedValue = useDebounce(size, {
44
- wait: wait
45
- });
44
+ var debouncedValue = useDebounce(size, _objectSpread({
45
+ wait: 500,
46
+ leading: false,
47
+ trailing: true
48
+ }, option));
46
49
  useEffect(function () {
47
50
  if (debouncedValue) {
48
51
  // 避免首次触发回调
@@ -60,4 +63,4 @@ function AtomResize(props) {
60
63
  if (process.env.NODE_ENV !== 'production') {
61
64
  AtomResize.displayName = 'AtomResize';
62
65
  }
63
- export default /*#__PURE__*/React.memo(AtomResize);
66
+ export default AtomResize;
package/es/ccs.d.ts CHANGED
@@ -31,9 +31,7 @@ export * from './date-picker/_api';
31
31
  export * from './dialog/_api';
32
32
  export * from './editor/_api';
33
33
  export * from './form/_api';
34
- export * from './layout-keep-alive/_api';
35
- export * from './layout-single-page/_api';
36
- export * from './loading/_api';
34
+ export * from './page-layout/_api';
37
35
  export * from './pro-table/_api';
38
36
  export * from './pro-tabs/_api';
39
37
  export * from './select/_api';
package/es/ccs.js CHANGED
@@ -20,9 +20,7 @@ export * from "./date-picker/_api";
20
20
  export * from "./dialog/_api";
21
21
  export * from "./editor/_api";
22
22
  export * from "./form/_api";
23
- export * from "./layout-keep-alive/_api";
24
- export * from "./layout-single-page/_api";
25
- export * from "./loading/_api";
23
+ export * from "./page-layout/_api";
26
24
  export * from "./pro-table/_api";
27
25
  export * from "./pro-tabs/_api";
28
26
  export * from "./select/_api";
@@ -5,7 +5,7 @@ import { DialogFormRef } from './form';
5
5
  export type DialogButtonRef = {
6
6
  onSetButtons: (e: React.ReactElement) => void;
7
7
  };
8
- export declare const DialogButtonHolder: <TParams, TData>({ auth, extraBtn, formRef, request, onOk, onClose, buttonRef, requestFieldNames, formInitialValues, preventRequestHandle, }: Pick<DialogModalProps<TParams, TData>, "onClose" | "onOk" | "auth" | "request" | "extraBtn" | "requestFieldNames" | "preventRequestHandle"> & {
8
+ export declare const DialogButtonHolder: <TParams, TData>({ auth, extraBtn, formRef, request, onOk, onClose, buttonRef, requestFieldNames, formInitialValues, preventRequestHandle, }: Pick<DialogModalProps<TParams, TData>, "auth" | "request" | "onOk" | "onClose" | "extraBtn" | "requestFieldNames" | "preventRequestHandle"> & {
9
9
  formRef: React.RefObject<DialogFormRef<TParams>>;
10
10
  formInitialValues: FormProps['initialValues'];
11
11
  buttonRef: RefObject<DialogButtonRef>;
package/es/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  export { default as CcsAjCaptcha } from './aj-captcha';
2
2
  export { default as CcsAtom } from './atom';
3
- export { default as CcsFullScreenButton } from './atom/full-screen';
4
3
  export { default as CcsAuth } from './auth';
5
4
  export { default as CcsButton } from './button';
6
5
  export { default as CcsCascader } from './cascader';
@@ -16,10 +15,9 @@ export { default as useCcsPage } from './hooks/use-page';
16
15
  export { default as useTableSelection } from './hooks/use-selection';
17
16
  export { default as useCcsTabs } from './hooks/use-tabs';
18
17
  export { default as useCcsWindow } from './hooks/use-window';
19
- export { default as CcsIntervalButton } from './interval-button';
20
- export { default as CcsKeepAliveTabs } from './layout-keep-alive';
21
- export { default as CcsSinglePage } from './layout-single-page';
22
- export { default as CcsLoading } from './loading';
18
+ export { default as CcsPageLayout } from './page-layout';
19
+ export { default as CcsKeepAliveTabs } from './page-layout/keep-alive';
20
+ export { default as CcsSinglePage } from './page-layout/single-page';
23
21
  export { default as CcsProTable } from './pro-table';
24
22
  export { default as CcsProTabs } from './pro-tabs';
25
23
  export { default as CcsResult } from './result';
package/es/index.js CHANGED
@@ -1,6 +1,5 @@
1
1
  export { default as CcsAjCaptcha } from "./aj-captcha";
2
2
  export { default as CcsAtom } from "./atom";
3
- export { default as CcsFullScreenButton } from "./atom/full-screen";
4
3
  export { default as CcsAuth } from "./auth";
5
4
  export { default as CcsButton } from "./button";
6
5
  export { default as CcsCascader } from "./cascader";
@@ -9,7 +8,6 @@ export { default as CcsAppConfig } from "./config";
9
8
  export { default as CcsDatePicker } from "./date-picker";
10
9
  export { default as CcsDialog } from "./dialog";
11
10
  export { default as CcsEditor } from "./editor";
12
- // export { default as CcsEllipsis } from './ellipsis';
13
11
  export { default as CcsForm } from "./form";
14
12
  export { default as useAppConfig } from "./hooks/use-app";
15
13
  export { default as useCcsOnceEvent } from "./hooks/use-once-event";
@@ -17,10 +15,9 @@ export { default as useCcsPage } from "./hooks/use-page";
17
15
  export { default as useTableSelection } from "./hooks/use-selection";
18
16
  export { default as useCcsTabs } from "./hooks/use-tabs";
19
17
  export { default as useCcsWindow } from "./hooks/use-window";
20
- export { default as CcsIntervalButton } from "./interval-button";
21
- export { default as CcsKeepAliveTabs } from "./layout-keep-alive";
22
- export { default as CcsSinglePage } from "./layout-single-page";
23
- export { default as CcsLoading } from "./loading";
18
+ export { default as CcsPageLayout } from "./page-layout";
19
+ export { default as CcsKeepAliveTabs } from "./page-layout/keep-alive";
20
+ export { default as CcsSinglePage } from "./page-layout/single-page";
24
21
  export { default as CcsProTable } from "./pro-table";
25
22
  export { default as CcsProTabs } from "./pro-tabs";
26
23
  export { default as CcsResult } from "./result";
@@ -1,3 +1,4 @@
1
+ import { CSSProperties, ReactNode } from 'react';
1
2
  export type MenuType = {
2
3
  key: string;
3
4
  /** 菜单名称 */
@@ -21,3 +22,9 @@ export interface KeepAliveTabsProps {
21
22
  className?: string;
22
23
  history: any;
23
24
  }
25
+ export interface SinglePageProps {
26
+ appName: string;
27
+ menuItems: MenuType[];
28
+ breadcrumbStyle?: CSSProperties;
29
+ children?: ReactNode;
30
+ }
@@ -0,0 +1,16 @@
1
+ import './index.less';
2
+ import KeepAliveTabs from './keep-alive';
3
+ import SinglePage from './single-page';
4
+ export declare const classAtomPrefix = "ccs-atom";
5
+ /**
6
+ * 页面布局组件
7
+ */
8
+ declare const CcsPageLayout: {
9
+ (): import("react/jsx-runtime").JSX.Element;
10
+ /** 多页缓存 */
11
+ Multi: typeof KeepAliveTabs;
12
+ /** 单页 */
13
+ Single: typeof SinglePage;
14
+ displayName: string;
15
+ };
16
+ export default CcsPageLayout;
@@ -0,0 +1,23 @@
1
+ import "./index.less";
2
+ import KeepAliveTabs from "./keep-alive";
3
+ import SinglePage from "./single-page";
4
+ import { Fragment as _Fragment } from "react/jsx-runtime";
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ export var classAtomPrefix = 'ccs-atom';
7
+
8
+ /**
9
+ * 页面布局组件
10
+ */
11
+ var CcsPageLayout = function CcsPageLayout() {
12
+ return /*#__PURE__*/_jsx(_Fragment, {});
13
+ };
14
+
15
+ /** 多页缓存 */
16
+ CcsPageLayout.Multi = KeepAliveTabs;
17
+
18
+ /** 单页 */
19
+ CcsPageLayout.Single = SinglePage;
20
+ if (process.env.NODE_ENV !== 'production') {
21
+ CcsPageLayout.displayName = 'CcsPageLayout';
22
+ }
23
+ export default CcsPageLayout;
@@ -0,0 +1,63 @@
1
+ .ccs-keep-alive {
2
+ flex: 1 1 auto;
3
+ display: flex;
4
+ flex-direction: column;
5
+ overflow: hidden;
6
+
7
+ &-nav {
8
+ margin: 0;
9
+
10
+ &::before {
11
+ border-bottom: 0 !important;
12
+ }
13
+ }
14
+
15
+ &-tabs {
16
+ background-color: #fff;
17
+ border-bottom: 1px solid #f1f2f5;
18
+
19
+ &.dark {
20
+ background-color: rgb(37, 37, 37);
21
+ border-bottom: 0;
22
+ }
23
+ }
24
+
25
+ .ccs-tab-item {
26
+ flex: 1 1 auto;
27
+ position: relative;
28
+ overflow: auto;
29
+ }
30
+ }
31
+
32
+ .ccs-breadcrumb {
33
+ margin-bottom: 10px;
34
+ }
35
+
36
+ .ccs-layout-page {
37
+ padding: 0 16px;
38
+ flex-direction: column;
39
+ display: none;
40
+ height: 100%;
41
+
42
+ &.page-avtive {
43
+ display: flex;
44
+ }
45
+
46
+ &.single-page {
47
+ display: flex;
48
+ flex: 1 1 auto;
49
+ overflow: auto;
50
+ }
51
+
52
+ .page-top {
53
+ height: 10px;
54
+ background: transparent;
55
+ flex: 0 0 10px;
56
+ }
57
+
58
+ .page-bottom {
59
+ height: 16px;
60
+ background: transparent;
61
+ flex: 0 0 16px;
62
+ }
63
+ }
@@ -1,8 +1,7 @@
1
1
  import { BreadcrumbProps } from 'antd';
2
2
  import { JSXElementConstructor, ReactElement } from 'react';
3
3
  import { Location } from 'react-router';
4
- import { KeepAliveTabsProps, MenuType } from './_api';
5
- import './index.less';
4
+ import { KeepAliveTabsProps, MenuType } from '../_api';
6
5
  export type CacheRouter = {
7
6
  key: string;
8
7
  menuKey: string;
@@ -23,9 +23,8 @@ import updateHelper from 'immutability-helper';
23
23
  import { useCallback, useMemo, useRef } from 'react';
24
24
  import { useLocation } from 'react-router';
25
25
  import { useOutlet } from 'react-router-dom';
26
- import { CcsResult, useAppConfig } from '..';
27
- import { useInsertCss } from "../hooks/use-insert-css";
28
- import "./index.less";
26
+ import { CcsResult, useAppConfig } from "../..";
27
+ import { useInsertCss } from "../../hooks/use-insert-css";
29
28
  import Page from "./page";
30
29
  import { jsx as _jsx } from "react/jsx-runtime";
31
30
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -272,9 +271,7 @@ function KeepAliveTabs(_ref) {
272
271
  $push: [{
273
272
  key: location.key,
274
273
  label: (curMenu === null || curMenu === void 0 ? void 0 : curMenu.label) || '未知',
275
- outlet: isMenu ? outlet : /*#__PURE__*/_jsx(CcsResult.Page404, {
276
- title: "\u672A\u77E5\u9875\u9762"
277
- }),
274
+ outlet: isMenu ? outlet : /*#__PURE__*/_jsx(CcsResult.Page404, {}),
278
275
  urlAuthList: btnAuth.map(function (b) {
279
276
  return b.code;
280
277
  }),