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
|
@@ -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/row/style");
|
|
9
9
|
|
|
@@ -43,9 +43,9 @@ require("./style/index.less");
|
|
|
43
43
|
|
|
44
44
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
45
45
|
|
|
46
|
-
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
|
|
46
|
+
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; }
|
|
47
47
|
|
|
48
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
48
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
49
49
|
|
|
50
50
|
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); }
|
|
51
51
|
|
|
@@ -86,9 +86,10 @@ var StandardModal = function StandardModal(props) {
|
|
|
86
86
|
formLayout = _props$formLayout === void 0 ? 'horizontal' : _props$formLayout,
|
|
87
87
|
tabsConfig = props.tabsConfig,
|
|
88
88
|
stepsConfig = props.stepsConfig,
|
|
89
|
-
|
|
89
|
+
displayLayout = props.displayLayout,
|
|
90
|
+
otherProps = (0, _tslib.__rest)(props, ["children", "className", "style", "size", "type", "formItemGroup", "title", "visible", "formPrefix", "formPostfix", "initialValues", "hideRequiredMark", "bodyStyle", "footer", "footerButtonGroup", "hideFooter", "getFormFields", "fieldStatus", "formLayout", "tabsConfig", "stepsConfig", "displayLayout"]);
|
|
90
91
|
|
|
91
|
-
var _Form$useForm = _form
|
|
92
|
+
var _Form$useForm = _form["default"].useForm(),
|
|
92
93
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
93
94
|
modalForm = _Form$useForm2[0];
|
|
94
95
|
|
|
@@ -213,15 +214,15 @@ var StandardModal = function StandardModal(props) {
|
|
|
213
214
|
if (type === 'form') {
|
|
214
215
|
modalForm.validateFields().then(function (values) {
|
|
215
216
|
if (Object.prototype.hasOwnProperty.call(values, 'false')) {
|
|
216
|
-
delete values
|
|
217
|
+
delete values["false"]; // 自定义结构会莫名的出来一个false字段
|
|
217
218
|
}
|
|
218
219
|
|
|
219
|
-
var resultValues = (0, _ValueFormat
|
|
220
|
+
var resultValues = (0, _ValueFormat["default"])(values, formItemGroup);
|
|
220
221
|
|
|
221
222
|
if (onSubmit) {
|
|
222
223
|
onSubmit(Object.assign({}, resultValues));
|
|
223
224
|
}
|
|
224
|
-
})
|
|
225
|
+
})["catch"](function () {
|
|
225
226
|
// 定位到第一条表单异常的
|
|
226
227
|
var errorCollection = Array.prototype.slice.call(document.getElementsByClassName('ant-form-item-has-error'));
|
|
227
228
|
|
|
@@ -235,15 +236,15 @@ var StandardModal = function StandardModal(props) {
|
|
|
235
236
|
formChild.validateFields().then(function (values) {
|
|
236
237
|
// console.log(values)
|
|
237
238
|
if (Object.prototype.hasOwnProperty.call(values, 'false')) {
|
|
238
|
-
delete values
|
|
239
|
+
delete values["false"]; // 自定义结构会莫名的出来一个false字段
|
|
239
240
|
}
|
|
240
241
|
|
|
241
|
-
var resultValues = (0, _ValueFormat
|
|
242
|
+
var resultValues = (0, _ValueFormat["default"])(values, formItemGroup);
|
|
242
243
|
|
|
243
244
|
if (onSubmit) {
|
|
244
245
|
onSubmit(Object.assign({}, resultValues));
|
|
245
246
|
}
|
|
246
|
-
})
|
|
247
|
+
})["catch"](function () {
|
|
247
248
|
// 定位到第一条表单异常的
|
|
248
249
|
var errorCollection = Array.prototype.slice.call(document.getElementsByClassName('ant-form-item-has-error'));
|
|
249
250
|
|
|
@@ -286,11 +287,10 @@ var StandardModal = function StandardModal(props) {
|
|
|
286
287
|
var fieldStatus = props.fieldStatus,
|
|
287
288
|
formItemGroup = props.formItemGroup,
|
|
288
289
|
_props$size2 = props.size,
|
|
289
|
-
size = _props$size2 === void 0 ? 'md' : _props$size2
|
|
290
|
-
displayLayout = props.displayLayout;
|
|
290
|
+
size = _props$size2 === void 0 ? 'md' : _props$size2;
|
|
291
291
|
|
|
292
292
|
if (Array.isArray(formItemGroup)) {
|
|
293
|
-
return /*#__PURE__*/_react
|
|
293
|
+
return /*#__PURE__*/_react["default"].createElement(_RenderItemGroup["default"], {
|
|
294
294
|
size: size,
|
|
295
295
|
layout: formLayout,
|
|
296
296
|
doUpdateFormFields: function doUpdateFormFields() {
|
|
@@ -321,7 +321,7 @@ var StandardModal = function StandardModal(props) {
|
|
|
321
321
|
formChild.validateFields(validatorGroup).then(function () {
|
|
322
322
|
// if (stepClick) stepClick(type, formChild, values);
|
|
323
323
|
extraFunc();
|
|
324
|
-
})
|
|
324
|
+
})["catch"](function () {// console.log('表单校验不通过 ', errorFields.map(err => err))
|
|
325
325
|
});
|
|
326
326
|
break;
|
|
327
327
|
|
|
@@ -353,22 +353,32 @@ var StandardModal = function StandardModal(props) {
|
|
|
353
353
|
|
|
354
354
|
if (footerButtonGroup) {
|
|
355
355
|
if (Array.isArray(footerButtonGroup)) {
|
|
356
|
-
if (footerButtonGroup.length === 0) return
|
|
357
|
-
|
|
356
|
+
if (footerButtonGroup.length === 0) return null; // <div>按钮组合配置为空</div>
|
|
357
|
+
|
|
358
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, footerButtonGroup.map(function (item) {
|
|
358
359
|
if (_typeof(item) === 'object') {
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
360
|
+
if (item.isHide) return null;
|
|
361
|
+
var name = item.name,
|
|
362
|
+
_type = item.type,
|
|
363
|
+
icon = item.icon,
|
|
364
|
+
ghost = item.ghost,
|
|
365
|
+
disabled = item.disabled,
|
|
366
|
+
loading = item.loading,
|
|
367
|
+
fn = item.fn,
|
|
368
|
+
others = (0, _tslib.__rest)(item, ["name", "type", "icon", "ghost", "disabled", "loading", "fn"]);
|
|
369
|
+
return /*#__PURE__*/_react["default"].createElement(_button["default"], Object.assign({
|
|
370
|
+
key: name,
|
|
371
|
+
type: _type || 'primary',
|
|
372
|
+
icon: /*#__PURE__*/_react["default"].createElement(_IconNode["default"], {
|
|
373
|
+
icon: icon
|
|
364
374
|
}),
|
|
365
|
-
ghost:
|
|
366
|
-
disabled:
|
|
367
|
-
loading:
|
|
368
|
-
onClick:
|
|
369
|
-
return
|
|
375
|
+
ghost: ghost,
|
|
376
|
+
disabled: disabled,
|
|
377
|
+
loading: loading,
|
|
378
|
+
onClick: fn ? function (e) {
|
|
379
|
+
return fn(item, modalForm, props, e);
|
|
370
380
|
} : null
|
|
371
|
-
},
|
|
381
|
+
}, others), name);
|
|
372
382
|
} else {
|
|
373
383
|
return item; // 如果是DOM,则直接渲染
|
|
374
384
|
}
|
|
@@ -383,12 +393,12 @@ var StandardModal = function StandardModal(props) {
|
|
|
383
393
|
}
|
|
384
394
|
|
|
385
395
|
if (footer) return footer;
|
|
386
|
-
return /*#__PURE__*/_react
|
|
396
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_button["default"], Object.assign({
|
|
387
397
|
key: "submit",
|
|
388
398
|
type: "primary",
|
|
389
399
|
loading: confirmLoading,
|
|
390
400
|
onClick: handleSubmit
|
|
391
|
-
}, confirmButtonProps, okButtonProps), confirmText || okText || '确定'), /*#__PURE__*/_react
|
|
401
|
+
}, confirmButtonProps, okButtonProps), confirmText || okText || '确定'), /*#__PURE__*/_react["default"].createElement(_button["default"], Object.assign({
|
|
392
402
|
key: "back",
|
|
393
403
|
onClick: handleCancel
|
|
394
404
|
}, cancelButtonProps), cancelText || '取消'));
|
|
@@ -399,7 +409,7 @@ var StandardModal = function StandardModal(props) {
|
|
|
399
409
|
|
|
400
410
|
if (type === 'stepForm') {
|
|
401
411
|
var currentStepInfo = formItemGroup[stepsConfig.current];
|
|
402
|
-
return ((_a = currentStepInfo === null || currentStepInfo === void 0 ? void 0 : currentStepInfo.actions) === null || _a === void 0 ? void 0 : _a.length) > 0 ? /*#__PURE__*/_react
|
|
412
|
+
return ((_a = currentStepInfo === null || currentStepInfo === void 0 ? void 0 : currentStepInfo.actions) === null || _a === void 0 ? void 0 : _a.length) > 0 ? /*#__PURE__*/_react["default"].createElement(_ActionList["default"], {
|
|
403
413
|
list: currentStepInfo.actions || [],
|
|
404
414
|
onStep: handleStepType,
|
|
405
415
|
form: formChild,
|
|
@@ -411,7 +421,7 @@ var StandardModal = function StandardModal(props) {
|
|
|
411
421
|
var activeTabInfo = formItemGroup.find(function (fItem) {
|
|
412
422
|
return fItem.key === (tabsConfig === null || tabsConfig === void 0 ? void 0 : tabsConfig.activeKey);
|
|
413
423
|
});
|
|
414
|
-
return ((_b = activeTabInfo.actions) === null || _b === void 0 ? void 0 : _b.length) > 0 ? /*#__PURE__*/_react
|
|
424
|
+
return ((_b = activeTabInfo.actions) === null || _b === void 0 ? void 0 : _b.length) > 0 ? /*#__PURE__*/_react["default"].createElement(_ActionList["default"], {
|
|
415
425
|
list: activeTabInfo.actions || [],
|
|
416
426
|
form: formChild,
|
|
417
427
|
other: props
|
|
@@ -421,7 +431,7 @@ var StandardModal = function StandardModal(props) {
|
|
|
421
431
|
return hasFooterBar ? renderButtonGroup() : null;
|
|
422
432
|
};
|
|
423
433
|
|
|
424
|
-
return /*#__PURE__*/_react
|
|
434
|
+
return /*#__PURE__*/_react["default"].createElement(_modal["default"], Object.assign({
|
|
425
435
|
destroyOnClose: true,
|
|
426
436
|
maskClosable: false
|
|
427
437
|
}, otherProps, {
|
|
@@ -440,7 +450,7 @@ var StandardModal = function StandardModal(props) {
|
|
|
440
450
|
onCancel: handleCancel,
|
|
441
451
|
afterClose: onAfterClose,
|
|
442
452
|
onOk: handleSubmit
|
|
443
|
-
}), children, type === 'form' && /*#__PURE__*/_react
|
|
453
|
+
}), children, type === 'form' && /*#__PURE__*/_react["default"].createElement(_form["default"], {
|
|
444
454
|
layout: formLayout,
|
|
445
455
|
ref: setModalFormRef,
|
|
446
456
|
form: modalForm,
|
|
@@ -449,11 +459,12 @@ var StandardModal = function StandardModal(props) {
|
|
|
449
459
|
// initialValues={{ ...initialValues }}
|
|
450
460
|
scrollToFirstError: true,
|
|
451
461
|
className: "modalForm"
|
|
452
|
-
}, formPrefix && /*#__PURE__*/_react
|
|
462
|
+
}, formPrefix && /*#__PURE__*/_react["default"].createElement(_row["default"], null, formPrefix(modalForm, props, forceUpdateForm)), formItemGroup ? renderFormItemGroup() : null, formPostfix && /*#__PURE__*/_react["default"].createElement(_row["default"], null, formPostfix(modalForm, props, forceUpdateForm), " ")), type === 'tabForm' && /*#__PURE__*/_react["default"].createElement(_TabForm["default"], {
|
|
453
463
|
grid: size,
|
|
454
464
|
layout: formLayout,
|
|
455
465
|
fieldStatus: fieldStatus,
|
|
456
466
|
actionHide: true,
|
|
467
|
+
// @ts-ignore
|
|
457
468
|
getFormFields: function getFormFields(fields, form) {
|
|
458
469
|
setFormChild(form);
|
|
459
470
|
_getFormFields && _getFormFields(fields, form);
|
|
@@ -461,22 +472,25 @@ var StandardModal = function StandardModal(props) {
|
|
|
461
472
|
formItemGroup: formItemGroup,
|
|
462
473
|
tabsConfig: tabsConfig,
|
|
463
474
|
onSubmit: handleSubmit,
|
|
464
|
-
initialValues: Object.assign({}, initialValues)
|
|
465
|
-
|
|
475
|
+
initialValues: Object.assign({}, initialValues),
|
|
476
|
+
displayLayout: displayLayout
|
|
477
|
+
}), type === 'stepForm' && /*#__PURE__*/_react["default"].createElement(_StepForm["default"], {
|
|
466
478
|
grid: size,
|
|
467
479
|
layout: formLayout,
|
|
468
480
|
fieldStatus: fieldStatus,
|
|
469
481
|
actionHide: true,
|
|
482
|
+
// @ts-ignore
|
|
470
483
|
getFormFields: function getFormFields(fields, form) {
|
|
471
484
|
setFormChild(form);
|
|
472
485
|
_getFormFields && _getFormFields(fields, form);
|
|
473
486
|
},
|
|
474
487
|
formItemGroup: formItemGroup,
|
|
475
488
|
stepsConfig: stepsConfig,
|
|
489
|
+
onSubmit: handleSubmit,
|
|
476
490
|
initialValues: Object.assign({}, initialValues),
|
|
477
|
-
|
|
491
|
+
displayLayout: displayLayout
|
|
478
492
|
}));
|
|
479
493
|
};
|
|
480
494
|
|
|
481
495
|
var _default = StandardModal;
|
|
482
|
-
exports
|
|
496
|
+
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/popover/style");
|
|
11
11
|
|
|
@@ -23,9 +23,9 @@ require("./style/index.less");
|
|
|
23
23
|
|
|
24
24
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
25
25
|
|
|
26
|
-
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
|
|
26
|
+
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; }
|
|
27
27
|
|
|
28
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
28
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
29
29
|
|
|
30
30
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
31
31
|
|
|
@@ -71,9 +71,9 @@ var StandardPanel = function StandardPanel(props) {
|
|
|
71
71
|
}
|
|
72
72
|
};
|
|
73
73
|
|
|
74
|
-
return /*#__PURE__*/_react
|
|
74
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
75
75
|
className: className
|
|
76
|
-
}, /*#__PURE__*/_react
|
|
76
|
+
}, /*#__PURE__*/_react["default"].createElement(_radio["default"].Group, {
|
|
77
77
|
size: size,
|
|
78
78
|
defaultValue: activeKey,
|
|
79
79
|
buttonStyle: "solid",
|
|
@@ -81,7 +81,7 @@ var StandardPanel = function StandardPanel(props) {
|
|
|
81
81
|
return handleChange(e);
|
|
82
82
|
}
|
|
83
83
|
}, list && Array.isArray(list) && list.map(function (item) {
|
|
84
|
-
return /*#__PURE__*/_react
|
|
84
|
+
return /*#__PURE__*/_react["default"].createElement(_radio["default"].Button, {
|
|
85
85
|
key: item.value,
|
|
86
86
|
value: item.value
|
|
87
87
|
}, item.label);
|
|
@@ -90,7 +90,7 @@ var StandardPanel = function StandardPanel(props) {
|
|
|
90
90
|
|
|
91
91
|
|
|
92
92
|
var popoverShow = function popoverShow() {
|
|
93
|
-
return title.content ? /*#__PURE__*/_react
|
|
93
|
+
return title.content ? /*#__PURE__*/_react["default"].createElement(_popover["default"], {
|
|
94
94
|
content: title.content,
|
|
95
95
|
placement: title.placement
|
|
96
96
|
}, " ", title.label, " ") : title;
|
|
@@ -112,44 +112,44 @@ var StandardPanel = function StandardPanel(props) {
|
|
|
112
112
|
setHeaderHeight(panelHeaderRef.current.clientHeight);
|
|
113
113
|
}
|
|
114
114
|
}, [panelHeaderRef]);
|
|
115
|
-
return /*#__PURE__*/_react
|
|
116
|
-
className: (0, _classnames
|
|
115
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
116
|
+
className: (0, _classnames["default"])('spec-panel', className, type === 'reverse' ? 'spec-panel-reverse' : '', type === 'border' ? 'spec-panel-border' : ''),
|
|
117
117
|
style: Object.assign(Object.assign({}, style), {
|
|
118
118
|
height: "".concat(height, "px")
|
|
119
119
|
})
|
|
120
|
-
}, /*#__PURE__*/_react
|
|
120
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
121
121
|
className: "spec-panel-header",
|
|
122
122
|
ref: panelHeaderRef
|
|
123
|
-
}, /*#__PURE__*/_react
|
|
123
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
124
124
|
className: "spec-panel-title"
|
|
125
|
-
}, /*#__PURE__*/_react
|
|
126
|
-
className: (0, _classnames
|
|
127
|
-
}, /*#__PURE__*/_react
|
|
125
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
126
|
+
className: (0, _classnames["default"])(type === 'border' ? 'sub-header-line' : 'sub-header-base')
|
|
127
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
128
128
|
className: "header-text"
|
|
129
|
-
}, popoverShow()))), /*#__PURE__*/_react
|
|
129
|
+
}, popoverShow()))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
130
130
|
className: "spec-panel-inner"
|
|
131
|
-
}, badges && Array.isArray(badges) && /*#__PURE__*/_react
|
|
131
|
+
}, badges && Array.isArray(badges) && /*#__PURE__*/_react["default"].createElement("span", {
|
|
132
132
|
className: "badges"
|
|
133
133
|
}, badges.map(function (item) {
|
|
134
|
-
return /*#__PURE__*/_react
|
|
134
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
135
135
|
className: "badges-item",
|
|
136
136
|
key: item.value
|
|
137
|
-
}, /*#__PURE__*/_react
|
|
137
|
+
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
138
138
|
style: item.color ? {
|
|
139
139
|
background: item.color
|
|
140
140
|
} : {}
|
|
141
141
|
}), item.label);
|
|
142
|
-
}))), cateConfig && /*#__PURE__*/_react
|
|
142
|
+
}))), cateConfig && /*#__PURE__*/_react["default"].createElement(RenderGroupList, Object.assign({
|
|
143
143
|
className: "spec-panel-cate"
|
|
144
|
-
}, cateConfig)), buttonConfig && /*#__PURE__*/_react
|
|
144
|
+
}, cateConfig)), buttonConfig && /*#__PURE__*/_react["default"].createElement(RenderGroupList, Object.assign({
|
|
145
145
|
className: "spec-panel-buttons"
|
|
146
|
-
}, buttonConfig)), postfix && /*#__PURE__*/_react
|
|
146
|
+
}, buttonConfig)), postfix && /*#__PURE__*/_react["default"].createElement("div", {
|
|
147
147
|
className: "spec-panel-extra"
|
|
148
|
-
}, postfix)), /*#__PURE__*/_react
|
|
148
|
+
}, postfix)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
149
149
|
className: "spec-panel-body",
|
|
150
150
|
style: Object.assign({}, bodyLimitStyle)
|
|
151
151
|
}, children));
|
|
152
152
|
};
|
|
153
153
|
|
|
154
154
|
var _default = StandardPanel;
|
|
155
|
-
exports
|
|
155
|
+
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/table/style");
|
|
9
9
|
|
|
@@ -23,7 +23,7 @@ var _index = _interopRequireDefault(require("../ButtonGroup/index"));
|
|
|
23
23
|
|
|
24
24
|
require("./style/index.less");
|
|
25
25
|
|
|
26
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
26
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
27
|
|
|
28
28
|
var StandardTable = function StandardTable(props) {
|
|
29
29
|
// const ref= React.createRef<Card>();
|
|
@@ -87,7 +87,7 @@ var StandardTable = function StandardTable(props) {
|
|
|
87
87
|
|
|
88
88
|
if (Array.isArray(buttonGroup) || typeof buttonGroup === 'function') {
|
|
89
89
|
if (recombinationGroup.length === 0) return '-';
|
|
90
|
-
return /*#__PURE__*/_react
|
|
90
|
+
return /*#__PURE__*/_react["default"].createElement(_index["default"], {
|
|
91
91
|
type: "text",
|
|
92
92
|
min: colItem.min || 2,
|
|
93
93
|
options: recombinationGroup,
|
|
@@ -104,7 +104,7 @@ var StandardTable = function StandardTable(props) {
|
|
|
104
104
|
}
|
|
105
105
|
};
|
|
106
106
|
|
|
107
|
-
return /*#__PURE__*/_react
|
|
107
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, renderTableButtonGroup(colItem.buttonGroup));
|
|
108
108
|
};
|
|
109
109
|
} else if (!colItem.render) {
|
|
110
110
|
// 若未配置render,则给加个默认的返回方法
|
|
@@ -120,10 +120,10 @@ var StandardTable = function StandardTable(props) {
|
|
|
120
120
|
resetColumns = hideOrderNumber ? columns : resetColumns.concat(columns);
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
return /*#__PURE__*/_react
|
|
124
|
-
className: (0, _classnames
|
|
123
|
+
return /*#__PURE__*/_react["default"].createElement(_card["default"], {
|
|
124
|
+
className: (0, _classnames["default"])('standard-table', className),
|
|
125
125
|
bordered: false
|
|
126
|
-
}, /*#__PURE__*/_react
|
|
126
|
+
}, /*#__PURE__*/_react["default"].createElement(_table["default"], Object.assign({
|
|
127
127
|
rowKey: rowKey || 'id',
|
|
128
128
|
rowSelection: rowSelection ? Object.assign(Object.assign({}, rowSelection), {
|
|
129
129
|
columnWidth: 30
|
|
@@ -140,4 +140,4 @@ var StandardTable = function StandardTable(props) {
|
|
|
140
140
|
};
|
|
141
141
|
|
|
142
142
|
var _default = StandardTable;
|
|
143
|
-
exports
|
|
143
|
+
exports["default"] = _default;
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports["default"] = void 0;
|
|
7
7
|
|
|
8
8
|
var _index = _interopRequireDefault(require("../../SpecIcon/index"));
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
13
|
|
|
14
14
|
var IconNode = function IconNode(props) {
|
|
15
15
|
var icon = props.icon;
|
|
@@ -17,7 +17,7 @@ var IconNode = function IconNode(props) {
|
|
|
17
17
|
|
|
18
18
|
if (typeof icon === 'string') {
|
|
19
19
|
var iconArr = icon.split(',');
|
|
20
|
-
return /*#__PURE__*/_react
|
|
20
|
+
return /*#__PURE__*/_react["default"].createElement(_index["default"], {
|
|
21
21
|
prefix: iconArr.length > 1 ? iconArr[0] : 'speci',
|
|
22
22
|
noPrefix: !iconArr[0] || iconArr[0] === 'noPrefix',
|
|
23
23
|
name: iconArr.length > 1 ? iconArr[1] : icon
|
|
@@ -26,14 +26,14 @@ var IconNode = function IconNode(props) {
|
|
|
26
26
|
|
|
27
27
|
if (Array.isArray(icon) && icon.length > 1) {
|
|
28
28
|
// @ts-ignore
|
|
29
|
-
return /*#__PURE__*/_react
|
|
29
|
+
return /*#__PURE__*/_react["default"].createElement(_index["default"], {
|
|
30
30
|
prefix: icon[0],
|
|
31
31
|
name: icon[1]
|
|
32
32
|
}); // 预留 Array ['speci','plus']
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
return /*#__PURE__*/_react
|
|
35
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, icon);
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
var _default = IconNode;
|
|
39
|
-
exports
|
|
39
|
+
exports["default"] = _default;
|
package/lib/components/index.js
CHANGED
|
@@ -6,10 +6,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
Object.defineProperty(exports, "IconNode", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function get() {
|
|
9
|
-
return _index
|
|
9
|
+
return _index["default"];
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
|
|
13
13
|
var _index = _interopRequireDefault(require("./IconNode/index"));
|
|
14
14
|
|
|
15
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
package/lib/data/func.code.js
CHANGED
|
@@ -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 _default = {
|
|
9
9
|
btnFuncCodes: [{
|
|
@@ -116,4 +116,4 @@ var _default = {
|
|
|
116
116
|
code: 'codePageDetail'
|
|
117
117
|
}]
|
|
118
118
|
};
|
|
119
|
-
exports
|
|
119
|
+
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
|
// 一些排版等基本配置值项 (后期可参考是否放入 locales内)
|
|
8
8
|
var _default = {
|
|
9
9
|
// 表单 响应式排版
|
|
@@ -176,4 +176,4 @@ var _default = {
|
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
};
|
|
179
|
-
exports
|
|
179
|
+
exports["default"] = _default;
|
package/lib/data/index.js
CHANGED
|
@@ -6,13 +6,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
Object.defineProperty(exports, "general", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function get() {
|
|
9
|
-
return _general
|
|
9
|
+
return _general["default"];
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "funcCode", {
|
|
13
13
|
enumerable: true,
|
|
14
14
|
get: function get() {
|
|
15
|
-
return _func
|
|
15
|
+
return _func["default"];
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
|
|
@@ -20,4 +20,4 @@ var _general = _interopRequireDefault(require("./general.config"));
|
|
|
20
20
|
|
|
21
21
|
var _func = _interopRequireDefault(require("./func.code"));
|
|
22
22
|
|
|
23
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|