@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.
@@ -54992,7 +54992,8 @@ instance
54992
54992
  }
54993
54993
  });
54994
54994
 
54995
- async function getQuickEditSchema(field, options){
54995
+ async function getQuickEditSchema(object, columnField, options){
54996
+ let field = object.fields[columnField.name];
54996
54997
  //判断在amis3.2以上环境下,放开批量编辑与lookup的单元格编辑
54997
54998
  let isAmisVersionforBatchEdit = false;
54998
54999
  if(window.amisRequire && window.amisRequire('amis')){
@@ -55460,7 +55461,7 @@ function getFieldWidth(width){
55460
55461
  }
55461
55462
  }
55462
55463
 
55463
- async function getTableColumns(fields, options){
55464
+ async function getTableColumns(object, fields, options){
55464
55465
  const columns = [];
55465
55466
  if(!options.isLookup && !options.isInputTable){
55466
55467
  if(!options.enable_tree){
@@ -55474,7 +55475,7 @@ async function getTableColumns(fields, options){
55474
55475
  continue;
55475
55476
  }
55476
55477
  //增加quickEdit属性,实现快速编辑
55477
- const quickEditSchema = allowEdit ? await getQuickEditSchema(field, options) : allowEdit;
55478
+ const quickEditSchema = allowEdit ? await getQuickEditSchema(object, field, options) : allowEdit;
55478
55479
  let className = "";
55479
55480
  const bowserType = getBowserType();
55480
55481
  if(bowserType === "Safari"){
@@ -55988,7 +55989,7 @@ async function getTableOperation(ctx){
55988
55989
  "label": "xxx",
55989
55990
  "buttons": operationButtons,
55990
55991
  "placement": "bottomRight",
55991
- "overlayClassName": "shadow !min-w-[160px]",
55992
+ "overlayClassName": "border rounded !min-w-[160px]",
55992
55993
  "trigger": ["click"],
55993
55994
  "id": "u:c2140a365019",
55994
55995
  onOpenApi: {
@@ -56046,7 +56047,7 @@ async function getDefaultCrudCard(columns, options) {
56046
56047
  return card;
56047
56048
  }
56048
56049
 
56049
- async function getTableSchema$1(fields, options){
56050
+ async function getTableSchema$1(object, fields, options){
56050
56051
  if(!options){
56051
56052
  options = {};
56052
56053
  }
@@ -56068,7 +56069,7 @@ async function getTableSchema$1(fields, options){
56068
56069
  columns = await getMobileTableColumns(fields, options);
56069
56070
  }
56070
56071
  else {
56071
- columns = await getTableColumns(fields, options);
56072
+ columns = await getTableColumns(object, fields, options);
56072
56073
 
56073
56074
  if(listSchema.mode === "cards"){
56074
56075
  let card = listSchema.card;
@@ -58703,8 +58704,8 @@ async function getObjectFilter(objectSchema, fields, options) {
58703
58704
  /*
58704
58705
  * @Author: baozhoutao@steedos.com
58705
58706
  * @Date: 2022-07-05 15:55:39
58706
- * @LastEditors: baozhoutao@steedos.com
58707
- * @LastEditTime: 2024-02-18 16:05:21
58707
+ * @LastEditors: 殷亮辉 yinlianghui@hotoa.com
58708
+ * @LastEditTime: 2024-02-23 16:37:06
58708
58709
  * @Description:
58709
58710
  */
58710
58711
 
@@ -59782,7 +59783,7 @@ async function lookupToAmisPicker(field, readonly, ctx){
59782
59783
  if(refObjectConfig.name === 'organizations'){
59783
59784
  labelFieldName = 'name';
59784
59785
  }
59785
- pickerSchema = await getTableSchema$1(tableFields, {
59786
+ pickerSchema = await getTableSchema$1(refObjectConfig, tableFields, {
59786
59787
  labelFieldName,
59787
59788
  top: top,
59788
59789
  isLookup: true,
@@ -60386,7 +60387,7 @@ async function getIdsPickerSchema(field, readonly, ctx){
60386
60387
  actions: false
60387
60388
  });
60388
60389
  }else {
60389
- pickerSchema = await getTableSchema$1(tableFields, {
60390
+ pickerSchema = await getTableSchema$1(refObjectConfig, tableFields, {
60390
60391
  labelFieldName: refObjectConfig.NAME_FIELD_KEY,
60391
60392
  top: top,
60392
60393
  isLookup: true,