@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/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: "bg-white",//上面className写成动态的class变量对象的话,bodyClassName不会生效,会被上面的className值覆盖
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`,