@steedos-widgets/sortable 1.3.8 → 1.3.9

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.
@@ -25374,7 +25374,7 @@ crudService && crudService.setData({showFieldsFilter: toShowFieldsFilter});
25374
25374
  };
25375
25375
 
25376
25376
  async function getQuickEditSchema(field, options){
25377
- //判断在amis3.2以上环境下,放开批量编辑
25377
+ //判断在amis3.2以上环境下,放开批量编辑与lookup的单元格编辑
25378
25378
  let isAmisVersionforBatchEdit = false;
25379
25379
  if(window.amisRequire && window.amisRequire('amis')){
25380
25380
  isAmisVersionforBatchEdit = window.amisRequire('amis').version[0] >= 3 && window.amisRequire('amis').version[2] >= 2;
@@ -25775,6 +25775,10 @@ crudService && crudService.setData({showFieldsFilter: toShowFieldsFilter});
25775
25775
  } else {
25776
25776
  quickEditSchema = false;
25777
25777
  }
25778
+ //amis3.2以下禁用lookup的单元格编辑
25779
+ if(field.type == "lookup" && !isAmisVersionforBatchEdit){
25780
+ quickEditSchema = false;
25781
+ }
25778
25782
  //TODO:附件多选时会覆盖老数据,暂时禁用
25779
25783
  if(field.type == "file" && field.multiple){
25780
25784
  quickEditSchema = false;
@@ -25805,9 +25809,9 @@ crudService && crudService.setData({showFieldsFilter: toShowFieldsFilter});
25805
25809
  async function getTableColumns(fields, options){
25806
25810
  const columns = [];
25807
25811
  if(!options.isLookup){
25808
- columns.push({name: '_index',type: 'text', width: 32, placeholder: ""});
25809
25812
  //将_display放入crud的columns中,可以通过setvalue修改行内数据域的_display,而不影响上层items的_display,用于批量编辑
25810
25813
  columns.push({name: '_display',type: 'static', width: 32, placeholder: "",id: "_display_${_index}", className: "hidden"});
25814
+ columns.push({name: '_index',type: 'text', width: 32, placeholder: ""});
25811
25815
  }
25812
25816
  const allowEdit = options.permissions?.allowEdit && !options.isLookup && options.enable_inline_edit != false;
25813
25817
 
@@ -25899,14 +25903,14 @@ crudService && crudService.setData({showFieldsFilter: toShowFieldsFilter});
25899
25903
  }
25900
25904
  else {
25901
25905
  const tpl = await getFieldTpl(field, options);
25902
- let type = 'text';
25906
+ let type = 'static-text';
25903
25907
  if(tpl){
25904
25908
  type = 'static';
25905
25909
  }else if(field.type === 'html'){
25906
- type = 'markdown';
25910
+ type = 'static-markdown';
25907
25911
  }else if(field.type === 'url'){
25908
25912
  if(field.show_as_qr){
25909
- type = 'qr-code';
25913
+ type = 'static-qr-code';
25910
25914
  }else {
25911
25915
  type = 'input-url';
25912
25916
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos-widgets/sortable",
3
- "version": "1.3.8",
3
+ "version": "1.3.9",
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.8"
48
+ "@steedos-widgets/amis-lib": "1.3.9"
49
49
  },
50
- "gitHead": "c639dd1258c142e74fb5fd7263d8840b78669397"
50
+ "gitHead": "7afa82654b66be21e46bb430e5c10c8f62f3aa33"
51
51
  }