@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.
package/dist/assets.json CHANGED
@@ -3,8 +3,8 @@
3
3
  {
4
4
  "package": "@steedos-widgets/sortable",
5
5
  "urls": [
6
- "https://unpkg.com/@steedos-widgets/sortable@3.6.4-beta.3/dist/sortable.umd.js",
7
- "https://unpkg.com/@steedos-widgets/sortable@3.6.4-beta.3/dist/sortable.umd.css"
6
+ "https://unpkg.com/@steedos-widgets/sortable@3.6.4-beta.5/dist/sortable.umd.js",
7
+ "https://unpkg.com/@steedos-widgets/sortable@3.6.4-beta.5/dist/sortable.umd.css"
8
8
  ],
9
9
  "library": "BuilderSortable"
10
10
  }
@@ -15,10 +15,10 @@
15
15
  "npm": {
16
16
  "package": "@steedos-widgets/sortable"
17
17
  },
18
- "url": "https://unpkg.com/@steedos-widgets/sortable@3.6.4-beta.3/dist/meta.js",
18
+ "url": "https://unpkg.com/@steedos-widgets/sortable@3.6.4-beta.5/dist/meta.js",
19
19
  "urls": {
20
- "default": "https://unpkg.com/@steedos-widgets/sortable@3.6.4-beta.3/dist/meta.js",
21
- "design": "https://unpkg.com/@steedos-widgets/sortable@3.6.4-beta.3/dist/meta.js"
20
+ "default": "https://unpkg.com/@steedos-widgets/sortable@3.6.4-beta.5/dist/meta.js",
21
+ "design": "https://unpkg.com/@steedos-widgets/sortable@3.6.4-beta.5/dist/meta.js"
22
22
  }
23
23
  }
24
24
  ]
@@ -54996,7 +54996,8 @@ instance
54996
54996
  }
54997
54997
  });
54998
54998
 
54999
- async function getQuickEditSchema(field, options){
54999
+ async function getQuickEditSchema(object, columnField, options){
55000
+ let field = object.fields[columnField.name];
55000
55001
  //判断在amis3.2以上环境下,放开批量编辑与lookup的单元格编辑
55001
55002
  let isAmisVersionforBatchEdit = false;
55002
55003
  if(window.amisRequire && window.amisRequire('amis')){
@@ -55464,7 +55465,7 @@ function getFieldWidth(width){
55464
55465
  }
55465
55466
  }
55466
55467
 
55467
- async function getTableColumns(fields, options){
55468
+ async function getTableColumns(object, fields, options){
55468
55469
  const columns = [];
55469
55470
  if(!options.isLookup && !options.isInputTable){
55470
55471
  if(!options.enable_tree){
@@ -55478,7 +55479,7 @@ async function getTableColumns(fields, options){
55478
55479
  continue;
55479
55480
  }
55480
55481
  //增加quickEdit属性,实现快速编辑
55481
- const quickEditSchema = allowEdit ? await getQuickEditSchema(field, options) : allowEdit;
55482
+ const quickEditSchema = allowEdit ? await getQuickEditSchema(object, field, options) : allowEdit;
55482
55483
  let className = "";
55483
55484
  const bowserType = getBowserType();
55484
55485
  if(bowserType === "Safari"){
@@ -55992,7 +55993,7 @@ async function getTableOperation(ctx){
55992
55993
  "label": "xxx",
55993
55994
  "buttons": operationButtons,
55994
55995
  "placement": "bottomRight",
55995
- "overlayClassName": "shadow !min-w-[160px]",
55996
+ "overlayClassName": "border rounded !min-w-[160px]",
55996
55997
  "trigger": ["click"],
55997
55998
  "id": "u:c2140a365019",
55998
55999
  onOpenApi: {
@@ -56050,7 +56051,7 @@ async function getDefaultCrudCard(columns, options) {
56050
56051
  return card;
56051
56052
  }
56052
56053
 
56053
- async function getTableSchema$1(fields, options){
56054
+ async function getTableSchema$1(object, fields, options){
56054
56055
  if(!options){
56055
56056
  options = {};
56056
56057
  }
@@ -56072,7 +56073,7 @@ async function getTableSchema$1(fields, options){
56072
56073
  columns = await getMobileTableColumns(fields, options);
56073
56074
  }
56074
56075
  else {
56075
- columns = await getTableColumns(fields, options);
56076
+ columns = await getTableColumns(object, fields, options);
56076
56077
 
56077
56078
  if(listSchema.mode === "cards"){
56078
56079
  let card = listSchema.card;
@@ -58707,8 +58708,8 @@ async function getObjectFilter(objectSchema, fields, options) {
58707
58708
  /*
58708
58709
  * @Author: baozhoutao@steedos.com
58709
58710
  * @Date: 2022-07-05 15:55:39
58710
- * @LastEditors: baozhoutao@steedos.com
58711
- * @LastEditTime: 2024-02-18 16:05:21
58711
+ * @LastEditors: 殷亮辉 yinlianghui@hotoa.com
58712
+ * @LastEditTime: 2024-02-23 16:37:06
58712
58713
  * @Description:
58713
58714
  */
58714
58715
 
@@ -59786,7 +59787,7 @@ async function lookupToAmisPicker(field, readonly, ctx){
59786
59787
  if(refObjectConfig.name === 'organizations'){
59787
59788
  labelFieldName = 'name';
59788
59789
  }
59789
- pickerSchema = await getTableSchema$1(tableFields, {
59790
+ pickerSchema = await getTableSchema$1(refObjectConfig, tableFields, {
59790
59791
  labelFieldName,
59791
59792
  top: top,
59792
59793
  isLookup: true,
@@ -60390,7 +60391,7 @@ async function getIdsPickerSchema(field, readonly, ctx){
60390
60391
  actions: false
60391
60392
  });
60392
60393
  }else {
60393
- pickerSchema = await getTableSchema$1(tableFields, {
60394
+ pickerSchema = await getTableSchema$1(refObjectConfig, tableFields, {
60394
60395
  labelFieldName: refObjectConfig.NAME_FIELD_KEY,
60395
60396
  top: top,
60396
60397
  isLookup: true,