@zat-design/sisyphus-react 4.0.6 → 4.0.9
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 +2 -2
- package/es/ProEditTable/index.js +1 -1
- package/es/ProEnum/index.js +1 -1
- package/es/ProForm/components/base/Input/index.js +75 -17
- package/es/ProForm/components/combination/FormList/components/BlockFields.js +2 -2
- package/es/ProForm/components/combination/Group/style/index.less +4 -2
- package/es/ProForm/components/combination/Group/utils/index.d.ts +23 -23
- package/es/ProForm/components/render/ChangedWrapper.js +1 -3
- package/es/ProForm/style/index.less +18 -0
- package/es/ProIcon/index.js +204 -98
- package/es/ProIcon/propsTypes.d.ts +17 -11
- package/es/ProLayout/components/ProCollapse/index.js +1 -1
- package/es/ProLayout/components/ProFooter/index.js +1 -1
- package/es/ProLayout/components/ProHeader/index.js +2 -6
- package/es/ProLayout/index.js +1 -2
- package/es/ProSelect/index.js +1 -1
- package/es/ProStep/components/Step/index.js +1 -1
- package/es/ProStep/style/index.less +4 -2
- package/es/ProTable/components/RenderColumn/index.js +1 -1
- package/es/ProTable/components/RenderTabs/index.js +9 -3
- package/es/ProThemeTools/component/ProTools/index.js +109 -90
- package/es/ProThemeTools/context/ThemeContext.d.ts +10 -0
- package/es/ProThemeTools/context/ThemeContext.js +28 -0
- package/es/ProThemeTools/index.js +37 -12
- package/es/ProThemeTools/utils/index.d.ts +9 -1
- package/es/ProThemeTools/utils/index.js +84 -5
- package/es/ProTreeModal/components/Trigger.js +34 -13
- package/es/ProTreeModal/index.js +6 -0
- package/es/ProTreeModal/style/index.less +41 -0
- package/es/ProUpload/components/ImageRender.js +1 -1
- package/es/ProViewer/index.js +2 -3
- package/es/style/theme/antd.less +0 -9
- package/es/style/theme/base.less +1 -1
- package/es/style/variables.less +1 -0
- package/lib/ProDrawerForm/components/ProDrawer/index.js +1 -1
- package/lib/ProEditTable/index.js +1 -1
- package/lib/ProEnum/index.js +1 -1
- package/lib/ProForm/components/base/Input/index.js +73 -16
- package/lib/ProForm/components/combination/FormList/components/BlockFields.js +2 -2
- package/lib/ProForm/components/combination/Group/style/index.less +4 -2
- package/lib/ProForm/components/combination/Group/utils/index.d.ts +23 -23
- package/lib/ProForm/components/render/ChangedWrapper.js +1 -3
- package/lib/ProForm/style/index.less +18 -0
- package/lib/ProIcon/index.js +205 -99
- package/lib/ProIcon/propsTypes.d.ts +17 -11
- package/lib/ProLayout/components/ProCollapse/index.js +1 -1
- package/lib/ProLayout/components/ProFooter/index.js +1 -1
- package/lib/ProLayout/components/ProHeader/index.js +3 -6
- package/lib/ProLayout/index.js +1 -2
- package/lib/ProSelect/index.js +1 -1
- package/lib/ProStep/components/Step/index.js +1 -1
- package/lib/ProStep/style/index.less +4 -2
- package/lib/ProTable/components/RenderColumn/index.js +1 -1
- package/lib/ProTable/components/RenderTabs/index.js +9 -3
- package/lib/ProThemeTools/component/ProTools/index.js +109 -91
- package/lib/ProThemeTools/context/ThemeContext.d.ts +10 -0
- package/lib/ProThemeTools/context/ThemeContext.js +31 -2
- package/lib/ProThemeTools/index.js +35 -10
- package/lib/ProThemeTools/utils/index.d.ts +9 -1
- package/lib/ProThemeTools/utils/index.js +86 -6
- package/lib/ProTreeModal/components/Trigger.js +34 -13
- package/lib/ProTreeModal/index.js +6 -0
- package/lib/ProTreeModal/style/index.less +41 -0
- package/lib/ProUpload/components/ImageRender.js +1 -1
- package/lib/ProViewer/index.js +3 -3
- package/lib/style/theme/antd.less +0 -9
- package/lib/style/theme/base.less +1 -1
- package/lib/style/variables.less +1 -0
- package/package.json +14 -14
|
@@ -19,7 +19,7 @@ import { Button, Drawer, Modal } from 'antd';
|
|
|
19
19
|
import React, { useCallback, useState, useRef, useEffect } from 'react';
|
|
20
20
|
import { useScroll } from 'ahooks';
|
|
21
21
|
import classNames from 'classnames';
|
|
22
|
-
import { isArray } from 'lodash';
|
|
22
|
+
import { isArray, omit } from 'lodash';
|
|
23
23
|
import { ReactSVG } from 'react-svg';
|
|
24
24
|
import closeSvg from "../../../assets/close.svg";
|
|
25
25
|
import locale from "../../../locale";
|
|
@@ -252,7 +252,7 @@ var ProDrawer = _ref => {
|
|
|
252
252
|
closable: false,
|
|
253
253
|
onClose: onCancel,
|
|
254
254
|
zIndex: zIndex
|
|
255
|
-
}, restDrawerProps), {}, {
|
|
255
|
+
}, omit(restDrawerProps, 'width')), {}, {
|
|
256
256
|
children: [/*#__PURE__*/_jsx("div", {
|
|
257
257
|
className: "pro-drawer-close",
|
|
258
258
|
onClick: onConfirm,
|
package/es/ProEditTable/index.js
CHANGED
|
@@ -463,7 +463,7 @@ var ProEditTable = (_ref, ref) => {
|
|
|
463
463
|
className: "pro-edit-table-footer",
|
|
464
464
|
children: footerRender
|
|
465
465
|
}) : null, pagination ? /*#__PURE__*/_jsx("div", {
|
|
466
|
-
id: `pro-edit-table-pagination-${config.name.join('-')}`,
|
|
466
|
+
id: `pro-edit-table-pagination-${Array.isArray(config.name) ? config.name.filter(Boolean).join('-') : config.name || 'default'}`,
|
|
467
467
|
onClick: () => {
|
|
468
468
|
onPageCheck({
|
|
469
469
|
form,
|
package/es/ProEnum/index.js
CHANGED
|
@@ -264,7 +264,7 @@ var ProEnum = props => {
|
|
|
264
264
|
arr.push(props.optionRender(item));
|
|
265
265
|
});
|
|
266
266
|
return /*#__PURE__*/_jsx(Space, {
|
|
267
|
-
|
|
267
|
+
orientation: "vertical",
|
|
268
268
|
size: 4,
|
|
269
269
|
children: arr.map(item => /*#__PURE__*/_jsx(React.Fragment, {
|
|
270
270
|
children: item
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
var _excluded = ["label", "form", "placeholder", "fieldName", "otherProps", "desensitization"]
|
|
1
|
+
var _excluded = ["label", "form", "placeholder", "fieldName", "otherProps", "desensitization"],
|
|
2
|
+
_excluded2 = ["addonBefore", "addonAfter"];
|
|
2
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
5
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
@@ -7,7 +8,7 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
|
|
|
7
8
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
8
9
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
9
10
|
import React from 'react';
|
|
10
|
-
import { Input as AntInput } from 'antd';
|
|
11
|
+
import { Input as AntInput, Space, Button } from 'antd';
|
|
11
12
|
import { isFunction, omit } from 'lodash';
|
|
12
13
|
import { useProConfig } from "../../../../ProConfigProvider";
|
|
13
14
|
import Container from "../../Container";
|
|
@@ -18,6 +19,7 @@ import { maskStringRangeWithRegex } from "../../../utils/valueType";
|
|
|
18
19
|
// 参数优先级
|
|
19
20
|
// 组件内默认值 < config默认值 < props
|
|
20
21
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
22
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
23
|
var Input = function Input(props) {
|
|
22
24
|
var label = props.label,
|
|
23
25
|
form = props.form,
|
|
@@ -31,43 +33,99 @@ var Input = function Input(props) {
|
|
|
31
33
|
viewEmpty = _ref.viewEmpty;
|
|
32
34
|
var isView = typeof props.isView === 'boolean' ? props.isView : isViewCon; // 组件可直接接收isView参数, 优先级高
|
|
33
35
|
var initialConfig = useProConfig('Input');
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
36
|
+
|
|
37
|
+
// 提取 addonBefore 和 addonAfter(antd 6 已废弃,需要使用 Space.Compact)
|
|
38
|
+
var addonBefore = rest.addonBefore,
|
|
39
|
+
addonAfter = rest.addonAfter,
|
|
40
|
+
restProps = _objectWithoutProperties(rest, _excluded2);
|
|
41
|
+
if (typeof restProps.value === 'number') {
|
|
42
|
+
var _restProps$value, _restProps$value$toSt;
|
|
43
|
+
restProps.value = restProps === null || restProps === void 0 || (_restProps$value = restProps.value) === null || _restProps$value === void 0 || (_restProps$value$toSt = _restProps$value.toString) === null || _restProps$value$toSt === void 0 ? void 0 : _restProps$value$toSt.call(_restProps$value);
|
|
37
44
|
}
|
|
38
45
|
if (isView) {
|
|
39
46
|
if ((Array.isArray(desensitization) || isFunction(desensitization)) && props !== null && props !== void 0 && props.disabled) {
|
|
40
|
-
if (typeof
|
|
41
|
-
var
|
|
42
|
-
|
|
47
|
+
if (typeof restProps.value === 'number') {
|
|
48
|
+
var _restProps$value2, _restProps$value2$toS;
|
|
49
|
+
restProps.value = restProps === null || restProps === void 0 || (_restProps$value2 = restProps.value) === null || _restProps$value2 === void 0 || (_restProps$value2$toS = _restProps$value2.toString) === null || _restProps$value2$toS === void 0 ? void 0 : _restProps$value2$toS.call(_restProps$value2);
|
|
43
50
|
}
|
|
44
51
|
return /*#__PURE__*/_jsx(Container, {
|
|
45
52
|
viewEmpty: viewEmpty,
|
|
46
|
-
children: maskStringRangeWithRegex(
|
|
53
|
+
children: maskStringRangeWithRegex(restProps.value, desensitization)
|
|
47
54
|
});
|
|
48
55
|
}
|
|
49
56
|
return /*#__PURE__*/_jsx(Container, {
|
|
50
57
|
viewEmpty: viewEmpty,
|
|
51
|
-
children:
|
|
58
|
+
children: restProps.value
|
|
52
59
|
});
|
|
53
60
|
}
|
|
54
|
-
|
|
61
|
+
|
|
62
|
+
// 构建 Input 组件
|
|
63
|
+
var buildInput = inputProps => /*#__PURE__*/_jsx(AntInput, _objectSpread(_objectSpread({
|
|
55
64
|
autoComplete: "off",
|
|
56
65
|
placeholder: placeholder || `${locale.ProForm.inputPlaceholder}`
|
|
57
|
-
}, omit(initialConfig, ['trim', 'upperCase'])),
|
|
66
|
+
}, omit(initialConfig, ['trim', 'upperCase'])), inputProps));
|
|
67
|
+
|
|
68
|
+
// 如果存在 addonBefore 或 addonAfter,使用 Space.Compact 包装
|
|
69
|
+
if (addonBefore || addonAfter) {
|
|
70
|
+
// 确保 Input 在 Space.Compact 中能自动扩展宽度
|
|
71
|
+
var inputPropsWithFlex = _objectSpread(_objectSpread({}, restProps), {}, {
|
|
72
|
+
style: _objectSpread(_objectSpread({}, restProps.style), {}, {
|
|
73
|
+
flex: 1
|
|
74
|
+
})
|
|
75
|
+
});
|
|
76
|
+
var _ComInput = buildInput(inputPropsWithFlex);
|
|
77
|
+
|
|
78
|
+
// 仅查看模式下进行数据脱敏
|
|
79
|
+
if ((Array.isArray(desensitization) || isFunction(desensitization)) && props !== null && props !== void 0 && props.disabled) {
|
|
80
|
+
if (typeof restProps.value === 'number') {
|
|
81
|
+
var _restProps$value3, _restProps$value3$toS;
|
|
82
|
+
restProps.value = restProps === null || restProps === void 0 || (_restProps$value3 = restProps.value) === null || _restProps$value3 === void 0 || (_restProps$value3$toS = _restProps$value3.toString) === null || _restProps$value3$toS === void 0 ? void 0 : _restProps$value3$toS.call(_restProps$value3);
|
|
83
|
+
}
|
|
84
|
+
var maskedInput = /*#__PURE__*/React.cloneElement(_ComInput, _objectSpread(_objectSpread(_objectSpread({
|
|
85
|
+
allowClear: true,
|
|
86
|
+
autoComplete: 'off',
|
|
87
|
+
placeholder: placeholder || `${locale.ProForm.inputPlaceholder}`
|
|
88
|
+
}, omit(initialConfig, ['trim', 'upperCase'])), inputPropsWithFlex), {}, {
|
|
89
|
+
value: maskStringRangeWithRegex(restProps.value, desensitization)
|
|
90
|
+
}));
|
|
91
|
+
return /*#__PURE__*/_jsxs(Space.Compact, {
|
|
92
|
+
block: true,
|
|
93
|
+
className: "pro-form-input-space-compact",
|
|
94
|
+
children: [addonBefore ? /*#__PURE__*/_jsx(Button, {
|
|
95
|
+
disabled: true,
|
|
96
|
+
children: addonBefore
|
|
97
|
+
}) : null, maskedInput, addonAfter ? /*#__PURE__*/_jsx(Button, {
|
|
98
|
+
disabled: true,
|
|
99
|
+
children: addonAfter
|
|
100
|
+
}) : null]
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
return /*#__PURE__*/_jsxs(Space.Compact, {
|
|
104
|
+
block: true,
|
|
105
|
+
className: "pro-form-input-space-compact",
|
|
106
|
+
children: [addonBefore ? /*#__PURE__*/_jsx(Button, {
|
|
107
|
+
disabled: true,
|
|
108
|
+
children: addonBefore
|
|
109
|
+
}) : null, _ComInput, addonAfter ? /*#__PURE__*/_jsx(Button, {
|
|
110
|
+
disabled: true,
|
|
111
|
+
children: addonAfter
|
|
112
|
+
}) : null]
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
var ComInput = buildInput(restProps);
|
|
58
116
|
|
|
59
117
|
// 仅查看模式下进行数据脱敏
|
|
60
118
|
if ((Array.isArray(desensitization) || isFunction(desensitization)) && props !== null && props !== void 0 && props.disabled) {
|
|
61
|
-
if (typeof
|
|
62
|
-
var
|
|
63
|
-
|
|
119
|
+
if (typeof restProps.value === 'number') {
|
|
120
|
+
var _restProps$value4, _restProps$value4$toS;
|
|
121
|
+
restProps.value = restProps === null || restProps === void 0 || (_restProps$value4 = restProps.value) === null || _restProps$value4 === void 0 || (_restProps$value4$toS = _restProps$value4.toString) === null || _restProps$value4$toS === void 0 ? void 0 : _restProps$value4$toS.call(_restProps$value4);
|
|
64
122
|
}
|
|
65
123
|
return /*#__PURE__*/React.cloneElement(ComInput, _objectSpread(_objectSpread(_objectSpread({
|
|
66
124
|
allowClear: true,
|
|
67
125
|
autoComplete: 'off',
|
|
68
126
|
placeholder: placeholder || `${locale.ProForm.inputPlaceholder}`
|
|
69
|
-
}, omit(initialConfig, ['trim', 'upperCase'])),
|
|
70
|
-
value: maskStringRangeWithRegex(
|
|
127
|
+
}, omit(initialConfig, ['trim', 'upperCase'])), restProps), {}, {
|
|
128
|
+
value: maskStringRangeWithRegex(restProps.value, desensitization)
|
|
71
129
|
}));
|
|
72
130
|
}
|
|
73
131
|
return ComInput;
|
|
@@ -47,7 +47,7 @@ var BlockFields = props => {
|
|
|
47
47
|
// 左侧标题布局
|
|
48
48
|
if (titlePosition === 'left') {
|
|
49
49
|
return /*#__PURE__*/_jsx(Space, {
|
|
50
|
-
|
|
50
|
+
orientation: "vertical",
|
|
51
51
|
className: cls,
|
|
52
52
|
id: id,
|
|
53
53
|
children: /*#__PURE__*/_jsxs("div", {
|
|
@@ -98,7 +98,7 @@ var BlockFields = props => {
|
|
|
98
98
|
|
|
99
99
|
// 默认顶部标题布局
|
|
100
100
|
return /*#__PURE__*/_jsx(Space, {
|
|
101
|
-
|
|
101
|
+
orientation: "vertical",
|
|
102
102
|
className: cls,
|
|
103
103
|
id: id,
|
|
104
104
|
children: /*#__PURE__*/_jsx(ProCollapse, {
|
|
@@ -314,7 +314,8 @@
|
|
|
314
314
|
.@{ant-prefix}-input,
|
|
315
315
|
.@{ant-prefix}-select .@{ant-prefix}-select-selector,
|
|
316
316
|
.@{ant-prefix}-input-number,
|
|
317
|
-
.@{ant-prefix}-input-number-input
|
|
317
|
+
.@{ant-prefix}-input-number-input,
|
|
318
|
+
.@{ant-prefix}-picker{
|
|
318
319
|
// 重置z-index确保正确的层级关系
|
|
319
320
|
position: relative;
|
|
320
321
|
// 重置圆角
|
|
@@ -337,7 +338,8 @@
|
|
|
337
338
|
.@{ant-prefix}-input,
|
|
338
339
|
.@{ant-prefix}-select .@{ant-prefix}-select-selector,
|
|
339
340
|
.@{ant-prefix}-input-number,
|
|
340
|
-
.@{ant-prefix}-input-number-input
|
|
341
|
+
.@{ant-prefix}-input-number-input,
|
|
342
|
+
.@{ant-prefix}-picker{
|
|
341
343
|
border-top-right-radius: 6px;
|
|
342
344
|
border-bottom-right-radius: 6px;
|
|
343
345
|
}
|
|
@@ -75,41 +75,34 @@ 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
|
+
style?: React.CSSProperties;
|
|
79
79
|
trim?: boolean;
|
|
80
80
|
normalize?: (value: any, prevValue: any, allValues: import("@rc-component/form/lib/interface").Store) => any;
|
|
81
81
|
children?: React.ReactNode | ((form: FormInstance<any>) => React.ReactNode);
|
|
82
|
-
|
|
83
|
-
style?: React.CSSProperties;
|
|
84
|
-
prefixCls?: string;
|
|
85
|
-
rootClassName?: string;
|
|
86
|
-
id?: string;
|
|
87
|
-
vertical?: boolean;
|
|
88
|
-
status?: "" | "error" | "success" | "warning" | "validating";
|
|
82
|
+
className?: string;
|
|
89
83
|
hidden?: boolean;
|
|
90
|
-
onReset?: () => void;
|
|
91
|
-
htmlFor?: string;
|
|
92
|
-
valueType?: import("../../../render/propsType").ProFormValueType;
|
|
93
|
-
trigger?: string;
|
|
94
|
-
viewRender?: (value: any, record: any, { form, index, namePath, }: {
|
|
95
|
-
[key: string]: any;
|
|
96
|
-
form: FormInstance<any>;
|
|
97
|
-
index?: number;
|
|
98
|
-
}) => string | React.ReactElement<any, any>;
|
|
99
|
-
desensitization?: [number, number] | ReactiveFunction<any, [number, number]>;
|
|
100
84
|
layout?: import("antd/es/form/Form").FormItemLayout;
|
|
101
85
|
help?: React.ReactNode;
|
|
86
|
+
vertical?: boolean;
|
|
102
87
|
preserve?: boolean;
|
|
103
|
-
|
|
104
|
-
|
|
88
|
+
prefixCls?: string;
|
|
89
|
+
onReset?: () => void;
|
|
90
|
+
status?: "" | "warning" | "error" | "success" | "validating";
|
|
91
|
+
id?: string;
|
|
92
|
+
rootClassName?: string;
|
|
93
|
+
isView?: boolean;
|
|
94
|
+
getValueProps?: ((value: any) => Record<string, unknown>) & ((value: any) => Record<string, unknown>);
|
|
95
|
+
desensitization?: [number, number] | ReactiveFunction<any, [number, number]>;
|
|
96
|
+
htmlFor?: string;
|
|
105
97
|
colon?: boolean;
|
|
106
98
|
labelAlign?: import("antd/es/form/interface").FormLabelAlign;
|
|
107
99
|
labelCol?: import("antd").ColProps;
|
|
108
100
|
getValueFromEvent?: (...args: import("@rc-component/form/lib/interface").EventArgs) => any;
|
|
109
101
|
shouldUpdate?: import("@rc-component/form/lib/Field").ShouldUpdate<any>;
|
|
102
|
+
trigger?: string;
|
|
103
|
+
validateTrigger?: string | false | string[];
|
|
110
104
|
validateDebounce?: number;
|
|
111
105
|
valuePropName?: string;
|
|
112
|
-
getValueProps?: ((value: any) => Record<string, unknown>) & ((value: any) => Record<string, unknown>);
|
|
113
106
|
messageVariables?: Record<string, string>;
|
|
114
107
|
initialValue?: any;
|
|
115
108
|
onMetaChange?: (meta: import("@rc-component/form/lib/Field").MetaEvent) => void;
|
|
@@ -119,10 +112,17 @@ export declare const useFormItemProps: (column: FlexibleGroupColumnType, context
|
|
|
119
112
|
hasFeedback?: boolean | {
|
|
120
113
|
icons: import("antd/es/form/FormItem").FeedbackIcons;
|
|
121
114
|
};
|
|
122
|
-
validateStatus?: "" | "
|
|
115
|
+
validateStatus?: "" | "warning" | "error" | "success" | "validating";
|
|
123
116
|
wrapperCol?: import("antd").ColProps;
|
|
124
117
|
fieldId?: string;
|
|
118
|
+
valueType?: import("../../../render/propsType").ProFormValueType;
|
|
125
119
|
switchValue?: [any, any];
|
|
120
|
+
viewRender?: (value: any, record: any, { form, index, namePath, }: {
|
|
121
|
+
[key: string]: any;
|
|
122
|
+
form: FormInstance<any>;
|
|
123
|
+
index?: number;
|
|
124
|
+
}) => string | React.ReactElement<any, any>;
|
|
125
|
+
viewType?: import("../../../render/propsType").ViewType;
|
|
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, "format" | "valueType" | "
|
|
144
|
+
componentProps: import("lodash").Omit<any, "format" | "valueType" | "switchValue" | "dependNames" | "toISOString" | "toCSTString" | "clearNotShow" | "precision">;
|
|
145
145
|
formItemTransform: {
|
|
146
146
|
getValueProps: any;
|
|
147
147
|
normalize: any;
|
|
@@ -87,8 +87,6 @@ var ChangedWrapper = props => {
|
|
|
87
87
|
originalValues: isNestedField ? originalValues : undefined
|
|
88
88
|
}, children.props), rest));
|
|
89
89
|
}
|
|
90
|
-
|
|
91
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
92
90
|
var tipOpenCalc = () => {
|
|
93
91
|
if (!toolTip) return false;
|
|
94
92
|
|
|
@@ -119,7 +117,7 @@ var ChangedWrapper = props => {
|
|
|
119
117
|
placement: "topLeft",
|
|
120
118
|
autoAdjustOverflow: false,
|
|
121
119
|
title: /*#__PURE__*/_jsxs(Space, {
|
|
122
|
-
|
|
120
|
+
orientation: "vertical",
|
|
123
121
|
className: "changed-tooltip",
|
|
124
122
|
children: [/*#__PURE__*/_jsxs(Space, {
|
|
125
123
|
align: "start",
|
|
@@ -177,6 +177,12 @@
|
|
|
177
177
|
margin-left: @zaui-space-size-sm;
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
+
.pro-form-input-space-compact{
|
|
181
|
+
.@{ant-prefix}-btn{
|
|
182
|
+
color: #333;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
180
186
|
.@{ant-prefix}-form-item-has-error {
|
|
181
187
|
.group-separator {
|
|
182
188
|
color: #ff4d4f;
|
|
@@ -186,6 +192,18 @@
|
|
|
186
192
|
.site-input-split {
|
|
187
193
|
border-color: @zaui-danger;
|
|
188
194
|
}
|
|
195
|
+
.pro-form-input-space-compact{
|
|
196
|
+
.@{ant-prefix}-btn{
|
|
197
|
+
color: @zaui-danger;
|
|
198
|
+
border-color: @zaui-danger;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
.pro-tree-modal{
|
|
202
|
+
.pro-enum-input-addonAfter{
|
|
203
|
+
border-color: @zaui-danger;
|
|
204
|
+
color: @zaui-danger;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
189
207
|
}
|
|
190
208
|
|
|
191
209
|
.site-input-group-wrapper {
|