@steedos-widgets/sortable 3.6.4-beta.3 → 3.6.4-beta.5

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.
@@ -21297,7 +21297,8 @@
21297
21297
  }
21298
21298
  });
21299
21299
 
21300
- async function getQuickEditSchema(field, options){
21300
+ async function getQuickEditSchema(object, columnField, options){
21301
+ let field = object.fields[columnField.name];
21301
21302
  //判断在amis3.2以上环境下,放开批量编辑与lookup的单元格编辑
21302
21303
  let isAmisVersionforBatchEdit = false;
21303
21304
  if(window.amisRequire && window.amisRequire('amis')){
@@ -21765,7 +21766,7 @@
21765
21766
  }
21766
21767
  }
21767
21768
 
21768
- async function getTableColumns(fields, options){
21769
+ async function getTableColumns(object, fields, options){
21769
21770
  const columns = [];
21770
21771
  if(!options.isLookup && !options.isInputTable){
21771
21772
  if(!options.enable_tree){
@@ -21779,7 +21780,7 @@
21779
21780
  continue;
21780
21781
  }
21781
21782
  //增加quickEdit属性,实现快速编辑
21782
- const quickEditSchema = allowEdit ? await getQuickEditSchema(field, options) : allowEdit;
21783
+ const quickEditSchema = allowEdit ? await getQuickEditSchema(object, field, options) : allowEdit;
21783
21784
  let className = "";
21784
21785
  const bowserType = getBowserType();
21785
21786
  if(bowserType === "Safari"){
@@ -22293,7 +22294,7 @@
22293
22294
  "label": "xxx",
22294
22295
  "buttons": operationButtons,
22295
22296
  "placement": "bottomRight",
22296
- "overlayClassName": "shadow !min-w-[160px]",
22297
+ "overlayClassName": "border rounded !min-w-[160px]",
22297
22298
  "trigger": ["click"],
22298
22299
  "id": "u:c2140a365019",
22299
22300
  onOpenApi: {
@@ -22351,7 +22352,7 @@
22351
22352
  return card;
22352
22353
  }
22353
22354
 
22354
- async function getTableSchema$1(fields, options){
22355
+ async function getTableSchema$1(object, fields, options){
22355
22356
  if(!options){
22356
22357
  options = {};
22357
22358
  }
@@ -22373,7 +22374,7 @@
22373
22374
  columns = await getMobileTableColumns(fields, options);
22374
22375
  }
22375
22376
  else {
22376
- columns = await getTableColumns(fields, options);
22377
+ columns = await getTableColumns(object, fields, options);
22377
22378
 
22378
22379
  if(listSchema.mode === "cards"){
22379
22380
  let card = listSchema.card;
@@ -25008,8 +25009,8 @@ crudService && crudService.setData({showFieldsFilter: toShowFieldsFilter});
25008
25009
  /*
25009
25010
  * @Author: baozhoutao@steedos.com
25010
25011
  * @Date: 2022-07-05 15:55:39
25011
- * @LastEditors: baozhoutao@steedos.com
25012
- * @LastEditTime: 2024-02-18 16:05:21
25012
+ * @LastEditors: 殷亮辉 yinlianghui@hotoa.com
25013
+ * @LastEditTime: 2024-02-23 16:37:06
25013
25014
  * @Description:
25014
25015
  */
25015
25016
 
@@ -26087,7 +26088,7 @@ crudService && crudService.setData({showFieldsFilter: toShowFieldsFilter});
26087
26088
  if(refObjectConfig.name === 'organizations'){
26088
26089
  labelFieldName = 'name';
26089
26090
  }
26090
- pickerSchema = await getTableSchema$1(tableFields, {
26091
+ pickerSchema = await getTableSchema$1(refObjectConfig, tableFields, {
26091
26092
  labelFieldName,
26092
26093
  top: top,
26093
26094
  isLookup: true,
@@ -26691,7 +26692,7 @@ crudService && crudService.setData({showFieldsFilter: toShowFieldsFilter});
26691
26692
  actions: false
26692
26693
  });
26693
26694
  }else {
26694
- pickerSchema = await getTableSchema$1(tableFields, {
26695
+ pickerSchema = await getTableSchema$1(refObjectConfig, tableFields, {
26695
26696
  labelFieldName: refObjectConfig.NAME_FIELD_KEY,
26696
26697
  top: top,
26697
26698
  isLookup: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos-widgets/sortable",
3
- "version": "3.6.4-beta.3",
3
+ "version": "3.6.4-beta.5",
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": "3.6.4-beta.3"
48
+ "@steedos-widgets/amis-lib": "3.6.4-beta.5"
49
49
  },
50
- "gitHead": "f33eb2d6fa30e93496e57d81c6c28a8575377e73"
50
+ "gitHead": "f368161d967f2b7eccac7b7af39303ec0320632e"
51
51
  }