@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.
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@1.3.8/dist/sortable.umd.js",
7
- "https://unpkg.com/@steedos-widgets/sortable@1.3.8/dist/sortable.umd.css"
6
+ "https://unpkg.com/@steedos-widgets/sortable@1.3.9/dist/sortable.umd.js",
7
+ "https://unpkg.com/@steedos-widgets/sortable@1.3.9/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@1.3.8/dist/meta.js",
18
+ "url": "https://unpkg.com/@steedos-widgets/sortable@1.3.9/dist/meta.js",
19
19
  "urls": {
20
- "default": "https://unpkg.com/@steedos-widgets/sortable@1.3.8/dist/meta.js",
21
- "design": "https://unpkg.com/@steedos-widgets/sortable@1.3.8/dist/meta.js"
20
+ "default": "https://unpkg.com/@steedos-widgets/sortable@1.3.9/dist/meta.js",
21
+ "design": "https://unpkg.com/@steedos-widgets/sortable@1.3.9/dist/meta.js"
22
22
  }
23
23
  }
24
24
  ]
@@ -59073,7 +59073,7 @@ var config = {
59073
59073
  };
59074
59074
 
59075
59075
  async function getQuickEditSchema(field, options){
59076
- //判断在amis3.2以上环境下,放开批量编辑
59076
+ //判断在amis3.2以上环境下,放开批量编辑与lookup的单元格编辑
59077
59077
  let isAmisVersionforBatchEdit = false;
59078
59078
  if(window.amisRequire && window.amisRequire('amis')){
59079
59079
  isAmisVersionforBatchEdit = window.amisRequire('amis').version[0] >= 3 && window.amisRequire('amis').version[2] >= 2;
@@ -59474,6 +59474,10 @@ async function getQuickEditSchema(field, options){
59474
59474
  } else {
59475
59475
  quickEditSchema = false;
59476
59476
  }
59477
+ //amis3.2以下禁用lookup的单元格编辑
59478
+ if(field.type == "lookup" && !isAmisVersionforBatchEdit){
59479
+ quickEditSchema = false;
59480
+ }
59477
59481
  //TODO:附件多选时会覆盖老数据,暂时禁用
59478
59482
  if(field.type == "file" && field.multiple){
59479
59483
  quickEditSchema = false;
@@ -59504,9 +59508,9 @@ function getFieldWidth(width){
59504
59508
  async function getTableColumns(fields, options){
59505
59509
  const columns = [];
59506
59510
  if(!options.isLookup){
59507
- columns.push({name: '_index',type: 'text', width: 32, placeholder: ""});
59508
59511
  //将_display放入crud的columns中,可以通过setvalue修改行内数据域的_display,而不影响上层items的_display,用于批量编辑
59509
59512
  columns.push({name: '_display',type: 'static', width: 32, placeholder: "",id: "_display_${_index}", className: "hidden"});
59513
+ columns.push({name: '_index',type: 'text', width: 32, placeholder: ""});
59510
59514
  }
59511
59515
  const allowEdit = options.permissions?.allowEdit && !options.isLookup && options.enable_inline_edit != false;
59512
59516
 
@@ -59598,14 +59602,14 @@ async function getTableColumns(fields, options){
59598
59602
  }
59599
59603
  else {
59600
59604
  const tpl = await getFieldTpl(field, options);
59601
- let type = 'text';
59605
+ let type = 'static-text';
59602
59606
  if(tpl){
59603
59607
  type = 'static';
59604
59608
  }else if(field.type === 'html'){
59605
- type = 'markdown';
59609
+ type = 'static-markdown';
59606
59610
  }else if(field.type === 'url'){
59607
59611
  if(field.show_as_qr){
59608
- type = 'qr-code';
59612
+ type = 'static-qr-code';
59609
59613
  }else {
59610
59614
  type = 'input-url';
59611
59615
  }