@steedos-widgets/amis-lib 3.6.4-beta.4 → 3.6.4-beta.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/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/index.cjs.js +42 -7
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +42 -7
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +13 -10
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -2650,7 +2650,7 @@ async function getTableOperation(ctx){
|
|
|
2650
2650
|
"label": "xxx",
|
|
2651
2651
|
"buttons": operationButtons,
|
|
2652
2652
|
"placement": "bottomRight",
|
|
2653
|
-
"overlayClassName": "
|
|
2653
|
+
"overlayClassName": "border rounded !min-w-[160px]",
|
|
2654
2654
|
"trigger": ["click"],
|
|
2655
2655
|
"id": "u:c2140a365019",
|
|
2656
2656
|
onOpenApi: {
|
|
@@ -5728,6 +5728,7 @@ const getObjectDetailButtonsSchemas = (objectSchema, recordId, ctx)=>{
|
|
|
5728
5728
|
type: "steedos-dropdown-button",
|
|
5729
5729
|
label: "",
|
|
5730
5730
|
buttons: moreButtons,
|
|
5731
|
+
"overlayClassName": "border rounded !min-w-[160px]",
|
|
5731
5732
|
className: 'slds-icon ml-1',
|
|
5732
5733
|
visibleOn: moreButtonsVisibleOn
|
|
5733
5734
|
};
|
|
@@ -10222,7 +10223,7 @@ async function getRecordDetailSchema(objectName, appId, props = {}){
|
|
|
10222
10223
|
};
|
|
10223
10224
|
const content = {
|
|
10224
10225
|
"type": "tabs",
|
|
10225
|
-
"className": "steedos-record-tabs bg-white p-4 mt-
|
|
10226
|
+
"className": "steedos-record-tabs bg-white p-4 mt-2",
|
|
10226
10227
|
"contentClassName": "bg-none",
|
|
10227
10228
|
"tabs": [
|
|
10228
10229
|
detailed
|
|
@@ -13674,10 +13675,32 @@ async function getInputTableColumns(props) {
|
|
|
13674
13675
|
// 实测过,直接不生成对应的隐藏column并不会对input-table值造成丢失问题,隐藏的列字段值能正常维护
|
|
13675
13676
|
|
|
13676
13677
|
let fieldPrefix = props.fieldPrefix;
|
|
13677
|
-
let fields = props.fields || [];
|
|
13678
|
+
let fields = cloneDeep(props.fields || []);
|
|
13678
13679
|
if (fieldPrefix) {
|
|
13679
13680
|
fields = getTableFieldsWithoutFieldPrefix(fields, fieldPrefix);
|
|
13680
13681
|
}
|
|
13682
|
+
if (inlineEditMode == true) {
|
|
13683
|
+
let popOverContainerSelector = "";
|
|
13684
|
+
let popOverContainer = props.popOverContainer && props.popOverContainer();
|
|
13685
|
+
//获取到当前input-table所处的popOverContainer(可能是modal-dialog中),
|
|
13686
|
+
//给所有的下拉框字段配置popOverContainerSelector,使下拉框组件的弹出框挂载到当前dialog上,防止被dialog遮挡
|
|
13687
|
+
if (popOverContainer) {
|
|
13688
|
+
let classList = Array.prototype.slice.call(popOverContainer.parentElement.classList);
|
|
13689
|
+
if (classList.includes('amis-dialog-widget')) {
|
|
13690
|
+
popOverContainerSelector = '.' + classList.join('.') + ' .antd-Modal-content';
|
|
13691
|
+
}
|
|
13692
|
+
}
|
|
13693
|
+
fields.forEach(function (field) {
|
|
13694
|
+
//lookup存在下拉框模式;弹出模式用的是picker组件,不认popOverContainerSelector属性,所以统一加上
|
|
13695
|
+
if (field.type == "select" || field.type == "lookup") {
|
|
13696
|
+
field.amis = {
|
|
13697
|
+
...field.amis,
|
|
13698
|
+
popOverContainerSelector
|
|
13699
|
+
};
|
|
13700
|
+
}
|
|
13701
|
+
});
|
|
13702
|
+
}
|
|
13703
|
+
|
|
13681
13704
|
if (columns && columns.length) {
|
|
13682
13705
|
return columns.map(function (column) {
|
|
13683
13706
|
let field, extendColumnProps = {};
|
|
@@ -13727,7 +13750,7 @@ async function getInputTableColumns(props) {
|
|
|
13727
13750
|
}
|
|
13728
13751
|
else {
|
|
13729
13752
|
return fields.map(function (field) {
|
|
13730
|
-
let tableCell = getInputTableCell(field, showAsInlineEditMode);
|
|
13753
|
+
let tableCell = getInputTableCell(field, showAsInlineEditMode);
|
|
13731
13754
|
tableCell.className = " whitespace-nowrap ";
|
|
13732
13755
|
return tableCell;
|
|
13733
13756
|
}) || [];
|
|
@@ -14694,7 +14717,7 @@ async function getButtonDelete(props) {
|
|
|
14694
14717
|
return {
|
|
14695
14718
|
"type": "dropdown-button",
|
|
14696
14719
|
"level": "link",
|
|
14697
|
-
"btnClassName": "text-gray-400",
|
|
14720
|
+
"btnClassName": "text-gray-400 steedos-delete-button",
|
|
14698
14721
|
"icon": "fa fa-trash-alt",
|
|
14699
14722
|
"size": "xs",
|
|
14700
14723
|
"hideCaret": true,
|
|
@@ -14857,11 +14880,11 @@ const getAmisInputTableSchema = async (props) => {
|
|
|
14857
14880
|
}
|
|
14858
14881
|
};
|
|
14859
14882
|
if (buttonsForColumnOperations.length) {
|
|
14860
|
-
inputTableSchema.columns.
|
|
14883
|
+
inputTableSchema.columns.unshift({
|
|
14861
14884
|
"name": "__op__",
|
|
14862
14885
|
"type": "operation",
|
|
14863
14886
|
"buttons": buttonsForColumnOperations,
|
|
14864
|
-
"width":
|
|
14887
|
+
"width": 1
|
|
14865
14888
|
});
|
|
14866
14889
|
}
|
|
14867
14890
|
// if (showAsInlineEditMode) {
|
|
@@ -14910,6 +14933,18 @@ const getAmisInputTableSchema = async (props) => {
|
|
|
14910
14933
|
}
|
|
14911
14934
|
let className = "steedos-input-table";
|
|
14912
14935
|
|
|
14936
|
+
if (props.showIndex) {
|
|
14937
|
+
className += " steedos-show-index";
|
|
14938
|
+
}
|
|
14939
|
+
|
|
14940
|
+
if (buttonsForColumnOperations.length) {
|
|
14941
|
+
className += " steedos-has-operations";
|
|
14942
|
+
}
|
|
14943
|
+
|
|
14944
|
+
if (props.enableTree) {
|
|
14945
|
+
className += " steedos-tree-mode";
|
|
14946
|
+
}
|
|
14947
|
+
|
|
14913
14948
|
if (typeof props.className == "object") {
|
|
14914
14949
|
className = {
|
|
14915
14950
|
[className]: "true",
|