fan-standard-comp 3.1.0 → 3.1.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.
- package/dist/fan-standard-comp.umd.js +293 -285
- package/es/ButtonGroup/ButtonList.js +18 -36
- package/es/ButtonGroup/ButtonMenu.js +14 -27
- package/es/ButtonGroup/PopConfirmTitle.js +5 -16
- package/es/ButtonGroup/index.js +76 -107
- package/es/DragContent/DragBar.js +6 -18
- package/es/DragContent/index.js +12 -30
- package/es/FormComp/ChunkUploader/api.js +8 -21
- package/es/FormComp/ChunkUploader/index.js +27 -46
- package/es/FormComp/ChunkUploader/lib.js +9 -26
- package/es/FormComp/ChunkUploader/upload-queue.class.js +5 -12
- package/es/FormComp/ChunkUploader/worker.js +2 -7
- package/es/FormComp/EditButton/index.js +16 -35
- package/es/FormComp/FieldComponent/ReUpload.js +18 -38
- package/es/FormComp/FieldComponent/RefactorTreeSelect.js +26 -49
- package/es/FormComp/FieldComponent/TitleNode.js +3 -13
- package/es/FormComp/FieldComponent/index.js +87 -131
- package/es/FormComp/FieldComponent/setReadonlyValues.js +34 -61
- package/es/FormComp/RenderItemGroup/index.js +34 -56
- package/es/FormComp/Uploader/index.js +38 -64
- package/es/FormComp/Uploader/util.js +2 -11
- package/es/FormComp/VarTemplate/index.js +31 -44
- package/es/FormComp/index.js +1 -15
- package/es/NavLeafScroll/index.js +35 -53
- package/es/RefactorTree/index.js +29 -52
- package/es/RefactorTree/indexTreeNode.js +31 -54
- package/es/RefactorTree/style/index.js +1 -3
- package/es/RefactorTree/util.js +10 -18
- package/es/SpecIcon/fonts/iconfont.js +0 -2
- package/es/SpecIcon/index.js +17 -30
- package/es/SplitterLayout/Pane.js +5 -17
- package/es/SplitterLayout/index.js +13 -24
- package/es/StandardContent/SplitterLayout/Pane.js +13 -25
- package/es/StandardContent/SplitterLayout/index.js +30 -43
- package/es/StandardContent/SubfieldContent.js +13 -28
- package/es/StandardContent/WrapperContent.js +10 -24
- package/es/StandardDragModal/index.d.ts +11 -0
- package/es/StandardDragModal/index.js +30 -0
- package/es/StandardFilter/index.js +27 -46
- package/es/StandardForm/ActionList.js +8 -21
- package/es/StandardForm/StepForm.js +40 -68
- package/es/StandardForm/TabForm.js +26 -52
- package/es/StandardForm/index.js +28 -55
- package/es/StandardModal/UpdateFormRef.js +4 -18
- package/es/StandardModal/index.d.ts +3 -0
- package/es/StandardModal/index.js +118 -119
- package/es/StandardPanel/index.js +32 -53
- package/es/StandardTable/index.js +17 -44
- package/es/StandardTable/style/index.js +1 -3
- package/es/components/IconNode/index.js +6 -17
- package/es/components/index.js +2 -15
- package/es/data/func.code.js +2 -9
- package/es/data/general.config.js +2 -9
- package/es/data/index.js +3 -23
- package/es/index.d.ts +0 -1
- package/es/index.js +24 -238
- package/es/utils/ValueFormat.js +1 -9
- package/es/utils/filterPermission.js +4 -20
- package/es/utils/getParentNodes.js +1 -12
- package/es/utils/index.js +3 -35
- 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 +47 -47
- 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 +47 -47
- package/lib/FormComp/FieldComponent/setReadonlyValues.js +23 -23
- package/lib/FormComp/RenderItemGroup/index.js +20 -21
- package/lib/FormComp/Uploader/index.js +16 -16
- package/lib/FormComp/VarTemplate/index.js +25 -23
- 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/StandardDragModal/index.d.ts +11 -0
- package/lib/StandardDragModal/index.js +43 -0
- package/lib/StandardFilter/index.js +18 -18
- package/lib/StandardForm/ActionList.js +6 -6
- package/lib/StandardForm/StepForm.js +26 -26
- package/lib/StandardForm/TabForm.js +13 -13
- package/lib/StandardForm/index.js +14 -14
- package/lib/StandardModal/UpdateFormRef.js +4 -4
- package/lib/StandardModal/index.d.ts +3 -0
- package/lib/StandardModal/index.js +99 -70
- package/lib/StandardPanel/index.js +23 -23
- package/lib/StandardTable/index.js +9 -19
- 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.d.ts +0 -1
- package/lib/index.js +23 -32
- package/lib/utils/ValueFormat.js +2 -2
- package/lib/utils/filterPermission.js +2 -2
- package/lib/utils/index.js +2 -2
- package/package.json +4 -3
- package/es/ConfigContext/index.d.ts +0 -7
- package/es/ConfigContext/index.js +0 -12
- package/es/locale/index.d.ts +0 -12
- package/es/locale/index.js +0 -5
- package/es/locale/zh_CN.d.ts +0 -4
- package/es/locale/zh_CN.js +0 -34
- package/lib/ConfigContext/index.d.ts +0 -7
- package/lib/ConfigContext/index.js +0 -12
- package/lib/locale/index.d.ts +0 -12
- package/lib/locale/index.js +0 -5
- package/lib/locale/zh_CN.d.ts +0 -4
- package/lib/locale/zh_CN.js +0 -34
|
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports
|
|
8
|
+
exports.default = void 0;
|
|
9
9
|
|
|
10
10
|
require("antd/es/button/style");
|
|
11
11
|
|
|
@@ -27,7 +27,7 @@ var _index2 = require("../data/index");
|
|
|
27
27
|
|
|
28
28
|
require("./style/index.less");
|
|
29
29
|
|
|
30
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {
|
|
30
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
31
31
|
|
|
32
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; }
|
|
33
33
|
|
|
@@ -59,11 +59,11 @@ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) ===
|
|
|
59
59
|
|
|
60
60
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
61
61
|
|
|
62
|
-
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 { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
63
63
|
|
|
64
64
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
65
65
|
|
|
66
|
-
var FormItem = _form
|
|
66
|
+
var FormItem = _form.default.Item;
|
|
67
67
|
|
|
68
68
|
var StandardFilter = /*#__PURE__*/function (_React$Component) {
|
|
69
69
|
_inherits(StandardFilter, _React$Component);
|
|
@@ -76,7 +76,7 @@ var StandardFilter = /*#__PURE__*/function (_React$Component) {
|
|
|
76
76
|
_classCallCheck(this, StandardFilter);
|
|
77
77
|
|
|
78
78
|
_this = _super.call(this, props);
|
|
79
|
-
_this.filterFormRef = /*#__PURE__*/_react
|
|
79
|
+
_this.filterFormRef = /*#__PURE__*/_react.default.createRef(); // 更新表单控件值,用于外部获取当前表单实例(force是否强制清空表单)
|
|
80
80
|
|
|
81
81
|
_this.updateFormFields = function (newVal, force) {
|
|
82
82
|
var getFormFields = _this.props.getFormFields;
|
|
@@ -104,7 +104,7 @@ var StandardFilter = /*#__PURE__*/function (_React$Component) {
|
|
|
104
104
|
// delete values.false // TODO 自定义结构会莫名的出来一个false字段
|
|
105
105
|
// }
|
|
106
106
|
|
|
107
|
-
var resultValues = (0, _ValueFormat
|
|
107
|
+
var resultValues = (0, _ValueFormat.default)(values, formItemGroup);
|
|
108
108
|
|
|
109
109
|
if (onFilterSearch) {
|
|
110
110
|
onFilterSearch(Object.assign({}, resultValues));
|
|
@@ -147,16 +147,16 @@ var StandardFilter = /*#__PURE__*/function (_React$Component) {
|
|
|
147
147
|
var reFormItemGroup = _this.state.reFormItemGroup;
|
|
148
148
|
|
|
149
149
|
if (Array.isArray(reFormItemGroup)) {
|
|
150
|
-
return /*#__PURE__*/_react
|
|
150
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, reFormItemGroup.map(function (item, index) {
|
|
151
151
|
var componentStyle = item.componentStyle,
|
|
152
152
|
isHide = item.isHide;
|
|
153
153
|
if (_this.itemIsHide(isHide)) return null;
|
|
154
|
-
return /*#__PURE__*/_react
|
|
154
|
+
return /*#__PURE__*/_react.default.createElement(FormItem, Object.assign({
|
|
155
155
|
key: item.filedName,
|
|
156
156
|
label: item.label,
|
|
157
157
|
name: item.type !== 'custom' && item.filedName,
|
|
158
158
|
rules: item.rules || (item.fieldOptions ? item.fieldOptions.rules : [])
|
|
159
|
-
}, item.protoFormItem), item.type === 'custom' && item.customRender ? item.customRender(_this.filterFormRef, Object.assign({}, item)) : /*#__PURE__*/_react
|
|
159
|
+
}, item.protoFormItem), item.type === 'custom' && item.customRender ? item.customRender(_this.filterFormRef, Object.assign({}, item)) : /*#__PURE__*/_react.default.createElement(_FieldComponent.default, Object.assign({}, item, {
|
|
160
160
|
onChange: function onChange(val) {
|
|
161
161
|
var updateValue = val;
|
|
162
162
|
|
|
@@ -223,30 +223,30 @@ var StandardFilter = /*#__PURE__*/function (_React$Component) {
|
|
|
223
223
|
confirmText = _this$props2.confirmText,
|
|
224
224
|
cancelText = _this$props2.cancelText; // const { recombinationGroup } = this.state;
|
|
225
225
|
|
|
226
|
-
return /*#__PURE__*/_react
|
|
226
|
+
return /*#__PURE__*/_react.default.createElement(_form.default, {
|
|
227
227
|
name: "standard-filter-form",
|
|
228
228
|
ref: this.filterFormRef,
|
|
229
229
|
layout: "inline",
|
|
230
230
|
onFinish: this.handleSearch,
|
|
231
231
|
className: className,
|
|
232
232
|
style: style
|
|
233
|
-
}, /*#__PURE__*/_react
|
|
233
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
234
234
|
className: "filter-grid"
|
|
235
|
-
}, /*#__PURE__*/_react
|
|
235
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
236
236
|
className: "filter-form"
|
|
237
|
-
}, this.state.reFormItemGroup ? /*#__PURE__*/_react
|
|
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, {
|
|
238
238
|
type: "primary",
|
|
239
239
|
htmlType: "submit"
|
|
240
|
-
}, " ", confirmText || '查询'), onFilterReset && /*#__PURE__*/_react
|
|
240
|
+
}, " ", confirmText || '查询'), onFilterReset && /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
241
241
|
type: "primary",
|
|
242
242
|
style: {
|
|
243
243
|
marginLeft: 8
|
|
244
244
|
},
|
|
245
245
|
onClick: this.handleReset,
|
|
246
246
|
ghost: true
|
|
247
|
-
}, cancelText || '重置'))) : null), buttonGroup && buttonGroup.length > 0 ? /*#__PURE__*/_react
|
|
247
|
+
}, cancelText || '重置'))) : null), buttonGroup && buttonGroup.length > 0 ? /*#__PURE__*/_react.default.createElement("div", {
|
|
248
248
|
className: "filter-btns"
|
|
249
|
-
}, /*#__PURE__*/_react
|
|
249
|
+
}, /*#__PURE__*/_react.default.createElement(_index.default, {
|
|
250
250
|
options: buttonGroup,
|
|
251
251
|
min: min,
|
|
252
252
|
codes: codes,
|
|
@@ -266,7 +266,7 @@ var StandardFilter = /*#__PURE__*/function (_React$Component) {
|
|
|
266
266
|
}]);
|
|
267
267
|
|
|
268
268
|
return StandardFilter;
|
|
269
|
-
}(_react
|
|
269
|
+
}(_react.default.Component);
|
|
270
270
|
|
|
271
271
|
var _default = StandardFilter;
|
|
272
|
-
exports
|
|
272
|
+
exports.default = _default;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.default = void 0;
|
|
7
7
|
|
|
8
8
|
require("antd/es/button/style");
|
|
9
9
|
|
|
@@ -13,7 +13,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
13
13
|
|
|
14
14
|
var _IconNode = _interopRequireDefault(require("../components/IconNode"));
|
|
15
15
|
|
|
16
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
17
|
|
|
18
18
|
var ActionList = function ActionList(props) {
|
|
19
19
|
var list = props.list,
|
|
@@ -22,16 +22,16 @@ var ActionList = function ActionList(props) {
|
|
|
22
22
|
align = _props$align === void 0 ? 'default' : _props$align,
|
|
23
23
|
other = props.other,
|
|
24
24
|
onStep = props.onStep;
|
|
25
|
-
return /*#__PURE__*/_react
|
|
25
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
26
26
|
className: "standardForm-actions",
|
|
27
27
|
style: {
|
|
28
28
|
textAlign: !align || align === 'default' ? 'inherit' : align
|
|
29
29
|
}
|
|
30
30
|
}, list.map(function (item, index) {
|
|
31
|
-
return /*#__PURE__*/_react
|
|
31
|
+
return /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
32
32
|
key: index,
|
|
33
33
|
type: item.type ? item.type : 'primary',
|
|
34
|
-
icon: /*#__PURE__*/_react
|
|
34
|
+
icon: /*#__PURE__*/_react.default.createElement(_IconNode.default, {
|
|
35
35
|
icon: item.icon
|
|
36
36
|
}),
|
|
37
37
|
ghost: item.ghost,
|
|
@@ -54,4 +54,4 @@ var ActionList = function ActionList(props) {
|
|
|
54
54
|
};
|
|
55
55
|
|
|
56
56
|
var _default = ActionList;
|
|
57
|
-
exports
|
|
57
|
+
exports.default = _default;
|
|
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports
|
|
8
|
+
exports.default = void 0;
|
|
9
9
|
|
|
10
10
|
require("antd/es/col/style");
|
|
11
11
|
|
|
@@ -31,9 +31,9 @@ require("./style/index.less");
|
|
|
31
31
|
|
|
32
32
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
33
33
|
|
|
34
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return {
|
|
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
35
|
|
|
36
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {
|
|
36
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
37
37
|
|
|
38
38
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
39
39
|
|
|
@@ -48,9 +48,9 @@ function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(
|
|
|
48
48
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
49
49
|
|
|
50
50
|
// import { BreadcrumbProps as AntdBreadcrumbProps } from 'antd/es/form';
|
|
51
|
-
var Step = _steps
|
|
51
|
+
var Step = _steps.default.Step;
|
|
52
52
|
|
|
53
|
-
var StepForm = /*#__PURE__*/_react
|
|
53
|
+
var StepForm = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
54
54
|
var getFormFields = props.getFormFields,
|
|
55
55
|
_props$formItemGroup = props.formItemGroup,
|
|
56
56
|
formItemGroup = _props$formItemGroup === void 0 ? [] : _props$formItemGroup,
|
|
@@ -125,7 +125,7 @@ var StepForm = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
|
|
|
125
125
|
formChild && formChild.validateFields(valitorGroup).then(function (values) {
|
|
126
126
|
if (stepClick) stepClick(type, formChild, values);
|
|
127
127
|
extraFunc && extraFunc();
|
|
128
|
-
})
|
|
128
|
+
}).catch(function (_ref) {// console.log('表单校验不通过 ', errorFields.map(err => err))
|
|
129
129
|
|
|
130
130
|
var errorFields = _ref.errorFields;
|
|
131
131
|
});
|
|
@@ -163,16 +163,16 @@ var StepForm = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
|
|
|
163
163
|
|
|
164
164
|
var renderStepActions = function renderStepActions(item, index) {
|
|
165
165
|
if (formItemGroup.length === 1) {
|
|
166
|
-
return /*#__PURE__*/_react
|
|
166
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
167
167
|
className: "standardForm-actions",
|
|
168
168
|
key: index
|
|
169
|
-
}, /*#__PURE__*/_react
|
|
169
|
+
}, /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
170
170
|
type: "primary",
|
|
171
171
|
htmlType: "submit",
|
|
172
172
|
onClick: function onClick() {
|
|
173
173
|
return handleStepType('submit');
|
|
174
174
|
}
|
|
175
|
-
}, "\u786E\u8BA4"), /*#__PURE__*/_react
|
|
175
|
+
}, "\u786E\u8BA4"), /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
176
176
|
onClick: function onClick() {
|
|
177
177
|
return handleStepType('cancel');
|
|
178
178
|
}
|
|
@@ -181,45 +181,45 @@ var StepForm = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
|
|
|
181
181
|
|
|
182
182
|
var buttonList = function buttonList(itemIndex) {
|
|
183
183
|
if (itemIndex === 0) {
|
|
184
|
-
return /*#__PURE__*/_react
|
|
184
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
185
185
|
type: "primary",
|
|
186
186
|
onClick: function onClick() {
|
|
187
187
|
return handleStepType('next');
|
|
188
188
|
}
|
|
189
|
-
}, "\u4E0B\u4E00\u6B65"), /*#__PURE__*/_react
|
|
189
|
+
}, "\u4E0B\u4E00\u6B65"), /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
190
190
|
onClick: function onClick() {
|
|
191
191
|
return handleStepType('cancel');
|
|
192
192
|
}
|
|
193
193
|
}, "\u53D6\u6D88"));
|
|
194
194
|
} else if (itemIndex === formItemGroup.length - 1) {
|
|
195
|
-
return /*#__PURE__*/_react
|
|
195
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
196
196
|
type: "primary",
|
|
197
197
|
onClick: function onClick() {
|
|
198
198
|
return handleStepType('prev');
|
|
199
199
|
}
|
|
200
|
-
}, "\u4E0A\u4E00\u6B65"), /*#__PURE__*/_react
|
|
200
|
+
}, "\u4E0A\u4E00\u6B65"), /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
201
201
|
type: "primary",
|
|
202
202
|
htmlType: "submit",
|
|
203
203
|
onClick: function onClick() {
|
|
204
204
|
return handleStepType('submit');
|
|
205
205
|
}
|
|
206
|
-
}, "\u786E\u8BA4"), /*#__PURE__*/_react
|
|
206
|
+
}, "\u786E\u8BA4"), /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
207
207
|
onClick: function onClick() {
|
|
208
208
|
return handleStepType('cancel');
|
|
209
209
|
}
|
|
210
210
|
}, "\u53D6\u6D88"));
|
|
211
211
|
} else {
|
|
212
|
-
return /*#__PURE__*/_react
|
|
212
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
213
213
|
type: "primary",
|
|
214
214
|
onClick: function onClick() {
|
|
215
215
|
return handleStepType('prev');
|
|
216
216
|
}
|
|
217
|
-
}, "\u4E0A\u4E00\u6B65"), /*#__PURE__*/_react
|
|
217
|
+
}, "\u4E0A\u4E00\u6B65"), /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
218
218
|
type: "primary",
|
|
219
219
|
onClick: function onClick() {
|
|
220
220
|
return handleStepType('next');
|
|
221
221
|
}
|
|
222
|
-
}, "\u4E0B\u4E00\u6B65"), /*#__PURE__*/_react
|
|
222
|
+
}, "\u4E0B\u4E00\u6B65"), /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
223
223
|
onClick: function onClick() {
|
|
224
224
|
return handleStepType('cancel');
|
|
225
225
|
}
|
|
@@ -227,7 +227,7 @@ var StepForm = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
|
|
|
227
227
|
}
|
|
228
228
|
};
|
|
229
229
|
|
|
230
|
-
return /*#__PURE__*/_react
|
|
230
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
231
231
|
className: "standardForm-actions",
|
|
232
232
|
key: index,
|
|
233
233
|
style: {
|
|
@@ -236,7 +236,7 @@ var StepForm = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
|
|
|
236
236
|
}, buttonList(index));
|
|
237
237
|
};
|
|
238
238
|
|
|
239
|
-
return /*#__PURE__*/_react
|
|
239
|
+
return /*#__PURE__*/_react.default.createElement(_index.default, {
|
|
240
240
|
className: layout === 'inline' ? '' : '',
|
|
241
241
|
actionGroup: [],
|
|
242
242
|
ref: ref,
|
|
@@ -251,8 +251,8 @@ var StepForm = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
|
|
|
251
251
|
layout: layout,
|
|
252
252
|
onFinishFailed: function onFinishFailed() {// setFieldFailed(true)
|
|
253
253
|
}
|
|
254
|
-
}, /*#__PURE__*/_react
|
|
255
|
-
return !item.hideStep ? /*#__PURE__*/_react
|
|
254
|
+
}, /*#__PURE__*/_react.default.createElement(_steps.default, Object.assign({}, stepsConfig), formItemGroup.map(function (item, index) {
|
|
255
|
+
return !item.hideStep ? /*#__PURE__*/_react.default.createElement(Step, {
|
|
256
256
|
key: "".concat(item.title).concat(index),
|
|
257
257
|
description: item.description,
|
|
258
258
|
icon: item.icon,
|
|
@@ -262,13 +262,13 @@ var StepForm = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
|
|
|
262
262
|
disabled: item.disabled
|
|
263
263
|
}) : null;
|
|
264
264
|
})), formItemGroup.map(function (item, index) {
|
|
265
|
-
return /*#__PURE__*/_react
|
|
265
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
266
266
|
key: index,
|
|
267
267
|
className: "stepForm-content ".concat(layout === 'inline' ? 'stepForm-content-inline' : ''),
|
|
268
268
|
style: stepsConfig && stepsConfig.current !== index ? {
|
|
269
269
|
display: 'none'
|
|
270
270
|
} : {}
|
|
271
|
-
}, item.fields && Array.isArray(item.fields) ? /*#__PURE__*/_react
|
|
271
|
+
}, item.fields && Array.isArray(item.fields) ? /*#__PURE__*/_react.default.createElement(_RenderItemGroup.default, {
|
|
272
272
|
layout: layout,
|
|
273
273
|
form: formChild,
|
|
274
274
|
fieldStatus: fieldStatus,
|
|
@@ -279,9 +279,9 @@ var StepForm = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
|
|
|
279
279
|
},
|
|
280
280
|
// doUpdateFormFields={() => console.log('强制渲染表单')}
|
|
281
281
|
itemGroup: item.fields
|
|
282
|
-
}) : item.fields, !actionHide && /*#__PURE__*/_react
|
|
282
|
+
}) : item.fields, !actionHide && /*#__PURE__*/_react.default.createElement(_col.default, {
|
|
283
283
|
span: 24
|
|
284
|
-
}, item.actions ? /*#__PURE__*/_react
|
|
284
|
+
}, item.actions ? /*#__PURE__*/_react.default.createElement(_ActionList.default, {
|
|
285
285
|
list: item.actions,
|
|
286
286
|
onStep: handleStepType,
|
|
287
287
|
form: formChild,
|
|
@@ -292,4 +292,4 @@ var StepForm = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
|
|
|
292
292
|
});
|
|
293
293
|
|
|
294
294
|
var _default = StepForm;
|
|
295
|
-
exports
|
|
295
|
+
exports.default = _default;
|
|
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports
|
|
8
|
+
exports.default = void 0;
|
|
9
9
|
|
|
10
10
|
require("antd/es/col/style");
|
|
11
11
|
|
|
@@ -29,9 +29,9 @@ var _ActionList = _interopRequireDefault(require("./ActionList"));
|
|
|
29
29
|
|
|
30
30
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
31
31
|
|
|
32
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return {
|
|
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
33
|
|
|
34
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {
|
|
34
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
35
35
|
|
|
36
36
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
37
37
|
|
|
@@ -45,9 +45,9 @@ function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(
|
|
|
45
45
|
|
|
46
46
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
47
47
|
|
|
48
|
-
var TabPane = _tabs
|
|
48
|
+
var TabPane = _tabs.default.TabPane;
|
|
49
49
|
|
|
50
|
-
var TabForm = /*#__PURE__*/_react
|
|
50
|
+
var TabForm = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
51
51
|
var getFormFields = props.getFormFields,
|
|
52
52
|
_props$formItemGroup = props.formItemGroup,
|
|
53
53
|
formItemGroup = _props$formItemGroup === void 0 ? [] : _props$formItemGroup,
|
|
@@ -95,7 +95,7 @@ var TabForm = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
|
|
|
95
95
|
};
|
|
96
96
|
|
|
97
97
|
if (formItemGroup.length === 0) return null;
|
|
98
|
-
return /*#__PURE__*/_react
|
|
98
|
+
return /*#__PURE__*/_react.default.createElement(_index2.default, {
|
|
99
99
|
actionGroup: [],
|
|
100
100
|
ref: ref,
|
|
101
101
|
fieldSize: fieldSize,
|
|
@@ -107,7 +107,7 @@ var TabForm = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
|
|
|
107
107
|
layout: layout,
|
|
108
108
|
onSubmit: onSubmit,
|
|
109
109
|
initialValues: initialValues
|
|
110
|
-
}, /*#__PURE__*/_react
|
|
110
|
+
}, /*#__PURE__*/_react.default.createElement(_tabs.default, Object.assign({
|
|
111
111
|
type: "card",
|
|
112
112
|
animated: false
|
|
113
113
|
}, tabsConfig), formItemGroup.map(function (item, index) {
|
|
@@ -115,14 +115,14 @@ var TabForm = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
|
|
|
115
115
|
fields = item.fields,
|
|
116
116
|
actions = item.actions,
|
|
117
117
|
tabConfig = (0, _tslib.__rest)(item, ["title", "fields", "actions"]);
|
|
118
|
-
return /*#__PURE__*/_react
|
|
118
|
+
return /*#__PURE__*/_react.default.createElement(TabPane, Object.assign({
|
|
119
119
|
key: "".concat(item.key || index),
|
|
120
120
|
tab: title
|
|
121
121
|
}, tabConfig, {
|
|
122
122
|
forceRender: true
|
|
123
|
-
}), /*#__PURE__*/_react
|
|
123
|
+
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
124
124
|
className: "tabForm-content ".concat(layout === 'inline' ? 'tabForm-content-inline' : '')
|
|
125
|
-
}, fields && Array.isArray(fields) ? /*#__PURE__*/_react
|
|
125
|
+
}, fields && Array.isArray(fields) ? /*#__PURE__*/_react.default.createElement(_RenderItemGroup.default, {
|
|
126
126
|
layout: layout,
|
|
127
127
|
form: formChild,
|
|
128
128
|
fieldStatus: fieldStatus,
|
|
@@ -133,9 +133,9 @@ var TabForm = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
|
|
|
133
133
|
},
|
|
134
134
|
// doUpdateFormFields={() => forceUpdateForm()}
|
|
135
135
|
itemGroup: fields
|
|
136
|
-
}) : fields, !actionHide && actions && /*#__PURE__*/_react
|
|
136
|
+
}) : fields, !actionHide && actions && /*#__PURE__*/_react.default.createElement(_col.default, {
|
|
137
137
|
span: 24
|
|
138
|
-
}, /*#__PURE__*/_react
|
|
138
|
+
}, /*#__PURE__*/_react.default.createElement(_ActionList.default, {
|
|
139
139
|
list: item.actions,
|
|
140
140
|
form: formChild,
|
|
141
141
|
other: props,
|
|
@@ -145,4 +145,4 @@ var TabForm = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
|
|
|
145
145
|
});
|
|
146
146
|
|
|
147
147
|
var _default = TabForm;
|
|
148
|
-
exports
|
|
148
|
+
exports.default = _default;
|
|
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports
|
|
8
|
+
exports.default = void 0;
|
|
9
9
|
|
|
10
10
|
require("antd/es/button/style");
|
|
11
11
|
|
|
@@ -31,9 +31,9 @@ var _ActionList = _interopRequireDefault(require("./ActionList"));
|
|
|
31
31
|
|
|
32
32
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
33
33
|
|
|
34
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return {
|
|
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
35
|
|
|
36
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {
|
|
36
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
37
37
|
|
|
38
38
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
39
39
|
|
|
@@ -47,7 +47,7 @@ function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(
|
|
|
47
47
|
|
|
48
48
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
49
49
|
|
|
50
|
-
var StandardForm = /*#__PURE__*/_react
|
|
50
|
+
var StandardForm = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
51
51
|
var _props$formItemGroup = props.formItemGroup,
|
|
52
52
|
formItemGroup = _props$formItemGroup === void 0 ? [] : _props$formItemGroup,
|
|
53
53
|
className = props.className,
|
|
@@ -74,7 +74,7 @@ var StandardForm = /*#__PURE__*/_react["default"].forwardRef(function (props, re
|
|
|
74
74
|
displayLayout = props.displayLayout,
|
|
75
75
|
baseProps = (0, _tslib.__rest)(props, ["formItemGroup", "className", "initialValues", "layout", "grid", "getFormFields", "fieldStatus", "onSubmit", "confirmText", "onCancel", "cancelText", "actionAlign", "actionGroup", "onFinishFailed", "children", "prefix", "postfix", "fieldSize", "displayLayout"]);
|
|
76
76
|
|
|
77
|
-
var _Form$useForm = _form
|
|
77
|
+
var _Form$useForm = _form.default.useForm(),
|
|
78
78
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
79
79
|
initForm = _Form$useForm2[0];
|
|
80
80
|
|
|
@@ -139,9 +139,9 @@ var StandardForm = /*#__PURE__*/_react["default"].forwardRef(function (props, re
|
|
|
139
139
|
var renderActionGroup = function renderActionGroup() {
|
|
140
140
|
var groupNode = function groupNode() {
|
|
141
141
|
if (Array.isArray(actionGroup)) {
|
|
142
|
-
return actionGroup.length === 0 ? null : /*#__PURE__*/_react
|
|
142
|
+
return actionGroup.length === 0 ? null : /*#__PURE__*/_react.default.createElement(_form.default.Item, {
|
|
143
143
|
wrapperCol: actionAlignCol
|
|
144
|
-
}, /*#__PURE__*/_react
|
|
144
|
+
}, /*#__PURE__*/_react.default.createElement(_ActionList.default, {
|
|
145
145
|
list: actionGroup,
|
|
146
146
|
form: initForm,
|
|
147
147
|
align: actionAlign,
|
|
@@ -154,17 +154,17 @@ var StandardForm = /*#__PURE__*/_react["default"].forwardRef(function (props, re
|
|
|
154
154
|
|
|
155
155
|
if (Array.isArray(actionGroup) && actionGroup.length === 0) return null;
|
|
156
156
|
if (actionGroup) return groupNode();
|
|
157
|
-
return /*#__PURE__*/_react
|
|
157
|
+
return /*#__PURE__*/_react.default.createElement(_form.default.Item, {
|
|
158
158
|
className: "standardForm-actions",
|
|
159
159
|
style: {
|
|
160
160
|
'textAlign': !actionAlign || actionAlign === 'default' ? 'inherit' : actionAlign
|
|
161
161
|
},
|
|
162
162
|
wrapperCol: actionAlignCol
|
|
163
|
-
}, confirmText && /*#__PURE__*/_react
|
|
163
|
+
}, confirmText && /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
164
164
|
type: "primary",
|
|
165
165
|
htmlType: "submit",
|
|
166
166
|
size: fieldSize
|
|
167
|
-
}, confirmText), cancelText && /*#__PURE__*/_react
|
|
167
|
+
}, confirmText), cancelText && /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
168
168
|
onClick: function onClick() {
|
|
169
169
|
return onFormCancel();
|
|
170
170
|
},
|
|
@@ -172,8 +172,8 @@ var StandardForm = /*#__PURE__*/_react["default"].forwardRef(function (props, re
|
|
|
172
172
|
}, cancelText));
|
|
173
173
|
};
|
|
174
174
|
|
|
175
|
-
return /*#__PURE__*/_react
|
|
176
|
-
className: (0, _classnames
|
|
175
|
+
return /*#__PURE__*/_react.default.createElement(_form.default, Object.assign({
|
|
176
|
+
className: (0, _classnames.default)(className, 'standardForm'),
|
|
177
177
|
ref: ref,
|
|
178
178
|
form: initForm,
|
|
179
179
|
initialValues: initialValues,
|
|
@@ -182,7 +182,7 @@ var StandardForm = /*#__PURE__*/_react["default"].forwardRef(function (props, re
|
|
|
182
182
|
onFinish: onFormFinish,
|
|
183
183
|
onFinishFailed: onFormFinishFailed,
|
|
184
184
|
scrollToFirstError: true
|
|
185
|
-
}), prefix, children, /*#__PURE__*/_react
|
|
185
|
+
}), prefix, children, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, formItemGroup.length > 0 ? /*#__PURE__*/_react.default.createElement(_RenderItemGroup.default, {
|
|
186
186
|
itemGroup: formItemGroup,
|
|
187
187
|
fieldSize: fieldSize,
|
|
188
188
|
displayLayout: displayLayout,
|
|
@@ -194,4 +194,4 @@ var StandardForm = /*#__PURE__*/_react["default"].forwardRef(function (props, re
|
|
|
194
194
|
});
|
|
195
195
|
|
|
196
196
|
var _default = StandardForm;
|
|
197
|
-
exports
|
|
197
|
+
exports.default = _default;
|
|
@@ -5,13 +5,13 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports
|
|
8
|
+
exports.default = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
12
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
13
13
|
|
|
14
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return {
|
|
14
|
+
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; }
|
|
15
15
|
|
|
16
16
|
var updateModalForm = function updateModalForm(props) {
|
|
17
17
|
var getFormAndFields = props.getFormAndFields,
|
|
@@ -24,9 +24,9 @@ var updateModalForm = function updateModalForm(props) {
|
|
|
24
24
|
(0, _react.useEffect)(function () {
|
|
25
25
|
updateFormFields();
|
|
26
26
|
}, [form]);
|
|
27
|
-
return /*#__PURE__*/_react
|
|
27
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null);
|
|
28
28
|
/* 如果是ReactNode则直接返回 */
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
var _default = updateModalForm;
|
|
32
|
-
exports
|
|
32
|
+
exports.default = _default;
|
|
@@ -3,6 +3,7 @@ import { ModalProps } from 'antd/es/modal';
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { ItemGroupProps } from '../StandardForm/index';
|
|
5
5
|
import './style/index.less';
|
|
6
|
+
import 'ant-design-draggable-modal/dist/index.css';
|
|
6
7
|
export interface StandardModalProps extends ModalProps {
|
|
7
8
|
children?: React.ReactNode;
|
|
8
9
|
title?: String;
|
|
@@ -36,6 +37,8 @@ export interface StandardModalProps extends ModalProps {
|
|
|
36
37
|
okButtonProps?: any;
|
|
37
38
|
confirmButtonProps?: any;
|
|
38
39
|
cancelButtonProps?: any;
|
|
40
|
+
dragAble?: boolean;
|
|
41
|
+
[k: string]: any;
|
|
39
42
|
}
|
|
40
43
|
declare const StandardModal: (props: StandardModalProps) => JSX.Element;
|
|
41
44
|
export default StandardModal;
|