fan-standard-comp 3.1.1 → 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 +81 -125
- package/es/FormComp/FieldComponent/setReadonlyValues.js +28 -55
- package/es/FormComp/RenderItemGroup/index.js +34 -55
- 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 +18 -36
- 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.js +24 -229
- 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 +41 -41
- package/lib/FormComp/FieldComponent/setReadonlyValues.js +17 -17
- package/lib/FormComp/RenderItemGroup/index.js +20 -20
- 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 -10
- 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 +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
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
|
|
@@ -13,7 +13,7 @@ var _Pane = _interopRequireDefault(require("./Pane"));
|
|
|
13
13
|
|
|
14
14
|
require("./index.less");
|
|
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
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
19
19
|
|
|
@@ -31,7 +31,7 @@ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) ===
|
|
|
31
31
|
|
|
32
32
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
33
33
|
|
|
34
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try {
|
|
34
|
+
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; } }
|
|
35
35
|
|
|
36
36
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
37
37
|
|
|
@@ -293,10 +293,10 @@ var SplitterLayout = /*#__PURE__*/function (_React$Component) {
|
|
|
293
293
|
containerClasses += ' layout-changing';
|
|
294
294
|
}
|
|
295
295
|
|
|
296
|
-
var children = _react
|
|
296
|
+
var children = _react.default.Children.toArray(this.props.children).slice(0, 2);
|
|
297
297
|
|
|
298
298
|
if (children.length === 0) {
|
|
299
|
-
children.push( /*#__PURE__*/_react
|
|
299
|
+
children.push( /*#__PURE__*/_react.default.createElement("div", null));
|
|
300
300
|
}
|
|
301
301
|
|
|
302
302
|
var wrappedChildren = [];
|
|
@@ -313,7 +313,7 @@ var SplitterLayout = /*#__PURE__*/function (_React$Component) {
|
|
|
313
313
|
size = this.state.secondaryPaneSize;
|
|
314
314
|
}
|
|
315
315
|
|
|
316
|
-
wrappedChildren.push( /*#__PURE__*/_react
|
|
316
|
+
wrappedChildren.push( /*#__PURE__*/_react.default.createElement(_Pane.default, {
|
|
317
317
|
vertical: vertical,
|
|
318
318
|
percentage: this.props.percentage,
|
|
319
319
|
primary: primary,
|
|
@@ -323,13 +323,13 @@ var SplitterLayout = /*#__PURE__*/function (_React$Component) {
|
|
|
323
323
|
}, children[i]));
|
|
324
324
|
}
|
|
325
325
|
|
|
326
|
-
return /*#__PURE__*/_react
|
|
326
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
327
327
|
className: containerClasses,
|
|
328
328
|
style: this.props.containerStyle,
|
|
329
329
|
ref: function ref(c) {
|
|
330
330
|
_this2.container = c;
|
|
331
331
|
}
|
|
332
|
-
}, wrappedChildren[0], wrappedChildren.length > 1 && /*#__PURE__*/_react
|
|
332
|
+
}, wrappedChildren[0], wrappedChildren.length > 1 && /*#__PURE__*/_react.default.createElement("div", {
|
|
333
333
|
role: "separator",
|
|
334
334
|
className: "layout-splitter ".concat(!this.props.vertical && 'layout-splitter-horizontal', " ").concat(this.props.splitterClassName),
|
|
335
335
|
style: this.props.splitterStyle,
|
|
@@ -343,7 +343,7 @@ var SplitterLayout = /*#__PURE__*/function (_React$Component) {
|
|
|
343
343
|
}]);
|
|
344
344
|
|
|
345
345
|
return SplitterLayout;
|
|
346
|
-
}(_react
|
|
346
|
+
}(_react.default.Component); //
|
|
347
347
|
// SplitterLayout.propTypes = {
|
|
348
348
|
// containerStyle: PropTypes.object,
|
|
349
349
|
// customClassName: PropTypes.string,
|
|
@@ -383,4 +383,4 @@ var SplitterLayout = /*#__PURE__*/function (_React$Component) {
|
|
|
383
383
|
|
|
384
384
|
|
|
385
385
|
var _default = SplitterLayout;
|
|
386
|
-
exports
|
|
386
|
+
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
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
@@ -11,7 +11,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
11
11
|
|
|
12
12
|
require("./index.less");
|
|
13
13
|
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
15
|
|
|
16
16
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
17
17
|
|
|
@@ -35,20 +35,20 @@ function Pane(props) {
|
|
|
35
35
|
classes += ' layout-pane-primary';
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
return /*#__PURE__*/_react
|
|
38
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
39
39
|
className: classes,
|
|
40
40
|
style: _objectSpread(_objectSpread({}, props.paneStyle), style)
|
|
41
41
|
}, props.children);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
Pane.propTypes = {
|
|
45
|
-
paneClassName: _propTypes
|
|
46
|
-
paneStyle: _propTypes
|
|
47
|
-
vertical: _propTypes
|
|
48
|
-
primary: _propTypes
|
|
49
|
-
size: _propTypes
|
|
50
|
-
percentage: _propTypes
|
|
51
|
-
children: _propTypes
|
|
45
|
+
paneClassName: _propTypes.default.string,
|
|
46
|
+
paneStyle: _propTypes.default.object,
|
|
47
|
+
vertical: _propTypes.default.bool,
|
|
48
|
+
primary: _propTypes.default.bool,
|
|
49
|
+
size: _propTypes.default.number,
|
|
50
|
+
percentage: _propTypes.default.bool,
|
|
51
|
+
children: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.node), _propTypes.default.node])
|
|
52
52
|
};
|
|
53
53
|
Pane.defaultProps = {
|
|
54
54
|
paneClassName: '',
|
|
@@ -59,4 +59,4 @@ Pane.defaultProps = {
|
|
|
59
59
|
children: []
|
|
60
60
|
};
|
|
61
61
|
var _default = Pane;
|
|
62
|
-
exports
|
|
62
|
+
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
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
|
|
@@ -15,7 +15,7 @@ var _Pane = _interopRequireDefault(require("./Pane"));
|
|
|
15
15
|
|
|
16
16
|
require("./index.less");
|
|
17
17
|
|
|
18
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
19
|
|
|
20
20
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
21
21
|
|
|
@@ -33,7 +33,7 @@ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) ===
|
|
|
33
33
|
|
|
34
34
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
35
35
|
|
|
36
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try {
|
|
36
|
+
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; } }
|
|
37
37
|
|
|
38
38
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
39
39
|
|
|
@@ -296,10 +296,10 @@ var SplitterLayout = /*#__PURE__*/function (_React$Component) {
|
|
|
296
296
|
containerClasses += ' layout-changing';
|
|
297
297
|
}
|
|
298
298
|
|
|
299
|
-
var children = _react
|
|
299
|
+
var children = _react.default.Children.toArray(this.props.children).slice(0, 2);
|
|
300
300
|
|
|
301
301
|
if (children.length === 0) {
|
|
302
|
-
children.push( /*#__PURE__*/_react
|
|
302
|
+
children.push( /*#__PURE__*/_react.default.createElement("div", null));
|
|
303
303
|
}
|
|
304
304
|
|
|
305
305
|
var wrappedChildren = [];
|
|
@@ -316,7 +316,7 @@ var SplitterLayout = /*#__PURE__*/function (_React$Component) {
|
|
|
316
316
|
size = this.state.secondaryPaneSize;
|
|
317
317
|
}
|
|
318
318
|
|
|
319
|
-
wrappedChildren.push( /*#__PURE__*/_react
|
|
319
|
+
wrappedChildren.push( /*#__PURE__*/_react.default.createElement(_Pane.default, {
|
|
320
320
|
vertical: this.props.vertical,
|
|
321
321
|
percentage: this.props.percentage,
|
|
322
322
|
primary: primary,
|
|
@@ -326,13 +326,13 @@ var SplitterLayout = /*#__PURE__*/function (_React$Component) {
|
|
|
326
326
|
}, children[i]));
|
|
327
327
|
}
|
|
328
328
|
|
|
329
|
-
return /*#__PURE__*/_react
|
|
329
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
330
330
|
className: containerClasses,
|
|
331
331
|
style: this.props.containerStyle,
|
|
332
332
|
ref: function ref(c) {
|
|
333
333
|
_this2.container = c;
|
|
334
334
|
}
|
|
335
|
-
}, wrappedChildren[0], wrappedChildren.length > 1 && /*#__PURE__*/_react
|
|
335
|
+
}, wrappedChildren[0], wrappedChildren.length > 1 && /*#__PURE__*/_react.default.createElement("div", {
|
|
336
336
|
role: "separator",
|
|
337
337
|
className: "layout-splitter ".concat(!this.props.vertical && 'layout-splitter-horizontal', " ").concat(this.props.splitterClassName),
|
|
338
338
|
style: this.props.splitterStyle,
|
|
@@ -346,26 +346,26 @@ var SplitterLayout = /*#__PURE__*/function (_React$Component) {
|
|
|
346
346
|
}]);
|
|
347
347
|
|
|
348
348
|
return SplitterLayout;
|
|
349
|
-
}(_react
|
|
349
|
+
}(_react.default.Component);
|
|
350
350
|
|
|
351
351
|
SplitterLayout.propTypes = {
|
|
352
|
-
containerStyle: _propTypes
|
|
353
|
-
customClassName: _propTypes
|
|
354
|
-
splitterClassName: _propTypes
|
|
355
|
-
splitterStyle: _propTypes
|
|
356
|
-
partClassNames: _propTypes
|
|
357
|
-
partStyles: _propTypes
|
|
358
|
-
vertical: _propTypes
|
|
359
|
-
percentage: _propTypes
|
|
360
|
-
primaryIndex: _propTypes
|
|
361
|
-
primaryMinSize: _propTypes
|
|
362
|
-
primaryInitialSize: _propTypes
|
|
363
|
-
secondaryInitialSize: _propTypes
|
|
364
|
-
secondaryMinSize: _propTypes
|
|
365
|
-
onDragStart: _propTypes
|
|
366
|
-
onDragEnd: _propTypes
|
|
367
|
-
onSecondaryPaneSizeChange: _propTypes
|
|
368
|
-
children: _propTypes
|
|
352
|
+
containerStyle: _propTypes.default.object,
|
|
353
|
+
customClassName: _propTypes.default.string,
|
|
354
|
+
splitterClassName: _propTypes.default.string,
|
|
355
|
+
splitterStyle: _propTypes.default.object,
|
|
356
|
+
partClassNames: _propTypes.default.arrayOf(_propTypes.default.string),
|
|
357
|
+
partStyles: _propTypes.default.arrayOf(_propTypes.default.object),
|
|
358
|
+
vertical: _propTypes.default.bool,
|
|
359
|
+
percentage: _propTypes.default.bool,
|
|
360
|
+
primaryIndex: _propTypes.default.number,
|
|
361
|
+
primaryMinSize: _propTypes.default.number,
|
|
362
|
+
primaryInitialSize: _propTypes.default.number,
|
|
363
|
+
secondaryInitialSize: _propTypes.default.number,
|
|
364
|
+
secondaryMinSize: _propTypes.default.number,
|
|
365
|
+
onDragStart: _propTypes.default.func,
|
|
366
|
+
onDragEnd: _propTypes.default.func,
|
|
367
|
+
onSecondaryPaneSizeChange: _propTypes.default.func,
|
|
368
|
+
children: _propTypes.default.arrayOf(_propTypes.default.node)
|
|
369
369
|
};
|
|
370
370
|
SplitterLayout.defaultProps = {
|
|
371
371
|
customClassName: '',
|
|
@@ -384,4 +384,4 @@ SplitterLayout.defaultProps = {
|
|
|
384
384
|
children: []
|
|
385
385
|
};
|
|
386
386
|
var _default = SplitterLayout;
|
|
387
|
-
exports
|
|
387
|
+
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/spin/style");
|
|
9
9
|
|
|
@@ -17,7 +17,7 @@ var _DragContent = _interopRequireDefault(require("../DragContent"));
|
|
|
17
17
|
|
|
18
18
|
require("./style/index.less");
|
|
19
19
|
|
|
20
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
21
|
|
|
22
22
|
var SubfieldContent = function SubfieldContent(props) {
|
|
23
23
|
var _props$leftSiderWidth = props.leftSiderWidth,
|
|
@@ -33,24 +33,24 @@ var SubfieldContent = function SubfieldContent(props) {
|
|
|
33
33
|
leftSiderDragDirection = props.leftSiderDragDirection,
|
|
34
34
|
leftSiderMoveMaxWidth = props.leftSiderMoveMaxWidth,
|
|
35
35
|
leftSiderMoveMaxHeight = props.leftSiderMoveMaxHeight;
|
|
36
|
-
return /*#__PURE__*/_react
|
|
37
|
-
className: (0, _classnames
|
|
36
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
37
|
+
className: (0, _classnames.default)('spec-grid-content', loading ? 'spec-grid-content-loading' : '', className),
|
|
38
38
|
style: style
|
|
39
|
-
}, loading && /*#__PURE__*/_react
|
|
39
|
+
}, loading && /*#__PURE__*/_react.default.createElement(_spin.default, {
|
|
40
40
|
spinning: loading,
|
|
41
41
|
tip: loadingTip
|
|
42
|
-
}), /*#__PURE__*/_react
|
|
42
|
+
}), /*#__PURE__*/_react.default.createElement(_DragContent.default, {
|
|
43
43
|
direction: leftSiderDragDirection,
|
|
44
|
-
className: (0, _classnames
|
|
44
|
+
className: (0, _classnames.default)('spec-grid-left', leftSiderClassName),
|
|
45
45
|
style: {
|
|
46
46
|
width: "".concat(leftSiderWidth || 180, "px")
|
|
47
47
|
},
|
|
48
48
|
moveMaxWidth: leftSiderMoveMaxWidth,
|
|
49
49
|
moveMaxHeight: leftSiderMoveMaxHeight
|
|
50
|
-
}, leftSiderNode), /*#__PURE__*/_react
|
|
50
|
+
}, leftSiderNode), /*#__PURE__*/_react.default.createElement("div", {
|
|
51
51
|
className: 'spec-grid-right'
|
|
52
52
|
}, children));
|
|
53
53
|
};
|
|
54
54
|
|
|
55
55
|
var _default = SubfieldContent;
|
|
56
|
-
exports
|
|
56
|
+
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/spin/style");
|
|
9
9
|
|
|
@@ -15,7 +15,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
15
15
|
|
|
16
16
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
17
17
|
|
|
18
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
19
|
|
|
20
20
|
var WrapperContent = function WrapperContent(props) {
|
|
21
21
|
var children = props.children,
|
|
@@ -28,16 +28,16 @@ var WrapperContent = function WrapperContent(props) {
|
|
|
28
28
|
loading = _props$loading === void 0 ? false : _props$loading,
|
|
29
29
|
loadingTip = props.loadingTip;
|
|
30
30
|
var defaultClassName = 'spec-wrapper-content';
|
|
31
|
-
return /*#__PURE__*/_react
|
|
32
|
-
className: (0, _classnames
|
|
31
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
32
|
+
className: (0, _classnames.default)(defaultClassName, className, loading ? 'spec-wrapper-content-loading' : '', noMargin ? 'has-margin' : ''),
|
|
33
33
|
style: style
|
|
34
|
-
}, loading && /*#__PURE__*/_react
|
|
34
|
+
}, loading && /*#__PURE__*/_react.default.createElement(_spin.default, {
|
|
35
35
|
spinning: loading,
|
|
36
36
|
tip: loadingTip
|
|
37
|
-
}), light ? /*#__PURE__*/_react
|
|
37
|
+
}), light ? /*#__PURE__*/_react.default.createElement("div", {
|
|
38
38
|
className: "light-block"
|
|
39
39
|
}, " ", children) : children);
|
|
40
40
|
};
|
|
41
41
|
|
|
42
42
|
var _default = WrapperContent;
|
|
43
|
-
exports
|
|
43
|
+
exports.default = _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import 'ant-design-draggable-modal/dist/index.css';
|
|
3
|
+
interface StandardDragModalProps {
|
|
4
|
+
visible: boolean;
|
|
5
|
+
title?: string | React.ReactNode;
|
|
6
|
+
initialWidth?: number;
|
|
7
|
+
initialHeight?: number;
|
|
8
|
+
[k: string]: any;
|
|
9
|
+
}
|
|
10
|
+
declare const StandardDragModal: (props: StandardDragModalProps) => JSX.Element;
|
|
11
|
+
export default StandardDragModal;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _tslib = require("tslib");
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
var _antDesignDraggableModal = require("ant-design-draggable-modal");
|
|
13
|
+
|
|
14
|
+
require("ant-design-draggable-modal/dist/index.css");
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
+
|
|
18
|
+
var StandardDragModal = function StandardDragModal(props) {
|
|
19
|
+
var visible = props.visible,
|
|
20
|
+
onCancel = props.onCancel,
|
|
21
|
+
onSubmit = props.onSubmit,
|
|
22
|
+
children = props.children,
|
|
23
|
+
others = (0, _tslib.__rest)(props, ["visible", "onCancel", "onSubmit", "children"]);
|
|
24
|
+
|
|
25
|
+
var handleOk = function handleOk() {
|
|
26
|
+
onSubmit && onSubmit();
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
var handleCancel = function handleCancel() {
|
|
30
|
+
onCancel && onCancel();
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
return /*#__PURE__*/_react.default.createElement(_antDesignDraggableModal.DraggableModalProvider, null, /*#__PURE__*/_react.default.createElement(_antDesignDraggableModal.DraggableModal, Object.assign({
|
|
34
|
+
visible: visible,
|
|
35
|
+
onOk: handleOk,
|
|
36
|
+
onCancel: handleCancel
|
|
37
|
+
}, others, {
|
|
38
|
+
zIndex: 1001
|
|
39
|
+
}), children));
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
var _default = StandardDragModal;
|
|
43
|
+
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
|
|
|
@@ -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;
|