@ccs-ui/rc-pro 2.4.2 → 2.4.4
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.
- package/docs-dist/404.html +3 -3
- package/docs-dist/5382.89bc23f2.async.js +36 -0
- package/docs-dist/{7865.ee62679a.async.js → 7865.1cc75d3e.async.js} +5 -5
- package/docs-dist/dialog__demos.8b7e396a.async.js +1 -0
- package/docs-dist/docs__guide.md.ebd86841.async.js +138 -0
- package/docs-dist/{docs__rc-pro__button___api__interfaces__DropdownProps.md.32d1ab6d.async.js → docs__rc-pro__button___api__interfaces__DropdownProps.md.8c40fed3.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__button___api__interfaces__GroupButtonItem.md.6470ce5e.async.js → docs__rc-pro__button___api__interfaces__GroupButtonItem.md.179076b4.async.js} +1 -1
- package/docs-dist/docs__rc-pro__cascader___api__type-aliases__ApiCascaderProps.md.65084fc1.async.js +1 -0
- package/docs-dist/{docs__rc-pro__context___api__type-aliases__AppConfigType.md.f027be0c.async.js → docs__rc-pro__context___api__type-aliases__AppConfigType.md.421cf93c.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__context___api__type-aliases__TableFieldNames.md.993dbe08.async.js → docs__rc-pro__context___api__type-aliases__TableFieldNames.md.134b6aa7.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__dialog___api__index.md.36b93f9d.async.js → docs__rc-pro__dialog___api__index.md.323195bf.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__dialog___api__interfaces__DialogContextType.md.6a8f9b45.async.js → docs__rc-pro__dialog___api__interfaces__DialogContextType.md.85948cd5.async.js} +1 -1
- package/docs-dist/docs__rc-pro__dialog___api__interfaces__DialogProps.md.474686ef.async.js +1 -0
- package/docs-dist/docs__rc-pro__dialog___api__type-aliases__DialogButtonsProps.md.061c091d.async.js +1 -0
- package/docs-dist/docs__rc-pro__dialog___api__type-aliases__DialogModalProps.md.f9fe0f4f.async.js +1 -0
- package/docs-dist/docs__rc-pro__dialog___api__type-aliases__OkBtnProps.md.ea328029.async.js +1 -0
- package/docs-dist/docs__rc-pro__ellipsis___api__interfaces__EllipsisProps.md.990f0e29.async.js +1 -0
- package/docs-dist/docs__rc-pro__form___api__index.md.ff691778.async.js +1 -0
- package/docs-dist/docs__rc-pro__form___api__type-aliases__FormItemChildren.md.04d0ec88.async.js +1 -0
- package/docs-dist/docs__rc-pro__form___api__type-aliases__FormItemChildren.md.33be0665.chunk.css +1 -0
- package/docs-dist/docs__rc-pro__form___api__type-aliases__FormItemProps.md.f4b50b5e.async.js +1 -0
- package/docs-dist/{docs__rc-pro__index.md.d7fb953c.async.js → docs__rc-pro__index.md.9119dcc4.async.js} +1 -1
- package/docs-dist/docs__rc-pro__pro-table___api__type-aliases__TableFormItem.md.b1c27010.async.js +1 -0
- package/docs-dist/docs__rc-pro__select___api__type-aliases__SelectProps.md.199c9680.async.js +1 -0
- package/docs-dist/docs__rc-pro__upload___api__index.md.33be0665.chunk.css +1 -0
- package/docs-dist/docs__rc-pro__upload___api__index.md.b86ae575.async.js +1 -0
- package/docs-dist/docs__rc-pro__upload___api__type-aliases__FileUploadList.md.33be0665.chunk.css +1 -0
- package/docs-dist/docs__rc-pro__upload___api__type-aliases__FileUploadList.md.68327760.async.js +1 -0
- package/docs-dist/docs__rc-pro__upload___api__type-aliases__UploadImageProps.md.33be0665.chunk.css +1 -0
- package/docs-dist/docs__rc-pro__upload___api__type-aliases__UploadImageProps.md.4eca13b2.async.js +1 -0
- package/docs-dist/docs__rc-pro__upload___api__type-aliases__UploadProps.md.2ccd8b68.async.js +1 -0
- package/docs-dist/docs__rc-pro__upload___api__type-aliases__UploadProps.md.33be0665.chunk.css +1 -0
- package/docs-dist/docs__rc-pro__upload___api__type-aliases__UploadRequest.md.04c0e604.async.js +1 -0
- package/docs-dist/docs__rc-pro__upload___api__type-aliases__UploadRequest.md.33be0665.chunk.css +1 -0
- package/docs-dist/dumi__tmp-production__dumi__theme__ContextWrapper.d4fed016.async.js +1 -0
- package/docs-dist/{form__demos.8db479d8.async.js → form__demos.dfc37922.async.js} +1 -1
- package/docs-dist/guide/index.html +3 -3
- package/docs-dist/index.html +3 -3
- package/docs-dist/meta__docs.9493f14c.async.js +176 -0
- package/docs-dist/meta__packages.38529667.chunk.css +1 -0
- package/docs-dist/{meta__packages.45c8b749.async.js → meta__packages.56aa77cb.async.js} +346 -308
- package/docs-dist/packages__rc-pro__src__dialog__index.md.bd8bf51a.async.js +8 -0
- package/docs-dist/{packages__rc-pro__src__pro-table__index.md.8dbdfa31.async.js → packages__rc-pro__src__pro-table__index.md.5bbcf5a4.async.js} +21 -1
- package/docs-dist/{packages__rc-pro__src__pro-tabs__index.md.463a8f8a.async.js → packages__rc-pro__src__pro-tabs__index.md.b4efded2.async.js} +1 -1
- package/docs-dist/packages__rc-pro__src__upload__index.md.33be0665.chunk.css +1 -0
- package/docs-dist/packages__rc-pro__src__upload__index.md.86997cc2.async.js +1 -0
- package/docs-dist/plugins/index.html +3 -3
- package/docs-dist/preload_helper.fd6c9001.js +1 -0
- package/docs-dist/{pro-table__demos.03de51dc.async.js → pro-table__demos.24218bff.async.js} +1 -1
- package/docs-dist/rc-pro/button/_api/index.md/index.html +3 -3
- package/docs-dist/rc-pro/button/_api/interfaces/ButtonGroupProps.md/index.html +3 -3
- package/docs-dist/rc-pro/button/_api/interfaces/DropdownProps.md/index.html +3 -3
- package/docs-dist/rc-pro/button/_api/interfaces/GroupButtonItem.md/index.html +3 -3
- package/docs-dist/rc-pro/button/_api/type-aliases/ButtonProps.md/index.html +3 -3
- package/docs-dist/rc-pro/button/_api/type-aliases/DropdownClick.md/index.html +3 -3
- package/docs-dist/rc-pro/button/_api/type-aliases/DropdownMenuItemType.md/index.html +3 -3
- package/docs-dist/rc-pro/button/_api/type-aliases/GroupClick.md/index.html +3 -3
- package/docs-dist/rc-pro/cascader/_api/index.md/index.html +3 -3
- package/docs-dist/rc-pro/cascader/_api/type-aliases/ApiCascaderProps.md/index.html +3 -3
- package/docs-dist/rc-pro/context/_api/index.md/index.html +3 -3
- package/docs-dist/rc-pro/context/_api/type-aliases/AppConfigType.md/index.html +3 -3
- package/docs-dist/rc-pro/context/_api/type-aliases/DialogFieldNames.md/index.html +3 -3
- package/docs-dist/rc-pro/context/_api/type-aliases/FnContextType.md/index.html +3 -3
- package/docs-dist/rc-pro/context/_api/type-aliases/PageContextType.md/index.html +3 -3
- package/docs-dist/rc-pro/context/_api/type-aliases/TableFieldNames.md/index.html +3 -3
- package/docs-dist/rc-pro/date-picker/_api/index.md/index.html +3 -3
- package/docs-dist/rc-pro/date-picker/_api/type-aliases/DatePickerProps.md/index.html +3 -3
- package/docs-dist/rc-pro/date-picker/_api/type-aliases/RangePickerProps.md/index.html +3 -3
- package/docs-dist/rc-pro/dialog/_api/index.md/index.html +3 -3
- package/docs-dist/rc-pro/dialog/_api/interfaces/DialogContextType.md/index.html +3 -3
- package/docs-dist/rc-pro/dialog/_api/interfaces/DialogDrawer.md/index.html +3 -3
- package/docs-dist/rc-pro/dialog/_api/interfaces/DialogInterface.md/index.html +3 -3
- package/docs-dist/rc-pro/dialog/_api/interfaces/DialogModal.md/index.html +3 -3
- package/docs-dist/rc-pro/dialog/_api/interfaces/DialogProps.md/index.html +3 -3
- package/docs-dist/rc-pro/dialog/_api/type-aliases/DialogButtonsProps.md/index.html +3 -3
- package/docs-dist/rc-pro/dialog/_api/type-aliases/DialogDrawerProps.md/index.html +3 -3
- package/docs-dist/rc-pro/dialog/_api/type-aliases/DialogModalProps.md/index.html +3 -3
- package/docs-dist/rc-pro/{form/_api/interfaces/FormItemUpdateProps.md → dialog/_api/type-aliases/OkBtnProps.md}/index.html +3 -3
- package/docs-dist/rc-pro/dialog/_api/type-aliases/OkEvent.md/index.html +3 -3
- package/docs-dist/rc-pro/dialog/_api/type-aliases/Service.md/index.html +3 -3
- package/docs-dist/rc-pro/editor/_api/index.md/index.html +3 -3
- package/docs-dist/rc-pro/editor/_api/type-aliases/EditorProps.md/index.html +3 -3
- package/docs-dist/rc-pro/ellipsis/_api/index.md/index.html +3 -3
- package/docs-dist/rc-pro/ellipsis/_api/interfaces/EllipsisProps.md/index.html +3 -3
- package/docs-dist/rc-pro/form/_api/index.md/index.html +3 -3
- package/docs-dist/rc-pro/form/_api/type-aliases/FormItem.md/index.html +3 -3
- package/docs-dist/rc-pro/form/_api/type-aliases/FormItemChildren.md/index.html +15 -0
- package/docs-dist/rc-pro/form/_api/type-aliases/FormItemProps.md/index.html +3 -3
- package/docs-dist/rc-pro/form/_api/type-aliases/FormListProps.md/index.html +3 -3
- package/docs-dist/rc-pro/form/_api/type-aliases/ListItemBtnProps.md/index.html +3 -3
- package/docs-dist/rc-pro/form/_api/type-aliases/RenderItem.md/index.html +3 -3
- package/docs-dist/rc-pro/form/_api/type-aliases/RenderItemButton.md/index.html +3 -3
- package/docs-dist/rc-pro/form/_api/type-aliases/RenderItemProps.md/index.html +3 -3
- package/docs-dist/rc-pro/form/_api/type-aliases/RuleType.md/index.html +3 -3
- package/docs-dist/rc-pro/form/_api/type-aliases/ShowValidateEvent.md/index.html +3 -3
- package/docs-dist/rc-pro/index.html +3 -3
- package/docs-dist/rc-pro/index.md/index.html +3 -3
- package/docs-dist/rc-pro/layout-keep-alive/_api/index.md/index.html +3 -3
- package/docs-dist/rc-pro/layout-keep-alive/_api/interfaces/KeepAliveTabsProps.md/index.html +3 -3
- package/docs-dist/rc-pro/layout-keep-alive/_api/type-aliases/MenuType.md/index.html +3 -3
- package/docs-dist/rc-pro/layout-single-page/_api/index.md/index.html +3 -3
- package/docs-dist/rc-pro/layout-single-page/_api/interfaces/SinglePageProps.md/index.html +3 -3
- package/docs-dist/rc-pro/loading/_api/index.md/index.html +3 -3
- package/docs-dist/rc-pro/loading/_api/interfaces/LoadingProps.md/index.html +3 -3
- package/docs-dist/rc-pro/pro-table/_api/enumerations/TableEvent.md/index.html +3 -3
- package/docs-dist/rc-pro/pro-table/_api/index.md/index.html +3 -3
- package/docs-dist/rc-pro/pro-table/_api/interfaces/ProTableProps.md/index.html +3 -3
- package/docs-dist/rc-pro/pro-table/_api/interfaces/TableInstance.md/index.html +3 -3
- package/docs-dist/rc-pro/pro-table/_api/interfaces/TableProps.md/index.html +3 -3
- package/docs-dist/rc-pro/pro-table/_api/type-aliases/LeafVerify.md/index.html +3 -3
- package/docs-dist/rc-pro/pro-table/_api/type-aliases/TableColumn.md/index.html +3 -3
- package/docs-dist/rc-pro/pro-table/_api/type-aliases/TableColumns.md/index.html +3 -3
- package/docs-dist/rc-pro/pro-table/_api/type-aliases/TableData.md/index.html +3 -3
- package/docs-dist/rc-pro/pro-table/_api/type-aliases/TableEventHandle.md/index.html +3 -3
- package/docs-dist/rc-pro/pro-table/_api/type-aliases/TableFormItem.md/index.html +3 -3
- package/docs-dist/rc-pro/pro-table/_api/type-aliases/TableFormItems.md/index.html +3 -3
- package/docs-dist/rc-pro/pro-table/_api/type-aliases/TableInstanceRef.md/index.html +3 -3
- package/docs-dist/rc-pro/pro-table/_api/type-aliases/TreeInstance.md/index.html +3 -3
- package/docs-dist/rc-pro/pro-tabs/_api/index.md/index.html +3 -3
- package/docs-dist/rc-pro/pro-tabs/_api/interfaces/TabsChangeProps.md/index.html +3 -3
- package/docs-dist/rc-pro/pro-tabs/_api/interfaces/TabsContextType.md/index.html +3 -3
- package/docs-dist/rc-pro/pro-tabs/_api/type-aliases/TabProps.md/index.html +3 -3
- package/docs-dist/rc-pro/select/_api/index.md/index.html +3 -3
- package/docs-dist/rc-pro/select/_api/type-aliases/ApiSelectProps.md/index.html +3 -3
- package/docs-dist/rc-pro/select/_api/type-aliases/CacheType.md/index.html +3 -3
- package/docs-dist/rc-pro/select/_api/type-aliases/CustomizeSelectProps.md/index.html +3 -3
- package/docs-dist/rc-pro/select/_api/type-aliases/ModalSelectProps.md/index.html +3 -3
- package/docs-dist/rc-pro/select/_api/type-aliases/SelectChildrenProps.md/index.html +3 -3
- package/docs-dist/rc-pro/select/_api/type-aliases/SelectProps.md/index.html +3 -3
- package/docs-dist/rc-pro/upload/_api/index.md/index.html +15 -0
- package/docs-dist/rc-pro/upload/_api/type-aliases/FileUploadList.md/index.html +15 -0
- package/docs-dist/rc-pro/upload/_api/type-aliases/UploadImageProps.md/index.html +15 -0
- package/docs-dist/rc-pro/upload/_api/type-aliases/UploadProps.md/index.html +15 -0
- package/docs-dist/rc-pro/upload/_api/type-aliases/UploadRequest.md/index.html +15 -0
- package/docs-dist/rc-pro/water-mark/_api/index.md/index.html +3 -3
- package/docs-dist/rc-pro/water-mark/_api/type-aliases/WaterMarkProps.md/index.html +3 -3
- package/docs-dist/rc-pros/auth/index.html +3 -3
- package/docs-dist/rc-pros/button/index.html +3 -3
- package/docs-dist/rc-pros/cascader/index.html +3 -3
- package/docs-dist/rc-pros/date-picker/index.html +3 -3
- package/docs-dist/rc-pros/dialog/index.html +3 -3
- package/docs-dist/rc-pros/editor/index.html +3 -3
- package/docs-dist/rc-pros/ellipsis/index.html +3 -3
- package/docs-dist/rc-pros/form/index.html +3 -3
- package/docs-dist/rc-pros/index.html +3 -3
- package/docs-dist/rc-pros/interval-button/index.html +3 -3
- package/docs-dist/rc-pros/layout-keep-alive/index.html +3 -3
- package/docs-dist/rc-pros/loading/index.html +3 -3
- package/docs-dist/rc-pros/pro-table/index.html +3 -3
- package/docs-dist/rc-pros/pro-tabs/index.html +3 -3
- package/docs-dist/rc-pros/result/index.html +3 -3
- package/docs-dist/rc-pros/select/index.html +3 -3
- package/docs-dist/rc-pros/time-picker/index.html +3 -3
- package/docs-dist/rc-pros/upload/index.html +15 -0
- package/docs-dist/rc-pros/water-mark/index.html +3 -3
- package/docs-dist/umi.5a13e8ab.css +1 -0
- package/docs-dist/{umi.08768b8d.js → umi.933669be.js} +53 -53
- package/docs-dist/upload__demos.2415635f.async.js +1 -0
- package/docs-dist/utils/index.html +3 -3
- package/docs-dist/~demos/:id/index.html +3 -3
- package/docs-dist/~demos/auth-demo-basic/index.html +3 -3
- package/docs-dist/~demos/button-demo-button/index.html +3 -3
- package/docs-dist/~demos/button-demo-group/index.html +3 -3
- package/docs-dist/~demos/cascader-demo-basic/index.html +3 -3
- package/docs-dist/~demos/cascader-demo-cache/index.html +3 -3
- package/docs-dist/~demos/date-picker-demo-basic/index.html +3 -3
- package/docs-dist/~demos/date-picker-demo-range/index.html +3 -3
- package/docs-dist/~demos/dialog-demo-demos/index.html +3 -3
- package/docs-dist/~demos/dialog-demo-form/index.html +15 -0
- package/docs-dist/~demos/dialog-demo-prompt/index.html +15 -0
- package/docs-dist/~demos/editor-demo-demos/index.html +3 -3
- package/docs-dist/~demos/ellipsis-demo-demos/index.html +3 -3
- package/docs-dist/~demos/form-demo-demos/index.html +3 -3
- package/docs-dist/~demos/interval-button-demo-basic/index.html +3 -3
- package/docs-dist/~demos/loading-demo-basic/index.html +3 -3
- package/docs-dist/~demos/packages-utils-src-demo-demos/index.html +3 -3
- package/docs-dist/~demos/pro-table-demo-basic/index.html +3 -3
- package/docs-dist/~demos/pro-table-demo-cascade/index.html +3 -3
- package/docs-dist/~demos/pro-table-demo-extra/index.html +3 -3
- package/docs-dist/~demos/pro-table-demo-filter/index.html +3 -3
- package/docs-dist/~demos/pro-table-demo-fixed/index.html +3 -3
- package/docs-dist/~demos/pro-table-demo-refresh/index.html +3 -3
- package/docs-dist/~demos/pro-table-demo-selection/index.html +3 -3
- package/docs-dist/~demos/pro-table-demo-show-depend/index.html +3 -3
- package/docs-dist/~demos/pro-table-demo-tree-async/index.html +3 -3
- package/docs-dist/~demos/pro-tabs-demo-basic/index.html +3 -3
- package/docs-dist/~demos/pro-tabs-demo-tab/index.html +3 -3
- package/docs-dist/~demos/result-demo-basic/index.html +3 -3
- package/docs-dist/~demos/select-demo-api/index.html +3 -3
- package/docs-dist/~demos/select-demo-basic/index.html +3 -3
- package/docs-dist/~demos/select-demo-customize/index.html +3 -3
- package/docs-dist/~demos/select-demo-customize-label/index.html +3 -3
- package/docs-dist/~demos/time-picker-demo-basic/index.html +3 -3
- package/docs-dist/~demos/upload-demo-basic/index.html +15 -0
- package/docs-dist/~demos/upload-demo-image/index.html +15 -0
- package/docs-dist/~demos/water-mark-demo-basic/index.html +3 -3
- package/es/ccs.d.ts +1 -0
- package/es/ccs.js +1 -0
- package/es/context/_api.d.ts +1 -1
- package/es/dialog/HookDrawer.js +1 -1
- package/es/dialog/HookModal.js +1 -1
- package/es/dialog/_api.d.ts +3 -1
- package/es/dialog/button.d.ts +1 -1
- package/es/editor/index.less +5 -0
- package/es/layout-keep-alive/index.js +1 -2
- package/es/layout-keep-alive/index.less +24 -24
- package/es/layout-single-page/index.less +5 -5
- package/es/upload/_api.d.ts +36 -0
- package/es/upload/_api.js +1 -0
- package/es/upload/index.d.ts +3 -35
- package/es/upload/index.js +2 -1
- package/es/upload/upload-image.d.ts +2 -6
- package/package.json +1 -1
- package/docs-dist/9838.ff93c007.async.js +0 -15
- package/docs-dist/dialog__demos.03d15fe7.async.js +0 -1
- package/docs-dist/docs__guide.md.6a807817.async.js +0 -94
- package/docs-dist/docs__rc-pro__cascader___api__type-aliases__ApiCascaderProps.md.247bd3c0.async.js +0 -1
- package/docs-dist/docs__rc-pro__dialog___api__interfaces__DialogProps.md.d580d91f.async.js +0 -1
- package/docs-dist/docs__rc-pro__dialog___api__type-aliases__DialogButtonsProps.md.93827b22.async.js +0 -1
- package/docs-dist/docs__rc-pro__dialog___api__type-aliases__DialogModalProps.md.a6e80e21.async.js +0 -1
- package/docs-dist/docs__rc-pro__ellipsis___api__interfaces__EllipsisProps.md.07d69fca.async.js +0 -1
- package/docs-dist/docs__rc-pro__form___api__index.md.44325244.async.js +0 -1
- package/docs-dist/docs__rc-pro__form___api__interfaces__FormItemUpdateProps.md.8d39a425.async.js +0 -1
- package/docs-dist/docs__rc-pro__form___api__type-aliases__FormItemProps.md.81811a8f.async.js +0 -1
- package/docs-dist/docs__rc-pro__pro-table___api__type-aliases__TableFormItem.md.dedd69d2.async.js +0 -1
- package/docs-dist/docs__rc-pro__select___api__type-aliases__SelectProps.md.91f77622.async.js +0 -1
- package/docs-dist/dumi__tmp-production__dumi__theme__ContextWrapper.ace29ef3.async.js +0 -1
- package/docs-dist/meta__docs.280ddc28.async.js +0 -132
- package/docs-dist/meta__packages.43c7dec0.chunk.css +0 -1
- package/docs-dist/packages__rc-pro__src__dialog__index.md.a5d53b94.async.js +0 -1
- package/docs-dist/preload_helper.eba567ab.js +0 -1
- package/docs-dist/umi.cfe6e1b0.css +0 -1
- /package/docs-dist/{docs__rc-pro__form___api__interfaces__FormItemUpdateProps.md.33be0665.chunk.css → docs__rc-pro__dialog___api__type-aliases__OkBtnProps.md.33be0665.chunk.css} +0 -0
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
|
6
6
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
7
7
|
<link rel="shortcut icon" href="/favicon.png">
|
|
8
|
-
<link rel="stylesheet" href="/ccs-ui/umi.
|
|
9
|
-
<script src="/ccs-ui/preload_helper.
|
|
8
|
+
<link rel="stylesheet" href="/ccs-ui/umi.5a13e8ab.css">
|
|
9
|
+
<script src="/ccs-ui/preload_helper.fd6c9001.js"></script>
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="root"></div>
|
|
13
|
-
<script src="/ccs-ui/umi.
|
|
13
|
+
<script src="/ccs-ui/umi.933669be.js"></script>
|
|
14
14
|
</body>
|
|
15
15
|
</html>
|
package/es/ccs.d.ts
CHANGED
package/es/ccs.js
CHANGED
package/es/context/_api.d.ts
CHANGED
package/es/dialog/HookDrawer.js
CHANGED
|
@@ -120,7 +120,7 @@ var HookDrawer = function HookDrawer(props) {
|
|
|
120
120
|
}, []);
|
|
121
121
|
return /*#__PURE__*/_jsx(Drawer, _objectSpread(_objectSpread({
|
|
122
122
|
afterOpenChange: function afterOpenChange(open) {
|
|
123
|
-
if (!open && config.destroyOnClose !== false) afterClose();
|
|
123
|
+
if (!open && config.destroyOnClose !== false && config.destroyOnHidden !== false) afterClose();
|
|
124
124
|
},
|
|
125
125
|
extra: renderExtra,
|
|
126
126
|
footer: /*#__PURE__*/_jsx(FooterButtonHolder, {
|
package/es/dialog/HookModal.js
CHANGED
|
@@ -91,7 +91,7 @@ var HookModal = function HookModal(props) {
|
|
|
91
91
|
var formRef = useRef(null);
|
|
92
92
|
var afterClose = function afterClose() {
|
|
93
93
|
var _innerConfig$afterClo;
|
|
94
|
-
if (config.destroyOnClose !== false) hookAfterClose();
|
|
94
|
+
if (config.destroyOnClose !== false && config.destroyOnHidden !== false) hookAfterClose();
|
|
95
95
|
(_innerConfig$afterClo = innerConfig.afterClose) === null || _innerConfig$afterClo === void 0 || _innerConfig$afterClo.call(innerConfig);
|
|
96
96
|
};
|
|
97
97
|
var auth = innerConfig.auth,
|
package/es/dialog/_api.d.ts
CHANGED
|
@@ -56,8 +56,10 @@ export interface DialogProps<TParams, TData> {
|
|
|
56
56
|
}
|
|
57
57
|
/** 模态框框参数 */
|
|
58
58
|
export type DialogModalProps<TParams = any, TData = any> = DialogProps<TParams, TData> & Omit<ModalFuncProps, 'onCancel' | 'afterOpenChange' | 'onOk'> & {
|
|
59
|
-
/**
|
|
59
|
+
/** @deprecated Please use `destroyOnHidden` instead */
|
|
60
60
|
destroyOnClose?: boolean;
|
|
61
|
+
/** 关闭后销毁组件,默认true */
|
|
62
|
+
destroyOnHidden?: boolean;
|
|
61
63
|
};
|
|
62
64
|
/** 抽屉弹框参数 */
|
|
63
65
|
export type DialogDrawerProps<TParams = any, TData = any> = DialogProps<TParams, TData> & Omit<DrawerProps, 'onClose' | 'onOk' | 'afterOpenChange' | 'footer'> & {
|
package/es/dialog/button.d.ts
CHANGED
|
@@ -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>, "
|
|
8
|
+
export declare const DialogButtonHolder: <TParams, TData>({ auth, extraBtn, formRef, request, onOk, onClose, buttonRef, requestFieldNames, formInitialValues, preventRequestHandle, }: Pick<DialogModalProps<TParams, TData>, "onClose" | "onOk" | "auth" | "extraBtn" | "request" | "requestFieldNames" | "preventRequestHandle"> & {
|
|
9
9
|
formRef: React.RefObject<DialogFormRef<TParams>>;
|
|
10
10
|
formInitialValues: FormProps['initialValues'];
|
|
11
11
|
buttonRef: RefObject<DialogButtonRef>;
|
package/es/editor/index.less
CHANGED
|
@@ -141,7 +141,6 @@ function KeepAliveTabs(_ref) {
|
|
|
141
141
|
var _useAppConfig = useAppConfig(),
|
|
142
142
|
theme = _useAppConfig.theme;
|
|
143
143
|
var isDark = theme === 'dark';
|
|
144
|
-
var isColorful = theme === 'colorful';
|
|
145
144
|
|
|
146
145
|
// 超过缓存数量,删除第一个
|
|
147
146
|
if (routers.current.length >= maxLen) {
|
|
@@ -362,7 +361,7 @@ function KeepAliveTabs(_ref) {
|
|
|
362
361
|
hideAdd: true,
|
|
363
362
|
size: "small",
|
|
364
363
|
onChange: onHistory,
|
|
365
|
-
className: classnames(
|
|
364
|
+
className: classnames('ccs-keep-alive-tabs', _defineProperty({}, 'dark', isDark)),
|
|
366
365
|
activeKey: activeKey,
|
|
367
366
|
type: "editable-card",
|
|
368
367
|
onEdit: function onEdit(e) {
|
|
@@ -15,34 +15,34 @@
|
|
|
15
15
|
flex-direction: column;
|
|
16
16
|
overflow: hidden;
|
|
17
17
|
|
|
18
|
-
&-tabs-colorful {
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
// &-tabs-colorful {
|
|
19
|
+
// & > .ant-tabs-nav {
|
|
20
|
+
// margin: 0;
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
// &::before {
|
|
23
|
+
// background: #fff;
|
|
24
|
+
// opacity: 0.1;
|
|
25
|
+
// position: absolute;
|
|
26
|
+
// inset: 0;
|
|
27
|
+
// }
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
// .ant-tabs-tab-active {
|
|
30
|
+
// background-color: #fff;
|
|
31
|
+
// }
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
// .ant-tabs-tab {
|
|
34
|
+
// border: 0;
|
|
35
|
+
// padding: 6px 16px !important;
|
|
36
|
+
// border-radius: 0 !important;
|
|
37
|
+
// }
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
39
|
+
// .ant-tabs-tab,
|
|
40
|
+
// .ant-tabs-tab-remove,
|
|
41
|
+
// .ant-tabs-extra-content > .ant-dropdown-trigger {
|
|
42
|
+
// color: #03a9f4;
|
|
43
|
+
// }
|
|
44
|
+
// }
|
|
45
|
+
// }
|
|
46
46
|
|
|
47
47
|
&-nav {
|
|
48
48
|
margin: 0;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { UploadProps as AntUploadProps, UploadChangeParam } from 'antd/es/upload';
|
|
2
|
+
export type UploadRequest = (file: File, options?: Record<string, any>) => Promise<{
|
|
3
|
+
/** 成功标识 */
|
|
4
|
+
success: boolean;
|
|
5
|
+
/** 返回文件id */
|
|
6
|
+
data: string;
|
|
7
|
+
/** 异常消息 */
|
|
8
|
+
msg?: string;
|
|
9
|
+
}>;
|
|
10
|
+
type FileValue = {
|
|
11
|
+
/** 文件ID */
|
|
12
|
+
fileId: string;
|
|
13
|
+
/** 文件名称 */
|
|
14
|
+
name: string;
|
|
15
|
+
};
|
|
16
|
+
export type UploadProps = Pick<AntUploadProps, 'maxCount' | 'data' | 'multiple' | 'accept' | 'name' | 'headers'> & {
|
|
17
|
+
/** 最大文件数 */
|
|
18
|
+
maxFileSize?: number;
|
|
19
|
+
/** 上传按钮文本 */
|
|
20
|
+
uploadText?: string;
|
|
21
|
+
/** 图片下载地址 */
|
|
22
|
+
fileDownloadUrl?: string;
|
|
23
|
+
/** 文件id */
|
|
24
|
+
value?: string | string[] | FileValue[];
|
|
25
|
+
/** 上传change事件 */
|
|
26
|
+
onChange?: (value: any) => void;
|
|
27
|
+
/** 上传请求 */
|
|
28
|
+
uploadRequest: UploadRequest;
|
|
29
|
+
};
|
|
30
|
+
export type FileUploadList = UploadChangeParam['fileList'][0] & {
|
|
31
|
+
fileId?: string;
|
|
32
|
+
};
|
|
33
|
+
export type UploadImageProps = UploadProps & {
|
|
34
|
+
crop?: boolean;
|
|
35
|
+
};
|
|
36
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/es/upload/index.d.ts
CHANGED
|
@@ -1,40 +1,8 @@
|
|
|
1
|
-
import { UploadProps } from '
|
|
2
|
-
import { UploadChangeParam } from 'antd/es/upload';
|
|
3
|
-
import { RecordType } from '../ccs';
|
|
1
|
+
import { FileUploadList, UploadProps } from './_api';
|
|
4
2
|
import { ImageUpload } from './upload-image';
|
|
5
|
-
type FileValue = {
|
|
6
|
-
/** 文件ID */
|
|
7
|
-
fileId: string;
|
|
8
|
-
/** 文件名称 */
|
|
9
|
-
name: string;
|
|
10
|
-
};
|
|
11
|
-
export type CcsUploadProps = Pick<UploadProps, 'maxCount' | 'data' | 'multiple' | 'accept' | 'name' | 'headers'> & {
|
|
12
|
-
/** 最大文件数 */
|
|
13
|
-
maxFileSize?: number;
|
|
14
|
-
/** 上传按钮文本 */
|
|
15
|
-
uploadText?: string;
|
|
16
|
-
/** 图片下载地址 */
|
|
17
|
-
fileDownloadUrl?: string;
|
|
18
|
-
/** 文件id */
|
|
19
|
-
value?: string | string[] | FileValue[];
|
|
20
|
-
/** 上传change事件 */
|
|
21
|
-
onChange?: (value: any) => void;
|
|
22
|
-
/** 上传请求 */
|
|
23
|
-
uploadRequest: (file: File, options?: RecordType) => Promise<{
|
|
24
|
-
/** 成功标识 */
|
|
25
|
-
success: boolean;
|
|
26
|
-
/** 返回文件id */
|
|
27
|
-
data: string;
|
|
28
|
-
/** 异常消息 */
|
|
29
|
-
msg?: string;
|
|
30
|
-
}>;
|
|
31
|
-
};
|
|
32
|
-
export type FileUploadList = UploadChangeParam['fileList'][0] & {
|
|
33
|
-
fileId?: string;
|
|
34
|
-
};
|
|
35
3
|
/** 生成图片默认值 */
|
|
36
|
-
export declare function uploadDefaultFlies(value:
|
|
37
|
-
declare function CustomUpload({ value, uploadText, maxCount, maxFileSize, fileDownloadUrl, uploadRequest, onChange, ...otherProps }:
|
|
4
|
+
export declare function uploadDefaultFlies(value: UploadProps['value'], fileDownloadUrl: string): FileUploadList[];
|
|
5
|
+
declare function CustomUpload({ value, uploadText, maxCount, maxFileSize, fileDownloadUrl, uploadRequest, onChange, ...otherProps }: UploadProps): import("react/jsx-runtime").JSX.Element;
|
|
38
6
|
declare namespace CustomUpload {
|
|
39
7
|
var Image: typeof ImageUpload;
|
|
40
8
|
var displayName: string;
|
package/es/upload/index.js
CHANGED
|
@@ -21,8 +21,9 @@ import { Button, Upload, message } from 'antd';
|
|
|
21
21
|
import { useState } from 'react';
|
|
22
22
|
import CcsDialog from "../dialog";
|
|
23
23
|
import { ImageUpload } from "./upload-image";
|
|
24
|
-
|
|
24
|
+
|
|
25
25
|
/** 生成图片默认值 */
|
|
26
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
26
27
|
export function uploadDefaultFlies(value, fileDownloadUrl) {
|
|
27
28
|
if (Array.isArray(value)) {
|
|
28
29
|
return value.map(function (v) {
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
crop?: boolean;
|
|
4
|
-
};
|
|
5
|
-
export declare function ImageUpload({ uploadText, maxCount, maxFileSize, crop, value, fileDownloadUrl, uploadRequest, onChange, ...otherProps }: CcsImageUploadProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export {};
|
|
1
|
+
import { UploadImageProps } from './_api';
|
|
2
|
+
export declare function ImageUpload({ uploadText, maxCount, maxFileSize, crop, value, fileDownloadUrl, uploadRequest, onChange, ...otherProps }: UploadImageProps): import("react/jsx-runtime").JSX.Element;
|