@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.esm.js
CHANGED
|
@@ -2905,8 +2905,8 @@ function getObjectListHeaderFirstLine(objectSchema, listViewName, ctx) {
|
|
|
2905
2905
|
},
|
|
2906
2906
|
{
|
|
2907
2907
|
"type": "dropdown-button",
|
|
2908
|
-
"className": "",
|
|
2909
|
-
"label": "\${uiSchema.list_views[listName].label}",
|
|
2908
|
+
"className": "",
|
|
2909
|
+
"label": "\${listName ? uiSchema.list_views[listName].label : uiSchema.list_views[defaultListName].label}",
|
|
2910
2910
|
"rightIcon": "fa fa-caret-down",
|
|
2911
2911
|
"size": "sm",
|
|
2912
2912
|
"hideCaret": true,
|
|
@@ -3314,7 +3314,7 @@ const getDisplayAsButton = function(objectName, showDisplayAs){
|
|
|
3314
3314
|
"icon": "fa fa-table-columns",
|
|
3315
3315
|
"btnClassName": "antd-Button--iconOnly bg-white p-2 rounded border-gray-300 text-gray-500",
|
|
3316
3316
|
"align": "right",
|
|
3317
|
-
"visibleOn": "${window:innerWidth > 768}",
|
|
3317
|
+
"visibleOn": "${window:innerWidth > 768 && !!!isLookup}",
|
|
3318
3318
|
"buttons": [
|
|
3319
3319
|
{
|
|
3320
3320
|
"label": "显示为",
|
|
@@ -4655,6 +4655,8 @@ async function lookupToAmisPicker(field, readonly, ctx){
|
|
|
4655
4655
|
...ctx
|
|
4656
4656
|
});
|
|
4657
4657
|
|
|
4658
|
+
pickerSchema.affixHeader = false;
|
|
4659
|
+
|
|
4658
4660
|
var headerToolbarItems = [];
|
|
4659
4661
|
const isMobile = window.innerWidth < 768;
|
|
4660
4662
|
if(referenceTo.objectName === "space_users" && field.reference_to_field === "user" && !isMobile){
|
|
@@ -4672,14 +4674,11 @@ async function lookupToAmisPicker(field, readonly, ctx){
|
|
|
4672
4674
|
pickerSchema.headerToolbar.push(new_button);
|
|
4673
4675
|
}
|
|
4674
4676
|
pickerSchema.footerToolbar = refObjectConfig.enable_tree ? [] : getObjectFooterToolbar();
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
...ctx
|
|
4681
|
-
});
|
|
4682
|
-
}
|
|
4677
|
+
if (ctx.filterVisible !== false) {
|
|
4678
|
+
pickerSchema.filter = await getObjectFilter(refObjectConfig, fields, {
|
|
4679
|
+
isLookup: true,
|
|
4680
|
+
...ctx
|
|
4681
|
+
});
|
|
4683
4682
|
}
|
|
4684
4683
|
pickerSchema.data = Object.assign({}, pickerSchema.data, {
|
|
4685
4684
|
"&": "$$",
|
|
@@ -4925,8 +4924,10 @@ async function lookupToAmis(field, readonly, ctx){
|
|
|
4925
4924
|
|
|
4926
4925
|
if(referenceTo.objectName === "space_users" && field.reference_to_field === "user"){
|
|
4927
4926
|
if(ctx.idsDependOn || field.amis){
|
|
4927
|
+
// ids人员点选模式
|
|
4928
4928
|
return await lookupToAmisIdsPicker(field, readonly, ctx);
|
|
4929
4929
|
}
|
|
4930
|
+
// 左侧树右侧人员列表的下拉框模式,不再支持,而是执行下面的lookupToAmisPicker函数弹出选人窗口
|
|
4930
4931
|
// return await lookupToAmisSelectUser(field, readonly, ctx);
|
|
4931
4932
|
}
|
|
4932
4933
|
|
|
@@ -5027,6 +5028,9 @@ async function getIdsPickerSchema(field, readonly, ctx){
|
|
|
5027
5028
|
top: top,
|
|
5028
5029
|
...ctx
|
|
5029
5030
|
});
|
|
5031
|
+
|
|
5032
|
+
pickerSchema.affixHeader = false;
|
|
5033
|
+
|
|
5030
5034
|
}
|
|
5031
5035
|
|
|
5032
5036
|
const data = {
|
|
@@ -5056,7 +5060,6 @@ async function getIdsPickerSchema(field, readonly, ctx){
|
|
|
5056
5060
|
if(readonly){
|
|
5057
5061
|
data.tpl = await getLookupTpl(field, ctx);
|
|
5058
5062
|
}
|
|
5059
|
-
|
|
5060
5063
|
return data;
|
|
5061
5064
|
}
|
|
5062
5065
|
|
|
@@ -7231,7 +7234,11 @@ async function getTableApi(mainObject, fields, options){
|
|
|
7231
7234
|
filters = systemFilters;
|
|
7232
7235
|
};
|
|
7233
7236
|
if(api.data.$self.additionalFilters){
|
|
7234
|
-
|
|
7237
|
+
if(_.isString(api.data.$self.additionalFilters)){
|
|
7238
|
+
userFilters.push(eval(api.data.$self.additionalFilters))
|
|
7239
|
+
}else{
|
|
7240
|
+
userFilters.push(api.data.$self.additionalFilters)
|
|
7241
|
+
}
|
|
7235
7242
|
}
|
|
7236
7243
|
|
|
7237
7244
|
if(api.data.$self._isRelated){
|