ez-react-antd 0.1.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 (114) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +187 -0
  3. package/dist/AdminLayout/AdminLayout.d.ts +18 -0
  4. package/dist/AdminLayout/AdminLayout.d.ts.map +1 -0
  5. package/dist/AdminLayout/HeaderMenu/HeaderMenu.d.ts +17 -0
  6. package/dist/AdminLayout/HeaderMenu/HeaderMenu.d.ts.map +1 -0
  7. package/dist/AdminLayout/HeaderMenu/index.d.ts +4 -0
  8. package/dist/AdminLayout/HeaderMenu/index.d.ts.map +1 -0
  9. package/dist/AdminLayout/SiderMenu/SiderMenu.d.ts +39 -0
  10. package/dist/AdminLayout/SiderMenu/SiderMenu.d.ts.map +1 -0
  11. package/dist/AdminLayout/SiderMenu/index.d.ts +4 -0
  12. package/dist/AdminLayout/SiderMenu/index.d.ts.map +1 -0
  13. package/dist/AdminLayout/constants.d.ts +23 -0
  14. package/dist/AdminLayout/constants.d.ts.map +1 -0
  15. package/dist/AdminLayout/index.d.ts +6 -0
  16. package/dist/AdminLayout/index.d.ts.map +1 -0
  17. package/dist/ConfigProvider/index.d.ts +18 -0
  18. package/dist/ConfigProvider/index.d.ts.map +1 -0
  19. package/dist/Drawer/Drawer.d.ts +19 -0
  20. package/dist/Drawer/Drawer.d.ts.map +1 -0
  21. package/dist/Drawer/index.d.ts +3 -0
  22. package/dist/Drawer/index.d.ts.map +1 -0
  23. package/dist/ErrorNotification/ErrorNotification.d.ts +6 -0
  24. package/dist/ErrorNotification/ErrorNotification.d.ts.map +1 -0
  25. package/dist/ErrorNotification/index.d.ts +2 -0
  26. package/dist/ErrorNotification/index.d.ts.map +1 -0
  27. package/dist/ErrorPage/ErrorPage.d.ts +3 -0
  28. package/dist/ErrorPage/ErrorPage.d.ts.map +1 -0
  29. package/dist/ErrorPage/index.d.ts +3 -0
  30. package/dist/ErrorPage/index.d.ts.map +1 -0
  31. package/dist/Grid/Grid.d.ts +24 -0
  32. package/dist/Grid/Grid.d.ts.map +1 -0
  33. package/dist/Grid/index.d.ts +5 -0
  34. package/dist/Grid/index.d.ts.map +1 -0
  35. package/dist/Grid/useResponsive.d.ts +36 -0
  36. package/dist/Grid/useResponsive.d.ts.map +1 -0
  37. package/dist/IconSelect/IconSelect.d.ts +35 -0
  38. package/dist/IconSelect/IconSelect.d.ts.map +1 -0
  39. package/dist/IconSelect/IconShow/IconShow.d.ts +8 -0
  40. package/dist/IconSelect/IconShow/IconShow.d.ts.map +1 -0
  41. package/dist/IconSelect/IconShow/index.d.ts +3 -0
  42. package/dist/IconSelect/IconShow/index.d.ts.map +1 -0
  43. package/dist/IconSelect/index.d.ts +3 -0
  44. package/dist/IconSelect/index.d.ts.map +1 -0
  45. package/dist/ImageUpload/ImageUpload.d.ts +55 -0
  46. package/dist/ImageUpload/ImageUpload.d.ts.map +1 -0
  47. package/dist/ImageUpload/index.d.ts +3 -0
  48. package/dist/ImageUpload/index.d.ts.map +1 -0
  49. package/dist/Link/Link.d.ts +10 -0
  50. package/dist/Link/Link.d.ts.map +1 -0
  51. package/dist/Link/index.d.ts +3 -0
  52. package/dist/Link/index.d.ts.map +1 -0
  53. package/dist/Loading/Loading.d.ts +14 -0
  54. package/dist/Loading/Loading.d.ts.map +1 -0
  55. package/dist/Loading/index.d.ts +3 -0
  56. package/dist/Loading/index.d.ts.map +1 -0
  57. package/dist/NoFoundPage/NoFoundPage.d.ts +3 -0
  58. package/dist/NoFoundPage/NoFoundPage.d.ts.map +1 -0
  59. package/dist/NoFoundPage/index.d.ts +3 -0
  60. package/dist/NoFoundPage/index.d.ts.map +1 -0
  61. package/dist/NotAuthorizedPage/NotAuthorizedPage.d.ts +3 -0
  62. package/dist/NotAuthorizedPage/NotAuthorizedPage.d.ts.map +1 -0
  63. package/dist/NotAuthorizedPage/index.d.ts +3 -0
  64. package/dist/NotAuthorizedPage/index.d.ts.map +1 -0
  65. package/dist/Redirect/Redirect.d.ts +3 -0
  66. package/dist/Redirect/Redirect.d.ts.map +1 -0
  67. package/dist/Redirect/index.d.ts +3 -0
  68. package/dist/Redirect/index.d.ts.map +1 -0
  69. package/dist/RemoteCascader/RemoteCascader.d.ts +64 -0
  70. package/dist/RemoteCascader/RemoteCascader.d.ts.map +1 -0
  71. package/dist/RemoteCascader/index.d.ts +3 -0
  72. package/dist/RemoteCascader/index.d.ts.map +1 -0
  73. package/dist/RemoteModalSelect/RemoteModalSelect.d.ts +63 -0
  74. package/dist/RemoteModalSelect/RemoteModalSelect.d.ts.map +1 -0
  75. package/dist/RemoteModalSelect/index.d.ts +3 -0
  76. package/dist/RemoteModalSelect/index.d.ts.map +1 -0
  77. package/dist/RemoteSelect/RemoteSelect.d.ts +77 -0
  78. package/dist/RemoteSelect/RemoteSelect.d.ts.map +1 -0
  79. package/dist/RemoteSelect/index.d.ts +3 -0
  80. package/dist/RemoteSelect/index.d.ts.map +1 -0
  81. package/dist/RemoteTable/RemoteTable.d.ts +108 -0
  82. package/dist/RemoteTable/RemoteTable.d.ts.map +1 -0
  83. package/dist/RemoteTable/index.d.ts +3 -0
  84. package/dist/RemoteTable/index.d.ts.map +1 -0
  85. package/dist/RemoteTableSelect/RemoteTableSelect.d.ts +59 -0
  86. package/dist/RemoteTableSelect/RemoteTableSelect.d.ts.map +1 -0
  87. package/dist/RemoteTableSelect/index.d.ts +3 -0
  88. package/dist/RemoteTableSelect/index.d.ts.map +1 -0
  89. package/dist/RemoteTree/RemoteTree.d.ts +103 -0
  90. package/dist/RemoteTree/RemoteTree.d.ts.map +1 -0
  91. package/dist/RemoteTree/index.d.ts +3 -0
  92. package/dist/RemoteTree/index.d.ts.map +1 -0
  93. package/dist/SearchBar/SearchBar.d.ts +164 -0
  94. package/dist/SearchBar/SearchBar.d.ts.map +1 -0
  95. package/dist/SearchBar/index.d.ts +3 -0
  96. package/dist/SearchBar/index.d.ts.map +1 -0
  97. package/dist/ez-react-antd.es.js +10721 -0
  98. package/dist/ez-react-antd.umd.js +73 -0
  99. package/dist/hoc/withRoute.d.ts +3 -0
  100. package/dist/hoc/withRoute.d.ts.map +1 -0
  101. package/dist/index.css +1 -0
  102. package/dist/index.d.ts +38 -0
  103. package/dist/index.d.ts.map +1 -0
  104. package/dist/types/index.d.ts +18 -0
  105. package/dist/types/index.d.ts.map +1 -0
  106. package/dist/utils/compare.d.ts +4 -0
  107. package/dist/utils/compare.d.ts.map +1 -0
  108. package/dist/utils/date.d.ts +6 -0
  109. package/dist/utils/date.d.ts.map +1 -0
  110. package/dist/utils/mergeObj.d.ts +10 -0
  111. package/dist/utils/mergeObj.d.ts.map +1 -0
  112. package/dist/utils/uuid.d.ts +11 -0
  113. package/dist/utils/uuid.d.ts.map +1 -0
  114. package/package.json +84 -0
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ export default function withRoute(SourceComponent: React.ComponentType<any>): (props: any) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=withRoute.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withRoute.d.ts","sourceRoot":"","sources":["../../src/hoc/withRoute.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,eAAe,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,IACpC,OAAO,GAAG,6CAQhD"}
package/dist/index.css ADDED
@@ -0,0 +1 @@
1
+ .loading_layout_box{height:100%;width:100%}.loading_layout_box .loading_box{position:relative;top:0;height:100%;width:100%;z-index:999;display:flex;align-items:center;justify-content:center;background-color:#f2f3f552}.loading_layout_box .loading_content_box{position:absolute;top:0;z-index:1;width:100%}.loading_layout_box .loading_box_none{display:none}.drawer_box .drawer_title{margin-left:20px}.romote_table_menu_box{height:40px;display:flex;align-items:center}.remote_table_box .ant-table-expand-icon-col,.remote_table_box .ant-table-row-expand-icon-cell{width:30px!important}.remote_table_box .ant-table{margin-inline:unset!important}.remote_table_box .ant-table-expanded-row-fixed{padding:8px 0 8px 8px!important}.romote_table_menu{flex:1;display:flex;align-items:center;justify-content:right}.romote_table_title{color:#000000d9;font-size:16px;line-height:24px;opacity:.85}.remote-table-mobile .remote-table-card{margin-bottom:12px}.remote-table-mobile .remote-table-card .card-row{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:8px;line-height:1.5}.remote-table-mobile .remote-table-card .card-row .label{color:#00000073;font-size:14px;white-space:nowrap;margin-right:12px}.remote-table-mobile .remote-table-card .card-row .value{flex:1;text-align:right;word-break:break-all;font-size:14px;color:#000000d9}.remote-table-mobile .remote-table-card .card-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:12px;padding-top:12px;border-top:1px solid #f0f0f0}.remote-table-mobile .remote-table-card .card-actions .action-wrapper{display:flex;align-items:center}.remote-table-mobile .remote-table-card .card-actions .action-wrapper .role_action{display:flex;gap:12px}.remote-table-mobile .remote-table-card .card-actions .action-wrapper .role_action .anticon{font-size:18px;cursor:pointer;transition:all .3s}.remote-table-mobile .remote-table-card .card-actions .action-wrapper .role_action .anticon:active{transform:scale(.95)}.remote-table-mobile .mobile-pagination{margin-top:16px;padding:12px;background:#fafafa;border-radius:8px;display:flex;align-items:center;justify-content:space-between}.remote-table-mobile .mobile-pagination .pagination-info{color:#000000d9;font-size:16px;font-weight:500;white-space:nowrap}.remote-table-mobile .mobile-pagination .ant-table{display:none}.remote-table-mobile .mobile-pagination .ant-pagination,.remote-table-mobile .mobile-pagination .ant-pagination.ant-pagination-simple,.remote-table-mobile .mobile-pagination .ant-pagination.ant-pagination-simple .ant-pagination-simple-pager{display:flex;align-items:center}.remote-table-mobile .mobile-pagination .ant-pagination.ant-pagination-simple .ant-pagination-simple-pager input{width:60px;height:40px;font-size:18px;font-weight:500;text-align:center;border-radius:6px;line-height:40px}.remote-table-mobile .mobile-pagination .ant-pagination.ant-pagination-simple .ant-pagination-simple-pager .ant-pagination-slash{margin:0 10px;font-size:18px;font-weight:500;line-height:40px}.remote-table-mobile .mobile-pagination .ant-pagination.ant-pagination-simple .ant-pagination-prev,.remote-table-mobile .mobile-pagination .ant-pagination.ant-pagination-simple .ant-pagination-next{height:40px;line-height:40px;min-width:40px;display:flex;align-items:center;justify-content:center}.remote-table-mobile .mobile-pagination .ant-pagination.ant-pagination-simple .ant-pagination-prev button,.remote-table-mobile .mobile-pagination .ant-pagination.ant-pagination-simple .ant-pagination-next button{height:40px;border-radius:6px;display:flex;align-items:center;justify-content:center}.remote-table-mobile .mobile-pagination .ant-pagination.ant-pagination-simple .ant-pagination-prev button .anticon,.remote-table-mobile .mobile-pagination .ant-pagination.ant-pagination-simple .ant-pagination-next button .anticon{font-size:20px;line-height:1}.remote-table-mobile .action_preview{color:#1890ff}.remote-table-mobile .action_download{color:#52c41a}.remote-table-mobile .action_his_task{color:#faad14}.remote-table-mobile .action_prediction{color:#722ed1}.remote-table-mobile .action_delete{color:#ff4d4f}.table_search_bar{min-height:60px;background:#fff;border:1px solid rgba(0,0,0,.15);display:flex;flex-wrap:wrap}.table_search_bar .table_search_item{margin:5px;display:flex;align-items:center}.table_search_bar .table_search_item .ant-form-item{margin-bottom:0!important}.table_search_bar .table_search_menu_box{flex:1;display:flex;align-items:center;justify-content:right;width:200px;margin:5px}.table_search_bar .table_search_menu_box .table_search_menu_item{margin:0 5px}@media(max-width:768px){.table_search_bar{padding:12px 8px}.table_search_bar .table_search_item{width:100%;margin:6px 0}.table_search_bar .table_search_item .ant-form-item .ant-form-item-label label{font-size:15px}.table_search_bar .table_search_item .ant-form-item .ant-form-item-control-input{min-height:40px}.table_search_bar .table_search_item .ant-form-item .ant-form-item-control-input .ant-input,.table_search_bar .table_search_item .ant-form-item .ant-form-item-control-input .ant-select{font-size:15px}.table_search_bar .table_search_menu_box{width:100%;justify-content:flex-end;flex-wrap:wrap;margin:12px 0 0}.table_search_bar .table_search_menu_box .table_search_menu_item{margin:6px 6px 6px 0}.table_search_bar .table_search_menu_box .table_search_menu_item button{height:40px;font-size:16px;padding:0 20px}.table_search_bar .table_search_menu_box .table_search_menu_item button .anticon{font-size:18px}}.davinyu_RemoteTableSelect_box{display:inline-grid;width:100%}.davinyu_RemoteTableSelect_wrap{width:100%;height:auto;outline:0;padding:2px 7px;min-height:32px;height:auto!important;line-height:1;border:1px solid #d9d9d9;border-radius:2px;box-sizing:border-box;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.davinyu_RemoteTableSelect_wrap:after{content:"";display:block;height:0;clear:both}.davinyu_RemoteTableSelect_placeholder{font-size:13px;color:#b9bdd4;line-height:28px;text-align:left}.davinyu_RemoteTableSelect_add_menu{margin-top:5px;text-align:left}.davinyu_RemoteTableSelect_add_modal{height:100%;padding:0;margin:0}.davinyu_RemoteTableSelect_add_modal .ant-modal{padding-bottom:0;margin:0}.davinyu_RemoteTableSelect_add_modal .ant-modal-content{height:100%}.davinyu_RemoteTableSelect_add_modal .ant-modal-body{background-color:#fff;padding:5px 20px!important}.davinyu_RemoteTableSelect_add_modal .ant-modal-footer{background-color:#fff}.lochlan_RemoteTableSelect_option{position:relative;width:100%;color:#fff;line-height:28px;margin:2px 0;padding:0 22px 0 10px;border-radius:4px;display:flex}.lochlan_RemoteTableSelect_option .lochlan_RemoteTableSelect_option_content{line-height:24px}.lochlan_RemoteTableSelect_option .lochlan_RemoteTableSelect_option_action{width:60px;height:24px;text-align:right;cursor:pointer;position:absolute;right:0}.lochlan_RemoteTableSelect_option .lochlan_RemoteTableSelect_option_action .lochlan_RemoteTableSelect_option_action_item{font-size:18px;line-height:100%;margin-right:10px}.admin_layout_header_menu_dropdown_xs{width:100%!important}.admin_layout_header_box{padding:0 20px;display:flex;color:#000;width:100%}.admin_layout_header_box .admin_layout_header_menu{flex:1}.admin_layout_header_box .admin_layout_header_userinfo .admin_layout_header_userinfo_name{margin:0 10px;display:inline}.admin_dark_sider_menu .ant-menu-item-selected{background-color:#183044!important}.admin_dark_sider_menu .ant-menu-item-active{background-color:#162633!important}.admin_layout_box .admin_layout_logo_txt{margin-left:10px;vertical-align:text-bottom;font-size:16px;text-transform:uppercase;display:inline-block;font-weight:700;white-space:nowrap;margin-bottom:0;animation:fadeRightIn___2_LaH .3s cubic-bezier(.645,.045,.355,1);animation-fill-mode:both;background:linear-gradient(to right,#06bed8,#f305a4);background-clip:text;-webkit-background-clip:text;color:transparent}.admin_layout_box .admin_layout_sider_normal{box-shadow:0 0 28px #1890ff1a;z-index:10}.admin_layout_box .admin_layout_sider_open{flex:0 0 256px!important;max-width:256px!important;min-width:256px!important;width:256px!important}.admin_layout_box .admin_layout_sider_open_broken{position:fixed!important;top:0;left:0;height:100vh;z-index:88}.admin_layout_box .admin_layout_sider_open_broken+.admin_layout_container{transition:none!important}.admin_layout_box .admin_layout_sider_open_broken+.admin_layout_container .admin_layout_container_header_normal{transition:none!important}.admin_layout_box .admin_layout_logo{z-index:1;height:64px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding:0 24px;box-shadow:0 1px 9px -3px #0003}.admin_layout_box .admin_layout_menu_container{height:calc(100vh - 112px);overflow-x:hidden;-ms-flex:1 1;flex:1 1;padding:24px 0}.admin_layout_box .admin_layout_menu_container .admin_layout_scrollbar_container{position:relative;height:100%;overflow:hidden!important;overflow-anchor:none;-ms-overflow-style:none;touch-action:auto;-ms-touch-action:auto}.admin_layout_box .admin_layout_switch_theme{width:100%;height:48px;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;padding:0 16px;overflow:hidden;transition:all .3s}.admin_layout_box .admin_layout_switch_theme .admin_layout_action_bulb{min-width:14px;margin-right:4px;font-size:14px}.admin_layout_box .admin_layout_container_drawer_open{position:fixed;left:0;width:100%}.admin_layout_box .admin_layout_container{padding-top:64px;height:100vh;-ms-flex:1 1;flex:1 1;overflow-y:scroll;overflow-x:hidden}.admin_layout_box .admin_layout_container .ant-layout-content{height:calc(100vh - 69px)!important;position:relative}.admin_layout_box .admin_layout_container .ant-layout-content .admin_layout_content_children{position:relative;height:100%;width:100%;margin:5px}.admin_layout_box .admin_layout_container .admin_layout_container_header_normal{position:fixed;top:0;right:0;z-index:9;transition:width .2s;padding:0;box-shadow:4px 4px 40px #0000000d;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;height:64px;-ms-flex-align:center;align-items:center;background-color:#fff}.admin_layout_box .admin_layout_container .admin_layout_container_header_open{width:calc(100% - 256px)}.admin_layout_box .admin_layout_container .admin_layout_container_header_close{width:calc(100% - 80px)}.admin_layout_box .admin_layout_container .admin_layout_container_header_broken{width:calc(100% + -0px)}.admin_layout_box .admin_layout_container .admin_layout_sider_switch_button{width:64px;height:64px;line-height:64px;text-align:center;font-size:18px;cursor:pointer;transition:all .3s ease-out}.admin_layout_box .admin_layout_content_drawer{width:200px!important}.admin_layout_box .admin_layout_container::-webkit-scrollbar{width:10px;height:5px}.admin_layout_box .admin_layout_container::-webkit-scrollbar-thumb{border-radius:10px;-webkit-box-shadow:inset 0 0 5px rgba(0,0,0,.2);background:#c5c5c5}.admin_layout_box .admin_layout_container::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 5px rgba(0,0,0,.2);border-radius:10px;background:#fff}.admin_layout_box.admin_layout_mobile .ant-layout,.admin_layout_box.admin_layout_mobile .ant-layout-sider,.admin_layout_box.admin_layout_mobile .admin_layout_container,.admin_layout_box.admin_layout_mobile .admin_layout_container_header_normal{transition:none!important}
@@ -0,0 +1,38 @@
1
+ export { default as Grid, useResponsive } from './Grid';
2
+ export { default as Loading } from './Loading';
3
+ export { default as Drawer } from './Drawer';
4
+ export { default as RemoteSelect } from './RemoteSelect';
5
+ export { default as RemoteTable } from './RemoteTable';
6
+ export { default as SearchBar } from './SearchBar';
7
+ export { default as Link } from './Link';
8
+ export { default as RemoteCascader } from './RemoteCascader';
9
+ export { default as RemoteTree } from './RemoteTree';
10
+ export { default as ImageUpload } from './ImageUpload';
11
+ export { default as RemoteTableSelect } from './RemoteTableSelect';
12
+ export { default as RemoteModalSelect } from './RemoteModalSelect';
13
+ export { default as ErrorNotification } from './ErrorNotification';
14
+ export { default as IconSelect } from './IconSelect';
15
+ export { default as AdminLayout } from './AdminLayout';
16
+ export { default as ErrorPage } from './ErrorPage';
17
+ export { default as NoFoundPage } from './NoFoundPage';
18
+ export { default as NotAuthorizedPage } from './NotAuthorizedPage';
19
+ export { default as Redirect } from './Redirect';
20
+ export { default as withRoute } from './hoc/withRoute';
21
+ export { ConfigProvider, useConfig, ConfigContext } from './ConfigProvider';
22
+ export type { WidthType, GridProp, UseResponsiveResult } from './Grid';
23
+ export type { LoadingProp } from './Loading';
24
+ export type { DrawerClassProps } from './Drawer';
25
+ export type { RemoteSelectProp } from './RemoteSelect';
26
+ export type { RemoteTableProp } from './RemoteTable';
27
+ export type { LinkProp } from './Link';
28
+ export type { RemoteCascaderProp } from './RemoteCascader';
29
+ export type { RemoteTreeProp } from './RemoteTree';
30
+ export type { ImageUploadProp } from './ImageUpload';
31
+ export type { RemoteTableSelectProp } from './RemoteTableSelect';
32
+ export type { RemoteModalSelectProp } from './RemoteModalSelect';
33
+ export type { IconSelectProps } from './IconSelect';
34
+ export type { AdminLayoutProp, MenuDef } from './AdminLayout';
35
+ export type { EzAntdConfig } from './ConfigProvider';
36
+ export type { ColumnsType, ColumnType } from 'antd/es/table';
37
+ export type { TableRowSelection } from 'antd/es/table/interface';
38
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAG5E,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AACvE,YAAY,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC7C,YAAY,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACjD,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,YAAY,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AACvC,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,YAAY,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,YAAY,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACjE,YAAY,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACjE,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,YAAY,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC9D,YAAY,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAGrD,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC7D,YAAY,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Redux Action 类型定义
3
+ */
4
+ export interface PayloadAction<P = any> {
5
+ type: string;
6
+ payload?: P;
7
+ [extraProps: string]: any;
8
+ }
9
+ /**
10
+ * 分页数据结构
11
+ */
12
+ export interface PageData<T = any> {
13
+ data: T[];
14
+ total: number;
15
+ currentPage: number;
16
+ pageSize: number;
17
+ }
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,aAAa,CAAC,CAAC,GAAG,GAAG;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,CAAC,CAAC;IACZ,CAAC,UAAU,EAAE,MAAM,GAAG,GAAG,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ,CAAC,CAAC,GAAG,GAAG;IAC7B,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,4 @@
1
+ /** 对比两个对象是否一致 */
2
+ declare function compare(obj1: any, obj2: any): boolean;
3
+ export default compare;
4
+ //# sourceMappingURL=compare.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compare.d.ts","sourceRoot":"","sources":["../../src/utils/compare.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB,iBAAS,OAAO,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,GAAG,OAAO,CAkD9C;AACD,eAAe,OAAO,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 获取当前时间的时间戳字符串
3
+ * 格式: YYYYMMDDHHmmSSS (例如: 202312262030123)
4
+ */
5
+ export declare const getTimestampStr: () => string;
6
+ //# sourceMappingURL=date.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../src/utils/date.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,eAAe,QAAO,MAYlC,CAAC"}
@@ -0,0 +1,10 @@
1
+ export interface ObjType {
2
+ [key: string]: any;
3
+ }
4
+ /** 对象深度合并
5
+ * @param target 被覆盖的对象
6
+ * @param source 对象的新属性
7
+ */
8
+ declare function mergeObj(target: ObjType, source: ObjType): any;
9
+ export default mergeObj;
10
+ //# sourceMappingURL=mergeObj.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mergeObj.d.ts","sourceRoot":"","sources":["../../src/utils/mergeObj.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACpB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB;AAED;;;GAGG;AACH,iBAAS,QAAQ,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,GAAG,GAAG,CAgEvD;AAED,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * 生成 UUID (v4)
3
+ * 使用 crypto.randomUUID() 如果可用,否则降级到 Math.random()
4
+ */
5
+ export declare const uuid: () => string;
6
+ /**
7
+ * 为了兼容原有代码习惯,导出 v1 别名,实际使用 v4 (随机)
8
+ * 大多数 UI 场景下 v1 和 v4 可以互换
9
+ */
10
+ export declare const v1: () => string;
11
+ //# sourceMappingURL=uuid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uuid.d.ts","sourceRoot":"","sources":["../../src/utils/uuid.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,IAAI,QAAO,MAUvB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,EAAE,QAhBS,MAgBF,CAAC"}
package/package.json ADDED
@@ -0,0 +1,84 @@
1
+ {
2
+ "name": "ez-react-antd",
3
+ "version": "0.1.0",
4
+ "description": "基于 Ant Design 的公共组件库",
5
+ "main": "./dist/ez-react-antd.umd.js",
6
+ "module": "./dist/ez-react-antd.es.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/ez-react-antd.es.js",
12
+ "require": "./dist/ez-react-antd.umd.js"
13
+ },
14
+ "./style.css": "./dist/index.css"
15
+ },
16
+ "files": [
17
+ "dist"
18
+ ],
19
+ "scripts": {
20
+ "dev": "vite",
21
+ "build": "tsc && vite build",
22
+ "watch": "vite build --watch",
23
+ "link:watch": "npm link && vite build --watch",
24
+ "lint": "eslint src --ext ts,tsx",
25
+ "type-check": "tsc --noEmit"
26
+ },
27
+ "peerDependencies": {
28
+ "@fortawesome/fontawesome-svg-core": "^7.1.0",
29
+ "@fortawesome/free-regular-svg-icons": "^7.1.0",
30
+ "@fortawesome/free-solid-svg-icons": "^7.1.0",
31
+ "@fortawesome/react-fontawesome": "^3.1.1",
32
+ "antd": "^5.29.3",
33
+ "antd-img-crop": "^4.27.0",
34
+ "react": "^18.0.0",
35
+ "react-dom": "^18.0.0",
36
+ "react-redux": "^9.2.0",
37
+ "react-router": "^7.11.0",
38
+ "react-select": "^5.10.2",
39
+ "react-window": "^2.2.3"
40
+ },
41
+ "devDependencies": {
42
+ "@fortawesome/fontawesome-svg-core": "^7.1.0",
43
+ "@fortawesome/free-regular-svg-icons": "^7.1.0",
44
+ "@fortawesome/free-solid-svg-icons": "^7.1.0",
45
+ "@fortawesome/react-fontawesome": "^3.1.1",
46
+ "@types/node": "^25.0.3",
47
+ "@types/react": "^19.2.7",
48
+ "@types/react-dom": "^19.2.3",
49
+ "@types/react-redux": "^7.1.34",
50
+ "@typescript-eslint/eslint-plugin": "^8.50.1",
51
+ "@typescript-eslint/parser": "^8.50.1",
52
+ "@vitejs/plugin-react": "^5.1.2",
53
+ "antd": "^5.29.3",
54
+ "antd-img-crop": "^4.27.0",
55
+ "eslint": "^9.39.2",
56
+ "eslint-plugin-react": "^7.37.5",
57
+ "eslint-plugin-react-hooks": "^7.0.1",
58
+ "less": "^4.5.1",
59
+ "react": "^18.0.0",
60
+ "react-dom": "^18.0.0",
61
+ "react-redux": "^9.2.0",
62
+ "react-router": "^7.11.0",
63
+ "react-select": "^5.10.2",
64
+ "react-window": "^2.2.3",
65
+ "typescript": "^5.9.3",
66
+ "vite": "^7.3.0",
67
+ "vite-plugin-dts": "^4.5.4",
68
+ "vite-plugin-lib-inject-css": "^2.2.2"
69
+ },
70
+ "sideEffects": false,
71
+ "repository": {
72
+ "type": "git",
73
+ "url": "https://github.com/davinyue/ez-react-antd"
74
+ },
75
+ "homepage": "https://github.com/davinyue/ez-react-antd",
76
+ "keywords": [
77
+ "react",
78
+ "antd",
79
+ "components",
80
+ "ui"
81
+ ],
82
+ "author": "davinyue <davinyue@gmail.com> (https://github.com/davinyue)",
83
+ "license": "MIT"
84
+ }