@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,29 +0,0 @@
|
|
|
1
|
-
import type { NamePath } from 'antd/es/form/interface';
|
|
2
|
-
/**
|
|
3
|
-
* 定义支持多字段依赖的类型
|
|
4
|
-
*/
|
|
5
|
-
export interface NamePathsDependencyType {
|
|
6
|
-
type: 'namesPaths';
|
|
7
|
-
paths: NamePath[][];
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* dependencies支持的类型
|
|
11
|
-
*/
|
|
12
|
-
export type Dependencies = NamePath[] | NamePathsDependencyType;
|
|
13
|
-
/**
|
|
14
|
-
* 处理表单依赖项
|
|
15
|
-
*
|
|
16
|
-
* 将常规的依赖项数组与namesPaths类型的依赖项进行处理
|
|
17
|
-
* 对于namesPaths类型,将其转换为特定格式的字符串:
|
|
18
|
-
* - 同一路径内的多级通过下划线(_)连接
|
|
19
|
-
* - 不同路径之间通过连字符(-)连接
|
|
20
|
-
*
|
|
21
|
-
* 例如:
|
|
22
|
-
* { type: 'namesPaths', paths: [['a', 'b'], ['c', 'd']] }
|
|
23
|
-
* 会被转换成: ['a_b-c_d']
|
|
24
|
-
*
|
|
25
|
-
* @param dependencies 依赖项配置
|
|
26
|
-
* @returns 处理后的依赖项数组
|
|
27
|
-
*/
|
|
28
|
-
export declare function processDependencies(dependencies?: any): any;
|
|
29
|
-
export default processDependencies;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
/** 列级响应式配置(可能为静态值或 ReactiveFunction) */
|
|
3
|
-
export interface ReactiveProps {
|
|
4
|
-
show?: any;
|
|
5
|
-
disabled?: any;
|
|
6
|
-
required?: any;
|
|
7
|
-
rules?: any;
|
|
8
|
-
fieldProps?: any;
|
|
9
|
-
desensitization?: any;
|
|
10
|
-
}
|
|
11
|
-
/** 解析后的列级响应式值 */
|
|
12
|
-
export interface ReactiveValues {
|
|
13
|
-
show: any;
|
|
14
|
-
disabled: any;
|
|
15
|
-
required: any;
|
|
16
|
-
rules: any;
|
|
17
|
-
fieldProps: any;
|
|
18
|
-
desensitization: any;
|
|
19
|
-
}
|
|
20
|
-
/** 持有解析值的 ref 集合 */
|
|
21
|
-
export interface ReactiveRefs {
|
|
22
|
-
showRef: React.MutableRefObject<any>;
|
|
23
|
-
disabledRef: React.MutableRefObject<any>;
|
|
24
|
-
requiredRef: React.MutableRefObject<any>;
|
|
25
|
-
rulesRef: React.MutableRefObject<any>;
|
|
26
|
-
fieldPropsRef: React.MutableRefObject<any>;
|
|
27
|
-
desensitizationRef: React.MutableRefObject<any>;
|
|
28
|
-
}
|
|
29
|
-
/** 按当前表单值解析 show/disabled/required/rules/fieldProps/desensitization(纯函数,无副作用) */
|
|
30
|
-
export declare const resolveReactiveValues: (reactiveProps: ReactiveProps, currentValues: any, ctx: any) => ReactiveValues;
|
|
31
|
-
/** 比较解析值与上一次 ref 值是否有变化(纯函数,无副作用) */
|
|
32
|
-
export declare const hasReactiveDiff: (refs: ReactiveRefs, next: ReactiveValues) => boolean;
|
|
33
|
-
/** 将解析值写回 ref 集合 */
|
|
34
|
-
export declare const commitReactiveValues: (refs: ReactiveRefs, next: ReactiveValues) => void;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FormInstance, FormItemProps } from 'antd';
|
|
2
|
-
import { NamePath } from 'antd/es/form/interface';
|
|
3
|
-
interface TransformProps extends FormItemProps {
|
|
4
|
-
names: NamePath[];
|
|
5
|
-
form: FormInstance;
|
|
6
|
-
namePath: any[];
|
|
7
|
-
}
|
|
8
|
-
type TransformFun = 'normalize' | 'getValueProps' | 'shouldUpdate' | 'name';
|
|
9
|
-
declare const transformNames: (formItem: TransformProps, form: FormInstance, names: NamePath[], fieldName: string, type?: string) => Pick<TransformProps, TransformFun>;
|
|
10
|
-
export default transformNames;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { FormInstance, FormItemProps } from 'antd';
|
|
2
|
-
import { NamePath } from 'antd/es/form/interface';
|
|
3
|
-
import type { StoreValue, Store } from '@rc-component/form/es/interface';
|
|
4
|
-
import type { TransformType } from '../propsType';
|
|
5
|
-
export declare const transformValue: (names: NamePath[], form: FormInstance, fieldName: NamePath, normalize?: (value: StoreValue, prevValue: StoreValue, allValues: Store) => StoreValue, getValueProps?: FormItemProps['getValueProps']) => TransformType;
|
|
6
|
-
export default transformValue;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/** 脱敏处理函数 */
|
|
2
|
-
export declare const maskStringRangeWithRegex: (input: string, range: [number, number]) => string;
|
|
3
|
-
declare const _default: {
|
|
4
|
-
/** 年月日 */
|
|
5
|
-
date: ({ type, toISOString, toCSTString, mode }: {
|
|
6
|
-
type: any;
|
|
7
|
-
toISOString: any;
|
|
8
|
-
toCSTString: any;
|
|
9
|
-
mode: any;
|
|
10
|
-
}) => {};
|
|
11
|
-
/** 年月日 时分秒 */
|
|
12
|
-
dateTime: ({ type, toISOString, toCSTString, mode }: {
|
|
13
|
-
type: any;
|
|
14
|
-
toISOString: any;
|
|
15
|
-
toCSTString: any;
|
|
16
|
-
mode: any;
|
|
17
|
-
}) => {};
|
|
18
|
-
/** 年月日 00:00:00 */
|
|
19
|
-
dateStartTime: ({ type, toISOString, toCSTString, mode }: {
|
|
20
|
-
type: any;
|
|
21
|
-
toISOString: any;
|
|
22
|
-
toCSTString: any;
|
|
23
|
-
mode: any;
|
|
24
|
-
}) => {};
|
|
25
|
-
/** 年月日 23:59:59 */
|
|
26
|
-
dateEndTime: ({ type, toISOString, toCSTString, mode }: {
|
|
27
|
-
type: any;
|
|
28
|
-
toISOString: any;
|
|
29
|
-
toCSTString: any;
|
|
30
|
-
mode: any;
|
|
31
|
-
}) => {};
|
|
32
|
-
/** 年月日 00:00:00 ~ 年月日 23:59:59 */
|
|
33
|
-
dateStartEndTime: ({ type, toISOString, toCSTString, mode }: {
|
|
34
|
-
type: any;
|
|
35
|
-
toISOString: any;
|
|
36
|
-
toCSTString: any;
|
|
37
|
-
mode: any;
|
|
38
|
-
}) => {};
|
|
39
|
-
/** 百分比 */
|
|
40
|
-
percentage: ({ type, valueType }: {
|
|
41
|
-
type: any;
|
|
42
|
-
valueType: any;
|
|
43
|
-
}) => {
|
|
44
|
-
normalize: (value: any) => any;
|
|
45
|
-
getValueProps: (value: any) => {
|
|
46
|
-
value: any;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
/** 千分比 */
|
|
50
|
-
permillage: ({ type, valueType }: {
|
|
51
|
-
type: any;
|
|
52
|
-
valueType: any;
|
|
53
|
-
}) => {
|
|
54
|
-
normalize: (value: any) => any;
|
|
55
|
-
getValueProps: (value: any) => {
|
|
56
|
-
value: any;
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
/** 开关 YN转换 */
|
|
60
|
-
switch: ({ switchValue }: {
|
|
61
|
-
switchValue: any;
|
|
62
|
-
}) => Error | {
|
|
63
|
-
normalize: (value: boolean) => any;
|
|
64
|
-
getValueProps: (value: any) => {
|
|
65
|
-
checked: boolean;
|
|
66
|
-
value: any;
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
export default _default;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export declare const iconMap: {
|
|
2
|
-
type: string;
|
|
3
|
-
'text-cn': string;
|
|
4
|
-
'text-en': string;
|
|
5
|
-
}[];
|
|
6
|
-
export declare const themeMap: {
|
|
7
|
-
'#006AFF': string[];
|
|
8
|
-
'#00BC70': string[];
|
|
9
|
-
'#FF8C16': string[];
|
|
10
|
-
'#A00F20': string[];
|
|
11
|
-
'#31AF96': string[];
|
|
12
|
-
};
|
|
13
|
-
export declare const themeFillMap: {
|
|
14
|
-
'#006AFF': string[];
|
|
15
|
-
'#00BC70': string[];
|
|
16
|
-
'#FF8C16': string[];
|
|
17
|
-
'#A00F20': string[];
|
|
18
|
-
'#31AF96': string[];
|
|
19
|
-
};
|
package/es/ProIcon/index.d.ts
DELETED
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode, MouseEventHandler, ComponentType, ReactElement } from 'react';
|
|
2
|
-
import { ButtonProps } from 'antd/lib/button';
|
|
3
|
-
/**
|
|
4
|
-
* 图标模式
|
|
5
|
-
* @description 定义图标的显示模式:纯图标或按钮形式
|
|
6
|
-
*/
|
|
7
|
-
export type ProIconModeType = 'icon' | 'button';
|
|
8
|
-
/**
|
|
9
|
-
* 图标映射对象
|
|
10
|
-
*/
|
|
11
|
-
interface ProIconMapType {
|
|
12
|
-
/**
|
|
13
|
-
* 图标类型
|
|
14
|
-
* @description 唯一标识图标的类型名称
|
|
15
|
-
* @default undefined
|
|
16
|
-
*/
|
|
17
|
-
type: string;
|
|
18
|
-
/**
|
|
19
|
-
* 中文显示文本
|
|
20
|
-
* @description 图标对应的中文描述
|
|
21
|
-
* @default undefined
|
|
22
|
-
*/
|
|
23
|
-
'text-cn'?: string;
|
|
24
|
-
/**
|
|
25
|
-
* 英文显示文本
|
|
26
|
-
* @description 图标对应的英文描述
|
|
27
|
-
* @default undefined
|
|
28
|
-
*/
|
|
29
|
-
'text-en'?: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* 主题映射对象
|
|
33
|
-
*/
|
|
34
|
-
interface ProIconThemeMapType {
|
|
35
|
-
/**
|
|
36
|
-
* 主题颜色映射
|
|
37
|
-
* @description 不同主题下的颜色值数组
|
|
38
|
-
* @default undefined
|
|
39
|
-
*/
|
|
40
|
-
[key: string]: string[];
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* 操作映射对象
|
|
44
|
-
*/
|
|
45
|
-
interface ProIconActionMapType {
|
|
46
|
-
/**
|
|
47
|
-
* 主题颜色映射
|
|
48
|
-
* @description 不同主题下的颜色映射
|
|
49
|
-
* @default undefined
|
|
50
|
-
*/
|
|
51
|
-
themeMap?: ProIconThemeMapType;
|
|
52
|
-
/**
|
|
53
|
-
* 主题填充颜色映射
|
|
54
|
-
* @description 不同主题下的填充颜色映射
|
|
55
|
-
* @default undefined
|
|
56
|
-
*/
|
|
57
|
-
themeFillMap?: ProIconThemeMapType;
|
|
58
|
-
/**
|
|
59
|
-
* 渐变色值
|
|
60
|
-
* @description 渐变色值数组
|
|
61
|
-
* @default undefined
|
|
62
|
-
*/
|
|
63
|
-
gradation?: string[];
|
|
64
|
-
/**
|
|
65
|
-
* 填充色值
|
|
66
|
-
* @description 填充色值数组
|
|
67
|
-
* @default undefined
|
|
68
|
-
*/
|
|
69
|
-
fill?: string[];
|
|
70
|
-
}
|
|
71
|
-
export interface ProIconType {
|
|
72
|
-
/**
|
|
73
|
-
* 自定义 SVG 组件
|
|
74
|
-
* @description 自定义 SVG React 组件或 SVG 文件路径,支持传入组件类型、组件实例或字符串路径,优先级高于 src 和 type
|
|
75
|
-
* @default undefined
|
|
76
|
-
*/
|
|
77
|
-
component?: ComponentType<any> | ReactElement | string;
|
|
78
|
-
/**
|
|
79
|
-
* 图标路径
|
|
80
|
-
* @description 本地import引入的图标路径
|
|
81
|
-
* @default undefined
|
|
82
|
-
*/
|
|
83
|
-
src?: string;
|
|
84
|
-
/**
|
|
85
|
-
* 图标名称
|
|
86
|
-
* @description 图标的类型名称,用于识别特定图标
|
|
87
|
-
* @default null
|
|
88
|
-
*/
|
|
89
|
-
type?: string | null;
|
|
90
|
-
/**
|
|
91
|
-
* 图标大小
|
|
92
|
-
* @description 图标的大小,同时设置图标的width以及height
|
|
93
|
-
* @default '1em'
|
|
94
|
-
*/
|
|
95
|
-
size?: number | string;
|
|
96
|
-
/**
|
|
97
|
-
* 旋转角度
|
|
98
|
-
* @description 图标旋转角度(IE9 无效)
|
|
99
|
-
* @default undefined
|
|
100
|
-
*/
|
|
101
|
-
rotate?: number;
|
|
102
|
-
/**
|
|
103
|
-
* 是否旋转
|
|
104
|
-
* @description 图标是否旋转loading效果
|
|
105
|
-
* @default false
|
|
106
|
-
*/
|
|
107
|
-
spin?: boolean;
|
|
108
|
-
/**
|
|
109
|
-
* 图标颜色
|
|
110
|
-
* @description 图标的颜色,设置svg的fill属性
|
|
111
|
-
* @default undefined
|
|
112
|
-
*/
|
|
113
|
-
color?: string;
|
|
114
|
-
/**
|
|
115
|
-
* 是否禁用
|
|
116
|
-
* @description 设置图标为禁用状态
|
|
117
|
-
* @default false
|
|
118
|
-
*/
|
|
119
|
-
disabled?: boolean;
|
|
120
|
-
/**
|
|
121
|
-
* 提示信息
|
|
122
|
-
* @description 鼠标悬停时显示的提示信息
|
|
123
|
-
* @default undefined
|
|
124
|
-
*/
|
|
125
|
-
tooltip?: string | ReactNode;
|
|
126
|
-
/**
|
|
127
|
-
* 是否跟随主题
|
|
128
|
-
* @description 是否跟随系统主题色变化
|
|
129
|
-
* @default false
|
|
130
|
-
*/
|
|
131
|
-
theme?: boolean;
|
|
132
|
-
/**
|
|
133
|
-
* 点击事件
|
|
134
|
-
* @description 图标的点击事件处理函数
|
|
135
|
-
* @default undefined
|
|
136
|
-
*/
|
|
137
|
-
onClick?: MouseEventHandler<SVGSVGElement>;
|
|
138
|
-
/**
|
|
139
|
-
* 自定义类名
|
|
140
|
-
* @description 自定义图标的CSS类名
|
|
141
|
-
* @default undefined
|
|
142
|
-
*/
|
|
143
|
-
className?: string;
|
|
144
|
-
/**
|
|
145
|
-
* 自定义样式
|
|
146
|
-
* @description 计算后的svg元素样式,优先级高于size/color/rotate属性
|
|
147
|
-
* @default {}
|
|
148
|
-
*/
|
|
149
|
-
style?: CSSProperties;
|
|
150
|
-
/**
|
|
151
|
-
* 显示模式
|
|
152
|
-
* @description 图标的显示模式:图标或按钮
|
|
153
|
-
* @default 'icon'
|
|
154
|
-
*/
|
|
155
|
-
mode?: ProIconModeType;
|
|
156
|
-
/**
|
|
157
|
-
* 按钮属性
|
|
158
|
-
* @description mode为button时的按钮属性,与antd Button接收props一致
|
|
159
|
-
* @default {}
|
|
160
|
-
*/
|
|
161
|
-
buttonProps?: ButtonProps;
|
|
162
|
-
/**
|
|
163
|
-
* 图标映射表
|
|
164
|
-
* @description 图标与中英文文本的映射表
|
|
165
|
-
* @default []
|
|
166
|
-
*/
|
|
167
|
-
mapList?: ProIconMapType[];
|
|
168
|
-
/**
|
|
169
|
-
* SVG操作表
|
|
170
|
-
* @description SVG变更操作表,用于主题配置
|
|
171
|
-
* @default undefined
|
|
172
|
-
*/
|
|
173
|
-
actionMap?: ProIconActionMapType;
|
|
174
|
-
}
|
|
175
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export interface OpenMenuPropsType {
|
|
2
|
-
dataSource: {
|
|
3
|
-
menus: any;
|
|
4
|
-
iconfontUrl: string;
|
|
5
|
-
height?: number;
|
|
6
|
-
/** 是否是折叠模式的菜单 */
|
|
7
|
-
sideMenu?: boolean;
|
|
8
|
-
};
|
|
9
|
-
[key: string]: any;
|
|
10
|
-
}
|
|
11
|
-
export interface StatePropsType {
|
|
12
|
-
selectedKeys: string[];
|
|
13
|
-
openKeys: string[];
|
|
14
|
-
router: string;
|
|
15
|
-
}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import React, { CSSProperties } from 'react';
|
|
2
|
-
import { CollapseProps, CollapsePanelProps } from 'antd/es/collapse';
|
|
3
|
-
export type levelType = '1' | '2' | '3';
|
|
4
|
-
export interface TitleListType {
|
|
5
|
-
/**
|
|
6
|
-
* @description 描述的标题
|
|
7
|
-
* @default -
|
|
8
|
-
*/
|
|
9
|
-
label: string;
|
|
10
|
-
/**
|
|
11
|
-
* @description 描述的值
|
|
12
|
-
* @default -
|
|
13
|
-
*/
|
|
14
|
-
value: string | number | undefined | React.ReactNode;
|
|
15
|
-
}
|
|
16
|
-
export interface ProCollapseType {
|
|
17
|
-
/**
|
|
18
|
-
* @description 折叠头部标题
|
|
19
|
-
* @default -
|
|
20
|
-
*/
|
|
21
|
-
title?: string | React.ReactNode;
|
|
22
|
-
/**
|
|
23
|
-
* @description 展开收起状态
|
|
24
|
-
* @default false
|
|
25
|
-
*/
|
|
26
|
-
collapsed?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* @description 自动适应窗口大小
|
|
29
|
-
* @default -
|
|
30
|
-
*/
|
|
31
|
-
autoHeight?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* @description 标题前图标
|
|
34
|
-
* @default -
|
|
35
|
-
*/
|
|
36
|
-
icon?: React.ReactNode | boolean;
|
|
37
|
-
/**
|
|
38
|
-
* @description 折叠头部多个标题
|
|
39
|
-
* @default []
|
|
40
|
-
*/
|
|
41
|
-
titleList?: TitleListType[];
|
|
42
|
-
/**
|
|
43
|
-
* @description id用于锚点定位
|
|
44
|
-
* @default -
|
|
45
|
-
*/
|
|
46
|
-
id?: string;
|
|
47
|
-
/**
|
|
48
|
-
* @description 内容区域样式
|
|
49
|
-
* @default -
|
|
50
|
-
*/
|
|
51
|
-
contentStyle?: CSSProperties;
|
|
52
|
-
/**
|
|
53
|
-
* @description 折叠等级
|
|
54
|
-
* @default 1
|
|
55
|
-
*/
|
|
56
|
-
level?: levelType;
|
|
57
|
-
/**
|
|
58
|
-
* @description 二级折叠是否带收起
|
|
59
|
-
* @default false
|
|
60
|
-
*/
|
|
61
|
-
towCollapse?: boolean;
|
|
62
|
-
/**
|
|
63
|
-
* @description 三级折叠是否带收起
|
|
64
|
-
* @default false
|
|
65
|
-
*/
|
|
66
|
-
threeCollapse?: boolean;
|
|
67
|
-
/**
|
|
68
|
-
* @description 标题右侧扩展信息
|
|
69
|
-
* @default -
|
|
70
|
-
*/
|
|
71
|
-
extra?: React.ReactNode;
|
|
72
|
-
/**
|
|
73
|
-
* @description 当有titleList显示的换行的数量
|
|
74
|
-
* @default 3
|
|
75
|
-
*/
|
|
76
|
-
column?: number;
|
|
77
|
-
/**
|
|
78
|
-
* @description 一级标题是否默认折叠
|
|
79
|
-
* @default false
|
|
80
|
-
*/
|
|
81
|
-
folding?: boolean;
|
|
82
|
-
/**
|
|
83
|
-
* @description 控制折叠面板展开状态
|
|
84
|
-
* @default -
|
|
85
|
-
*/
|
|
86
|
-
open?: boolean;
|
|
87
|
-
/**
|
|
88
|
-
* @description antd Collapse属性
|
|
89
|
-
* @default -
|
|
90
|
-
*/
|
|
91
|
-
collapseProps?: CollapseProps;
|
|
92
|
-
/**
|
|
93
|
-
* @description antd CollapsePanel属性
|
|
94
|
-
* @default -
|
|
95
|
-
*/
|
|
96
|
-
collapsePanelProps?: CollapsePanelProps;
|
|
97
|
-
[key: string]: any;
|
|
98
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export interface stateProps {
|
|
2
|
-
width?: number;
|
|
3
|
-
[key: string]: any;
|
|
4
|
-
}
|
|
5
|
-
export interface ProFooterType {
|
|
6
|
-
/**
|
|
7
|
-
* @description 是否显示
|
|
8
|
-
* @default true
|
|
9
|
-
*/
|
|
10
|
-
visible?: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* @description 层级
|
|
13
|
-
* @default 99
|
|
14
|
-
*/
|
|
15
|
-
zIndex?: number;
|
|
16
|
-
/**
|
|
17
|
-
* @description 侧边栏选择器
|
|
18
|
-
* @default '.pro-layout-sider-nav'
|
|
19
|
-
*/
|
|
20
|
-
sideDom?: string;
|
|
21
|
-
/**
|
|
22
|
-
* @description 内容选择器
|
|
23
|
-
* @default '.pro-layout-content'
|
|
24
|
-
*/
|
|
25
|
-
contentDom?: string;
|
|
26
|
-
[key: string]: any;
|
|
27
|
-
}
|