@steedos-widgets/amis-lib 6.3.15 → 6.3.17-beta.1

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
@@ -1855,7 +1855,7 @@ async function getQuickEditSchema(object, columnField, options){
1855
1855
  isAmisVersionforBatchEdit = window.Amis.version[0] >= 3 && window.Amis.version[2] >= 2;
1856
1856
  }
1857
1857
  const quickEditId = options.objectName + "_" + field.name + "_quickEdit";//定义快速编辑的表单id,用于setvalue传值
1858
- var quickEditSchema = { body: [], id: quickEditId, className: "steedos-table-quickEdit" };
1858
+ var quickEditSchema = { body: [], id: quickEditId, className: "steedos-table-quickEdit", "debug": window.amis_form_debug || false, quickedit_record_permissions_loading: true };
1859
1859
  //select,avatar,image,file等组件无法行记录字段赋值,暂不支持批量编辑;
1860
1860
  if(field.type != 'avatar' && field.type != 'image' && field.type != 'file' && isAmisVersionforBatchEdit){
1861
1861
  const submitEvent = {
@@ -2111,15 +2111,6 @@ async function getQuickEditSchema(object, columnField, options){
2111
2111
  });
2112
2112
  `
2113
2113
  },
2114
- {
2115
- "actionType": "setValue",
2116
- "componentId": quickEditId,
2117
- "args": {
2118
- "value":{
2119
- "quickedit_record_permissions_loading": true
2120
- }
2121
- }
2122
- },
2123
2114
  {
2124
2115
  "actionType": "ajax",
2125
2116
  "args": {
@@ -2142,15 +2133,7 @@ async function getQuickEditSchema(object, columnField, options){
2142
2133
  "componentId": quickEditId,
2143
2134
  "args": {
2144
2135
  "value":{
2145
- "quickedit_record_permissions_loading": false
2146
- }
2147
- }
2148
- },
2149
- {
2150
- "actionType": "setValue",
2151
- "componentId": quickEditId,
2152
- "args": {
2153
- "value":{
2136
+ "quickedit_record_permissions_loading": false,
2154
2137
  "quickedit_record_permissions": "${recordPermissions.modifyAllRecords ? {'allowEdit': true} : event.data}"
2155
2138
  }
2156
2139
  }
@@ -2769,7 +2752,6 @@ async function getMobileTableColumns(fields, options){
2769
2752
  link: url,
2770
2753
  innerClassName: {
2771
2754
  "steedos-listview-item block text-gray-500":"true",
2772
- "max-w-[360px]": "${display == 'split'}",
2773
2755
  },
2774
2756
  body: {
2775
2757
  "type": "wrapper",
@@ -9292,7 +9274,9 @@ function getObjectHeaderToolbar(mainObject, fields, formFactor, {
9292
9274
  toolbars.push(toolbarFilter);
9293
9275
  }
9294
9276
  toolbars.push(toolbarReloadButton);
9295
- toolbars.push(toolbarDisplayAsButton);
9277
+ if (showDisplayAs) {
9278
+ toolbars.push(toolbarDisplayAsButton);
9279
+ }
9296
9280
  toolbars.push(toolbarDQuickSearchBox);
9297
9281
  return [
9298
9282
  // "bulkActions",
@@ -9307,7 +9291,9 @@ function getObjectHeaderToolbar(mainObject, fields, formFactor, {
9307
9291
  toolbars.push(toolbarFilter);
9308
9292
  }
9309
9293
  toolbars.push(toolbarReloadButton);
9310
- toolbars.push(toolbarDisplayAsButton);
9294
+ if (showDisplayAs) {
9295
+ toolbars.push(toolbarDisplayAsButton);
9296
+ }
9311
9297
  if(mainObject?.permissions?.allowCreateListViews){
9312
9298
  toolbars.push(getSettingListviewToolbarButtonSchema());
9313
9299
  }