@steedos-widgets/amis-object 1.3.18 → 1.3.19
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/amis-object.cjs.js
CHANGED
|
@@ -9340,12 +9340,13 @@ async function getObjectFieldsFilterBarSchema(objectSchema, ctx) {
|
|
|
9340
9340
|
*/
|
|
9341
9341
|
function getObjectListHeaderFirstLine(objectSchema, listViewName, ctx) {
|
|
9342
9342
|
const { icon, label } = objectSchema;
|
|
9343
|
+
const disabled_list_views = objectSchema.permissions.disabled_list_views;
|
|
9343
9344
|
const listViewButtonOptions = [];
|
|
9344
9345
|
_$1.each(
|
|
9345
9346
|
objectSchema.list_views,
|
|
9346
9347
|
(listView, name) => {
|
|
9347
|
-
if(name === "lookup"){
|
|
9348
|
-
// 内置lookup
|
|
9348
|
+
if(name === "lookup" || (disabled_list_views && disabled_list_views.indexOf(listView._id)>-1)){
|
|
9349
|
+
// 内置lookup为弹出选择专用视图,根据用户权限被禁用的视图,不显示在列表切换区域
|
|
9349
9350
|
return;
|
|
9350
9351
|
}
|
|
9351
9352
|
listViewButtonOptions.push({
|
|
@@ -11434,7 +11435,10 @@ async function getObjectCRUD(objectSchema, fields, options){
|
|
|
11434
11435
|
// [`flex-auto ${crudClassName || ""}`]: "true",
|
|
11435
11436
|
// "is-steedos-crud-data-empty": "${!items || COUNT(items) == 0}"
|
|
11436
11437
|
// },
|
|
11437
|
-
bodyClassName:
|
|
11438
|
+
bodyClassName: {
|
|
11439
|
+
"bg-white": "true",
|
|
11440
|
+
"is-steedos-crud-data-empty": "${!items || COUNT(items) == 0}"
|
|
11441
|
+
},
|
|
11438
11442
|
crudClassName: crudClassName,
|
|
11439
11443
|
quickSaveApi: {
|
|
11440
11444
|
url: `\${context.rootUrl}/graphql`,
|