@zat-design/sisyphus-react 4.5.0-beta.1 → 4.5.0-beta.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.
|
@@ -276,6 +276,13 @@ export const getDisabled = ({
|
|
|
276
276
|
return convertToBoolean(column?.disabled ?? columnFieldProps?.disabled ?? tabledDisabled);
|
|
277
277
|
};
|
|
278
278
|
|
|
279
|
+
/**
|
|
280
|
+
* 判断单元格是否为「左固定列」。
|
|
281
|
+
* antd6 固定列类名为 *-cell-fix-start(逻辑属性,支持 RTL),不再是旧版的 *-cell-fix-left;
|
|
282
|
+
* 兼容两者,避免漏算固定列宽导致报错单元格被固定列遮挡。
|
|
283
|
+
*/
|
|
284
|
+
const isFixStartCell = el => /table-cell-fix-(start|left)/.test(el.className || '');
|
|
285
|
+
|
|
279
286
|
/**
|
|
280
287
|
* 表格自动滚动到报错位置
|
|
281
288
|
*/
|
|
@@ -297,7 +304,7 @@ export const handleScrollToError = () => {
|
|
|
297
304
|
width = 0
|
|
298
305
|
} = previousSibling.getBoundingClientRect() || {};
|
|
299
306
|
childOffsetLeft += width;
|
|
300
|
-
if (previousSibling
|
|
307
|
+
if (isFixStartCell(previousSibling)) {
|
|
301
308
|
childFixedLeft += width;
|
|
302
309
|
}
|
|
303
310
|
}
|
|
@@ -356,7 +363,7 @@ export const scrollVirtualToErrorColumn = (tableRef, rowKey) => {
|
|
|
356
363
|
width = 0
|
|
357
364
|
} = previousSibling.getBoundingClientRect() || {};
|
|
358
365
|
offsetLeft += width;
|
|
359
|
-
if (previousSibling
|
|
366
|
+
if (isFixStartCell(previousSibling)) {
|
|
360
367
|
fixedLeft += width;
|
|
361
368
|
}
|
|
362
369
|
}
|
|
@@ -77,32 +77,33 @@ export declare const useFormItemProps: (column: FlexibleGroupColumnType, context
|
|
|
77
77
|
component?: React.ReactNode | ReactiveFunction<any, React.ReactNode>;
|
|
78
78
|
isView?: boolean;
|
|
79
79
|
style?: React.CSSProperties;
|
|
80
|
+
trim?: boolean;
|
|
81
|
+
normalize?: (value: any, prevValue: any, allValues: import("@rc-component/form/lib/interface").Store) => any;
|
|
80
82
|
children?: React.ReactNode | ((form: FormInstance<any>) => React.ReactNode);
|
|
83
|
+
prefixCls?: string;
|
|
84
|
+
trigger?: string;
|
|
85
|
+
id?: string;
|
|
81
86
|
className?: string;
|
|
87
|
+
rootClassName?: string;
|
|
88
|
+
status?: "" | "warning" | "error" | "success" | "validating";
|
|
89
|
+
getValueProps?: ((value: any) => Record<string, unknown>) & ((value: any) => Record<string, unknown>);
|
|
82
90
|
hidden?: boolean;
|
|
83
|
-
id?: string;
|
|
84
91
|
onReset?: () => void;
|
|
92
|
+
vertical?: boolean;
|
|
93
|
+
desensitization?: [number, number] | ReactiveFunction<any, [number, number]>;
|
|
85
94
|
validateTrigger?: string | false | string[];
|
|
86
95
|
preserve?: boolean;
|
|
87
|
-
trim?: boolean;
|
|
88
|
-
normalize?: (value: any, prevValue: any, allValues: import("@rc-component/form/lib/interface").Store) => any;
|
|
89
96
|
clearNotShow?: boolean;
|
|
90
97
|
labelAlign?: import("antd/es/form/interface").FormLabelAlign;
|
|
91
|
-
prefixCls?: string;
|
|
92
98
|
colon?: boolean;
|
|
93
99
|
layout?: import("antd/es/form/Form").FormItemLayout;
|
|
94
100
|
labelCol?: import("antd").ColProps;
|
|
95
101
|
wrapperCol?: import("antd").ColProps;
|
|
96
|
-
rootClassName?: string;
|
|
97
|
-
status?: "" | "validating" | "warning" | "error" | "success";
|
|
98
|
-
vertical?: boolean;
|
|
99
102
|
htmlFor?: string;
|
|
100
103
|
getValueFromEvent?: (...args: import("@rc-component/form/lib/interface").EventArgs) => any;
|
|
101
104
|
shouldUpdate?: import("@rc-component/form/lib/Field").ShouldUpdate<any>;
|
|
102
|
-
trigger?: string;
|
|
103
105
|
validateDebounce?: number;
|
|
104
106
|
valuePropName?: string;
|
|
105
|
-
getValueProps?: ((value: any) => Record<string, unknown>) & ((value: any) => Record<string, unknown>);
|
|
106
107
|
messageVariables?: Record<string, string>;
|
|
107
108
|
initialValue?: any;
|
|
108
109
|
onMetaChange?: (meta: import("@rc-component/form/lib/Field").MetaEvent) => void;
|
|
@@ -112,7 +113,7 @@ export declare const useFormItemProps: (column: FlexibleGroupColumnType, context
|
|
|
112
113
|
hasFeedback?: boolean | {
|
|
113
114
|
icons: import("antd/es/form/FormItem").FeedbackIcons;
|
|
114
115
|
};
|
|
115
|
-
validateStatus?: "" | "
|
|
116
|
+
validateStatus?: "" | "warning" | "error" | "success" | "validating";
|
|
116
117
|
help?: React.ReactNode;
|
|
117
118
|
fieldId?: string;
|
|
118
119
|
valueType?: import("../../../render/propsType").ProFormValueType;
|
|
@@ -126,7 +127,6 @@ export declare const useFormItemProps: (column: FlexibleGroupColumnType, context
|
|
|
126
127
|
upperCase?: boolean;
|
|
127
128
|
toISOString?: boolean;
|
|
128
129
|
toCSTString?: boolean;
|
|
129
|
-
desensitization?: [number, number] | ReactiveFunction<any, [number, number]>;
|
|
130
130
|
name: any;
|
|
131
131
|
dependencies: any[];
|
|
132
132
|
tooltip: string | {
|
|
@@ -141,7 +141,7 @@ export declare const useFormItemProps: (column: FlexibleGroupColumnType, context
|
|
|
141
141
|
* 创建组件属性
|
|
142
142
|
*/
|
|
143
143
|
export declare const createComponentProps: (column: FlexibleGroupColumnType, formItemProps: any) => {
|
|
144
|
-
componentProps: import("lodash").Omit<any, "
|
|
144
|
+
componentProps: import("lodash").Omit<any, "format" | "clearNotShow" | "valueType" | "switchValue" | "dependNames" | "toISOString" | "toCSTString" | "precision">;
|
|
145
145
|
formItemTransform: {
|
|
146
146
|
getValueProps: any;
|
|
147
147
|
normalize: any;
|