@steedos-widgets/amis-lib 1.2.6-beta.13 → 1.2.6-beta.14
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 +20 -13
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +20 -13
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +20 -13
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
package/dist/index.umd.js
CHANGED
|
@@ -2931,8 +2931,8 @@
|
|
|
2931
2931
|
},
|
|
2932
2932
|
{
|
|
2933
2933
|
"type": "dropdown-button",
|
|
2934
|
-
"className": "",
|
|
2935
|
-
"label": "\${uiSchema.list_views[listName].label}",
|
|
2934
|
+
"className": "",
|
|
2935
|
+
"label": "\${listName ? uiSchema.list_views[listName].label : uiSchema.list_views[defaultListName].label}",
|
|
2936
2936
|
"rightIcon": "fa fa-caret-down",
|
|
2937
2937
|
"size": "sm",
|
|
2938
2938
|
"hideCaret": true,
|
|
@@ -3340,7 +3340,7 @@
|
|
|
3340
3340
|
"icon": "fa fa-table-columns",
|
|
3341
3341
|
"btnClassName": "antd-Button--iconOnly bg-white p-2 rounded border-gray-300 text-gray-500",
|
|
3342
3342
|
"align": "right",
|
|
3343
|
-
"visibleOn": "${window:innerWidth > 768}",
|
|
3343
|
+
"visibleOn": "${window:innerWidth > 768 && !!!isLookup}",
|
|
3344
3344
|
"buttons": [
|
|
3345
3345
|
{
|
|
3346
3346
|
"label": "显示为",
|
|
@@ -4681,6 +4681,8 @@ setTimeout(()=>{
|
|
|
4681
4681
|
...ctx
|
|
4682
4682
|
});
|
|
4683
4683
|
|
|
4684
|
+
pickerSchema.affixHeader = false;
|
|
4685
|
+
|
|
4684
4686
|
var headerToolbarItems = [];
|
|
4685
4687
|
const isMobile = window.innerWidth < 768;
|
|
4686
4688
|
if(referenceTo.objectName === "space_users" && field.reference_to_field === "user" && !isMobile){
|
|
@@ -4698,14 +4700,11 @@ setTimeout(()=>{
|
|
|
4698
4700
|
pickerSchema.headerToolbar.push(new_button);
|
|
4699
4701
|
}
|
|
4700
4702
|
pickerSchema.footerToolbar = refObjectConfig.enable_tree ? [] : getObjectFooterToolbar();
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
...ctx
|
|
4707
|
-
});
|
|
4708
|
-
}
|
|
4703
|
+
if (ctx.filterVisible !== false) {
|
|
4704
|
+
pickerSchema.filter = await getObjectFilter(refObjectConfig, fields, {
|
|
4705
|
+
isLookup: true,
|
|
4706
|
+
...ctx
|
|
4707
|
+
});
|
|
4709
4708
|
}
|
|
4710
4709
|
pickerSchema.data = Object.assign({}, pickerSchema.data, {
|
|
4711
4710
|
"&": "$$",
|
|
@@ -4951,8 +4950,10 @@ setTimeout(()=>{
|
|
|
4951
4950
|
|
|
4952
4951
|
if(referenceTo.objectName === "space_users" && field.reference_to_field === "user"){
|
|
4953
4952
|
if(ctx.idsDependOn || field.amis){
|
|
4953
|
+
// ids人员点选模式
|
|
4954
4954
|
return await lookupToAmisIdsPicker(field, readonly, ctx);
|
|
4955
4955
|
}
|
|
4956
|
+
// 左侧树右侧人员列表的下拉框模式,不再支持,而是执行下面的lookupToAmisPicker函数弹出选人窗口
|
|
4956
4957
|
// return await lookupToAmisSelectUser(field, readonly, ctx);
|
|
4957
4958
|
}
|
|
4958
4959
|
|
|
@@ -5053,6 +5054,9 @@ setTimeout(()=>{
|
|
|
5053
5054
|
top: top,
|
|
5054
5055
|
...ctx
|
|
5055
5056
|
});
|
|
5057
|
+
|
|
5058
|
+
pickerSchema.affixHeader = false;
|
|
5059
|
+
|
|
5056
5060
|
}
|
|
5057
5061
|
|
|
5058
5062
|
const data = {
|
|
@@ -5082,7 +5086,6 @@ setTimeout(()=>{
|
|
|
5082
5086
|
if(readonly){
|
|
5083
5087
|
data.tpl = await getLookupTpl(field, ctx);
|
|
5084
5088
|
}
|
|
5085
|
-
|
|
5086
5089
|
return data;
|
|
5087
5090
|
}
|
|
5088
5091
|
|
|
@@ -7257,7 +7260,11 @@ setTimeout(()=>{
|
|
|
7257
7260
|
filters = systemFilters;
|
|
7258
7261
|
};
|
|
7259
7262
|
if(api.data.$self.additionalFilters){
|
|
7260
|
-
|
|
7263
|
+
if(_.isString(api.data.$self.additionalFilters)){
|
|
7264
|
+
userFilters.push(eval(api.data.$self.additionalFilters))
|
|
7265
|
+
}else{
|
|
7266
|
+
userFilters.push(api.data.$self.additionalFilters)
|
|
7267
|
+
}
|
|
7261
7268
|
}
|
|
7262
7269
|
|
|
7263
7270
|
if(api.data.$self._isRelated){
|