@zat-design/sisyphus-react 4.1.2-beta.4 → 4.1.2-beta.5
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.
|
@@ -87,13 +87,7 @@ var DatePicker = props => {
|
|
|
87
87
|
restProps.showTime = true;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
// onChange
|
|
91
|
-
var handleChange = (date, dateString) => {
|
|
92
|
-
var _rest$onChange;
|
|
93
|
-
var valueToStore = date && typeof nextFormat === 'string' ? date.format(nextFormat) : date;
|
|
94
|
-
(_rest$onChange = rest.onChange) === null || _rest$onChange === void 0 || _rest$onChange.call(rest, valueToStore, dateString);
|
|
95
|
-
};
|
|
96
|
-
restProps.onChange = handleChange;
|
|
90
|
+
// 直接透传 onChange,保持 dayjs 对象类型(与 RangePicker 一致)
|
|
97
91
|
|
|
98
92
|
// 字符串时间格式兼容,使用 nextFormat 解析 quarter/week 等格式
|
|
99
93
|
if (isString(restProps.value)) {
|
|
@@ -75,28 +75,32 @@ export declare const useFormItemProps: (column: FlexibleGroupColumnType, context
|
|
|
75
75
|
confirm?: boolean | import("antd").ModalFuncProps | import("../../../render/propsType").FunctionArgs<any, boolean | import("antd").ModalFuncProps>;
|
|
76
76
|
show?: boolean | ReactiveFunction<any, boolean>;
|
|
77
77
|
component?: React.ReactNode | ReactiveFunction<any, React.ReactNode>;
|
|
78
|
-
|
|
78
|
+
id?: string;
|
|
79
79
|
className?: string;
|
|
80
80
|
hidden?: boolean;
|
|
81
|
-
id?: string;
|
|
82
81
|
style?: React.CSSProperties;
|
|
83
82
|
children?: React.ReactNode | ((form: FormInstance<any>) => React.ReactNode);
|
|
84
83
|
onReset?: () => void;
|
|
85
84
|
prefixCls?: string;
|
|
86
85
|
rootClassName?: string;
|
|
86
|
+
status?: "" | "warning" | "error" | "success" | "validating";
|
|
87
|
+
vertical?: boolean;
|
|
88
|
+
isView?: boolean;
|
|
89
|
+
valueType?: import("../../../render/propsType").ProFormValueType;
|
|
90
|
+
trim?: boolean;
|
|
91
|
+
normalize?: (value: any, prevValue: any, allValues: import("@rc-component/form/lib/interface").Store) => any;
|
|
92
|
+
validateTrigger?: string | false | string[];
|
|
93
|
+
getValueProps?: ((value: any) => Record<string, unknown>) & ((value: any) => Record<string, unknown>);
|
|
94
|
+
desensitization?: [number, number] | ReactiveFunction<any, [number, number]>;
|
|
87
95
|
colon?: boolean;
|
|
88
96
|
htmlFor?: string;
|
|
89
97
|
labelAlign?: import("antd/es/form/interface").FormLabelAlign;
|
|
90
98
|
labelCol?: import("antd").ColProps;
|
|
91
|
-
vertical?: boolean;
|
|
92
99
|
getValueFromEvent?: (...args: import("@rc-component/form/lib/interface").EventArgs) => any;
|
|
93
|
-
normalize?: (value: any, prevValue: any, allValues: import("@rc-component/form/lib/interface").Store) => any;
|
|
94
100
|
shouldUpdate?: import("@rc-component/form/lib/Field").ShouldUpdate<any>;
|
|
95
101
|
trigger?: string;
|
|
96
|
-
validateTrigger?: string | false | string[];
|
|
97
102
|
validateDebounce?: number;
|
|
98
103
|
valuePropName?: string;
|
|
99
|
-
getValueProps?: ((value: any) => Record<string, unknown>) & ((value: any) => Record<string, unknown>);
|
|
100
104
|
messageVariables?: Record<string, string>;
|
|
101
105
|
initialValue?: any;
|
|
102
106
|
onMetaChange?: (meta: import("@rc-component/form/lib/Field").MetaEvent) => void;
|
|
@@ -107,22 +111,18 @@ export declare const useFormItemProps: (column: FlexibleGroupColumnType, context
|
|
|
107
111
|
hasFeedback?: boolean | {
|
|
108
112
|
icons: import("antd/es/form/FormItem").FeedbackIcons;
|
|
109
113
|
};
|
|
110
|
-
validateStatus?: "" | "
|
|
114
|
+
validateStatus?: "" | "warning" | "error" | "success" | "validating";
|
|
111
115
|
layout?: import("antd/es/form/Form").FormItemLayout;
|
|
112
116
|
wrapperCol?: import("antd").ColProps;
|
|
113
117
|
help?: React.ReactNode;
|
|
114
118
|
fieldId?: string;
|
|
115
|
-
|
|
119
|
+
switchValue?: [any, any];
|
|
116
120
|
viewRender?: (value: any, record: any, { form, index, namePath, }: {
|
|
117
121
|
[key: string]: any;
|
|
118
122
|
form: FormInstance<any>;
|
|
119
123
|
index?: number;
|
|
120
124
|
}) => string | React.ReactElement<any, any>;
|
|
121
|
-
desensitization?: [number, number] | ReactiveFunction<any, [number, number]>;
|
|
122
|
-
isView?: boolean;
|
|
123
|
-
switchValue?: [any, any];
|
|
124
125
|
viewType?: import("../../../render/propsType").ViewType;
|
|
125
|
-
trim?: boolean;
|
|
126
126
|
upperCase?: boolean;
|
|
127
127
|
toISOString?: boolean;
|
|
128
128
|
toCSTString?: boolean;
|
|
@@ -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" | "valueType" | "precision" | "switchValue" | "dependNames" | "toISOString" | "toCSTString" | "clearNotShow">;
|
|
145
145
|
formItemTransform: {
|
|
146
146
|
getValueProps: any;
|
|
147
147
|
normalize: any;
|
|
@@ -94,13 +94,7 @@ var DatePicker = props => {
|
|
|
94
94
|
restProps.showTime = true;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
// onChange
|
|
98
|
-
var handleChange = (date, dateString) => {
|
|
99
|
-
var _rest$onChange;
|
|
100
|
-
var valueToStore = date && typeof nextFormat === 'string' ? date.format(nextFormat) : date;
|
|
101
|
-
(_rest$onChange = rest.onChange) === null || _rest$onChange === void 0 || _rest$onChange.call(rest, valueToStore, dateString);
|
|
102
|
-
};
|
|
103
|
-
restProps.onChange = handleChange;
|
|
97
|
+
// 直接透传 onChange,保持 dayjs 对象类型(与 RangePicker 一致)
|
|
104
98
|
|
|
105
99
|
// 字符串时间格式兼容,使用 nextFormat 解析 quarter/week 等格式
|
|
106
100
|
if ((0, _lodash.isString)(restProps.value)) {
|
|
@@ -75,28 +75,32 @@ export declare const useFormItemProps: (column: FlexibleGroupColumnType, context
|
|
|
75
75
|
confirm?: boolean | import("antd").ModalFuncProps | import("../../../render/propsType").FunctionArgs<any, boolean | import("antd").ModalFuncProps>;
|
|
76
76
|
show?: boolean | ReactiveFunction<any, boolean>;
|
|
77
77
|
component?: React.ReactNode | ReactiveFunction<any, React.ReactNode>;
|
|
78
|
-
|
|
78
|
+
id?: string;
|
|
79
79
|
className?: string;
|
|
80
80
|
hidden?: boolean;
|
|
81
|
-
id?: string;
|
|
82
81
|
style?: React.CSSProperties;
|
|
83
82
|
children?: React.ReactNode | ((form: FormInstance<any>) => React.ReactNode);
|
|
84
83
|
onReset?: () => void;
|
|
85
84
|
prefixCls?: string;
|
|
86
85
|
rootClassName?: string;
|
|
86
|
+
status?: "" | "warning" | "error" | "success" | "validating";
|
|
87
|
+
vertical?: boolean;
|
|
88
|
+
isView?: boolean;
|
|
89
|
+
valueType?: import("../../../render/propsType").ProFormValueType;
|
|
90
|
+
trim?: boolean;
|
|
91
|
+
normalize?: (value: any, prevValue: any, allValues: import("@rc-component/form/lib/interface").Store) => any;
|
|
92
|
+
validateTrigger?: string | false | string[];
|
|
93
|
+
getValueProps?: ((value: any) => Record<string, unknown>) & ((value: any) => Record<string, unknown>);
|
|
94
|
+
desensitization?: [number, number] | ReactiveFunction<any, [number, number]>;
|
|
87
95
|
colon?: boolean;
|
|
88
96
|
htmlFor?: string;
|
|
89
97
|
labelAlign?: import("antd/es/form/interface").FormLabelAlign;
|
|
90
98
|
labelCol?: import("antd").ColProps;
|
|
91
|
-
vertical?: boolean;
|
|
92
99
|
getValueFromEvent?: (...args: import("@rc-component/form/lib/interface").EventArgs) => any;
|
|
93
|
-
normalize?: (value: any, prevValue: any, allValues: import("@rc-component/form/lib/interface").Store) => any;
|
|
94
100
|
shouldUpdate?: import("@rc-component/form/lib/Field").ShouldUpdate<any>;
|
|
95
101
|
trigger?: string;
|
|
96
|
-
validateTrigger?: string | false | string[];
|
|
97
102
|
validateDebounce?: number;
|
|
98
103
|
valuePropName?: string;
|
|
99
|
-
getValueProps?: ((value: any) => Record<string, unknown>) & ((value: any) => Record<string, unknown>);
|
|
100
104
|
messageVariables?: Record<string, string>;
|
|
101
105
|
initialValue?: any;
|
|
102
106
|
onMetaChange?: (meta: import("@rc-component/form/lib/Field").MetaEvent) => void;
|
|
@@ -107,22 +111,18 @@ export declare const useFormItemProps: (column: FlexibleGroupColumnType, context
|
|
|
107
111
|
hasFeedback?: boolean | {
|
|
108
112
|
icons: import("antd/es/form/FormItem").FeedbackIcons;
|
|
109
113
|
};
|
|
110
|
-
validateStatus?: "" | "
|
|
114
|
+
validateStatus?: "" | "warning" | "error" | "success" | "validating";
|
|
111
115
|
layout?: import("antd/es/form/Form").FormItemLayout;
|
|
112
116
|
wrapperCol?: import("antd").ColProps;
|
|
113
117
|
help?: React.ReactNode;
|
|
114
118
|
fieldId?: string;
|
|
115
|
-
|
|
119
|
+
switchValue?: [any, any];
|
|
116
120
|
viewRender?: (value: any, record: any, { form, index, namePath, }: {
|
|
117
121
|
[key: string]: any;
|
|
118
122
|
form: FormInstance<any>;
|
|
119
123
|
index?: number;
|
|
120
124
|
}) => string | React.ReactElement<any, any>;
|
|
121
|
-
desensitization?: [number, number] | ReactiveFunction<any, [number, number]>;
|
|
122
|
-
isView?: boolean;
|
|
123
|
-
switchValue?: [any, any];
|
|
124
125
|
viewType?: import("../../../render/propsType").ViewType;
|
|
125
|
-
trim?: boolean;
|
|
126
126
|
upperCase?: boolean;
|
|
127
127
|
toISOString?: boolean;
|
|
128
128
|
toCSTString?: boolean;
|
|
@@ -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" | "valueType" | "precision" | "switchValue" | "dependNames" | "toISOString" | "toCSTString" | "clearNotShow">;
|
|
145
145
|
formItemTransform: {
|
|
146
146
|
getValueProps: any;
|
|
147
147
|
normalize: any;
|