@steedos-widgets/sortable 3.6.0-beta.6 → 3.6.0-beta.7
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/assets.json +5 -5
- package/dist/sortable.cjs.js +10 -8
- package/dist/sortable.cjs.js.map +1 -1
- package/dist/sortable.esm.js +10 -8
- package/dist/sortable.esm.js.map +1 -1
- package/dist/sortable.umd.js +10 -8
- package/package.json +3 -3
package/dist/sortable.esm.js
CHANGED
|
@@ -55916,6 +55916,14 @@ async function getTableSchema$1(fields, options){
|
|
|
55916
55916
|
|
|
55917
55917
|
}
|
|
55918
55918
|
|
|
55919
|
+
const treeConfig = {};
|
|
55920
|
+
|
|
55921
|
+
if(options.enable_tree){
|
|
55922
|
+
treeConfig.expandConfig = {
|
|
55923
|
+
expand: 'first'
|
|
55924
|
+
};
|
|
55925
|
+
}
|
|
55926
|
+
|
|
55919
55927
|
return {
|
|
55920
55928
|
mode: "table",
|
|
55921
55929
|
perPageAvailable: [5, 10, 20, 50, 100, 500],
|
|
@@ -55931,6 +55939,7 @@ async function getTableSchema$1(fields, options){
|
|
|
55931
55939
|
labelTpl: `\${${options.labelFieldName}}`,
|
|
55932
55940
|
autoFillHeight: false, // 自动高度效果不理想,先关闭
|
|
55933
55941
|
columnsTogglable: false,
|
|
55942
|
+
...treeConfig
|
|
55934
55943
|
}
|
|
55935
55944
|
}
|
|
55936
55945
|
|
|
@@ -59342,14 +59351,6 @@ async function lookupToAmisPicker(field, readonly, ctx){
|
|
|
59342
59351
|
}
|
|
59343
59352
|
});
|
|
59344
59353
|
payload.data.rows = treeRecords;
|
|
59345
|
-
try{
|
|
59346
|
-
setTimeout(() => {
|
|
59347
|
-
$('.amis-dialog-widget.antd-Modal .antd-Table-content .antd-Table-table thead .antd-Table-expandBtn')[0]?.click();
|
|
59348
|
-
}, 600);
|
|
59349
|
-
}
|
|
59350
|
-
catch(ex){
|
|
59351
|
-
console.error("tree数据格式展开异常:", ex);
|
|
59352
|
-
}
|
|
59353
59354
|
}
|
|
59354
59355
|
return payload;
|
|
59355
59356
|
`;
|
|
@@ -59376,6 +59377,7 @@ async function lookupToAmisPicker(field, readonly, ctx){
|
|
|
59376
59377
|
labelFieldName,
|
|
59377
59378
|
top: top,
|
|
59378
59379
|
isLookup: true,
|
|
59380
|
+
enable_tree: refObjectConfig.enable_tree,
|
|
59379
59381
|
...ctx
|
|
59380
59382
|
});
|
|
59381
59383
|
|