@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/assets.json
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
{
|
|
4
4
|
"package": "@steedos-widgets/sortable",
|
|
5
5
|
"urls": [
|
|
6
|
-
"https://unpkg.com/@steedos-widgets/sortable@3.6.0-beta.
|
|
7
|
-
"https://unpkg.com/@steedos-widgets/sortable@3.6.0-beta.
|
|
6
|
+
"https://unpkg.com/@steedos-widgets/sortable@3.6.0-beta.7/dist/sortable.umd.js",
|
|
7
|
+
"https://unpkg.com/@steedos-widgets/sortable@3.6.0-beta.7/dist/sortable.umd.css"
|
|
8
8
|
],
|
|
9
9
|
"library": "BuilderSortable"
|
|
10
10
|
}
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
"npm": {
|
|
16
16
|
"package": "@steedos-widgets/sortable"
|
|
17
17
|
},
|
|
18
|
-
"url": "https://unpkg.com/@steedos-widgets/sortable@3.6.0-beta.
|
|
18
|
+
"url": "https://unpkg.com/@steedos-widgets/sortable@3.6.0-beta.7/dist/meta.js",
|
|
19
19
|
"urls": {
|
|
20
|
-
"default": "https://unpkg.com/@steedos-widgets/sortable@3.6.0-beta.
|
|
21
|
-
"design": "https://unpkg.com/@steedos-widgets/sortable@3.6.0-beta.
|
|
20
|
+
"default": "https://unpkg.com/@steedos-widgets/sortable@3.6.0-beta.7/dist/meta.js",
|
|
21
|
+
"design": "https://unpkg.com/@steedos-widgets/sortable@3.6.0-beta.7/dist/meta.js"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
]
|
package/dist/sortable.cjs.js
CHANGED
|
@@ -55920,6 +55920,14 @@ async function getTableSchema$1(fields, options){
|
|
|
55920
55920
|
|
|
55921
55921
|
}
|
|
55922
55922
|
|
|
55923
|
+
const treeConfig = {};
|
|
55924
|
+
|
|
55925
|
+
if(options.enable_tree){
|
|
55926
|
+
treeConfig.expandConfig = {
|
|
55927
|
+
expand: 'first'
|
|
55928
|
+
};
|
|
55929
|
+
}
|
|
55930
|
+
|
|
55923
55931
|
return {
|
|
55924
55932
|
mode: "table",
|
|
55925
55933
|
perPageAvailable: [5, 10, 20, 50, 100, 500],
|
|
@@ -55935,6 +55943,7 @@ async function getTableSchema$1(fields, options){
|
|
|
55935
55943
|
labelTpl: `\${${options.labelFieldName}}`,
|
|
55936
55944
|
autoFillHeight: false, // 自动高度效果不理想,先关闭
|
|
55937
55945
|
columnsTogglable: false,
|
|
55946
|
+
...treeConfig
|
|
55938
55947
|
}
|
|
55939
55948
|
}
|
|
55940
55949
|
|
|
@@ -59346,14 +59355,6 @@ async function lookupToAmisPicker(field, readonly, ctx){
|
|
|
59346
59355
|
}
|
|
59347
59356
|
});
|
|
59348
59357
|
payload.data.rows = treeRecords;
|
|
59349
|
-
try{
|
|
59350
|
-
setTimeout(() => {
|
|
59351
|
-
$('.amis-dialog-widget.antd-Modal .antd-Table-content .antd-Table-table thead .antd-Table-expandBtn')[0]?.click();
|
|
59352
|
-
}, 600);
|
|
59353
|
-
}
|
|
59354
|
-
catch(ex){
|
|
59355
|
-
console.error("tree数据格式展开异常:", ex);
|
|
59356
|
-
}
|
|
59357
59358
|
}
|
|
59358
59359
|
return payload;
|
|
59359
59360
|
`;
|
|
@@ -59380,6 +59381,7 @@ async function lookupToAmisPicker(field, readonly, ctx){
|
|
|
59380
59381
|
labelFieldName,
|
|
59381
59382
|
top: top,
|
|
59382
59383
|
isLookup: true,
|
|
59384
|
+
enable_tree: refObjectConfig.enable_tree,
|
|
59383
59385
|
...ctx
|
|
59384
59386
|
});
|
|
59385
59387
|
|