@steedos-widgets/sortable 3.6.2-beta.16 → 3.6.2-beta.17

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.2-beta.16/dist/sortable.umd.js",
7
- "https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.16/dist/sortable.umd.css"
6
+ "https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.17/dist/sortable.umd.js",
7
+ "https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.17/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.2-beta.16/dist/meta.js",
18
+ "url": "https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.17/dist/meta.js",
19
19
  "urls": {
20
- "default": "https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.16/dist/meta.js",
21
- "design": "https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.16/dist/meta.js"
20
+ "default": "https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.17/dist/meta.js",
21
+ "design": "https://unpkg.com/@steedos-widgets/sortable@3.6.2-beta.17/dist/meta.js"
22
22
  }
23
23
  }
24
24
  ]
@@ -55471,7 +55471,7 @@ async function getTableColumns(fields, options){
55471
55471
  var data = event.data;
55472
55472
  var file_name = data.versions ? data.name : "${field.label}";
55473
55473
  var file_id = data._id;
55474
- SteedosUI.previewFile && SteedosUI.previewFile({file_name, file_id});
55474
+ window.previewFile && window.previewFile({file_name, file_id});
55475
55475
  `;
55476
55476
  columnItem = {
55477
55477
  "type": "button",
@@ -55500,7 +55500,7 @@ async function getTableColumns(fields, options){
55500
55500
  "actionType": "custom",
55501
55501
  "script": previewFileScript,
55502
55502
  // "expression": "!!window?.nw?.require" //PC客户端预览附件
55503
- "expression": "!!!(window && window.nw && window.nw.require)"//PC客户端预览附件
55503
+ "expression": "!!(window && window.nw && window.nw.require)"//PC客户端预览附件
55504
55504
  }
55505
55505
  ]
55506
55506
  }
@@ -60656,6 +60656,36 @@ async function convertSFieldToAmisField(field, readonly, ctx) {
60656
60656
  convertData = {
60657
60657
  type: 'static-text'
60658
60658
  };
60659
+ }else if(field.autonumber_enable_modify){
60660
+ convertData = {
60661
+ "type": "input-group",
60662
+ "body": [
60663
+ {
60664
+ "type": "input-text",
60665
+ "name": field.name
60666
+ },
60667
+ {
60668
+ "type": "button",
60669
+ "label": "自动获取",
60670
+ "actionType": "ajax",
60671
+ "api": {
60672
+ "url": `\${context.rootUrl}/api/autonumber/generator/\${objectName}/${field.name}`,
60673
+ "method": "post",
60674
+ "headers": {
60675
+ "Authorization": "Bearer ${context.tenantId},${context.authToken}"
60676
+ },
60677
+ "adaptor": `
60678
+ payload.data["${field.name}"] = payload.data && payload.data.autonumber;
60679
+ delete payload.data.autonumber;
60680
+ return payload;
60681
+ `
60682
+ },
60683
+ "messages": {
60684
+ "success": "获取成功"
60685
+ }
60686
+ }
60687
+ ]
60688
+ };
60659
60689
  }
60660
60690
  break;
60661
60691
  case 'url':