@zat-design/sisyphus-react 4.2.0-beta.1 → 4.2.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.
|
@@ -75,36 +75,35 @@ 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
|
-
|
|
79
|
-
normalize?: (value: any, prevValue: any, allValues: import("@rc-component/form/lib/interface").Store) => any;
|
|
80
|
-
children?: React.ReactNode | ((form: FormInstance<any>) => React.ReactNode);
|
|
81
|
-
style?: React.CSSProperties;
|
|
82
|
-
htmlFor?: string;
|
|
78
|
+
id?: string;
|
|
83
79
|
className?: string;
|
|
84
80
|
hidden?: boolean;
|
|
85
|
-
|
|
81
|
+
style?: React.CSSProperties;
|
|
82
|
+
children?: React.ReactNode | ((form: FormInstance<any>) => React.ReactNode);
|
|
86
83
|
onReset?: () => void;
|
|
87
84
|
prefixCls?: string;
|
|
88
|
-
rootClassName?: string;
|
|
89
85
|
status?: "" | "warning" | "error" | "success" | "validating";
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
preserve?: boolean;
|
|
86
|
+
rootClassName?: string;
|
|
87
|
+
isView?: boolean;
|
|
93
88
|
colon?: boolean;
|
|
89
|
+
htmlFor?: string;
|
|
94
90
|
labelAlign?: import("antd/es/form/interface").FormLabelAlign;
|
|
95
91
|
labelCol?: import("antd").ColProps;
|
|
92
|
+
vertical?: boolean;
|
|
96
93
|
getValueFromEvent?: (...args: import("@rc-component/form/lib/interface").EventArgs) => any;
|
|
94
|
+
normalize?: (value: any, prevValue: any, allValues: import("@rc-component/form/lib/interface").Store) => any;
|
|
97
95
|
shouldUpdate?: import("@rc-component/form/lib/Field").ShouldUpdate<any>;
|
|
98
96
|
trigger?: string;
|
|
97
|
+
validateTrigger?: string | false | string[];
|
|
99
98
|
validateDebounce?: number;
|
|
100
99
|
valuePropName?: string;
|
|
101
100
|
getValueProps?: ((value: any) => Record<string, unknown>) & ((value: any) => Record<string, unknown>);
|
|
102
101
|
messageVariables?: Record<string, string>;
|
|
103
102
|
initialValue?: any;
|
|
104
103
|
onMetaChange?: (meta: import("@rc-component/form/lib/Field").MetaEvent) => void;
|
|
104
|
+
preserve?: boolean;
|
|
105
105
|
isListField?: boolean;
|
|
106
106
|
isList?: boolean;
|
|
107
|
-
isView?: boolean;
|
|
108
107
|
noStyle?: boolean;
|
|
109
108
|
hasFeedback?: boolean | {
|
|
110
109
|
icons: import("antd/es/form/FormItem").FeedbackIcons;
|
|
@@ -122,6 +121,7 @@ export declare const useFormItemProps: (column: FlexibleGroupColumnType, context
|
|
|
122
121
|
index?: number;
|
|
123
122
|
}) => string | React.ReactElement<any, any>;
|
|
124
123
|
viewType?: import("../../../render/propsType").ViewType;
|
|
124
|
+
trim?: boolean;
|
|
125
125
|
upperCase?: boolean;
|
|
126
126
|
toISOString?: boolean;
|
|
127
127
|
toCSTString?: boolean;
|
|
@@ -25,7 +25,11 @@ var ConfirmWrapper = props => {
|
|
|
25
25
|
otherProps = props.otherProps,
|
|
26
26
|
rest = _objectWithoutProperties(props, _excluded);
|
|
27
27
|
var _ProForm$useFieldProp = ProForm.useFieldProps(),
|
|
28
|
-
form = _ProForm$useFieldProp.form
|
|
28
|
+
form = _ProForm$useFieldProp.form,
|
|
29
|
+
namePath = _ProForm$useFieldProp.namePath,
|
|
30
|
+
name = _ProForm$useFieldProp.name,
|
|
31
|
+
index = _ProForm$useFieldProp.index,
|
|
32
|
+
listName = _ProForm$useFieldProp.listName;
|
|
29
33
|
var handleChange = /*#__PURE__*/function () {
|
|
30
34
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
31
35
|
var _len,
|
|
@@ -49,10 +53,10 @@ var ConfirmWrapper = props => {
|
|
|
49
53
|
return confirm(value, form.getFieldsValue(), {
|
|
50
54
|
option: other[0],
|
|
51
55
|
form,
|
|
52
|
-
namePath
|
|
53
|
-
name
|
|
54
|
-
index
|
|
55
|
-
preValue: form.getFieldValue(
|
|
56
|
+
namePath,
|
|
57
|
+
name,
|
|
58
|
+
index,
|
|
59
|
+
preValue: form.getFieldValue(listName || name)
|
|
56
60
|
});
|
|
57
61
|
case 5:
|
|
58
62
|
_context2.t0 = _context2.sent;
|
|
@@ -32,7 +32,11 @@ var ConfirmWrapper = props => {
|
|
|
32
32
|
otherProps = props.otherProps,
|
|
33
33
|
rest = _objectWithoutProperties(props, _excluded);
|
|
34
34
|
var _ProForm$useFieldProp = _index.default.useFieldProps(),
|
|
35
|
-
form = _ProForm$useFieldProp.form
|
|
35
|
+
form = _ProForm$useFieldProp.form,
|
|
36
|
+
namePath = _ProForm$useFieldProp.namePath,
|
|
37
|
+
name = _ProForm$useFieldProp.name,
|
|
38
|
+
index = _ProForm$useFieldProp.index,
|
|
39
|
+
listName = _ProForm$useFieldProp.listName;
|
|
36
40
|
var handleChange = /*#__PURE__*/function () {
|
|
37
41
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
38
42
|
var _len,
|
|
@@ -56,10 +60,10 @@ var ConfirmWrapper = props => {
|
|
|
56
60
|
return confirm(value, form.getFieldsValue(), {
|
|
57
61
|
option: other[0],
|
|
58
62
|
form,
|
|
59
|
-
namePath
|
|
60
|
-
name
|
|
61
|
-
index
|
|
62
|
-
preValue: form.getFieldValue(
|
|
63
|
+
namePath,
|
|
64
|
+
name,
|
|
65
|
+
index,
|
|
66
|
+
preValue: form.getFieldValue(listName || name)
|
|
63
67
|
});
|
|
64
68
|
case 5:
|
|
65
69
|
_context2.t0 = _context2.sent;
|