fan-standard-comp 3.0.13 → 3.0.16
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/Readme.md +0 -2
- package/dist/{f26952c118ab6cdcd23dc0028ee98c11.svg → e8686421bcdc3738ee1c41da9fa770d7.svg} +0 -0
- package/dist/fan-standard-comp.umd.js +16 -16
- package/es/ButtonGroup/ButtonList.js +36 -18
- package/es/ButtonGroup/ButtonMenu.js +27 -14
- package/es/ButtonGroup/PopConfirmTitle.js +16 -5
- package/es/ButtonGroup/index.js +131 -82
- package/es/DragContent/DragBar.js +18 -6
- package/es/DragContent/index.js +30 -12
- package/es/FormComp/ChunkUploader/api.js +21 -8
- package/es/FormComp/ChunkUploader/index.js +46 -27
- package/es/FormComp/ChunkUploader/lib.js +26 -9
- package/es/FormComp/ChunkUploader/upload-queue.class.js +12 -5
- package/es/FormComp/ChunkUploader/worker.js +7 -2
- package/es/FormComp/EditButton/index.js +35 -16
- package/es/FormComp/FieldComponent/ReUpload.js +38 -18
- package/es/FormComp/FieldComponent/RefactorTreeSelect.js +49 -26
- package/es/FormComp/FieldComponent/TitleNode.js +13 -3
- package/es/FormComp/FieldComponent/index.js +112 -72
- package/es/FormComp/FieldComponent/setReadonlyValues.js +55 -28
- package/es/FormComp/RenderItemGroup/index.d.ts +9 -1
- package/es/FormComp/RenderItemGroup/index.js +63 -36
- package/es/FormComp/Uploader/index.js +64 -38
- package/es/FormComp/Uploader/util.js +11 -2
- package/es/FormComp/VarTemplate/index.js +44 -31
- package/es/FormComp/index.js +15 -1
- package/es/NavLeafScroll/index.js +53 -35
- package/es/RefactorTree/index.js +52 -29
- package/es/RefactorTree/indexTreeNode.js +54 -31
- package/es/RefactorTree/style/index.js +3 -1
- package/es/RefactorTree/util.js +18 -10
- package/es/SpecIcon/fonts/iconfont.js +2 -0
- package/es/SpecIcon/index.js +30 -17
- package/es/SplitterLayout/Pane.js +17 -5
- package/es/SplitterLayout/index.js +24 -13
- package/es/StandardContent/SplitterLayout/Pane.js +25 -13
- package/es/StandardContent/SplitterLayout/index.js +43 -30
- package/es/StandardContent/SubfieldContent.js +28 -13
- package/es/StandardContent/WrapperContent.js +24 -10
- package/es/StandardFilter/index.js +46 -27
- package/es/StandardForm/ActionList.js +21 -8
- package/es/StandardForm/StepForm.d.ts +1 -1
- package/es/StandardForm/StepForm.js +72 -41
- package/es/StandardForm/TabForm.d.ts +1 -1
- package/es/StandardForm/TabForm.js +56 -27
- package/es/StandardForm/index.d.ts +3 -1
- package/es/StandardForm/index.js +57 -28
- package/es/StandardModal/UpdateFormRef.js +18 -4
- package/es/StandardModal/index.d.ts +1 -1
- package/es/StandardModal/index.js +106 -62
- package/es/StandardPanel/index.js +53 -32
- package/es/StandardTable/index.js +34 -17
- package/es/StandardTable/style/index.js +3 -1
- package/es/components/IconNode/index.js +17 -6
- package/es/components/index.js +15 -2
- package/es/data/func.code.js +9 -2
- package/es/data/general.config.js +9 -2
- package/es/data/index.js +23 -3
- package/es/index.js +229 -24
- package/es/utils/ValueFormat.js +9 -1
- package/es/utils/filterPermission.js +20 -4
- package/es/utils/getParentNodes.js +12 -1
- package/es/utils/index.js +35 -3
- package/lib/ButtonGroup/ButtonList.js +9 -9
- package/lib/ButtonGroup/ButtonMenu.js +11 -11
- package/lib/ButtonGroup/PopConfirmTitle.js +5 -5
- package/lib/ButtonGroup/index.js +75 -56
- package/lib/DragContent/DragBar.js +5 -5
- package/lib/DragContent/index.js +7 -7
- package/lib/FormComp/ChunkUploader/api.js +4 -4
- package/lib/FormComp/ChunkUploader/index.js +10 -10
- package/lib/FormComp/ChunkUploader/lib.js +2 -2
- package/lib/FormComp/ChunkUploader/upload-queue.class.js +2 -2
- package/lib/FormComp/ChunkUploader/worker.js +2 -2
- package/lib/FormComp/EditButton/index.js +10 -10
- package/lib/FormComp/FieldComponent/ReUpload.js +9 -9
- package/lib/FormComp/FieldComponent/RefactorTreeSelect.js +16 -16
- package/lib/FormComp/FieldComponent/TitleNode.js +4 -4
- package/lib/FormComp/FieldComponent/index.js +36 -36
- package/lib/FormComp/FieldComponent/setReadonlyValues.js +17 -17
- package/lib/FormComp/RenderItemGroup/index.d.ts +9 -1
- package/lib/FormComp/RenderItemGroup/index.js +30 -24
- package/lib/FormComp/Uploader/index.js +16 -16
- package/lib/FormComp/VarTemplate/index.js +23 -25
- package/lib/FormComp/index.js +2 -2
- package/lib/NavLeafScroll/index.js +28 -28
- package/lib/RefactorTree/index.js +14 -14
- package/lib/RefactorTree/indexTreeNode.js +19 -19
- package/lib/SpecIcon/index.js +13 -13
- package/lib/SplitterLayout/Pane.js +4 -4
- package/lib/SplitterLayout/index.js +10 -10
- package/lib/StandardContent/SplitterLayout/Pane.js +11 -11
- package/lib/StandardContent/SplitterLayout/index.js +27 -27
- package/lib/StandardContent/SubfieldContent.js +9 -9
- package/lib/StandardContent/WrapperContent.js +7 -7
- package/lib/StandardFilter/index.js +18 -18
- package/lib/StandardForm/ActionList.js +6 -6
- package/lib/StandardForm/StepForm.d.ts +1 -1
- package/lib/StandardForm/StepForm.js +30 -27
- package/lib/StandardForm/TabForm.d.ts +1 -1
- package/lib/StandardForm/TabForm.js +17 -14
- package/lib/StandardForm/index.d.ts +3 -1
- package/lib/StandardForm/index.js +17 -15
- package/lib/StandardModal/UpdateFormRef.js +4 -4
- package/lib/StandardModal/index.d.ts +1 -1
- package/lib/StandardModal/index.js +53 -39
- package/lib/StandardPanel/index.js +23 -23
- package/lib/StandardTable/index.js +8 -8
- package/lib/components/IconNode/index.js +6 -6
- package/lib/components/index.js +2 -2
- package/lib/data/func.code.js +2 -2
- package/lib/data/general.config.js +2 -2
- package/lib/data/index.js +3 -3
- package/lib/index.js +22 -22
- package/lib/utils/ValueFormat.js +2 -2
- package/lib/utils/filterPermission.js +2 -2
- package/lib/utils/index.js +2 -2
- package/package.json +1 -1
|
@@ -1,9 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
1
3
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
2
4
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
require("antd/es/button/style");
|
|
11
|
+
|
|
12
|
+
var _button = _interopRequireDefault(require("antd/es/button"));
|
|
13
|
+
|
|
14
|
+
require("antd/es/form/style");
|
|
15
|
+
|
|
16
|
+
var _form = _interopRequireDefault(require("antd/es/form"));
|
|
17
|
+
|
|
18
|
+
var _react = _interopRequireDefault(require("react"));
|
|
19
|
+
|
|
20
|
+
var _FieldComponent = _interopRequireDefault(require("../FormComp/FieldComponent"));
|
|
21
|
+
|
|
22
|
+
var _ValueFormat = _interopRequireDefault(require("../utils/ValueFormat.js"));
|
|
23
|
+
|
|
24
|
+
var _index = _interopRequireDefault(require("../ButtonGroup/index"));
|
|
25
|
+
|
|
26
|
+
var _index2 = require("../data/index");
|
|
27
|
+
|
|
28
|
+
require("./style/index.less");
|
|
29
|
+
|
|
30
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
7
31
|
|
|
8
32
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9
33
|
|
|
@@ -35,17 +59,11 @@ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) ===
|
|
|
35
59
|
|
|
36
60
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
37
61
|
|
|
38
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try {
|
|
62
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
39
63
|
|
|
40
64
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
41
65
|
|
|
42
|
-
|
|
43
|
-
import FieldComponent from '../FormComp/FieldComponent';
|
|
44
|
-
import UtilValueFormat from '../utils/ValueFormat.js';
|
|
45
|
-
import ButtonGroup from '../ButtonGroup/index';
|
|
46
|
-
import { general } from '../data/index';
|
|
47
|
-
import './style/index.less';
|
|
48
|
-
var FormItem = _Form.Item;
|
|
66
|
+
var FormItem = _form["default"].Item;
|
|
49
67
|
|
|
50
68
|
var StandardFilter = /*#__PURE__*/function (_React$Component) {
|
|
51
69
|
_inherits(StandardFilter, _React$Component);
|
|
@@ -58,7 +76,7 @@ var StandardFilter = /*#__PURE__*/function (_React$Component) {
|
|
|
58
76
|
_classCallCheck(this, StandardFilter);
|
|
59
77
|
|
|
60
78
|
_this = _super.call(this, props);
|
|
61
|
-
_this.filterFormRef = /*#__PURE__*/
|
|
79
|
+
_this.filterFormRef = /*#__PURE__*/_react["default"].createRef(); // 更新表单控件值,用于外部获取当前表单实例(force是否强制清空表单)
|
|
62
80
|
|
|
63
81
|
_this.updateFormFields = function (newVal, force) {
|
|
64
82
|
var getFormFields = _this.props.getFormFields;
|
|
@@ -86,7 +104,7 @@ var StandardFilter = /*#__PURE__*/function (_React$Component) {
|
|
|
86
104
|
// delete values.false // TODO 自定义结构会莫名的出来一个false字段
|
|
87
105
|
// }
|
|
88
106
|
|
|
89
|
-
var resultValues =
|
|
107
|
+
var resultValues = (0, _ValueFormat["default"])(values, formItemGroup);
|
|
90
108
|
|
|
91
109
|
if (onFilterSearch) {
|
|
92
110
|
onFilterSearch(Object.assign({}, resultValues));
|
|
@@ -129,16 +147,16 @@ var StandardFilter = /*#__PURE__*/function (_React$Component) {
|
|
|
129
147
|
var reFormItemGroup = _this.state.reFormItemGroup;
|
|
130
148
|
|
|
131
149
|
if (Array.isArray(reFormItemGroup)) {
|
|
132
|
-
return /*#__PURE__*/
|
|
150
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, reFormItemGroup.map(function (item, index) {
|
|
133
151
|
var componentStyle = item.componentStyle,
|
|
134
152
|
isHide = item.isHide;
|
|
135
153
|
if (_this.itemIsHide(isHide)) return null;
|
|
136
|
-
return /*#__PURE__*/
|
|
154
|
+
return /*#__PURE__*/_react["default"].createElement(FormItem, Object.assign({
|
|
137
155
|
key: item.filedName,
|
|
138
156
|
label: item.label,
|
|
139
157
|
name: item.type !== 'custom' && item.filedName,
|
|
140
158
|
rules: item.rules || (item.fieldOptions ? item.fieldOptions.rules : [])
|
|
141
|
-
}, item.protoFormItem), item.type === 'custom' && item.customRender ? item.customRender(_this.filterFormRef, Object.assign({}, item)) : /*#__PURE__*/
|
|
159
|
+
}, item.protoFormItem), item.type === 'custom' && item.customRender ? item.customRender(_this.filterFormRef, Object.assign({}, item)) : /*#__PURE__*/_react["default"].createElement(_FieldComponent["default"], Object.assign({}, item, {
|
|
142
160
|
onChange: function onChange(val) {
|
|
143
161
|
var updateValue = val;
|
|
144
162
|
|
|
@@ -159,7 +177,7 @@ var StandardFilter = /*#__PURE__*/function (_React$Component) {
|
|
|
159
177
|
if (item.onChange) item.onChange.apply(item, [val, _this.filterFormRef].concat(otherParams));
|
|
160
178
|
},
|
|
161
179
|
style: Object.assign({
|
|
162
|
-
width: item.type === 'checkbox' || item.type === 'radio' ? 'auto' : general.formItemStyle.xsm.width
|
|
180
|
+
width: item.type === 'checkbox' || item.type === 'radio' ? 'auto' : _index2.general.formItemStyle.xsm.width
|
|
163
181
|
}, componentStyle)
|
|
164
182
|
})));
|
|
165
183
|
}));
|
|
@@ -205,30 +223,30 @@ var StandardFilter = /*#__PURE__*/function (_React$Component) {
|
|
|
205
223
|
confirmText = _this$props2.confirmText,
|
|
206
224
|
cancelText = _this$props2.cancelText; // const { recombinationGroup } = this.state;
|
|
207
225
|
|
|
208
|
-
return /*#__PURE__*/
|
|
226
|
+
return /*#__PURE__*/_react["default"].createElement(_form["default"], {
|
|
209
227
|
name: "standard-filter-form",
|
|
210
228
|
ref: this.filterFormRef,
|
|
211
229
|
layout: "inline",
|
|
212
230
|
onFinish: this.handleSearch,
|
|
213
231
|
className: className,
|
|
214
232
|
style: style
|
|
215
|
-
}, /*#__PURE__*/
|
|
233
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
216
234
|
className: "filter-grid"
|
|
217
|
-
}, /*#__PURE__*/
|
|
235
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
218
236
|
className: "filter-form"
|
|
219
|
-
}, this.state.reFormItemGroup ? /*#__PURE__*/
|
|
237
|
+
}, this.state.reFormItemGroup ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, this.renderFormItemGroup(), /*#__PURE__*/_react["default"].createElement(FormItem, null, /*#__PURE__*/_react["default"].createElement(_button["default"], {
|
|
220
238
|
type: "primary",
|
|
221
239
|
htmlType: "submit"
|
|
222
|
-
}, " ", confirmText || '查询'), onFilterReset && /*#__PURE__*/
|
|
240
|
+
}, " ", confirmText || '查询'), onFilterReset && /*#__PURE__*/_react["default"].createElement(_button["default"], {
|
|
223
241
|
type: "primary",
|
|
224
242
|
style: {
|
|
225
243
|
marginLeft: 8
|
|
226
244
|
},
|
|
227
245
|
onClick: this.handleReset,
|
|
228
246
|
ghost: true
|
|
229
|
-
}, cancelText || '重置'))) : null), buttonGroup && buttonGroup.length > 0 ? /*#__PURE__*/
|
|
247
|
+
}, cancelText || '重置'))) : null), buttonGroup && buttonGroup.length > 0 ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
230
248
|
className: "filter-btns"
|
|
231
|
-
}, /*#__PURE__*/
|
|
249
|
+
}, /*#__PURE__*/_react["default"].createElement(_index["default"], {
|
|
232
250
|
options: buttonGroup,
|
|
233
251
|
min: min,
|
|
234
252
|
codes: codes,
|
|
@@ -248,6 +266,7 @@ var StandardFilter = /*#__PURE__*/function (_React$Component) {
|
|
|
248
266
|
}]);
|
|
249
267
|
|
|
250
268
|
return StandardFilter;
|
|
251
|
-
}(
|
|
269
|
+
}(_react["default"].Component);
|
|
252
270
|
|
|
253
|
-
|
|
271
|
+
var _default = StandardFilter;
|
|
272
|
+
exports["default"] = _default;
|
|
@@ -1,7 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
require("antd/es/button/style");
|
|
9
|
+
|
|
10
|
+
var _button = _interopRequireDefault(require("antd/es/button"));
|
|
11
|
+
|
|
12
|
+
var _react = _interopRequireDefault(require("react"));
|
|
13
|
+
|
|
14
|
+
var _IconNode = _interopRequireDefault(require("../components/IconNode"));
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
5
17
|
|
|
6
18
|
var ActionList = function ActionList(props) {
|
|
7
19
|
var list = props.list,
|
|
@@ -10,16 +22,16 @@ var ActionList = function ActionList(props) {
|
|
|
10
22
|
align = _props$align === void 0 ? 'default' : _props$align,
|
|
11
23
|
other = props.other,
|
|
12
24
|
onStep = props.onStep;
|
|
13
|
-
return /*#__PURE__*/
|
|
25
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
14
26
|
className: "standardForm-actions",
|
|
15
27
|
style: {
|
|
16
28
|
textAlign: !align || align === 'default' ? 'inherit' : align
|
|
17
29
|
}
|
|
18
30
|
}, list.map(function (item, index) {
|
|
19
|
-
return /*#__PURE__*/
|
|
31
|
+
return /*#__PURE__*/_react["default"].createElement(_button["default"], {
|
|
20
32
|
key: index,
|
|
21
33
|
type: item.type ? item.type : 'primary',
|
|
22
|
-
icon: /*#__PURE__*/
|
|
34
|
+
icon: /*#__PURE__*/_react["default"].createElement(_IconNode["default"], {
|
|
23
35
|
icon: item.icon
|
|
24
36
|
}),
|
|
25
37
|
ghost: item.ghost,
|
|
@@ -41,4 +53,5 @@ var ActionList = function ActionList(props) {
|
|
|
41
53
|
}));
|
|
42
54
|
};
|
|
43
55
|
|
|
44
|
-
|
|
56
|
+
var _default = ActionList;
|
|
57
|
+
exports["default"] = _default;
|
|
@@ -15,5 +15,5 @@ export interface StepFormProp extends StandardFormProps {
|
|
|
15
15
|
stepClick?: (type?: string, formChild?: any, values?: any) => void;
|
|
16
16
|
formItemGroup?: StepItemGroupProps[];
|
|
17
17
|
}
|
|
18
|
-
declare const StepForm: React.ForwardRefExoticComponent<StepFormProp & React.RefAttributes<unknown>>;
|
|
18
|
+
declare const StepForm: React.ForwardRefExoticComponent<Pick<StepFormProp, string | number> & React.RefAttributes<unknown>>;
|
|
19
19
|
export default StepForm;
|
|
@@ -1,9 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
require("antd/es/col/style");
|
|
11
|
+
|
|
12
|
+
var _col = _interopRequireDefault(require("antd/es/col"));
|
|
13
|
+
|
|
14
|
+
require("antd/es/button/style");
|
|
15
|
+
|
|
16
|
+
var _button = _interopRequireDefault(require("antd/es/button"));
|
|
17
|
+
|
|
18
|
+
require("antd/es/steps/style");
|
|
19
|
+
|
|
20
|
+
var _steps = _interopRequireDefault(require("antd/es/steps"));
|
|
21
|
+
|
|
22
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
23
|
+
|
|
24
|
+
var _index = _interopRequireDefault(require("./index"));
|
|
25
|
+
|
|
26
|
+
var _RenderItemGroup = _interopRequireDefault(require("../FormComp/RenderItemGroup"));
|
|
27
|
+
|
|
28
|
+
var _ActionList = _interopRequireDefault(require("./ActionList"));
|
|
29
|
+
|
|
30
|
+
require("./style/index.less");
|
|
31
|
+
|
|
32
|
+
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
33
|
+
|
|
34
|
+
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
35
|
+
|
|
36
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
7
37
|
|
|
8
38
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
9
39
|
|
|
@@ -17,14 +47,10 @@ function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(
|
|
|
17
47
|
|
|
18
48
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
19
49
|
|
|
20
|
-
import
|
|
21
|
-
|
|
22
|
-
import RenderItemGroup from '../FormComp/RenderItemGroup';
|
|
23
|
-
import ActionList from "./ActionList";
|
|
24
|
-
import './style/index.less'; // import { BreadcrumbProps as AntdBreadcrumbProps } from 'antd/es/form';
|
|
50
|
+
// import { BreadcrumbProps as AntdBreadcrumbProps } from 'antd/es/form';
|
|
51
|
+
var Step = _steps["default"].Step;
|
|
25
52
|
|
|
26
|
-
var
|
|
27
|
-
var StepForm = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
53
|
+
var StepForm = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
|
|
28
54
|
var getFormFields = props.getFormFields,
|
|
29
55
|
_props$formItemGroup = props.formItemGroup,
|
|
30
56
|
formItemGroup = _props$formItemGroup === void 0 ? [] : _props$formItemGroup,
|
|
@@ -42,31 +68,32 @@ var StepForm = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
42
68
|
stepsConfig = _props$stepsConfig === void 0 ? {
|
|
43
69
|
current: 0
|
|
44
70
|
} : _props$stepsConfig,
|
|
45
|
-
stepClick = props.stepClick
|
|
71
|
+
stepClick = props.stepClick,
|
|
72
|
+
displayLayout = props.displayLayout;
|
|
46
73
|
|
|
47
|
-
var _useState = useState(),
|
|
74
|
+
var _useState = (0, _react.useState)(),
|
|
48
75
|
_useState2 = _slicedToArray(_useState, 2),
|
|
49
76
|
formChildFields = _useState2[0],
|
|
50
77
|
setFormChildFields = _useState2[1];
|
|
51
78
|
|
|
52
|
-
var _useState3 = useState(),
|
|
79
|
+
var _useState3 = (0, _react.useState)(),
|
|
53
80
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
54
81
|
formChild = _useState4[0],
|
|
55
82
|
setFormChild = _useState4[1];
|
|
56
83
|
|
|
57
|
-
var _useState5 = useState(0),
|
|
84
|
+
var _useState5 = (0, _react.useState)(0),
|
|
58
85
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
59
86
|
currentStep = _useState6[0],
|
|
60
87
|
setCurrentStep = _useState6[1]; // const [fieldFailed, setFieldFailed] = useState(false)
|
|
61
88
|
|
|
62
89
|
|
|
63
|
-
useEffect(function () {
|
|
90
|
+
(0, _react.useEffect)(function () {
|
|
64
91
|
if (stepsConfig && (stepsConfig.current || stepsConfig.current === 0)) {
|
|
65
92
|
setCurrentStep(stepsConfig.current); // 判断是否有设置当前选中的步骤数
|
|
66
93
|
}
|
|
67
94
|
}, [stepsConfig]);
|
|
68
95
|
if (formItemGroup.length === 0) return null;
|
|
69
|
-
var formGridSize = useMemo(function () {
|
|
96
|
+
var formGridSize = (0, _react.useMemo)(function () {
|
|
70
97
|
if (typeof grid === 'string') return grid; // 数据格式为字符串,包括 xs,md,lg,xlg
|
|
71
98
|
|
|
72
99
|
var sizeName = 'xs';
|
|
@@ -76,7 +103,7 @@ var StepForm = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
76
103
|
if (grid > 3) sizeName = 'xlg';
|
|
77
104
|
return sizeName;
|
|
78
105
|
}, [grid]);
|
|
79
|
-
useEffect(function () {
|
|
106
|
+
(0, _react.useEffect)(function () {
|
|
80
107
|
forceUpdateForm();
|
|
81
108
|
}, [formChildFields, formChild]);
|
|
82
109
|
|
|
@@ -98,7 +125,7 @@ var StepForm = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
98
125
|
formChild && formChild.validateFields(valitorGroup).then(function (values) {
|
|
99
126
|
if (stepClick) stepClick(type, formChild, values);
|
|
100
127
|
extraFunc && extraFunc();
|
|
101
|
-
})
|
|
128
|
+
})["catch"](function (_ref) {// console.log('表单校验不通过 ', errorFields.map(err => err))
|
|
102
129
|
|
|
103
130
|
var errorFields = _ref.errorFields;
|
|
104
131
|
});
|
|
@@ -136,16 +163,16 @@ var StepForm = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
136
163
|
|
|
137
164
|
var renderStepActions = function renderStepActions(item, index) {
|
|
138
165
|
if (formItemGroup.length === 1) {
|
|
139
|
-
return /*#__PURE__*/
|
|
166
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
140
167
|
className: "standardForm-actions",
|
|
141
168
|
key: index
|
|
142
|
-
}, /*#__PURE__*/
|
|
169
|
+
}, /*#__PURE__*/_react["default"].createElement(_button["default"], {
|
|
143
170
|
type: "primary",
|
|
144
171
|
htmlType: "submit",
|
|
145
172
|
onClick: function onClick() {
|
|
146
173
|
return handleStepType('submit');
|
|
147
174
|
}
|
|
148
|
-
}, "\u786E\u8BA4"), /*#__PURE__*/
|
|
175
|
+
}, "\u786E\u8BA4"), /*#__PURE__*/_react["default"].createElement(_button["default"], {
|
|
149
176
|
onClick: function onClick() {
|
|
150
177
|
return handleStepType('cancel');
|
|
151
178
|
}
|
|
@@ -154,45 +181,45 @@ var StepForm = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
154
181
|
|
|
155
182
|
var buttonList = function buttonList(itemIndex) {
|
|
156
183
|
if (itemIndex === 0) {
|
|
157
|
-
return /*#__PURE__*/
|
|
184
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_button["default"], {
|
|
158
185
|
type: "primary",
|
|
159
186
|
onClick: function onClick() {
|
|
160
187
|
return handleStepType('next');
|
|
161
188
|
}
|
|
162
|
-
}, "\u4E0B\u4E00\u6B65"), /*#__PURE__*/
|
|
189
|
+
}, "\u4E0B\u4E00\u6B65"), /*#__PURE__*/_react["default"].createElement(_button["default"], {
|
|
163
190
|
onClick: function onClick() {
|
|
164
191
|
return handleStepType('cancel');
|
|
165
192
|
}
|
|
166
193
|
}, "\u53D6\u6D88"));
|
|
167
194
|
} else if (itemIndex === formItemGroup.length - 1) {
|
|
168
|
-
return /*#__PURE__*/
|
|
195
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_button["default"], {
|
|
169
196
|
type: "primary",
|
|
170
197
|
onClick: function onClick() {
|
|
171
198
|
return handleStepType('prev');
|
|
172
199
|
}
|
|
173
|
-
}, "\u4E0A\u4E00\u6B65"), /*#__PURE__*/
|
|
200
|
+
}, "\u4E0A\u4E00\u6B65"), /*#__PURE__*/_react["default"].createElement(_button["default"], {
|
|
174
201
|
type: "primary",
|
|
175
202
|
htmlType: "submit",
|
|
176
203
|
onClick: function onClick() {
|
|
177
204
|
return handleStepType('submit');
|
|
178
205
|
}
|
|
179
|
-
}, "\u786E\u8BA4"), /*#__PURE__*/
|
|
206
|
+
}, "\u786E\u8BA4"), /*#__PURE__*/_react["default"].createElement(_button["default"], {
|
|
180
207
|
onClick: function onClick() {
|
|
181
208
|
return handleStepType('cancel');
|
|
182
209
|
}
|
|
183
210
|
}, "\u53D6\u6D88"));
|
|
184
211
|
} else {
|
|
185
|
-
return /*#__PURE__*/
|
|
212
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_button["default"], {
|
|
186
213
|
type: "primary",
|
|
187
214
|
onClick: function onClick() {
|
|
188
215
|
return handleStepType('prev');
|
|
189
216
|
}
|
|
190
|
-
}, "\u4E0A\u4E00\u6B65"), /*#__PURE__*/
|
|
217
|
+
}, "\u4E0A\u4E00\u6B65"), /*#__PURE__*/_react["default"].createElement(_button["default"], {
|
|
191
218
|
type: "primary",
|
|
192
219
|
onClick: function onClick() {
|
|
193
220
|
return handleStepType('next');
|
|
194
221
|
}
|
|
195
|
-
}, "\u4E0B\u4E00\u6B65"), /*#__PURE__*/
|
|
222
|
+
}, "\u4E0B\u4E00\u6B65"), /*#__PURE__*/_react["default"].createElement(_button["default"], {
|
|
196
223
|
onClick: function onClick() {
|
|
197
224
|
return handleStepType('cancel');
|
|
198
225
|
}
|
|
@@ -200,7 +227,7 @@ var StepForm = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
200
227
|
}
|
|
201
228
|
};
|
|
202
229
|
|
|
203
|
-
return /*#__PURE__*/
|
|
230
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
204
231
|
className: "standardForm-actions",
|
|
205
232
|
key: index,
|
|
206
233
|
style: {
|
|
@@ -209,12 +236,13 @@ var StepForm = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
209
236
|
}, buttonList(index));
|
|
210
237
|
};
|
|
211
238
|
|
|
212
|
-
return /*#__PURE__*/
|
|
239
|
+
return /*#__PURE__*/_react["default"].createElement(_index["default"], {
|
|
213
240
|
className: layout === 'inline' ? '' : '',
|
|
214
241
|
actionGroup: [],
|
|
215
242
|
ref: ref,
|
|
216
243
|
fieldSize: fieldSize,
|
|
217
244
|
initialValues: initialValues,
|
|
245
|
+
// @ts-ignore
|
|
218
246
|
getFormFields: function getFormFields(fields, form) {
|
|
219
247
|
setFormChildFields(fields);
|
|
220
248
|
setFormChild(form);
|
|
@@ -223,8 +251,8 @@ var StepForm = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
223
251
|
layout: layout,
|
|
224
252
|
onFinishFailed: function onFinishFailed() {// setFieldFailed(true)
|
|
225
253
|
}
|
|
226
|
-
}, /*#__PURE__*/
|
|
227
|
-
return !item.hideStep ? /*#__PURE__*/
|
|
254
|
+
}, /*#__PURE__*/_react["default"].createElement(_steps["default"], Object.assign({}, stepsConfig), formItemGroup.map(function (item, index) {
|
|
255
|
+
return !item.hideStep ? /*#__PURE__*/_react["default"].createElement(Step, {
|
|
228
256
|
key: "".concat(item.title).concat(index),
|
|
229
257
|
description: item.description,
|
|
230
258
|
icon: item.icon,
|
|
@@ -234,22 +262,23 @@ var StepForm = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
234
262
|
disabled: item.disabled
|
|
235
263
|
}) : null;
|
|
236
264
|
})), formItemGroup.map(function (item, index) {
|
|
237
|
-
return /*#__PURE__*/
|
|
265
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
238
266
|
key: index,
|
|
239
267
|
className: "stepForm-content ".concat(layout === 'inline' ? 'stepForm-content-inline' : ''),
|
|
240
268
|
style: stepsConfig && stepsConfig.current !== index ? {
|
|
241
269
|
display: 'none'
|
|
242
270
|
} : {}
|
|
243
|
-
}, item.fields && Array.isArray(item.fields) ? /*#__PURE__*/
|
|
271
|
+
}, item.fields && Array.isArray(item.fields) ? /*#__PURE__*/_react["default"].createElement(_RenderItemGroup["default"], {
|
|
244
272
|
layout: layout,
|
|
245
273
|
form: formChild,
|
|
246
274
|
fieldStatus: fieldStatus,
|
|
247
275
|
size: formGridSize,
|
|
276
|
+
displayLayout: displayLayout,
|
|
248
277
|
// doUpdateFormFields={() => console.log('强制渲染表单')}
|
|
249
278
|
itemGroup: item.fields
|
|
250
|
-
}) : item.fields, !actionHide && /*#__PURE__*/
|
|
279
|
+
}) : item.fields, !actionHide && /*#__PURE__*/_react["default"].createElement(_col["default"], {
|
|
251
280
|
span: 24
|
|
252
|
-
}, item.actions ? /*#__PURE__*/
|
|
281
|
+
}, item.actions ? /*#__PURE__*/_react["default"].createElement(_ActionList["default"], {
|
|
253
282
|
list: item.actions,
|
|
254
283
|
onStep: handleStepType,
|
|
255
284
|
form: formChild,
|
|
@@ -258,4 +287,6 @@ var StepForm = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
258
287
|
}) : renderStepActions(item, index)));
|
|
259
288
|
}));
|
|
260
289
|
});
|
|
261
|
-
|
|
290
|
+
|
|
291
|
+
var _default = StepForm;
|
|
292
|
+
exports["default"] = _default;
|
|
@@ -15,5 +15,5 @@ export interface TabFormProp extends StandardFormProps {
|
|
|
15
15
|
actionHide?: boolean;
|
|
16
16
|
formItemGroup?: TabItemGroupProps[];
|
|
17
17
|
}
|
|
18
|
-
declare const TabForm: React.ForwardRefExoticComponent<TabFormProp & React.RefAttributes<unknown>>;
|
|
18
|
+
declare const TabForm: React.ForwardRefExoticComponent<Pick<TabFormProp, string | number> & React.RefAttributes<unknown>>;
|
|
19
19
|
export default TabForm;
|
|
@@ -1,7 +1,37 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
require("antd/es/col/style");
|
|
11
|
+
|
|
12
|
+
var _col = _interopRequireDefault(require("antd/es/col"));
|
|
13
|
+
|
|
14
|
+
require("antd/es/tabs/style");
|
|
15
|
+
|
|
16
|
+
var _tabs = _interopRequireDefault(require("antd/es/tabs"));
|
|
17
|
+
|
|
18
|
+
var _tslib = require("tslib");
|
|
19
|
+
|
|
20
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
21
|
+
|
|
22
|
+
require("./style/index.less");
|
|
23
|
+
|
|
24
|
+
var _index2 = _interopRequireDefault(require("./index"));
|
|
25
|
+
|
|
26
|
+
var _RenderItemGroup = _interopRequireDefault(require("../FormComp/RenderItemGroup"));
|
|
27
|
+
|
|
28
|
+
var _ActionList = _interopRequireDefault(require("./ActionList"));
|
|
29
|
+
|
|
30
|
+
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
31
|
+
|
|
32
|
+
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
33
|
+
|
|
34
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
5
35
|
|
|
6
36
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
7
37
|
|
|
@@ -15,14 +45,9 @@ function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(
|
|
|
15
45
|
|
|
16
46
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
17
47
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
import StandardForm from './index';
|
|
22
|
-
import RenderItemGroup from '../FormComp/RenderItemGroup';
|
|
23
|
-
import ActionList from "./ActionList";
|
|
24
|
-
var TabPane = _Tabs.TabPane;
|
|
25
|
-
var TabForm = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
48
|
+
var TabPane = _tabs["default"].TabPane;
|
|
49
|
+
|
|
50
|
+
var TabForm = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
|
|
26
51
|
var getFormFields = props.getFormFields,
|
|
27
52
|
_props$formItemGroup = props.formItemGroup,
|
|
28
53
|
formItemGroup = _props$formItemGroup === void 0 ? [] : _props$formItemGroup,
|
|
@@ -36,20 +61,21 @@ var TabForm = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
36
61
|
fieldSize = _props$fieldSize === void 0 ? "middle" : _props$fieldSize,
|
|
37
62
|
onSubmit = props.onSubmit,
|
|
38
63
|
initialValues = props.initialValues,
|
|
39
|
-
tabsConfig = props.tabsConfig
|
|
64
|
+
tabsConfig = props.tabsConfig,
|
|
65
|
+
displayLayout = props.displayLayout;
|
|
40
66
|
|
|
41
|
-
var _useState = useState(),
|
|
67
|
+
var _useState = (0, _react.useState)(),
|
|
42
68
|
_useState2 = _slicedToArray(_useState, 2),
|
|
43
69
|
formChildFields = _useState2[0],
|
|
44
70
|
setFormChildFields = _useState2[1];
|
|
45
71
|
|
|
46
|
-
var _useState3 = useState(),
|
|
72
|
+
var _useState3 = (0, _react.useState)(),
|
|
47
73
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
48
74
|
formChild = _useState4[0],
|
|
49
75
|
setFormChild = _useState4[1]; // const [fieldFailed, setFieldFailed] = useState(false)
|
|
50
76
|
|
|
51
77
|
|
|
52
|
-
var formGridSize = useMemo(function () {
|
|
78
|
+
var formGridSize = (0, _react.useMemo)(function () {
|
|
53
79
|
if (typeof grid === 'string') return grid; // 数据格式为字符串,包括 xs,md,lg,xlg
|
|
54
80
|
|
|
55
81
|
var sizeName = 'xs';
|
|
@@ -59,7 +85,7 @@ var TabForm = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
59
85
|
if (grid > 3) sizeName = 'xlg';
|
|
60
86
|
return sizeName;
|
|
61
87
|
}, [grid]);
|
|
62
|
-
useEffect(function () {
|
|
88
|
+
(0, _react.useEffect)(function () {
|
|
63
89
|
forceUpdateForm();
|
|
64
90
|
}, [formChildFields, formChild]);
|
|
65
91
|
|
|
@@ -69,10 +95,11 @@ var TabForm = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
69
95
|
};
|
|
70
96
|
|
|
71
97
|
if (formItemGroup.length === 0) return null;
|
|
72
|
-
return /*#__PURE__*/
|
|
98
|
+
return /*#__PURE__*/_react["default"].createElement(_index2["default"], {
|
|
73
99
|
actionGroup: [],
|
|
74
100
|
ref: ref,
|
|
75
101
|
fieldSize: fieldSize,
|
|
102
|
+
// @ts-ignore
|
|
76
103
|
getFormFields: function getFormFields(fields, form) {
|
|
77
104
|
setFormChildFields(fields);
|
|
78
105
|
setFormChild(form);
|
|
@@ -80,32 +107,32 @@ var TabForm = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
80
107
|
layout: layout,
|
|
81
108
|
onSubmit: onSubmit,
|
|
82
109
|
initialValues: initialValues
|
|
83
|
-
}, /*#__PURE__*/
|
|
110
|
+
}, /*#__PURE__*/_react["default"].createElement(_tabs["default"], Object.assign({
|
|
84
111
|
type: "card",
|
|
85
112
|
animated: false
|
|
86
113
|
}, tabsConfig), formItemGroup.map(function (item, index) {
|
|
87
114
|
var title = item.title,
|
|
88
115
|
fields = item.fields,
|
|
89
116
|
actions = item.actions,
|
|
90
|
-
tabConfig = __rest(item, ["title", "fields", "actions"]);
|
|
91
|
-
|
|
92
|
-
return /*#__PURE__*/React.createElement(TabPane, Object.assign({
|
|
117
|
+
tabConfig = (0, _tslib.__rest)(item, ["title", "fields", "actions"]);
|
|
118
|
+
return /*#__PURE__*/_react["default"].createElement(TabPane, Object.assign({
|
|
93
119
|
key: "".concat(item.key || index),
|
|
94
120
|
tab: title
|
|
95
121
|
}, tabConfig, {
|
|
96
122
|
forceRender: true
|
|
97
|
-
}), /*#__PURE__*/
|
|
123
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
98
124
|
className: "tabForm-content ".concat(layout === 'inline' ? 'tabForm-content-inline' : '')
|
|
99
|
-
}, fields && Array.isArray(fields) ? /*#__PURE__*/
|
|
125
|
+
}, fields && Array.isArray(fields) ? /*#__PURE__*/_react["default"].createElement(_RenderItemGroup["default"], {
|
|
100
126
|
layout: layout,
|
|
101
127
|
form: formChild,
|
|
102
128
|
fieldStatus: fieldStatus,
|
|
103
129
|
size: formGridSize,
|
|
130
|
+
displayLayout: displayLayout,
|
|
104
131
|
// doUpdateFormFields={() => forceUpdateForm()}
|
|
105
132
|
itemGroup: fields
|
|
106
|
-
}) : fields, !actionHide && actions && /*#__PURE__*/
|
|
133
|
+
}) : fields, !actionHide && actions && /*#__PURE__*/_react["default"].createElement(_col["default"], {
|
|
107
134
|
span: 24
|
|
108
|
-
}, /*#__PURE__*/
|
|
135
|
+
}, /*#__PURE__*/_react["default"].createElement(_ActionList["default"], {
|
|
109
136
|
list: item.actions,
|
|
110
137
|
form: formChild,
|
|
111
138
|
other: props,
|
|
@@ -113,4 +140,6 @@ var TabForm = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
113
140
|
}))));
|
|
114
141
|
})));
|
|
115
142
|
});
|
|
116
|
-
|
|
143
|
+
|
|
144
|
+
var _default = TabForm;
|
|
145
|
+
exports["default"] = _default;
|
|
@@ -25,6 +25,8 @@ export interface StandardFormProps {
|
|
|
25
25
|
children?: React.ReactNode;
|
|
26
26
|
postfix?: React.ReactNode;
|
|
27
27
|
prefix?: React.ReactNode;
|
|
28
|
+
displayLayout?: any;
|
|
29
|
+
[k: string]: any;
|
|
28
30
|
}
|
|
29
|
-
declare const StandardForm: React.ForwardRefExoticComponent<StandardFormProps & React.RefAttributes<unknown>>;
|
|
31
|
+
declare const StandardForm: React.ForwardRefExoticComponent<Pick<StandardFormProps, string | number> & React.RefAttributes<unknown>>;
|
|
30
32
|
export default StandardForm;
|