@steedos-widgets/sortable 1.3.22-beta.2 → 3.6.0-beta.3

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.
@@ -21270,6 +21270,7 @@
21270
21270
  {
21271
21271
  "actionType": "custom",
21272
21272
  "script": `
21273
+
21273
21274
  var _display = _.cloneDeep(event.data._display);
21274
21275
  ${displayField}
21275
21276
  doAction({actionType: 'setValue', "args": {"value": {_display}},componentId: "${quickEditId}"});
@@ -21441,7 +21442,7 @@
21441
21442
  "actions":[
21442
21443
  {
21443
21444
  "actionType": "setValue",
21444
- "componentId": `service_listview_${options.objectName}`,
21445
+ "componentId": quickEditId,
21445
21446
  "args": {
21446
21447
  "value":{
21447
21448
  "quickedit_record_permissions_loading": true
@@ -21466,7 +21467,7 @@
21466
21467
  },
21467
21468
  {
21468
21469
  "actionType": "setValue",
21469
- "componentId": `service_listview_${options.objectName}`,
21470
+ "componentId": quickEditId,
21470
21471
  "args": {
21471
21472
  "value":{
21472
21473
  "quickedit_record_permissions_loading": false
@@ -21475,7 +21476,7 @@
21475
21476
  },
21476
21477
  {
21477
21478
  "actionType": "setValue",
21478
- "componentId": `service_listview_${options.objectName}`,
21479
+ "componentId": quickEditId,
21479
21480
  "args": {
21480
21481
  "value":{
21481
21482
  "quickedit_record_permissions": "${event.data}"
@@ -21654,9 +21655,9 @@
21654
21655
  async function getTableColumns(fields, options){
21655
21656
  const columns = [];
21656
21657
  if(!options.isLookup && !options.isInputTable){
21657
- //将_display放入crud的columns中,可以通过setvalue修改行内数据域的_display,而不影响上层items的_display,用于批量编辑
21658
- columns.push({name: '_display',type: 'static', width: 32, placeholder: "",id: "_display_${_index}", className: "hidden"});
21659
- columns.push({name: '_index',type: 'text', width: 32, placeholder: ""});
21658
+ if(!options.enable_tree){
21659
+ columns.push({name: '_index',type: 'text', width: 32, placeholder: ""});
21660
+ }
21660
21661
  }
21661
21662
  const allowEdit = options.permissions?.allowEdit && !options.isLookup && options.enable_inline_edit != false;
21662
21663
 
@@ -22198,6 +22199,7 @@
22198
22199
  if(!isLookup && !hiddenColumnOperation){
22199
22200
  columns.push(await getTableOperation(options));
22200
22201
  }
22202
+
22201
22203
  }
22202
22204
 
22203
22205
  return {
@@ -25477,6 +25479,9 @@ crudService && crudService.setData({showFieldsFilter: toShowFieldsFilter});
25477
25479
  */
25478
25480
  return payload;
25479
25481
  }
25482
+ if(!payload.data.rows){
25483
+ payload.data.rows = [];
25484
+ }
25480
25485
  if(enable_tree){
25481
25486
  const records = payload.data.rows;
25482
25487
  const treeRecords = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos-widgets/sortable",
3
- "version": "1.3.22-beta.2",
3
+ "version": "3.6.0-beta.3",
4
4
  "main": "dist/sortable.cjs.js",
5
5
  "module": "dist/sortable.esm.js",
6
6
  "unpkg": "dist/sortable.umd.js",
@@ -45,7 +45,7 @@
45
45
  "dependencies": {
46
46
  "@dnd-kit/core": "^6.0.5",
47
47
  "@dnd-kit/sortable": "^7.0.1",
48
- "@steedos-widgets/amis-lib": "1.3.22-beta.2"
48
+ "@steedos-widgets/amis-lib": "3.6.0-beta.3"
49
49
  },
50
- "gitHead": "ca840e37f61643b982feb7af5220a942d7dbec97"
50
+ "gitHead": "4a2322fc78deefc582e65d5a4a81941d5023ca8f"
51
51
  }