@zat-design/sisyphus-react 4.5.0 → 4.5.2
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/dist/index.esm.css +1 -1
- package/dist/less.esm.css +1 -1
- package/es/ProDrawerForm/components/ProDrawer/index.js +58 -86
- package/es/ProDrawerForm/components/ProModal/index.js +44 -20
- package/es/ProDrawerForm/hooks/useConfirmClose.js +70 -0
- package/es/ProDrawerForm/index.js +7 -11
- package/es/ProDrawerForm/utils/index.js +36 -0
- package/es/ProEditTable/components/RcTable/BaseTable.js +10 -0
- package/es/ProEditTable/components/Summary/index.js +3 -2
- package/es/ProEditTable/utils/tools.js +1 -1
- package/es/ProEnum/index.js +6 -3
- package/es/ProForm/components/combination/FormList/components/ActionButton.js +7 -6
- package/es/ProForm/components/combination/FormList/components/ToolbarButton.js +4 -3
- package/es/ProForm/components/combination/ProModalSelect/index.js +7 -2
- package/es/ProForm/components/combination/ProModalSelect/utils/mergeSelectedRows.js +26 -0
- package/es/ProForm/components/render/RenderFields.js +3 -1
- package/es/ProForm/hooks/useWatch.js +8 -10
- package/es/ProLayout/components/ProHeader/index.js +28 -15
- package/es/ProSelect/index.js +77 -178
- package/es/ProSelect/utils/index.js +174 -0
- package/es/ProTree/components/ProTreeSelect/index.js +41 -14
- package/es/ProTree/components/ProTreeSelect/style/index.less +13 -4
- package/es/ProTree/style/index.less +20 -9
- package/es/ProTree/utils.js +26 -0
- package/es/ProTreeModal/style/index.less +1 -1
- package/es/ProUpload/components/DragRender.js +2 -1
- package/es/ProUpload/index.js +1 -1
- package/es/ProViewer/propsType.js +3 -1
- package/es/index.js +10 -0
- package/package.json +7 -13
- package/es/FormsProvider/index.d.ts +0 -18
- package/es/ProAction/components/CheckModalContent/index.d.ts +0 -8
- package/es/ProAction/index.d.ts +0 -7
- package/es/ProAction/propsType.d.ts +0 -45
- package/es/ProConfigProvider/index.d.ts +0 -9
- package/es/ProConfigProvider/propsType.d.ts +0 -78
- package/es/ProDownload/index.d.ts +0 -6
- package/es/ProDownload/propsType.d.ts +0 -71
- package/es/ProDownload/utils.d.ts +0 -60
- package/es/ProDrawerForm/components/ProDrawer/index.d.ts +0 -7
- package/es/ProDrawerForm/components/ProModal/index.d.ts +0 -7
- package/es/ProDrawerForm/components/index.d.ts +0 -2
- package/es/ProDrawerForm/index.d.ts +0 -6
- package/es/ProDrawerForm/propsType.d.ts +0 -100
- package/es/ProDrawerForm/utils/index.d.ts +0 -6
- package/es/ProEditLabel/components/RenderProForm.d.ts +0 -4
- package/es/ProEditLabel/index.d.ts +0 -4
- package/es/ProEditLabel/propsType.d.ts +0 -163
- package/es/ProEditLabel/utils/index.d.ts +0 -7
- package/es/ProEditTable/components/ActionButton/index.d.ts +0 -2
- package/es/ProEditTable/components/RcTable/BaseTable.d.ts +0 -6
- package/es/ProEditTable/components/RcTable/DraggableTable.d.ts +0 -7
- package/es/ProEditTable/components/RcTable/index.d.ts +0 -4
- package/es/ProEditTable/components/RenderField/ListChangedWrapper.d.ts +0 -4
- package/es/ProEditTable/components/RenderField/index.d.ts +0 -3
- package/es/ProEditTable/components/RenderField/propsType.d.ts +0 -30
- package/es/ProEditTable/components/RenderField/tools.d.ts +0 -22
- package/es/ProEditTable/components/RenderToolbar/index.d.ts +0 -2
- package/es/ProEditTable/components/Summary/index.d.ts +0 -12
- package/es/ProEditTable/components/Validator/index.d.ts +0 -19
- package/es/ProEditTable/components/index.d.ts +0 -5
- package/es/ProEditTable/index.d.ts +0 -4
- package/es/ProEditTable/propsType.d.ts +0 -437
- package/es/ProEditTable/utils/config.d.ts +0 -25
- package/es/ProEditTable/utils/diffOriginal.d.ts +0 -22
- package/es/ProEditTable/utils/getDefaultProps.d.ts +0 -1
- package/es/ProEditTable/utils/index.d.ts +0 -23
- package/es/ProEditTable/utils/tools.d.ts +0 -128
- package/es/ProEditTable/utils/transform.d.ts +0 -13
- package/es/ProEditTable/utils/useEditTableError.d.ts +0 -7
- package/es/ProEditTable/utils/useShouldUpdateForTable.d.ts +0 -16
- package/es/ProEditTable/utils/validateAll.d.ts +0 -89
- package/es/ProEnum/components/Group.d.ts +0 -10
- package/es/ProEnum/components/Tag.d.ts +0 -7
- package/es/ProEnum/hooks/useEnum.d.ts +0 -29
- package/es/ProEnum/hooks/useEnumRequest.d.ts +0 -4
- package/es/ProEnum/hooks/useFrequentEnumRequest.d.ts +0 -14
- package/es/ProEnum/index.d.ts +0 -10
- package/es/ProEnum/propsType.d.ts +0 -310
- package/es/ProEnum/utils/eventCenter.d.ts +0 -1
- package/es/ProEnum/utils/frequentEnum.d.ts +0 -39
- package/es/ProEnum/utils/getEnum.d.ts +0 -47
- package/es/ProEnum/utils/getEnumLabel.d.ts +0 -2
- package/es/ProEnum/utils/index.d.ts +0 -84
- package/es/ProForm/components/Container.d.ts +0 -9
- package/es/ProForm/components/FormFooter/index.d.ts +0 -5
- package/es/ProForm/components/FormFooter/propsType.d.ts +0 -22
- package/es/ProForm/components/base/Checkbox/index.d.ts +0 -14
- package/es/ProForm/components/base/DatePicker/index.d.ts +0 -11
- package/es/ProForm/components/base/Input/index.d.ts +0 -3
- package/es/ProForm/components/base/Input/propsType.d.ts +0 -21
- package/es/ProForm/components/base/InputNumber/index.d.ts +0 -11
- package/es/ProForm/components/base/Radio/index.d.ts +0 -15
- package/es/ProForm/components/base/RangePicker/index.d.ts +0 -19
- package/es/ProForm/components/base/RangePicker/useDateRange.d.ts +0 -15
- package/es/ProForm/components/base/Select/index.d.ts +0 -11
- package/es/ProForm/components/base/Switch/index.d.ts +0 -10
- package/es/ProForm/components/base/SwitchCheckbox/index.d.ts +0 -10
- package/es/ProForm/components/base/TextArea/index.d.ts +0 -11
- package/es/ProForm/components/base/TimePicker/index.d.ts +0 -13
- package/es/ProForm/components/combination/Container/index.d.ts +0 -4
- package/es/ProForm/components/combination/Container/propsType.d.ts +0 -13
- package/es/ProForm/components/combination/FormList/components/ActionButton.d.ts +0 -24
- package/es/ProForm/components/combination/FormList/components/BlockFields.d.ts +0 -23
- package/es/ProForm/components/combination/FormList/components/Empty.d.ts +0 -13
- package/es/ProForm/components/combination/FormList/components/LineFields.d.ts +0 -20
- package/es/ProForm/components/combination/FormList/components/ToolbarButton.d.ts +0 -12
- package/es/ProForm/components/combination/FormList/index.d.ts +0 -4
- package/es/ProForm/components/combination/FormList/propsType.d.ts +0 -69
- package/es/ProForm/components/combination/FormList/utils.d.ts +0 -18
- package/es/ProForm/components/combination/Group/component/AddonWrapper/index.d.ts +0 -9
- package/es/ProForm/components/combination/Group/component/ComRender.d.ts +0 -28
- package/es/ProForm/components/combination/Group/component/FlexibleGroup.d.ts +0 -10
- package/es/ProForm/components/combination/Group/hooks/index.d.ts +0 -34
- package/es/ProForm/components/combination/Group/index.d.ts +0 -9
- package/es/ProForm/components/combination/Group/propsType.d.ts +0 -99
- package/es/ProForm/components/combination/Group/utils/index.d.ts +0 -154
- package/es/ProForm/components/combination/ProCascader/index.d.ts +0 -4
- package/es/ProForm/components/combination/ProCascader/propsType.d.ts +0 -48
- package/es/ProForm/components/combination/ProCascader/utils/index.d.ts +0 -14
- package/es/ProForm/components/combination/ProModalSelect/hooks/useRequestList.d.ts +0 -33
- package/es/ProForm/components/combination/ProModalSelect/index.d.ts +0 -4
- package/es/ProForm/components/combination/ProModalSelect/propsType.d.ts +0 -106
- package/es/ProForm/components/combination/ProModalSelect/utils/index.d.ts +0 -1
- package/es/ProForm/components/combination/ProNumberRange/index.d.ts +0 -4
- package/es/ProForm/components/combination/ProNumberRange/propsType.d.ts +0 -85
- package/es/ProForm/components/combination/ProRangeLimit/index.d.ts +0 -4
- package/es/ProForm/components/combination/ProRangeLimit/propsType.d.ts +0 -23
- package/es/ProForm/components/combination/ProTimeLimit/hooks/useControlled.d.ts +0 -9
- package/es/ProForm/components/combination/ProTimeLimit/index.d.ts +0 -33
- package/es/ProForm/components/index.d.ts +0 -29
- package/es/ProForm/components/render/ChangedWrapper.d.ts +0 -17
- package/es/ProForm/components/render/ConfirmWrapper.d.ts +0 -10
- package/es/ProForm/components/render/CustomComponentViewWrapper.d.ts +0 -30
- package/es/ProForm/components/render/Render.d.ts +0 -4
- package/es/ProForm/components/render/RenderFields.d.ts +0 -26
- package/es/ProForm/components/render/propsType.d.ts +0 -279
- package/es/ProForm/hooks/useControlled.d.ts +0 -1
- package/es/ProForm/hooks/useDeepCompareMemo.d.ts +0 -2
- package/es/ProForm/hooks/useFieldProps.d.ts +0 -4
- package/es/ProForm/hooks/useForm.d.ts +0 -8
- package/es/ProForm/hooks/useRules.d.ts +0 -16
- package/es/ProForm/hooks/useShouldUpdate.d.ts +0 -31
- package/es/ProForm/hooks/useWatch.d.ts +0 -22
- package/es/ProForm/index.d.ts +0 -6
- package/es/ProForm/propsType.d.ts +0 -143
- package/es/ProForm/utils/buildFormItemProps.d.ts +0 -25
- package/es/ProForm/utils/diffOriginal.d.ts +0 -10
- package/es/ProForm/utils/getDefaultProps.d.ts +0 -1
- package/es/ProForm/utils/index.d.ts +0 -109
- package/es/ProForm/utils/processDependencies.d.ts +0 -29
- package/es/ProForm/utils/reactiveValues.d.ts +0 -34
- package/es/ProForm/utils/rulesCreator.d.ts +0 -7
- package/es/ProForm/utils/transformNames.d.ts +0 -10
- package/es/ProForm/utils/transformValue.d.ts +0 -6
- package/es/ProForm/utils/valueType.d.ts +0 -70
- package/es/ProIcon/config/index.d.ts +0 -19
- package/es/ProIcon/index.d.ts +0 -4
- package/es/ProIcon/propsTypes.d.ts +0 -175
- package/es/ProIcon/utils/index.d.ts +0 -6
- package/es/ProLayout/components/Layout/Header/index.d.ts +0 -4
- package/es/ProLayout/components/Layout/Menu/FoldMenu/index.d.ts +0 -3
- package/es/ProLayout/components/Layout/Menu/OpenMenu/index.d.ts +0 -3
- package/es/ProLayout/components/Layout/Menu/OpenMenu/propsType.d.ts +0 -15
- package/es/ProLayout/components/Layout/Menu/SideMenu/index.d.ts +0 -3
- package/es/ProLayout/components/Layout/Menu/index.d.ts +0 -4
- package/es/ProLayout/components/Layout/Notice/index.d.ts +0 -4
- package/es/ProLayout/components/Layout/index.d.ts +0 -3
- package/es/ProLayout/components/ProCollapse/PropTypes.d.ts +0 -98
- package/es/ProLayout/components/ProCollapse/index.d.ts +0 -3
- package/es/ProLayout/components/ProFooter/PropTypes.d.ts +0 -27
- package/es/ProLayout/components/ProFooter/index.d.ts +0 -4
- package/es/ProLayout/components/ProHeader/PropTypes.d.ts +0 -206
- package/es/ProLayout/components/ProHeader/components/Copy/index.d.ts +0 -4
- package/es/ProLayout/components/ProHeader/components/ProBackBtn/index.d.ts +0 -9
- package/es/ProLayout/components/ProHeader/components/ProBackBtn/propsType.d.ts +0 -4
- package/es/ProLayout/components/ProHeader/components/index.d.ts +0 -2
- package/es/ProLayout/components/ProHeader/index.d.ts +0 -4
- package/es/ProLayout/components/ProHeader/utils/index.d.ts +0 -5
- package/es/ProLayout/components/TabsManager/components/TabContextMenu.d.ts +0 -7
- package/es/ProLayout/components/TabsManager/components/TabItem.d.ts +0 -26
- package/es/ProLayout/components/TabsManager/components/TabsContext.d.ts +0 -6
- package/es/ProLayout/components/TabsManager/components/TabsHeader.d.ts +0 -10
- package/es/ProLayout/components/TabsManager/hooks/useActiveTab.d.ts +0 -6
- package/es/ProLayout/components/TabsManager/hooks/useIframeRoute.d.ts +0 -25
- package/es/ProLayout/components/TabsManager/hooks/useProLayoutTabs.d.ts +0 -18
- package/es/ProLayout/components/TabsManager/hooks/useTabsCache.d.ts +0 -31
- package/es/ProLayout/components/TabsManager/hooks/useTabsState.d.ts +0 -5
- package/es/ProLayout/components/TabsManager/index.d.ts +0 -7
- package/es/ProLayout/components/TabsManager/propTypes.d.ts +0 -89
- package/es/ProLayout/components/TabsManager/utils/index.d.ts +0 -47
- package/es/ProLayout/components/index.d.ts +0 -3
- package/es/ProLayout/index.d.ts +0 -20
- package/es/ProLayout/propTypes.d.ts +0 -533
- package/es/ProLayout/utils/index.d.ts +0 -43
- package/es/ProSelect/components/AdaptiveTooltip.d.ts +0 -4
- package/es/ProSelect/index.d.ts +0 -5
- package/es/ProSelect/propsType.d.ts +0 -160
- package/es/ProSelect/utils/index.d.ts +0 -4
- package/es/ProStep/components/Anchor/index.d.ts +0 -4
- package/es/ProStep/components/Item/index.d.ts +0 -3
- package/es/ProStep/components/LazyLoad/index.d.ts +0 -19
- package/es/ProStep/components/Listener/index.d.ts +0 -4
- package/es/ProStep/components/Step/index.d.ts +0 -5
- package/es/ProStep/index.d.ts +0 -11
- package/es/ProStep/propsType.d.ts +0 -224
- package/es/ProStep/utils/index.d.ts +0 -22
- package/es/ProStepTab/index.d.ts +0 -22
- package/es/ProStepTab/propsType.d.ts +0 -114
- package/es/ProTable/components/EditableCell/EditIcon.d.ts +0 -6
- package/es/ProTable/components/EditableCell/index.d.ts +0 -4
- package/es/ProTable/components/EditableCell/propsType.d.ts +0 -24
- package/es/ProTable/components/FormatColumn/index.d.ts +0 -22
- package/es/ProTable/components/FormatColumn/propsType.d.ts +0 -29
- package/es/ProTable/components/RcTable/components/BaseTable/index.d.ts +0 -3
- package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.d.ts +0 -18
- package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/index.d.ts +0 -8
- package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/propsType.d.ts +0 -61
- package/es/ProTable/components/RcTable/components/DraggableTable/index.d.ts +0 -3
- package/es/ProTable/components/RcTable/index.d.ts +0 -4
- package/es/ProTable/components/RenderColumn/index.d.ts +0 -22
- package/es/ProTable/components/RenderEmptyText/index.d.ts +0 -3
- package/es/ProTable/components/RenderFooter/index.d.ts +0 -2
- package/es/ProTable/components/RenderSummary/index.d.ts +0 -3
- package/es/ProTable/components/RenderTableHeader/index.d.ts +0 -2
- package/es/ProTable/components/RenderTabs/index.d.ts +0 -4
- package/es/ProTable/components/TableResizable/index.d.ts +0 -13
- package/es/ProTable/components/TooltipTitle/index.d.ts +0 -11
- package/es/ProTable/components/index.d.ts +0 -31
- package/es/ProTable/hooks/useAntdTable.d.ts +0 -7
- package/es/ProTable/index.d.ts +0 -17
- package/es/ProTable/propsType.d.ts +0 -792
- package/es/ProTable/utils/columnStorage.d.ts +0 -35
- package/es/ProTable/utils/index.d.ts +0 -52
- package/es/ProTabs/components/Card/index.d.ts +0 -3
- package/es/ProTabs/components/index.d.ts +0 -1
- package/es/ProTabs/index.d.ts +0 -4
- package/es/ProTabs/propType.d.ts +0 -94
- package/es/ProThemeTools/component/ProTools/index.d.ts +0 -3
- package/es/ProThemeTools/component/index.d.ts +0 -1
- package/es/ProThemeTools/context/ThemeContext.d.ts +0 -43
- package/es/ProThemeTools/index.d.ts +0 -9
- package/es/ProThemeTools/propsType.d.ts +0 -170
- package/es/ProThemeTools/utils/index.d.ts +0 -51
- package/es/ProTooltip/index.d.ts +0 -3
- package/es/ProTooltip/propsType.d.ts +0 -57
- package/es/ProTree/components/AdaptiveTooltip.d.ts +0 -4
- package/es/ProTree/components/CloseIcon.d.ts +0 -2
- package/es/ProTree/components/List.d.ts +0 -17
- package/es/ProTree/components/ProTree.d.ts +0 -3
- package/es/ProTree/components/ProTreeSelect/index.d.ts +0 -5
- package/es/ProTree/components/ProTreeSelect/propsType.d.ts +0 -439
- package/es/ProTree/components/SearchTitle.d.ts +0 -11
- package/es/ProTree/components/Tree.d.ts +0 -27
- package/es/ProTree/components/index.d.ts +0 -4
- package/es/ProTree/index.d.ts +0 -3
- package/es/ProTree/propsType.d.ts +0 -812
- package/es/ProTree/utils.d.ts +0 -52
- package/es/ProTreeModal/components/Cascader.d.ts +0 -14
- package/es/ProTreeModal/components/CloseIcon.d.ts +0 -2
- package/es/ProTreeModal/components/List.d.ts +0 -21
- package/es/ProTreeModal/components/SearchTitle.d.ts +0 -7
- package/es/ProTreeModal/components/SortableItem.d.ts +0 -12
- package/es/ProTreeModal/components/Tree.d.ts +0 -25
- package/es/ProTreeModal/components/Trigger.d.ts +0 -21
- package/es/ProTreeModal/components/index.d.ts +0 -6
- package/es/ProTreeModal/index.d.ts +0 -4
- package/es/ProTreeModal/propsType.d.ts +0 -298
- package/es/ProTreeModal/utils.d.ts +0 -39
- package/es/ProUpload/components/ButtonRender.d.ts +0 -20
- package/es/ProUpload/components/DragRender.d.ts +0 -21
- package/es/ProUpload/components/DraggableUploadListItem.d.ts +0 -2
- package/es/ProUpload/components/Example.d.ts +0 -10
- package/es/ProUpload/components/FileItem.d.ts +0 -33
- package/es/ProUpload/components/ImageRender.d.ts +0 -19
- package/es/ProUpload/index.d.ts +0 -4
- package/es/ProUpload/propsType.d.ts +0 -264
- package/es/ProUpload/uitls.d.ts +0 -3
- package/es/ProUtils/utils/index.d.ts +0 -6
- package/es/ProViewer/index.d.ts +0 -4
- package/es/ProViewer/propsType.d.ts +0 -35
- package/es/ProWaterMark/index.d.ts +0 -4
- package/es/ProWaterMark/propsType.d.ts +0 -6
- package/es/hooks/useDraggableRow.d.ts +0 -34
- package/es/index.d.ts +0 -47
- package/es/locale/en_US.d.ts +0 -176
- package/es/locale/index.d.ts +0 -15
- package/es/locale/zh_CN.d.ts +0 -176
- package/es/tokens.d.ts +0 -83
- package/es/utils/index.d.ts +0 -20
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export type StorageType = 'localStorage' | 'sessionStorage' | 'indexedDB';
|
|
2
|
-
/** v4 默认列缓存存储类型 */
|
|
3
|
-
export declare const baseStorage: StorageType;
|
|
4
|
-
/** 单条列缓存条目结构 */
|
|
5
|
-
export interface ColumnCacheEntry {
|
|
6
|
-
startTime?: number;
|
|
7
|
-
columns?: any[];
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* 同步读取列缓存
|
|
12
|
-
* - localStorage / sessionStorage:直接同步读
|
|
13
|
-
* - indexedDB:仅命中内存缓存时同步返回,否则 undefined(业务侧需异步兜底)
|
|
14
|
-
*/
|
|
15
|
-
export declare function getColumnCacheSync(storage: StorageType, pathKey: string): ColumnCacheEntry | undefined;
|
|
16
|
-
/**
|
|
17
|
-
* 读取列缓存
|
|
18
|
-
* - localStorage / sessionStorage:同步返回
|
|
19
|
-
* - indexedDB:返回 Promise;命中内存缓存时同样走 Promise(保持调用侧一致)
|
|
20
|
-
*/
|
|
21
|
-
export declare function getColumnCache(storage: StorageType, pathKey: string): ColumnCacheEntry | undefined | Promise<ColumnCacheEntry | undefined>;
|
|
22
|
-
/**
|
|
23
|
-
* 写入列缓存
|
|
24
|
-
* - localStorage / sessionStorage:同步写
|
|
25
|
-
* - indexedDB:同步预热内存缓存 + 异步持久化(返回 Promise)
|
|
26
|
-
*/
|
|
27
|
-
export declare function setColumnCache(storage: StorageType, pathKey: string, value: ColumnCacheEntry): void | Promise<void>;
|
|
28
|
-
/**
|
|
29
|
-
* 删除列缓存
|
|
30
|
-
*/
|
|
31
|
-
export declare function removeColumnCache(storage: StorageType, pathKey: string): void | Promise<void>;
|
|
32
|
-
/**
|
|
33
|
-
* 仅供测试:重置内存缓存与 IndexedDB 可用性探测结果
|
|
34
|
-
*/
|
|
35
|
-
export declare function __resetColumnCacheForTest(): void;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 列可见性过滤:hidden 优先(antd 5.13+ 原生),show 兼容(已废弃)
|
|
3
|
-
* - hidden 为布尔值 → 直接按 hidden 决定
|
|
4
|
-
* - hidden 缺省、show 为布尔值 → 按 show 决定
|
|
5
|
-
* - hidden 缺省、show 为函数 → 调用 show() 决定
|
|
6
|
-
* - 都缺省 → 显示
|
|
7
|
-
*
|
|
8
|
-
* 返回过滤后的列与 deprecated show 使用情况,由调用方决定告警时机/去重。
|
|
9
|
-
*/
|
|
10
|
-
export declare const filterVisibleColumns: <T extends {
|
|
11
|
-
hidden?: boolean;
|
|
12
|
-
show?: boolean | (() => boolean);
|
|
13
|
-
}>(columns?: T[]) => {
|
|
14
|
-
columns: T[];
|
|
15
|
-
usedShow: boolean;
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* 获取小数点后的位数
|
|
19
|
-
* @param num 数字
|
|
20
|
-
* @returns 位数
|
|
21
|
-
*/
|
|
22
|
-
export declare const getDecimalDigits: (num?: number) => number;
|
|
23
|
-
/**
|
|
24
|
-
* @description: 获取初始值
|
|
25
|
-
* @param {any} rowKey
|
|
26
|
-
* @param any value
|
|
27
|
-
* @param any originalObj
|
|
28
|
-
* @param {any} dataIndex
|
|
29
|
-
* @return {any} isChanged 返回bool值,表示存在比对
|
|
30
|
-
* @return {any} isAddCell 返回bool值,表示存在比对
|
|
31
|
-
*/
|
|
32
|
-
export declare const getOriginalValue: (value: any, record: any, originalObj: any, rowKey: any, dataIndex: any) => {
|
|
33
|
-
originalValue: any;
|
|
34
|
-
isAddCell: boolean;
|
|
35
|
-
isChanged: boolean;
|
|
36
|
-
};
|
|
37
|
-
export declare const getColumnDataIndex: (dataIndex: string | string[]) => string;
|
|
38
|
-
/**
|
|
39
|
-
* 判断数据是否为Response<List<any>>结构
|
|
40
|
-
* @param data { [key: string]: any } 需要判断数据
|
|
41
|
-
* @returns boolean 是否
|
|
42
|
-
*/
|
|
43
|
-
export declare const isListResult: (data: {
|
|
44
|
-
[key: string]: any;
|
|
45
|
-
}) => boolean;
|
|
46
|
-
export declare const getRowKey: (rowKey: any, record: any) => any;
|
|
47
|
-
/** 移除对象中的 null , undefined, '' 的key */
|
|
48
|
-
export declare const removeEmptyKeys: (obj?: Record<string, any>) => {
|
|
49
|
-
[k: string]: any;
|
|
50
|
-
};
|
|
51
|
-
/** 判断是有值的对象 */
|
|
52
|
-
export declare const isNonEmptyObject: (obj: any) => obj is Record<string, any>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Card } from './Card';
|
package/es/ProTabs/index.d.ts
DELETED
package/es/ProTabs/propType.d.ts
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { TabsProps } from 'antd';
|
|
3
|
-
import { Service, Options, Result } from 'ahooks/lib/useRequest/src/types';
|
|
4
|
-
export interface CardType {
|
|
5
|
-
/**
|
|
6
|
-
* @description 卡片标题
|
|
7
|
-
* @default -
|
|
8
|
-
*/
|
|
9
|
-
title: string | React.ReactNode;
|
|
10
|
-
/**
|
|
11
|
-
* @description 卡片数量
|
|
12
|
-
* @default -
|
|
13
|
-
*/
|
|
14
|
-
total: number;
|
|
15
|
-
/**
|
|
16
|
-
* @description 卡片标签
|
|
17
|
-
* @default -
|
|
18
|
-
*/
|
|
19
|
-
label: string | React.ReactNode;
|
|
20
|
-
/**
|
|
21
|
-
* @description 卡片图标
|
|
22
|
-
* @default -
|
|
23
|
-
*/
|
|
24
|
-
icon: React.ReactNode;
|
|
25
|
-
/**
|
|
26
|
-
* @description 卡片模式
|
|
27
|
-
* @default card
|
|
28
|
-
*/
|
|
29
|
-
mode?: TabModeEnum;
|
|
30
|
-
/**
|
|
31
|
-
* @description 卡片是否加载中
|
|
32
|
-
* @default false
|
|
33
|
-
*/
|
|
34
|
-
loading?: boolean;
|
|
35
|
-
[key: string]: any;
|
|
36
|
-
}
|
|
37
|
-
export interface ProTabsItemType extends CardType {
|
|
38
|
-
/**
|
|
39
|
-
* @description 卡片唯一key
|
|
40
|
-
* @default -
|
|
41
|
-
*/
|
|
42
|
-
key: string;
|
|
43
|
-
/**
|
|
44
|
-
* @description 卡片内容
|
|
45
|
-
* @default -
|
|
46
|
-
*/
|
|
47
|
-
children?: React.ReactNode;
|
|
48
|
-
/**
|
|
49
|
-
* @description 卡片是否禁用
|
|
50
|
-
* @default false
|
|
51
|
-
*/
|
|
52
|
-
disabled?: boolean;
|
|
53
|
-
[key: string]: any;
|
|
54
|
-
}
|
|
55
|
-
export interface ProTabsActionType {
|
|
56
|
-
/**
|
|
57
|
-
* @description 获取发生请求的 useRequest 的 ref
|
|
58
|
-
* @default -
|
|
59
|
-
*/
|
|
60
|
-
useRequestRef: Result<any, any>;
|
|
61
|
-
}
|
|
62
|
-
export type TabModeEnum = 'card' | 'line';
|
|
63
|
-
export interface ProTabsType extends Omit<TabsProps, 'items' | 'onChange'> {
|
|
64
|
-
/**
|
|
65
|
-
* @description 卡片数据源
|
|
66
|
-
* @default -
|
|
67
|
-
*/
|
|
68
|
-
dataSource: ProTabsItemType[];
|
|
69
|
-
/**
|
|
70
|
-
* @description 是否开启tab切换查询
|
|
71
|
-
* @default false
|
|
72
|
-
*/
|
|
73
|
-
tabSearch?: boolean;
|
|
74
|
-
onChange?: (activeKey: string, useRequest: Result<any, any>) => void;
|
|
75
|
-
/**
|
|
76
|
-
* @description card:卡片模式 tab tab模式
|
|
77
|
-
* @default card
|
|
78
|
-
*/
|
|
79
|
-
mode?: TabModeEnum;
|
|
80
|
-
/**
|
|
81
|
-
* @description 远程请求接口
|
|
82
|
-
* @default -
|
|
83
|
-
*/
|
|
84
|
-
useRequest?: {
|
|
85
|
-
service: Service<any, any>;
|
|
86
|
-
options?: Options<any, any>;
|
|
87
|
-
};
|
|
88
|
-
/**
|
|
89
|
-
* @description 卡片大小
|
|
90
|
-
* @default default
|
|
91
|
-
*/
|
|
92
|
-
size?: 'small' | 'middle' | 'large';
|
|
93
|
-
[key: string]: any;
|
|
94
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as ProTools } from './ProTools';
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import type { LocalThemeConfigType } from '../propsType';
|
|
3
|
-
export interface AntdThemeConfigType {
|
|
4
|
-
token?: {
|
|
5
|
-
colorPrimary?: string;
|
|
6
|
-
[key: string]: any;
|
|
7
|
-
};
|
|
8
|
-
components?: {
|
|
9
|
-
[key: string]: any;
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
export interface ThemeStateType {
|
|
13
|
-
localConfig: LocalThemeConfigType;
|
|
14
|
-
antdConfig: AntdThemeConfigType;
|
|
15
|
-
cssVariables: Record<string, any>;
|
|
16
|
-
}
|
|
17
|
-
interface ThemeContextType {
|
|
18
|
-
state: ThemeStateType;
|
|
19
|
-
updateLocalConfig: (config: Partial<LocalThemeConfigType>) => void;
|
|
20
|
-
updateAntdConfig: (config: AntdThemeConfigType) => void;
|
|
21
|
-
updateCssVariables: (variables: Record<string, any>) => void;
|
|
22
|
-
resetTheme: () => void;
|
|
23
|
-
loadFromCache: (cacheState: ThemeStateType) => void;
|
|
24
|
-
}
|
|
25
|
-
declare const defaultThemeConfig: LocalThemeConfigType;
|
|
26
|
-
export declare const registerThemeUpdaters: (updaters: {
|
|
27
|
-
updateAntdConfig: (config: AntdThemeConfigType) => void;
|
|
28
|
-
updateCssVariables: (variables: Record<string, any>) => void;
|
|
29
|
-
updateLocalConfig: (config: Partial<LocalThemeConfigType>) => void;
|
|
30
|
-
}) => void;
|
|
31
|
-
export declare const getThemeUpdaters: () => {
|
|
32
|
-
updateAntdConfig: (config: AntdThemeConfigType) => void;
|
|
33
|
-
updateCssVariables: (variables: Record<string, any>) => void;
|
|
34
|
-
updateLocalConfig: (config: Partial<LocalThemeConfigType>) => void;
|
|
35
|
-
};
|
|
36
|
-
interface ThemeProviderProps {
|
|
37
|
-
children: ReactNode;
|
|
38
|
-
initialLocalConfig?: Partial<LocalThemeConfigType>;
|
|
39
|
-
initialAntdConfig?: AntdThemeConfigType;
|
|
40
|
-
}
|
|
41
|
-
export declare const ThemeProvider: React.FC<ThemeProviderProps>;
|
|
42
|
-
export declare const useTheme: () => ThemeContextType;
|
|
43
|
-
export { defaultThemeConfig };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { ProThemeToolsType } from './propsType';
|
|
2
|
-
declare const ProThemeTools: {
|
|
3
|
-
({ size, className, cacheTime, color, mode, iconFollowTheme, prefixCls, tableBorder, tableStripe, theme, onChange, ...props }: ProThemeToolsType): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
setThemes: (themes: import("./utils/index").ThemesProps) => boolean;
|
|
5
|
-
};
|
|
6
|
-
export default ProThemeTools;
|
|
7
|
-
export { ThemeProvider, useTheme } from './context/ThemeContext';
|
|
8
|
-
export type { AntdThemeConfigType, ThemeStateType } from './context/ThemeContext';
|
|
9
|
-
export type { LocalThemeConfigType, ProThemeToolsType } from './propsType';
|
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
export interface DevToolsPropsType {
|
|
2
|
-
/**
|
|
3
|
-
* @description 重置配置回调函数
|
|
4
|
-
* @default -
|
|
5
|
-
*/
|
|
6
|
-
onReset: () => void;
|
|
7
|
-
/**
|
|
8
|
-
* @description 关闭工具回调函数
|
|
9
|
-
* @default -
|
|
10
|
-
*/
|
|
11
|
-
onClose: () => void;
|
|
12
|
-
/**
|
|
13
|
-
* @description 复制配置回调函数
|
|
14
|
-
* @default -
|
|
15
|
-
*/
|
|
16
|
-
onCopy?: () => void;
|
|
17
|
-
/**
|
|
18
|
-
* @description 设置状态函数
|
|
19
|
-
* @default -
|
|
20
|
-
*/
|
|
21
|
-
setState: any;
|
|
22
|
-
/**
|
|
23
|
-
* @description 是否打开工具
|
|
24
|
-
* @default false
|
|
25
|
-
*/
|
|
26
|
-
open: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* @description 当前主题配置状态
|
|
29
|
-
* @default -
|
|
30
|
-
*/
|
|
31
|
-
state: LocalThemeConfigType;
|
|
32
|
-
/**
|
|
33
|
-
* @description 是否有表格边框
|
|
34
|
-
* @default false
|
|
35
|
-
*/
|
|
36
|
-
tableBorder?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* @description 是否有斑马纹
|
|
39
|
-
* @default false
|
|
40
|
-
*/
|
|
41
|
-
tableStripe?: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* @description 统一样式前缀
|
|
44
|
-
* @default "ant"
|
|
45
|
-
*/
|
|
46
|
-
prefixCls?: string;
|
|
47
|
-
}
|
|
48
|
-
export interface ProThemeToolsType {
|
|
49
|
-
/**
|
|
50
|
-
* @description 主题工具大小
|
|
51
|
-
* @default -
|
|
52
|
-
*/
|
|
53
|
-
size?: number;
|
|
54
|
-
/**
|
|
55
|
-
* @description 主题颜色
|
|
56
|
-
* @default -
|
|
57
|
-
*/
|
|
58
|
-
color?: string;
|
|
59
|
-
/**
|
|
60
|
-
* @description 工具模式:开发模式或生产模式
|
|
61
|
-
* @default "prd"
|
|
62
|
-
*/
|
|
63
|
-
mode?: 'dev' | 'prd';
|
|
64
|
-
/**
|
|
65
|
-
* @description 缓存时间,可设置为数字或布尔值
|
|
66
|
-
* @default -
|
|
67
|
-
*/
|
|
68
|
-
cacheTime?: number | boolean;
|
|
69
|
-
/**
|
|
70
|
-
* @description 主题配置信息
|
|
71
|
-
* @default -
|
|
72
|
-
*/
|
|
73
|
-
theme?: any;
|
|
74
|
-
/**
|
|
75
|
-
* @description icon是否跟随主题色
|
|
76
|
-
* @default false
|
|
77
|
-
*/
|
|
78
|
-
iconFollowTheme?: boolean;
|
|
79
|
-
/**
|
|
80
|
-
* @description 是否有表格边框
|
|
81
|
-
* @default false
|
|
82
|
-
*/
|
|
83
|
-
tableBorder?: boolean;
|
|
84
|
-
/**
|
|
85
|
-
* @description 是否有斑马纹
|
|
86
|
-
* @default false
|
|
87
|
-
*/
|
|
88
|
-
tableStripe?: boolean;
|
|
89
|
-
/**
|
|
90
|
-
* @description 统一样式前缀
|
|
91
|
-
* @default "ant"
|
|
92
|
-
*/
|
|
93
|
-
prefixCls?: string;
|
|
94
|
-
/**
|
|
95
|
-
* @description 主题变更回调函数
|
|
96
|
-
* @default -
|
|
97
|
-
*/
|
|
98
|
-
onChange?: (record: any) => void;
|
|
99
|
-
/**
|
|
100
|
-
* @description 允许扩展字段
|
|
101
|
-
*/
|
|
102
|
-
[key: string]: any;
|
|
103
|
-
}
|
|
104
|
-
export interface LocalThemeConfigType {
|
|
105
|
-
/**
|
|
106
|
-
* @description 品牌色
|
|
107
|
-
* @default -
|
|
108
|
-
*/
|
|
109
|
-
zauiBrand?: string;
|
|
110
|
-
/**
|
|
111
|
-
* @description 文本色
|
|
112
|
-
* @default -
|
|
113
|
-
*/
|
|
114
|
-
zauiText?: string;
|
|
115
|
-
/**
|
|
116
|
-
* @description 字体大小
|
|
117
|
-
* @default -
|
|
118
|
-
*/
|
|
119
|
-
zauiFontSize?: string;
|
|
120
|
-
/**
|
|
121
|
-
* @description 表单对齐方式
|
|
122
|
-
* @default -
|
|
123
|
-
*/
|
|
124
|
-
zauiFormAlign?: string;
|
|
125
|
-
/**
|
|
126
|
-
* @description 表单必填项后缀
|
|
127
|
-
* @default -
|
|
128
|
-
*/
|
|
129
|
-
zauiFormRequiredAfter?: string;
|
|
130
|
-
/**
|
|
131
|
-
* @description 表单必填项前缀
|
|
132
|
-
* @default -
|
|
133
|
-
*/
|
|
134
|
-
zauiFormRequiredBefore?: string;
|
|
135
|
-
/**
|
|
136
|
-
* @description 尺寸大小
|
|
137
|
-
* @default -
|
|
138
|
-
*/
|
|
139
|
-
zauiSize?: number;
|
|
140
|
-
/**
|
|
141
|
-
* @description 大间距
|
|
142
|
-
* @default -
|
|
143
|
-
*/
|
|
144
|
-
zauiSpaceSizeLg?: string;
|
|
145
|
-
/**
|
|
146
|
-
* @description 中间距
|
|
147
|
-
* @default -
|
|
148
|
-
*/
|
|
149
|
-
zauiSpaceSizeMd?: string;
|
|
150
|
-
/**
|
|
151
|
-
* @description 大字号模式
|
|
152
|
-
* @default false
|
|
153
|
-
*/
|
|
154
|
-
zauiBigText?: boolean;
|
|
155
|
-
/**
|
|
156
|
-
* @description 是否有表格边框
|
|
157
|
-
* @default false
|
|
158
|
-
*/
|
|
159
|
-
zauiTableBorder?: boolean;
|
|
160
|
-
/**
|
|
161
|
-
* @description 是否有斑马纹
|
|
162
|
-
* @default false
|
|
163
|
-
*/
|
|
164
|
-
zauiStripe?: boolean;
|
|
165
|
-
/**
|
|
166
|
-
* @description 基础字体大小
|
|
167
|
-
* @default -
|
|
168
|
-
*/
|
|
169
|
-
zauiBaseFontSize?: string;
|
|
170
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
export interface ThemesProps {
|
|
2
|
-
[key: string]: any;
|
|
3
|
-
}
|
|
4
|
-
declare let getThemeUpdaters: (() => {
|
|
5
|
-
updateAntdConfig: ((config: any) => void) | null;
|
|
6
|
-
updateCssVariables: ((variables: Record<string, any>) => void) | null;
|
|
7
|
-
updateLocalConfig: ((config: any) => void) | null;
|
|
8
|
-
}) | null;
|
|
9
|
-
export declare const setThemeUpdatersGetter: (getter: typeof getThemeUpdaters) => void;
|
|
10
|
-
export declare const getPendingThemes: () => ThemesProps | null;
|
|
11
|
-
export declare const clearPendingThemes: () => void;
|
|
12
|
-
/**
|
|
13
|
-
* 将 kebab-case 的主题配置转换为 antd5 的 token 格式
|
|
14
|
-
* @param themes kebab-case 格式的主题配置
|
|
15
|
-
* @param themeMapping 自定义映射关系
|
|
16
|
-
*/
|
|
17
|
-
export declare const convertToAntd5Tokens: (themes: ThemesProps, themeMapping?: ThemesProps) => {
|
|
18
|
-
token: ThemesProps;
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* 设置主题变量 - antd5 兼容版本
|
|
22
|
-
* 设置 CSS 变量,并同步更新 Context 的 antdConfig
|
|
23
|
-
* @param themes 主题配置对象,会自动过滤掉 antdConfig
|
|
24
|
-
*/
|
|
25
|
-
export declare const setThemes: (themes: ThemesProps) => boolean;
|
|
26
|
-
/**
|
|
27
|
-
* 获取 antd5 主题配置
|
|
28
|
-
* @param themes kebab-case 格式的主题配置
|
|
29
|
-
*/
|
|
30
|
-
export declare const getAntd5ThemeConfig: (themes: ThemesProps) => {
|
|
31
|
-
token: ThemesProps;
|
|
32
|
-
};
|
|
33
|
-
/** JS实现驼峰命名与横线命名的转换 */
|
|
34
|
-
export declare const getKebabCase: (str: string) => string;
|
|
35
|
-
/** JS实现对象驼峰命名与横线命名的转换 */
|
|
36
|
-
export declare const getMapKebabCase: (obj: any, prefix?: string) => {
|
|
37
|
-
[k: string]: unknown;
|
|
38
|
-
};
|
|
39
|
-
/** JS实现对象横线命名与驼峰命名的转换 */
|
|
40
|
-
export declare const getMapHumpCase: (obj?: {}) => {};
|
|
41
|
-
/**
|
|
42
|
-
* 设置表格斑马纹
|
|
43
|
-
* @param stripe boolean
|
|
44
|
-
*/
|
|
45
|
-
export declare const setTableNoStripe: (stripe: boolean, prefixCls?: string) => void;
|
|
46
|
-
/**
|
|
47
|
-
* 设置表格边框
|
|
48
|
-
* @param border boolean
|
|
49
|
-
*/
|
|
50
|
-
export declare const setTableBorder: (border: boolean) => void;
|
|
51
|
-
export {};
|
package/es/ProTooltip/index.d.ts
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
export interface ProTooltipType {
|
|
3
|
-
/**
|
|
4
|
-
* 提示文本内容
|
|
5
|
-
* @description 支持字符串或React节点
|
|
6
|
-
* @default undefined
|
|
7
|
-
*/
|
|
8
|
-
text?: string | ReactNode;
|
|
9
|
-
/**
|
|
10
|
-
* 提示框宽度
|
|
11
|
-
* @description 设置提示框的宽度,支持各种CSS宽度单位
|
|
12
|
-
*/
|
|
13
|
-
width?: string | number;
|
|
14
|
-
/**
|
|
15
|
-
* 显示的行数
|
|
16
|
-
* @description 当内容超过设定行数时将截断显示
|
|
17
|
-
* @default 1
|
|
18
|
-
*/
|
|
19
|
-
line?: number;
|
|
20
|
-
/**
|
|
21
|
-
* 是否跟随父元素滚动
|
|
22
|
-
* @description 启用后,提示框将跟随父元素滚动
|
|
23
|
-
* @default true
|
|
24
|
-
*/
|
|
25
|
-
scrollFollowParent?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* 自定义类名
|
|
28
|
-
* @description 额外的CSS类名
|
|
29
|
-
* @default ''
|
|
30
|
-
*/
|
|
31
|
-
className?: string;
|
|
32
|
-
/**
|
|
33
|
-
* 子元素
|
|
34
|
-
* @description 组件包裹的内容
|
|
35
|
-
* @default null
|
|
36
|
-
*/
|
|
37
|
-
children?: ReactNode;
|
|
38
|
-
/**
|
|
39
|
-
* 自定义样式对象
|
|
40
|
-
* @description 直接应用于组件的内联样式
|
|
41
|
-
* @default {}
|
|
42
|
-
*/
|
|
43
|
-
style?: CSSProperties;
|
|
44
|
-
/**
|
|
45
|
-
* 兼容属性
|
|
46
|
-
* @description 支持传入其他属性
|
|
47
|
-
*/
|
|
48
|
-
[key: string]: any;
|
|
49
|
-
}
|
|
50
|
-
export interface ProTooltipRefObjectType<T> {
|
|
51
|
-
/** 当前引用的DOM元素 */
|
|
52
|
-
readonly current: T | null;
|
|
53
|
-
}
|
|
54
|
-
export type ProTooltipTriggerNodeType = HTMLElement & {
|
|
55
|
-
/** 父节点元素 */
|
|
56
|
-
parentNode: HTMLElement;
|
|
57
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import type { ProTreeFieldNamesType } from '../propsType';
|
|
3
|
-
interface ListProps {
|
|
4
|
-
disabled?: boolean;
|
|
5
|
-
checkedValues?: any[];
|
|
6
|
-
treeData: any[];
|
|
7
|
-
searchStr?: string;
|
|
8
|
-
showCodeName?: boolean;
|
|
9
|
-
fieldNames: ProTreeFieldNamesType;
|
|
10
|
-
mode?: 'render' | 'view';
|
|
11
|
-
handleOnChange?: (e: any, value: string) => void;
|
|
12
|
-
handleFilterClose?: (code: string) => void;
|
|
13
|
-
optionRender?: (item: any, searchStr?: string) => string | ReactNode;
|
|
14
|
-
}
|
|
15
|
-
declare function List(props: ListProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
declare const _default: import("react").MemoExoticComponent<typeof List>;
|
|
17
|
-
export default _default;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ProTreeSelectType } from './propsType';
|
|
3
|
-
export declare const ProTreeSelect: (props: ProTreeSelectType, ref: React.Ref<unknown> | undefined) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare const _default: React.ForwardRefExoticComponent<ProTreeSelectType & React.RefAttributes<unknown>>;
|
|
5
|
-
export default _default;
|