@steedos-widgets/amis-lib 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/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/index.cjs.js +7 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +7 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +4 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -6171,12 +6171,13 @@ async function getObjectFieldsFilterBarSchema(objectSchema, ctx) {
|
|
|
6171
6171
|
*/
|
|
6172
6172
|
function getObjectListHeaderFirstLine(objectSchema, listViewName, ctx) {
|
|
6173
6173
|
const { icon, label } = objectSchema;
|
|
6174
|
+
const disabled_list_views = objectSchema.permissions.disabled_list_views;
|
|
6174
6175
|
const listViewButtonOptions = [];
|
|
6175
6176
|
each(
|
|
6176
6177
|
objectSchema.list_views,
|
|
6177
6178
|
(listView, name) => {
|
|
6178
|
-
if(name === "lookup"){
|
|
6179
|
-
// 内置lookup
|
|
6179
|
+
if(name === "lookup" || (disabled_list_views && disabled_list_views.indexOf(listView._id)>-1)){
|
|
6180
|
+
// 内置lookup为弹出选择专用视图,根据用户权限被禁用的视图,不显示在列表切换区域
|
|
6180
6181
|
return;
|
|
6181
6182
|
}
|
|
6182
6183
|
listViewButtonOptions.push({
|
|
@@ -8265,7 +8266,10 @@ async function getObjectCRUD(objectSchema, fields, options){
|
|
|
8265
8266
|
// [`flex-auto ${crudClassName || ""}`]: "true",
|
|
8266
8267
|
// "is-steedos-crud-data-empty": "${!items || COUNT(items) == 0}"
|
|
8267
8268
|
// },
|
|
8268
|
-
bodyClassName:
|
|
8269
|
+
bodyClassName: {
|
|
8270
|
+
"bg-white": "true",
|
|
8271
|
+
"is-steedos-crud-data-empty": "${!items || COUNT(items) == 0}"
|
|
8272
|
+
},
|
|
8269
8273
|
crudClassName: crudClassName,
|
|
8270
8274
|
quickSaveApi: {
|
|
8271
8275
|
url: `\${context.rootUrl}/graphql`,
|