@kmkf-fe-packages/basic-components 2.2.5-beta.29 → 2.2.5-beta.30
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/index.esm.js +45 -10
- package/dist/index.js +45 -10
- package/dist/src/apaas/SubForm/render.d.ts +2 -2
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -9420,14 +9420,39 @@ var FileRender = function FileRender(_ref) {
|
|
|
9420
9420
|
setDownloading(false);
|
|
9421
9421
|
});
|
|
9422
9422
|
};
|
|
9423
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null,
|
|
9423
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Popover, {
|
|
9424
|
+
content: /*#__PURE__*/React.createElement(React.Fragment, null, fileList.map(function (item) {
|
|
9425
|
+
return /*#__PURE__*/React.createElement("a", {
|
|
9426
|
+
style: {
|
|
9427
|
+
display: 'block',
|
|
9428
|
+
width: '100%',
|
|
9429
|
+
color: '#1890ff',
|
|
9430
|
+
cursor: 'pointer'
|
|
9431
|
+
},
|
|
9432
|
+
onClick: function onClick(e) {
|
|
9433
|
+
e.preventDefault();
|
|
9434
|
+
onPreview(item);
|
|
9435
|
+
},
|
|
9436
|
+
href: item === null || item === void 0 ? void 0 : item.url
|
|
9437
|
+
}, item.name);
|
|
9438
|
+
})),
|
|
9439
|
+
trigger: "hover"
|
|
9440
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
9441
|
+
style: {
|
|
9442
|
+
overflow: 'hidden',
|
|
9443
|
+
textOverflow: 'ellipsis',
|
|
9444
|
+
whiteSpace: 'nowrap'
|
|
9445
|
+
}
|
|
9446
|
+
}, fileList.map(function (item) {
|
|
9424
9447
|
return /*#__PURE__*/React.createElement("a", {
|
|
9425
9448
|
style: {
|
|
9426
9449
|
display: 'block',
|
|
9427
9450
|
width: '100%',
|
|
9428
9451
|
color: '#1890ff',
|
|
9429
9452
|
cursor: 'pointer',
|
|
9430
|
-
|
|
9453
|
+
overflow: 'hidden',
|
|
9454
|
+
textOverflow: 'ellipsis',
|
|
9455
|
+
whiteSpace: 'nowrap'
|
|
9431
9456
|
},
|
|
9432
9457
|
onClick: function onClick(e) {
|
|
9433
9458
|
e.preventDefault();
|
|
@@ -9435,7 +9460,7 @@ var FileRender = function FileRender(_ref) {
|
|
|
9435
9460
|
},
|
|
9436
9461
|
href: item === null || item === void 0 ? void 0 : item.url
|
|
9437
9462
|
}, item.name);
|
|
9438
|
-
}), /*#__PURE__*/React.createElement(Modal, {
|
|
9463
|
+
}))), /*#__PURE__*/React.createElement(Modal, {
|
|
9439
9464
|
visible: visible,
|
|
9440
9465
|
title: fileName,
|
|
9441
9466
|
footer: null,
|
|
@@ -9532,7 +9557,8 @@ var EditPictureRender = function EditPictureRender(_ref6) {
|
|
|
9532
9557
|
t = _ref6.t,
|
|
9533
9558
|
updateHandle = _ref6.updateHandle,
|
|
9534
9559
|
disabled = _ref6.disabled,
|
|
9535
|
-
hostUrl = _ref6.hostUrl
|
|
9560
|
+
hostUrl = _ref6.hostUrl,
|
|
9561
|
+
platform = _ref6.platform;
|
|
9536
9562
|
var finalPictures = val.map(function (item) {
|
|
9537
9563
|
return item.startsWith('http') ? item : "".concat(hostUrl, "/").concat(item);
|
|
9538
9564
|
});
|
|
@@ -9554,7 +9580,9 @@ var EditPictureRender = function EditPictureRender(_ref6) {
|
|
|
9554
9580
|
onChange: function onChange(e) {
|
|
9555
9581
|
return updateHandle(e, index, t.key);
|
|
9556
9582
|
},
|
|
9557
|
-
hostUrl: hostUrl
|
|
9583
|
+
hostUrl: hostUrl,
|
|
9584
|
+
uniqueKey: t.key,
|
|
9585
|
+
platform: platform
|
|
9558
9586
|
})),
|
|
9559
9587
|
trigger: "click"
|
|
9560
9588
|
}, /*#__PURE__*/React.createElement(PlusSquareOutlined, {
|
|
@@ -9574,7 +9602,8 @@ var EditFileRender = function EditFileRender(_ref7) {
|
|
|
9574
9602
|
t = _ref7.t,
|
|
9575
9603
|
updateHandle = _ref7.updateHandle,
|
|
9576
9604
|
disabled = _ref7.disabled,
|
|
9577
|
-
hostUrl = _ref7.hostUrl
|
|
9605
|
+
hostUrl = _ref7.hostUrl,
|
|
9606
|
+
platform = _ref7.platform;
|
|
9578
9607
|
return /*#__PURE__*/React.createElement("div", {
|
|
9579
9608
|
style: {
|
|
9580
9609
|
display: 'flex',
|
|
@@ -9593,7 +9622,8 @@ var EditFileRender = function EditFileRender(_ref7) {
|
|
|
9593
9622
|
onChange: function onChange(e) {
|
|
9594
9623
|
return updateHandle(e, index, t.key);
|
|
9595
9624
|
},
|
|
9596
|
-
hostUrl: hostUrl
|
|
9625
|
+
hostUrl: hostUrl,
|
|
9626
|
+
platform: platform
|
|
9597
9627
|
})),
|
|
9598
9628
|
trigger: "click"
|
|
9599
9629
|
}, /*#__PURE__*/React.createElement(PlusSquareOutlined, {
|
|
@@ -9670,14 +9700,16 @@ var EditRenderMap = {
|
|
|
9670
9700
|
index = _ref10.index,
|
|
9671
9701
|
t = _ref10.t,
|
|
9672
9702
|
updateHandle = _ref10.updateHandle,
|
|
9673
|
-
disabled = _ref10.disabled
|
|
9703
|
+
disabled = _ref10.disabled,
|
|
9704
|
+
platform = _ref10.platform;
|
|
9674
9705
|
return /*#__PURE__*/React.createElement(EditPictureRender, {
|
|
9675
9706
|
val: val,
|
|
9676
9707
|
t: t,
|
|
9677
9708
|
disabled: disabled,
|
|
9678
9709
|
index: index,
|
|
9679
9710
|
updateHandle: updateHandle,
|
|
9680
|
-
hostUrl: hostUrl
|
|
9711
|
+
hostUrl: hostUrl,
|
|
9712
|
+
platform: platform
|
|
9681
9713
|
});
|
|
9682
9714
|
},
|
|
9683
9715
|
FILE: function FILE(_ref11) {
|
|
@@ -9707,6 +9739,7 @@ var EditRenderMap = {
|
|
|
9707
9739
|
return /*#__PURE__*/React.createElement(ApaasSelect, _objectSpread2(_objectSpread2({}, componentDto === null || componentDto === void 0 ? void 0 : componentDto.componentConfig), {}, {
|
|
9708
9740
|
value: val,
|
|
9709
9741
|
disabled: t.isEdit || disabled,
|
|
9742
|
+
allowClear: true,
|
|
9710
9743
|
onChange: function onChange(e) {
|
|
9711
9744
|
return updateHandle(e, index, t.key);
|
|
9712
9745
|
}
|
|
@@ -9723,6 +9756,7 @@ var EditRenderMap = {
|
|
|
9723
9756
|
return /*#__PURE__*/React.createElement(ApaasSelect, _objectSpread2(_objectSpread2({}, componentDto === null || componentDto === void 0 ? void 0 : componentDto.componentConfig), {}, {
|
|
9724
9757
|
value: val,
|
|
9725
9758
|
disabled: t.isEdit || disabled,
|
|
9759
|
+
allowClear: true,
|
|
9726
9760
|
onChange: function onChange(e) {
|
|
9727
9761
|
return updateHandle(e, index, t.key);
|
|
9728
9762
|
}
|
|
@@ -9910,7 +9944,8 @@ var SubForm = function SubForm(props) {
|
|
|
9910
9944
|
disabled: disabled,
|
|
9911
9945
|
componentDto: componentDtoList.find(function (item) {
|
|
9912
9946
|
return item.uniqueKey === t.key;
|
|
9913
|
-
})
|
|
9947
|
+
}),
|
|
9948
|
+
platform: platform
|
|
9914
9949
|
}) : /*#__PURE__*/React.createElement(Input, {
|
|
9915
9950
|
style: {
|
|
9916
9951
|
width: '100%'
|
package/dist/index.js
CHANGED
|
@@ -9435,14 +9435,39 @@ var FileRender = function FileRender(_ref) {
|
|
|
9435
9435
|
setDownloading(false);
|
|
9436
9436
|
});
|
|
9437
9437
|
};
|
|
9438
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null,
|
|
9438
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Popover, {
|
|
9439
|
+
content: /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, fileList.map(function (item) {
|
|
9440
|
+
return /*#__PURE__*/React__default['default'].createElement("a", {
|
|
9441
|
+
style: {
|
|
9442
|
+
display: 'block',
|
|
9443
|
+
width: '100%',
|
|
9444
|
+
color: '#1890ff',
|
|
9445
|
+
cursor: 'pointer'
|
|
9446
|
+
},
|
|
9447
|
+
onClick: function onClick(e) {
|
|
9448
|
+
e.preventDefault();
|
|
9449
|
+
onPreview(item);
|
|
9450
|
+
},
|
|
9451
|
+
href: item === null || item === void 0 ? void 0 : item.url
|
|
9452
|
+
}, item.name);
|
|
9453
|
+
})),
|
|
9454
|
+
trigger: "hover"
|
|
9455
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
9456
|
+
style: {
|
|
9457
|
+
overflow: 'hidden',
|
|
9458
|
+
textOverflow: 'ellipsis',
|
|
9459
|
+
whiteSpace: 'nowrap'
|
|
9460
|
+
}
|
|
9461
|
+
}, fileList.map(function (item) {
|
|
9439
9462
|
return /*#__PURE__*/React__default['default'].createElement("a", {
|
|
9440
9463
|
style: {
|
|
9441
9464
|
display: 'block',
|
|
9442
9465
|
width: '100%',
|
|
9443
9466
|
color: '#1890ff',
|
|
9444
9467
|
cursor: 'pointer',
|
|
9445
|
-
|
|
9468
|
+
overflow: 'hidden',
|
|
9469
|
+
textOverflow: 'ellipsis',
|
|
9470
|
+
whiteSpace: 'nowrap'
|
|
9446
9471
|
},
|
|
9447
9472
|
onClick: function onClick(e) {
|
|
9448
9473
|
e.preventDefault();
|
|
@@ -9450,7 +9475,7 @@ var FileRender = function FileRender(_ref) {
|
|
|
9450
9475
|
},
|
|
9451
9476
|
href: item === null || item === void 0 ? void 0 : item.url
|
|
9452
9477
|
}, item.name);
|
|
9453
|
-
}), /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
9478
|
+
}))), /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
9454
9479
|
visible: visible,
|
|
9455
9480
|
title: fileName,
|
|
9456
9481
|
footer: null,
|
|
@@ -9547,7 +9572,8 @@ var EditPictureRender = function EditPictureRender(_ref6) {
|
|
|
9547
9572
|
t = _ref6.t,
|
|
9548
9573
|
updateHandle = _ref6.updateHandle,
|
|
9549
9574
|
disabled = _ref6.disabled,
|
|
9550
|
-
hostUrl = _ref6.hostUrl
|
|
9575
|
+
hostUrl = _ref6.hostUrl,
|
|
9576
|
+
platform = _ref6.platform;
|
|
9551
9577
|
var finalPictures = val.map(function (item) {
|
|
9552
9578
|
return item.startsWith('http') ? item : "".concat(hostUrl, "/").concat(item);
|
|
9553
9579
|
});
|
|
@@ -9569,7 +9595,9 @@ var EditPictureRender = function EditPictureRender(_ref6) {
|
|
|
9569
9595
|
onChange: function onChange(e) {
|
|
9570
9596
|
return updateHandle(e, index, t.key);
|
|
9571
9597
|
},
|
|
9572
|
-
hostUrl: hostUrl
|
|
9598
|
+
hostUrl: hostUrl,
|
|
9599
|
+
uniqueKey: t.key,
|
|
9600
|
+
platform: platform
|
|
9573
9601
|
})),
|
|
9574
9602
|
trigger: "click"
|
|
9575
9603
|
}, /*#__PURE__*/React__default['default'].createElement(icons.PlusSquareOutlined, {
|
|
@@ -9589,7 +9617,8 @@ var EditFileRender = function EditFileRender(_ref7) {
|
|
|
9589
9617
|
t = _ref7.t,
|
|
9590
9618
|
updateHandle = _ref7.updateHandle,
|
|
9591
9619
|
disabled = _ref7.disabled,
|
|
9592
|
-
hostUrl = _ref7.hostUrl
|
|
9620
|
+
hostUrl = _ref7.hostUrl,
|
|
9621
|
+
platform = _ref7.platform;
|
|
9593
9622
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
9594
9623
|
style: {
|
|
9595
9624
|
display: 'flex',
|
|
@@ -9608,7 +9637,8 @@ var EditFileRender = function EditFileRender(_ref7) {
|
|
|
9608
9637
|
onChange: function onChange(e) {
|
|
9609
9638
|
return updateHandle(e, index, t.key);
|
|
9610
9639
|
},
|
|
9611
|
-
hostUrl: hostUrl
|
|
9640
|
+
hostUrl: hostUrl,
|
|
9641
|
+
platform: platform
|
|
9612
9642
|
})),
|
|
9613
9643
|
trigger: "click"
|
|
9614
9644
|
}, /*#__PURE__*/React__default['default'].createElement(icons.PlusSquareOutlined, {
|
|
@@ -9685,14 +9715,16 @@ var EditRenderMap = {
|
|
|
9685
9715
|
index = _ref10.index,
|
|
9686
9716
|
t = _ref10.t,
|
|
9687
9717
|
updateHandle = _ref10.updateHandle,
|
|
9688
|
-
disabled = _ref10.disabled
|
|
9718
|
+
disabled = _ref10.disabled,
|
|
9719
|
+
platform = _ref10.platform;
|
|
9689
9720
|
return /*#__PURE__*/React__default['default'].createElement(EditPictureRender, {
|
|
9690
9721
|
val: val,
|
|
9691
9722
|
t: t,
|
|
9692
9723
|
disabled: disabled,
|
|
9693
9724
|
index: index,
|
|
9694
9725
|
updateHandle: updateHandle,
|
|
9695
|
-
hostUrl: hostUrl
|
|
9726
|
+
hostUrl: hostUrl,
|
|
9727
|
+
platform: platform
|
|
9696
9728
|
});
|
|
9697
9729
|
},
|
|
9698
9730
|
FILE: function FILE(_ref11) {
|
|
@@ -9722,6 +9754,7 @@ var EditRenderMap = {
|
|
|
9722
9754
|
return /*#__PURE__*/React__default['default'].createElement(ApaasSelect, _objectSpread2(_objectSpread2({}, componentDto === null || componentDto === void 0 ? void 0 : componentDto.componentConfig), {}, {
|
|
9723
9755
|
value: val,
|
|
9724
9756
|
disabled: t.isEdit || disabled,
|
|
9757
|
+
allowClear: true,
|
|
9725
9758
|
onChange: function onChange(e) {
|
|
9726
9759
|
return updateHandle(e, index, t.key);
|
|
9727
9760
|
}
|
|
@@ -9738,6 +9771,7 @@ var EditRenderMap = {
|
|
|
9738
9771
|
return /*#__PURE__*/React__default['default'].createElement(ApaasSelect, _objectSpread2(_objectSpread2({}, componentDto === null || componentDto === void 0 ? void 0 : componentDto.componentConfig), {}, {
|
|
9739
9772
|
value: val,
|
|
9740
9773
|
disabled: t.isEdit || disabled,
|
|
9774
|
+
allowClear: true,
|
|
9741
9775
|
onChange: function onChange(e) {
|
|
9742
9776
|
return updateHandle(e, index, t.key);
|
|
9743
9777
|
}
|
|
@@ -9925,7 +9959,8 @@ var SubForm = function SubForm(props) {
|
|
|
9925
9959
|
disabled: disabled,
|
|
9926
9960
|
componentDto: componentDtoList.find(function (item) {
|
|
9927
9961
|
return item.uniqueKey === t.key;
|
|
9928
|
-
})
|
|
9962
|
+
}),
|
|
9963
|
+
platform: platform
|
|
9929
9964
|
}) : /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
9930
9965
|
style: {
|
|
9931
9966
|
width: '100%'
|
|
@@ -16,7 +16,7 @@ export declare const MultipleSelectRender: ({ value }: {
|
|
|
16
16
|
value: any;
|
|
17
17
|
}) => any;
|
|
18
18
|
export declare const renderMap: Record<string, (props: any) => React.ReactNode>;
|
|
19
|
-
export declare const EditPictureRender: ({ val, index, t, updateHandle, disabled, hostUrl, }: any) => React.JSX.Element;
|
|
20
|
-
export declare const EditFileRender: ({ val, index, t, updateHandle, disabled, hostUrl, }: any) => React.JSX.Element;
|
|
19
|
+
export declare const EditPictureRender: ({ val, index, t, updateHandle, disabled, hostUrl, platform, }: any) => React.JSX.Element;
|
|
20
|
+
export declare const EditFileRender: ({ val, index, t, updateHandle, disabled, hostUrl, platform, }: any) => React.JSX.Element;
|
|
21
21
|
export declare const EditRenderMap: Record<string, (props: any) => React.ReactNode>;
|
|
22
22
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "2.2.5-beta.
|
|
3
|
+
"version": "2.2.5-beta.30",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"publishConfig": {
|
|
67
67
|
"access": "public"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "e6c2918c9e9f4e56154db49cda7dcf0a2bf5f2f4"
|
|
70
70
|
}
|