fan-standard-comp 3.1.3 → 3.1.5
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 +2 -2
- package/es/FormComp/FieldComponent/RefactorTreeSelect.js +2 -2
- package/es/FormComp/FieldComponent/style/index.less +4 -0
- package/es/FormComp/Uploader/index.d.ts +2 -0
- package/es/FormComp/Uploader/index.js +4 -2
- package/es/StandardModal/index.js +0 -1
- package/lib/FormComp/FieldComponent/RefactorTreeSelect.js +2 -2
- package/lib/FormComp/FieldComponent/style/index.less +4 -0
- package/lib/FormComp/Uploader/index.d.ts +2 -0
- package/lib/FormComp/Uploader/index.js +4 -2
- package/lib/StandardModal/index.js +0 -1
- package/package.json +1 -1
|
@@ -222,8 +222,8 @@ var RefactorTreeSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
222
222
|
|
|
223
223
|
if (otherProps.multiple) {
|
|
224
224
|
if (labelInValue) {
|
|
225
|
-
return value && value.length > 0 ? value.map(function (
|
|
226
|
-
return
|
|
225
|
+
return value && value.length > 0 ? value.map(function (item) {
|
|
226
|
+
return item[treeOptionName.title] || item['title'] || item['label'];
|
|
227
227
|
}).join(',') : '-';
|
|
228
228
|
}
|
|
229
229
|
|
|
@@ -14,6 +14,8 @@ interface UploaderProps {
|
|
|
14
14
|
onPreview?: (file?: any) => any;
|
|
15
15
|
beforeUpload?: (file: any, fileList: any) => any;
|
|
16
16
|
limit?: number;
|
|
17
|
+
modalConfig?: any;
|
|
18
|
+
modalZIndex?: number;
|
|
17
19
|
}
|
|
18
20
|
declare const Uploader: React.ForwardRefExoticComponent<UploaderProps & React.RefAttributes<unknown>>;
|
|
19
21
|
export default Uploader;
|
|
@@ -44,6 +44,8 @@ var Uploader = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
44
44
|
size = _props$size === void 0 ? 2 * 1024 * 1024 : _props$size,
|
|
45
45
|
_props$modalSize = props.modalSize,
|
|
46
46
|
modalSize = _props$modalSize === void 0 ? 'md' : _props$modalSize,
|
|
47
|
+
_props$modalConfig = props.modalConfig,
|
|
48
|
+
modalConfig = _props$modalConfig === void 0 ? {} : _props$modalConfig,
|
|
47
49
|
onPreview = props.onPreview,
|
|
48
50
|
beforeUpload = props.beforeUpload,
|
|
49
51
|
limit = props.limit; // 图片预览数据
|
|
@@ -208,7 +210,7 @@ var Uploader = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
208
210
|
if (fileType === 'image' || fileType === 'svg') {
|
|
209
211
|
var visible = showConfig.visible,
|
|
210
212
|
url = showConfig.url;
|
|
211
|
-
return /*#__PURE__*/React.createElement(StandardModal, {
|
|
213
|
+
return /*#__PURE__*/React.createElement(StandardModal, Object.assign({
|
|
212
214
|
visible: visible,
|
|
213
215
|
hideFooter: true,
|
|
214
216
|
onCancel: function onCancel() {
|
|
@@ -218,7 +220,7 @@ var Uploader = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
218
220
|
});
|
|
219
221
|
},
|
|
220
222
|
size: modalSize
|
|
221
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
223
|
+
}, modalConfig), /*#__PURE__*/React.createElement("div", {
|
|
222
224
|
style: {
|
|
223
225
|
textAlign: 'center'
|
|
224
226
|
}
|
|
@@ -459,7 +459,6 @@ var StandardModal = function StandardModal(props) {
|
|
|
459
459
|
initialWidth: otherProps.width || general.modalSize[size].width,
|
|
460
460
|
initialHeight: otherProps.height
|
|
461
461
|
}, otherProps, {
|
|
462
|
-
zIndex: 1001,
|
|
463
462
|
visible: visible,
|
|
464
463
|
className: "standardModal ".concat(className || '', " ").concat(fieldStatus === 'viewOnly' ? 'is-view' : ''),
|
|
465
464
|
onCancel: handleCancel,
|
|
@@ -243,8 +243,8 @@ var RefactorTreeSelect = /*#__PURE__*/_react.default.forwardRef(function (props,
|
|
|
243
243
|
|
|
244
244
|
if (otherProps.multiple) {
|
|
245
245
|
if (labelInValue) {
|
|
246
|
-
return value && value.length > 0 ? value.map(function (
|
|
247
|
-
return
|
|
246
|
+
return value && value.length > 0 ? value.map(function (item) {
|
|
247
|
+
return item[treeOptionName.title] || item['title'] || item['label'];
|
|
248
248
|
}).join(',') : '-';
|
|
249
249
|
}
|
|
250
250
|
|
|
@@ -14,6 +14,8 @@ interface UploaderProps {
|
|
|
14
14
|
onPreview?: (file?: any) => any;
|
|
15
15
|
beforeUpload?: (file: any, fileList: any) => any;
|
|
16
16
|
limit?: number;
|
|
17
|
+
modalConfig?: any;
|
|
18
|
+
modalZIndex?: number;
|
|
17
19
|
}
|
|
18
20
|
declare const Uploader: React.ForwardRefExoticComponent<UploaderProps & React.RefAttributes<unknown>>;
|
|
19
21
|
export default Uploader;
|
|
@@ -68,6 +68,8 @@ var Uploader = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
68
68
|
size = _props$size === void 0 ? 2 * 1024 * 1024 : _props$size,
|
|
69
69
|
_props$modalSize = props.modalSize,
|
|
70
70
|
modalSize = _props$modalSize === void 0 ? 'md' : _props$modalSize,
|
|
71
|
+
_props$modalConfig = props.modalConfig,
|
|
72
|
+
modalConfig = _props$modalConfig === void 0 ? {} : _props$modalConfig,
|
|
71
73
|
onPreview = props.onPreview,
|
|
72
74
|
beforeUpload = props.beforeUpload,
|
|
73
75
|
limit = props.limit; // 图片预览数据
|
|
@@ -232,7 +234,7 @@ var Uploader = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
232
234
|
if (fileType === 'image' || fileType === 'svg') {
|
|
233
235
|
var visible = showConfig.visible,
|
|
234
236
|
url = showConfig.url;
|
|
235
|
-
return /*#__PURE__*/_react.default.createElement(_StandardModal.default, {
|
|
237
|
+
return /*#__PURE__*/_react.default.createElement(_StandardModal.default, Object.assign({
|
|
236
238
|
visible: visible,
|
|
237
239
|
hideFooter: true,
|
|
238
240
|
onCancel: function onCancel() {
|
|
@@ -242,7 +244,7 @@ var Uploader = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
242
244
|
});
|
|
243
245
|
},
|
|
244
246
|
size: modalSize
|
|
245
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
247
|
+
}, modalConfig), /*#__PURE__*/_react.default.createElement("div", {
|
|
246
248
|
style: {
|
|
247
249
|
textAlign: 'center'
|
|
248
250
|
}
|
|
@@ -488,7 +488,6 @@ var StandardModal = function StandardModal(props) {
|
|
|
488
488
|
initialWidth: otherProps.width || _data.general.modalSize[size].width,
|
|
489
489
|
initialHeight: otherProps.height
|
|
490
490
|
}, otherProps, {
|
|
491
|
-
zIndex: 1001,
|
|
492
491
|
visible: visible,
|
|
493
492
|
className: "standardModal ".concat(className || '', " ").concat(fieldStatus === 'viewOnly' ? 'is-view' : ''),
|
|
494
493
|
onCancel: handleCancel,
|