@zat-design/sisyphus-react 4.5.8-beta.5 → 4.5.8-beta.6
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/ProAction/components/CheckModalContent/index.d.ts +1 -2
- package/es/ProDownload/index.d.ts +1 -2
- package/es/ProEditTable/components/ActionButton/index.d.ts +1 -2
- package/es/ProEditTable/components/RcTable/BaseTable.d.ts +1 -1
- package/es/ProEditTable/components/RcTable/DraggableTable.d.ts +1 -1
- package/es/ProEditTable/components/RenderField/index.d.ts +1 -1
- package/es/ProEditTable/components/RenderToolbar/index.d.ts +1 -2
- package/es/ProEditTable/components/Summary/index.d.ts +1 -2
- package/es/ProEditTable/index.d.ts +1 -1
- package/es/ProEditTable/utils/config.d.ts +1 -2
- package/es/ProEditTable/utils/useShouldUpdateForTable.js +11 -4
- package/es/ProEnum/components/Group.d.ts +1 -2
- package/es/ProEnum/components/Tag.d.ts +1 -2
- package/es/ProEnum/index.d.ts +2 -3
- package/es/ProEnum/utils/getEnumLabel.d.ts +1 -2
- package/es/ProForm/components/base/Input/index.d.ts +1 -2
- package/es/ProForm/components/combination/FormList/components/Empty.d.ts +1 -2
- package/es/ProForm/components/combination/ProCascader/index.d.ts +1 -1
- package/es/ProForm/hooks/useForm.d.ts +1 -1
- package/es/ProLayout/components/Layout/Menu/OpenMenu/index.d.ts +1 -2
- package/es/ProLayout/components/ProCollapse/index.d.ts +1 -2
- package/es/ProLayout/components/ProFooter/index.d.ts +1 -1
- package/es/ProLayout/components/ProHeader/components/Copy/index.d.ts +1 -2
- package/es/ProLayout/components/ProHeader/components/Describe/index.d.ts +3 -3
- package/es/ProLayout/components/ProHeader/index.d.ts +1 -1
- package/es/ProLayout/components/TabsManager/components/TabContextMenu.d.ts +1 -2
- package/es/ProLayout/components/TabsManager/components/TabsHeader.d.ts +1 -2
- package/es/ProLayout/index.d.ts +4 -4
- package/es/ProSelect/components/AdaptiveTooltip.d.ts +1 -2
- package/es/ProSelect/index.d.ts +1 -1
- package/es/ProStep/components/Anchor/index.d.ts +2 -2
- package/es/ProStep/components/Step/index.d.ts +1 -2
- package/es/ProStep/style/index.less +6 -3
- package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.d.ts +1 -1
- package/es/ProTable/components/RenderFooter/index.d.ts +1 -2
- package/es/ProTable/components/RenderTableHeader/index.d.ts +1 -2
- package/es/ProTable/components/RenderTabs/index.d.ts +1 -1
- package/es/ProTable/components/TableResizable/index.d.ts +1 -2
- package/es/ProTabs/components/Card/index.d.ts +1 -2
- package/es/ProThemeTools/component/ProTools/index.d.ts +1 -2
- package/es/ProThemeTools/index.d.ts +1 -2
- package/es/ProTooltip/index.d.ts +1 -2
- package/es/ProTree/components/AdaptiveTooltip.d.ts +1 -2
- package/es/ProTree/components/CloseIcon.d.ts +1 -2
- package/es/ProTree/components/List.d.ts +1 -1
- package/es/ProTree/components/ProTree.d.ts +1 -2
- package/es/ProTree/components/ProTreeSelect/index.d.ts +1 -1
- package/es/ProTree/components/SearchTitle.d.ts +1 -1
- package/es/ProTree/components/Tree.d.ts +2 -2
- package/es/ProTree/index.d.ts +1 -2
- package/es/ProTreeModal/components/Cascader.d.ts +1 -1
- package/es/ProTreeModal/components/CloseIcon.d.ts +1 -2
- package/es/ProTreeModal/components/SearchTitle.d.ts +1 -1
- package/es/ProTreeModal/components/Trigger.d.ts +1 -1
- package/es/ProTreeModal/components/Trigger.js +4 -2
- package/es/ProTreeModal/index.d.ts +1 -2
- package/es/ProUpload/components/DraggableUploadListItem.d.ts +1 -2
- package/package.json +2 -1
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import './index.less';
|
|
3
2
|
interface propsWithCheckModal {
|
|
4
3
|
errorTitle?: string;
|
|
5
4
|
list?: string[];
|
|
6
5
|
[key: string]: any;
|
|
7
6
|
}
|
|
8
|
-
declare const CheckModalContent: (props: propsWithCheckModal) => import("react").JSX.Element;
|
|
7
|
+
declare const CheckModalContent: (props: propsWithCheckModal) => import("react/jsx-runtime").JSX.Element;
|
|
9
8
|
export default CheckModalContent;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { ProDownloadType } from './propsType';
|
|
3
2
|
declare const ProDownload: {
|
|
4
|
-
(props: ProDownloadType): import("react").JSX.Element;
|
|
3
|
+
(props: ProDownloadType): import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
downLoadRequest: import("./utils").DownloadRequestProps;
|
|
6
5
|
};
|
|
7
6
|
export default ProDownload;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
declare const _default: React.MemoExoticComponent<({ text: value, record, index, column, config }: any) =>
|
|
2
|
+
declare const _default: React.MemoExoticComponent<({ text: value, record, index, column, config }: any) => import("react/jsx-runtime").JSX.Element>;
|
|
3
3
|
export default _default;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ProEditTableSummaryColumnType } from '../../propsType';
|
|
3
2
|
interface SummaryProps<T = any> {
|
|
4
3
|
data: T[];
|
|
@@ -9,5 +8,5 @@ interface SummaryProps<T = any> {
|
|
|
9
8
|
};
|
|
10
9
|
rowSelection: any;
|
|
11
10
|
}
|
|
12
|
-
declare const Summary: ({ data, summary, rowSelection }: SummaryProps) => import("react").JSX.Element;
|
|
11
|
+
declare const Summary: ({ data, summary, rowSelection }: SummaryProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
12
|
export default Summary;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ProEditTableType } from './propsType';
|
|
3
|
-
declare const ForwardProEditTable: React.ForwardRefExoticComponent<Omit<ProEditTableType
|
|
3
|
+
declare const ForwardProEditTable: React.ForwardRefExoticComponent<Omit<ProEditTableType<any>, "ref"> & React.RefAttributes<import("./propsType").ProEditTableRefProps>>;
|
|
4
4
|
export default ForwardProEditTable;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const defaultBtnNameMap: {
|
|
3
2
|
add: any;
|
|
4
3
|
edit: any;
|
|
@@ -10,7 +9,7 @@ export declare const defaultBtnNameMap: {
|
|
|
10
9
|
custom: any;
|
|
11
10
|
};
|
|
12
11
|
export declare const iconMap: {
|
|
13
|
-
add: import("react").JSX.Element;
|
|
12
|
+
add: import("react/jsx-runtime").JSX.Element;
|
|
14
13
|
};
|
|
15
14
|
export declare const defaultSingleActionKeys: string[];
|
|
16
15
|
export declare const defaultMultipleActionKeys: string[];
|
|
@@ -24,7 +24,7 @@ const useShouldUpdateForTable = props => {
|
|
|
24
24
|
const isInitializedRef = useRef(false);
|
|
25
25
|
|
|
26
26
|
// 统一处理所有动态属性的更新
|
|
27
|
-
const processUpdate = params => {
|
|
27
|
+
const processUpdate = (params, forceFieldPropsUpdate = false) => {
|
|
28
28
|
let hasChange = false;
|
|
29
29
|
// 新格式:params = [values, { form, index, namePath }]
|
|
30
30
|
const [values, reactiveParams] = params;
|
|
@@ -65,7 +65,7 @@ const useShouldUpdateForTable = props => {
|
|
|
65
65
|
// fieldProps 处理
|
|
66
66
|
if (_isFunction(column.fieldProps)) {
|
|
67
67
|
const newFieldProps = column.fieldProps(values, reactiveParams);
|
|
68
|
-
if (!_isEqualWith(fieldPropsRef.current, newFieldProps, customEqualForFunction)) {
|
|
68
|
+
if (forceFieldPropsUpdate || !_isEqualWith(fieldPropsRef.current, newFieldProps, customEqualForFunction)) {
|
|
69
69
|
fieldPropsRef.current = newFieldProps;
|
|
70
70
|
hasChange = true;
|
|
71
71
|
}
|
|
@@ -131,15 +131,22 @@ const useShouldUpdateForTable = props => {
|
|
|
131
131
|
// 统一的属性处理逻辑
|
|
132
132
|
// 使用 ref 存储上一次的 rowParams,避免引用变化导致的重复调用
|
|
133
133
|
const prevRowParamsRef = useRef(null);
|
|
134
|
+
const currentFieldPropsFactory = _isFunction(column.fieldProps) ? column.fieldProps : undefined;
|
|
135
|
+
const prevFieldPropsFactoryRef = useRef(currentFieldPropsFactory);
|
|
136
|
+
const fieldPropsFactoryChanged = prevFieldPropsFactoryRef.current !== currentFieldPropsFactory;
|
|
137
|
+
prevFieldPropsFactoryRef.current = currentFieldPropsFactory;
|
|
134
138
|
|
|
135
139
|
// 行数据引用 + 行索引均不变时跳过深比较(虚拟滚动常见路径)
|
|
136
140
|
const prevRowParams = prevRowParamsRef.current;
|
|
137
141
|
const rowDataUnchanged = isInitializedRef.current && prevRowParams?.[0] === rowParams[0] && prevRowParams?.[1]?.index === rowParams[1]?.index;
|
|
138
|
-
const shouldProcess = !isInitializedRef.current || !rowDataUnchanged && !_isEqualWith(prevRowParams, rowParams, customEqualForFunction);
|
|
142
|
+
const shouldProcess = !isInitializedRef.current || fieldPropsFactoryChanged || !rowDataUnchanged && !_isEqualWith(prevRowParams, rowParams, customEqualForFunction);
|
|
139
143
|
if (shouldProcess) {
|
|
140
144
|
prevRowParamsRef.current = rowParams;
|
|
141
145
|
isInitializedRef.current = true;
|
|
142
|
-
if (
|
|
146
|
+
if (fieldPropsFactoryChanged) {
|
|
147
|
+
// 外部依赖变化会生成新的 fieldProps 函数,需要立即替换旧闭包缓存
|
|
148
|
+
processUpdate(rowParams, true);
|
|
149
|
+
} else if (shouldUpdateDebounce > 0 && debouncedUpdateRef.current) {
|
|
143
150
|
// 使用防抖延迟更新
|
|
144
151
|
pendingParamsRef.current = rowParams;
|
|
145
152
|
debouncedUpdateRef.current();
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { ProEnumType } from '../propsType';
|
|
3
2
|
interface Props extends Pick<ProEnumType, 'id' | 'value' | 'onChange' | 'dataSource'> {
|
|
4
3
|
fieldValue: string;
|
|
@@ -7,5 +6,5 @@ interface Props extends Pick<ProEnumType, 'id' | 'value' | 'onChange' | 'dataSou
|
|
|
7
6
|
allowClear?: boolean;
|
|
8
7
|
button?: boolean;
|
|
9
8
|
}
|
|
10
|
-
declare const Group: (props: Props) => import("react").JSX.Element;
|
|
9
|
+
declare const Group: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
11
10
|
export default Group;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { ProEnumType } from '../propsType';
|
|
3
2
|
interface Props extends Pick<ProEnumType, 'id' | 'value' | 'onChange' | 'dataSource'> {
|
|
4
3
|
fieldValue: string;
|
|
5
4
|
fieldLabel: string;
|
|
6
5
|
}
|
|
7
|
-
declare const ProEnumTag: (props: Props) => import("react").JSX.Element;
|
|
6
|
+
declare const ProEnumTag: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export default ProEnumTag;
|
package/es/ProEnum/index.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import useEnum from './hooks/useEnum';
|
|
3
2
|
import getEnum from './utils/getEnum';
|
|
4
3
|
import type { ProEnumType } from './propsType';
|
|
5
4
|
declare const ProEnum: {
|
|
6
|
-
(props: ProEnumType):
|
|
7
|
-
getEnumLabel: (code: string | string[], value: any, compose?: boolean, fieldNameLabel?: string, fieldNameValue?: string) =>
|
|
5
|
+
(props: ProEnumType): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
getEnumLabel: (code: string | string[], value: any, compose?: boolean, fieldNameLabel?: string, fieldNameValue?: string) => import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
useEnum: typeof useEnum;
|
|
9
8
|
getEnum: typeof getEnum;
|
|
10
9
|
};
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
declare const getEnumLabel: (code: string | string[], value: any, compose?: boolean, fieldNameLabel?: string, fieldNameValue?: string) => import("react").JSX.Element;
|
|
1
|
+
declare const getEnumLabel: (code: string | string[], value: any, compose?: boolean, fieldNameLabel?: string, fieldNameValue?: string) => import("react/jsx-runtime").JSX.Element;
|
|
3
2
|
export default getEnumLabel;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { FormInstance, FormListOperation } from 'antd';
|
|
3
2
|
import type { InternalNamePath } from 'antd/es/form/interface';
|
|
4
3
|
import type { ToolbarActionType } from '../propsType';
|
|
@@ -10,5 +9,5 @@ interface EmptyProps {
|
|
|
10
9
|
namePath?: InternalNamePath;
|
|
11
10
|
emptyBtnText?: string;
|
|
12
11
|
}
|
|
13
|
-
declare const Empty: ({ disabled, toolbarProps, operation, form, namePath, emptyBtnText }: EmptyProps) => import("react").JSX.Element;
|
|
12
|
+
declare const Empty: ({ disabled, toolbarProps, operation, form, namePath, emptyBtnText }: EmptyProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
13
|
export default Empty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ProCascaderType } from './propsType';
|
|
3
|
-
declare const _default: import("react").MemoExoticComponent<(props: ProCascaderType) => import("react").JSX.Element>;
|
|
3
|
+
declare const _default: import("react").MemoExoticComponent<(props: ProCascaderType) => import("react/jsx-runtime").JSX.Element>;
|
|
4
4
|
export default _default;
|
|
@@ -5,4 +5,4 @@ export interface FormInstanceOption {
|
|
|
5
5
|
formKey?: string;
|
|
6
6
|
source?: string;
|
|
7
7
|
}
|
|
8
|
-
export declare const useForm: <T>(originForm?: ModifiedFormInstanceType<T
|
|
8
|
+
export declare const useForm: <T>(originForm?: FormInstanceOption | ModifiedFormInstanceType<T>, options?: FormInstanceOption) => [ModifiedFormInstanceType<T>];
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { OpenMenuPropsType } from './propsType';
|
|
3
|
-
declare const OpenMenu: (props: OpenMenuPropsType) => import("react").JSX.Element;
|
|
2
|
+
declare const OpenMenu: (props: OpenMenuPropsType) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default OpenMenu;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { ProCollapseType } from './PropTypes';
|
|
3
|
-
declare const ProCollapse: (props: ProCollapseType) =>
|
|
2
|
+
declare const ProCollapse: (props: ProCollapseType) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default ProCollapse;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ProFooterType } from './PropTypes';
|
|
3
|
-
declare const _default: import("react").MemoExoticComponent<(props: ProFooterType) => import("react").JSX.Element>;
|
|
3
|
+
declare const _default: import("react").MemoExoticComponent<(props: ProFooterType) => import("react/jsx-runtime").JSX.Element>;
|
|
4
4
|
export default _default;
|
|
@@ -8,13 +8,13 @@ type DescribeValueItem = Pick<DescribeColumnType, 'tag' | 'link' | 'value' | 'co
|
|
|
8
8
|
export declare const DescribeTag: ({ tag, parentKey, }: {
|
|
9
9
|
tag?: DescribeColumnType['tag'];
|
|
10
10
|
parentKey: string;
|
|
11
|
-
}) =>
|
|
11
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
/**
|
|
13
13
|
* 单行值渲染:link → <a>,copyable+字符串 → 复制按钮,末尾追加 tag
|
|
14
14
|
*/
|
|
15
15
|
export declare const DescribeValue: ({ value, link, copyable, tag, parentKey, }: DescribeValueItem & {
|
|
16
16
|
parentKey: string;
|
|
17
|
-
}) =>
|
|
17
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
/**
|
|
19
19
|
* 多值渲染:以「、」连接;超 3 个显示「共N个,」前缀;内容溢出时显示「...」并用 Tooltip 展示全部
|
|
20
20
|
*/
|
|
@@ -22,5 +22,5 @@ export declare const DescribeItems: ({ items, parentKey, containerRef, }: {
|
|
|
22
22
|
items: DescribeValueItem[];
|
|
23
23
|
parentKey: string;
|
|
24
24
|
containerRef: React.RefObject<HTMLDivElement>;
|
|
25
|
-
}) =>
|
|
25
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
26
26
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ProHeaderType } from './PropTypes';
|
|
3
|
-
declare const _default: React.MemoExoticComponent<(props: ProHeaderType) =>
|
|
3
|
+
declare const _default: React.MemoExoticComponent<(props: ProHeaderType) => import("react/jsx-runtime").JSX.Element>;
|
|
4
4
|
export default _default;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { TabContextMenuProps } from '../propTypes';
|
|
3
2
|
/**
|
|
4
3
|
* 右键菜单组件 - 兼容Antd 4.x和5.x
|
|
5
4
|
*/
|
|
6
|
-
declare function TabContextMenu({ tabId, children, closable, onClose, onCloseOthers, onCloseRight, onCloseAll, pinned, pinDisabled, onTogglePin, menuItems: customMenuItems, tabMenuClick, tab, tabs, }: TabContextMenuProps): import("react").JSX.Element;
|
|
5
|
+
declare function TabContextMenu({ tabId, children, closable, onClose, onCloseOthers, onCloseRight, onCloseAll, pinned, pinDisabled, onTogglePin, menuItems: customMenuItems, tabMenuClick, tab, tabs, }: TabContextMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
export default TabContextMenu;
|
|
8
7
|
export { TabContextMenu };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { TabsProps } from 'antd';
|
|
3
2
|
export interface TabsHeaderProps {
|
|
4
3
|
activeKey: string | undefined;
|
|
@@ -8,4 +7,4 @@ export interface TabsHeaderProps {
|
|
|
8
7
|
draggable?: boolean;
|
|
9
8
|
onReorder?: (activeId: string, overId: string) => void;
|
|
10
9
|
}
|
|
11
|
-
export declare function TabsHeader({ activeKey, tabsItems, onTabChange, onTabEdit, draggable, onReorder, }: TabsHeaderProps):
|
|
10
|
+
export declare function TabsHeader({ activeKey, tabsItems, onTabChange, onTabEdit, draggable, onReorder, }: TabsHeaderProps): import("react/jsx-runtime").JSX.Element;
|
package/es/ProLayout/index.d.ts
CHANGED
|
@@ -9,10 +9,10 @@ interface LayoutContextValue {
|
|
|
9
9
|
}
|
|
10
10
|
export declare const LayoutContext: import("react").Context<LayoutContextValue>;
|
|
11
11
|
declare const ProLayout: {
|
|
12
|
-
(props: ProLayoutType): import("react").JSX.Element;
|
|
13
|
-
ProCollapse: (props: import("
|
|
14
|
-
ProFooter: import("react").MemoExoticComponent<(props: import("
|
|
15
|
-
ProHeader: import("react").MemoExoticComponent<(props: import("
|
|
12
|
+
(props: ProLayoutType): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
ProCollapse: (props: import("../index").ProCollapseType) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
ProFooter: import("react").MemoExoticComponent<(props: import("../index").ProFooterType) => import("react/jsx-runtime").JSX.Element>;
|
|
15
|
+
ProHeader: import("react").MemoExoticComponent<(props: import("../index").ProHeaderType) => import("react/jsx-runtime").JSX.Element>;
|
|
16
16
|
useProLayoutTabs: typeof useProLayoutTabs;
|
|
17
17
|
useActiveTab: () => import("./propTypes").TabItem;
|
|
18
18
|
};
|
package/es/ProSelect/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { PropSelectType, ProSelectActionType } from './propsType';
|
|
3
|
-
export declare const ProSelect: (props: PropSelectType, ref: React.Ref<ProSelectActionType> | undefined) =>
|
|
3
|
+
export declare const ProSelect: (props: PropSelectType, ref: React.Ref<ProSelectActionType> | undefined) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare const _default: React.ForwardRefExoticComponent<PropSelectType & React.RefAttributes<ProSelectActionType>>;
|
|
5
5
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
2
|
import { MenuItemProps } from '../../propsType';
|
|
3
|
-
export declare const MenuItem: (props: MenuItemProps) =>
|
|
3
|
+
export declare const MenuItem: (props: MenuItemProps) => ReactElement;
|
|
4
4
|
export default MenuItem;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { ProStepType } from '../../propsType';
|
|
3
2
|
export declare const Step: ({ fixedTop, dataSource, activeKey, errorCollection, style, targetOffset, scrollToError, onAnchorClick, }: import("../../propsType").ProStepPropsType & {
|
|
4
3
|
errorCollection: object;
|
|
@@ -6,5 +5,5 @@ export declare const Step: ({ fixedTop, dataSource, activeKey, errorCollection,
|
|
|
6
5
|
targetOffset?: string | number;
|
|
7
6
|
scrollToError?: boolean;
|
|
8
7
|
}) => void;
|
|
9
|
-
}) =>
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
9
|
export default Step;
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
@import '../../style/variables.less';
|
|
2
2
|
|
|
3
|
+
@pro-step-closed-width: 48px;
|
|
4
|
+
@pro-step-content-gap: var(--zaui-space-size-md, 16px);
|
|
5
|
+
|
|
3
6
|
.pro-step-wrapper {
|
|
4
|
-
padding-right:
|
|
7
|
+
padding-right: calc(@pro-step-closed-width - @pro-step-content-gap);
|
|
5
8
|
}
|
|
6
9
|
|
|
7
10
|
.pro-step {
|
|
8
11
|
position: fixed;
|
|
9
12
|
right: 0;
|
|
10
13
|
z-index: 99;
|
|
11
|
-
min-width:
|
|
14
|
+
min-width: @pro-step-closed-width;
|
|
12
15
|
min-height: 48px;
|
|
13
16
|
overflow-x: hidden;
|
|
14
17
|
overflow-y: auto;
|
|
@@ -217,6 +220,6 @@
|
|
|
217
220
|
}
|
|
218
221
|
|
|
219
222
|
&.pro-step-closed {
|
|
220
|
-
width:
|
|
223
|
+
width: @pro-step-closed-width;
|
|
221
224
|
}
|
|
222
225
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ProTableTabsType } from '../../propsType';
|
|
3
|
-
declare const _default: import("react").MemoExoticComponent<(props: ProTableTabsType) => import("react").JSX.Element>;
|
|
3
|
+
declare const _default: import("react").MemoExoticComponent<(props: ProTableTabsType) => import("react/jsx-runtime").JSX.Element>;
|
|
4
4
|
export default _default;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
declare const _default: {
|
|
3
2
|
components: {
|
|
4
3
|
header: {
|
|
@@ -7,7 +6,7 @@ declare const _default: {
|
|
|
7
6
|
onDrag: any;
|
|
8
7
|
width: number;
|
|
9
8
|
minwidth?: number;
|
|
10
|
-
}) => import("react").JSX.Element;
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
10
|
};
|
|
12
11
|
};
|
|
13
12
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { DevToolsPropsType } from '../../propsType';
|
|
3
|
-
declare const ProTools: ({ onReset, onClose, setState, open, state, tableBorder, tableStripe, }: DevToolsPropsType) =>
|
|
2
|
+
declare const ProTools: ({ onReset, onClose, setState, open, state, tableBorder, tableStripe, }: DevToolsPropsType) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default ProTools;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { ProThemeToolsType } from './propsType';
|
|
3
2
|
declare const ProThemeTools: {
|
|
4
|
-
({ size, className, cacheTime, color, mode, iconFollowTheme, prefixCls, tableBorder, tableStripe, theme, onChange, ...props }: ProThemeToolsType): import("react").JSX.Element;
|
|
3
|
+
({ size, className, cacheTime, color, mode, iconFollowTheme, prefixCls, tableBorder, tableStripe, theme, onChange, ...props }: ProThemeToolsType): import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
setThemes: (themes: import("./utils/index").ThemesProps) => boolean;
|
|
6
5
|
};
|
|
7
6
|
export default ProThemeTools;
|
package/es/ProTooltip/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { ProTooltipType } from './propsType';
|
|
3
|
-
declare const ProTooltip: (props: ProTooltipType) => import("react").JSX.Element;
|
|
2
|
+
declare const ProTooltip: (props: ProTooltipType) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default ProTooltip;
|
|
@@ -12,6 +12,6 @@ interface ListProps {
|
|
|
12
12
|
handleFilterClose?: (code: string) => void;
|
|
13
13
|
optionRender?: (item: any, searchStr?: string) => string | ReactNode;
|
|
14
14
|
}
|
|
15
|
-
declare function List(props: ListProps): import("react").JSX.Element;
|
|
15
|
+
declare function List(props: ListProps): import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
declare const _default: import("react").MemoExoticComponent<typeof List>;
|
|
17
17
|
export default _default;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { ProTreeType } from '../propsType';
|
|
3
|
-
declare const ProTree: (props: ProTreeType) => import("react").JSX.Element;
|
|
2
|
+
declare const ProTree: (props: ProTreeType) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default ProTree;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ProTreeSelectType } from './propsType';
|
|
3
|
-
export declare const ProTreeSelect: (props: ProTreeSelectType, ref: React.Ref<unknown> | undefined) =>
|
|
3
|
+
export declare const ProTreeSelect: (props: ProTreeSelectType, ref: React.Ref<unknown> | undefined) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare const _default: React.ForwardRefExoticComponent<ProTreeSelectType & React.RefAttributes<unknown>>;
|
|
5
5
|
export default _default;
|
|
@@ -6,6 +6,6 @@ declare function SearchTitle(props: {
|
|
|
6
6
|
showEllipse?: boolean;
|
|
7
7
|
ellipseWidth?: string;
|
|
8
8
|
otherProps?: ProFormOtherType;
|
|
9
|
-
}): import("react").JSX.Element;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
declare const _default: import("react").MemoExoticComponent<typeof SearchTitle>;
|
|
11
11
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
2
|
import type { ProTreeFieldNamesType, ProTreeType } from '../propsType';
|
|
3
3
|
interface ListProps extends ProTreeType {
|
|
4
4
|
disabled?: boolean;
|
|
@@ -23,5 +23,5 @@ interface ListProps extends ProTreeType {
|
|
|
23
23
|
handleFilterClose?: (code: string, node?: any) => void;
|
|
24
24
|
[key: string]: any;
|
|
25
25
|
}
|
|
26
|
-
declare function List(props: ListProps):
|
|
26
|
+
declare function List(props: ListProps): import("react/jsx-runtime").JSX.Element;
|
|
27
27
|
export default List;
|
package/es/ProTree/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { ProTreeType } from './propsType';
|
|
3
|
-
declare const ProTreeHandle: (props: ProTreeType) => import("react").JSX.Element;
|
|
2
|
+
declare const ProTreeHandle: (props: ProTreeType) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default ProTreeHandle;
|
|
@@ -10,5 +10,5 @@ interface CascaderProps {
|
|
|
10
10
|
handleOnChange?: (e: any, value: string) => void;
|
|
11
11
|
optionRender?: (item: any, searchStr: string) => string | ReactNode;
|
|
12
12
|
}
|
|
13
|
-
declare const Cascader: (props: CascaderProps) => import("react").JSX.Element;
|
|
13
|
+
declare const Cascader: (props: CascaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
export default Cascader;
|
|
@@ -17,5 +17,5 @@ interface TriggerProps {
|
|
|
17
17
|
handleClearAll: () => void;
|
|
18
18
|
appointChange: (appoint?: boolean) => void;
|
|
19
19
|
}
|
|
20
|
-
declare function Trigger(props: TriggerProps): import("react").JSX.Element;
|
|
20
|
+
declare function Trigger(props: TriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
21
21
|
export default Trigger;
|
|
@@ -6,7 +6,7 @@ import { ReactSVG } from 'react-svg';
|
|
|
6
6
|
import { useSetState } from 'ahooks';
|
|
7
7
|
import locale, { formatMessage } from "../../locale";
|
|
8
8
|
import viewSvg from "../../assets/view.svg";
|
|
9
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
10
10
|
function Trigger(props) {
|
|
11
11
|
const {
|
|
12
12
|
value,
|
|
@@ -116,7 +116,9 @@ function Trigger(props) {
|
|
|
116
116
|
}), props.children]
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
|
-
return
|
|
119
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
|
120
|
+
children: props.children
|
|
121
|
+
});
|
|
120
122
|
};
|
|
121
123
|
|
|
122
124
|
// 构建 Input 的基础属性
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { ProTreeModalType } from './propsType';
|
|
3
2
|
export declare const CASCADER = "CASCADER";
|
|
4
|
-
declare const ProTreeModal: (props: ProTreeModalType) =>
|
|
3
|
+
declare const ProTreeModal: (props: ProTreeModalType) => import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
export default ProTreeModal;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { DraggableUploadListItemType } from '../propsType';
|
|
3
|
-
export declare const DraggableUploadListItem: ({ file, children }: DraggableUploadListItemType) =>
|
|
2
|
+
export declare const DraggableUploadListItem: ({ file, children }: DraggableUploadListItemType) => import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zat-design/sisyphus-react",
|
|
3
|
-
"version": "4.5.8-beta.
|
|
3
|
+
"version": "4.5.8-beta.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -148,6 +148,7 @@
|
|
|
148
148
|
"antd": "^6.1.3",
|
|
149
149
|
"babel-plugin-import": "^1.13.8",
|
|
150
150
|
"babel-plugin-lodash": "^3.3.4",
|
|
151
|
+
"babel-preset-current-node-syntax": "1.0.1",
|
|
151
152
|
"cross-env": "^7.0.3",
|
|
152
153
|
"dumi": "^1.1.54",
|
|
153
154
|
"eslint": "^8.57.0",
|