@steedos-widgets/sortable 6.3.0 → 6.3.2

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.
@@ -20850,7 +20850,7 @@
20850
20850
  const recordPage = await getPage({ type: 'record', appId: options.appId, objectName: options.objectName, formFactor: options.formFactor });
20851
20851
 
20852
20852
  const drawerRecordDetailSchema = recordPage ? Object.assign({}, recordPage.schema, {
20853
- "recordId": "${value}",
20853
+ "recordId": `\${${field.name}}`,
20854
20854
  "data": {
20855
20855
  ...recordPage.schema.data,
20856
20856
  "_inDrawer": true, // 用于判断是否在抽屉中
@@ -20860,7 +20860,7 @@
20860
20860
  }) : {
20861
20861
  "type": "steedos-record-detail",
20862
20862
  "objectApiName": options.objectName,
20863
- "recordId": "${value}",
20863
+ "recordId": `\${${field.name}}`,
20864
20864
  "showBackButton": false,
20865
20865
  "showButtons": true,
20866
20866
  "data": {
@@ -20966,7 +20966,7 @@
20966
20966
  labelClassName: "hidden",
20967
20967
  label: false,
20968
20968
  className: 'm-0',
20969
- tpl: `<a href="/app/-/cfs_files_filerecord/view/\${value}" ${lookupATagClick}>\${name}</a>`,
20969
+ tpl: `<a href="/app/-/cfs_files_filerecord/view/\${${steedosField.name}}" ${lookupATagClick}>\${name}</a>`,
20970
20970
  // tpl: "<%= item.name >",
20971
20971
  // onEvent: window.innerWidth < 768 ? null : REFERENCE_VALUE_ITEM_ONCLICK
20972
20972
  onEvent: window.innerWidth < 768 ? null : await getLookupLinkOnClick(steedosField, {
@@ -21449,6 +21449,11 @@
21449
21449
  const submitEvent = {
21450
21450
  submit: {
21451
21451
  actions: [
21452
+ {
21453
+ "actionType": "validate",
21454
+ "componentId": quickEditId,
21455
+ "outputVar": "form_validate_result"
21456
+ },
21452
21457
  {
21453
21458
  actionType: "custom",
21454
21459
  script: `
@@ -21465,10 +21470,12 @@
21465
21470
  doAction({actionType: 'setValue', "args": {"value": event.data._display},componentId: "${options.objectName}" + "_display_" + event.data._index});
21466
21471
  doAction({actionType: 'setValue', "args": {"value": event.data.${field.name}},componentId: "${options.objectName + "_" + field.name + "_"}" + event.data._index});
21467
21472
  }
21468
- `
21473
+ `,
21474
+ expression: "${!form_validate_result.error}"
21469
21475
  },
21470
21476
  {
21471
- "actionType": "closeDialog"
21477
+ "actionType": "closeDialog",
21478
+ expression: "${!form_validate_result.error}"
21472
21479
  }
21473
21480
  ]
21474
21481
  }
@@ -21976,7 +21983,7 @@
21976
21983
  }
21977
21984
  //增加quickEdit属性,实现快速编辑
21978
21985
  const quickEditSchema = allowEdit ? await getQuickEditSchema(object, field, options) : allowEdit;
21979
- let className = "";
21986
+ let className = `steedos-table-${field.type}-field`;
21980
21987
  const bowserType = getBowserType();
21981
21988
  if(bowserType === "Safari"){
21982
21989
  className += " whitespace-nowrap ";
@@ -27784,6 +27791,8 @@ crudService && crudService.setData({showFieldsFilter: toShowFieldsFilter});
27784
27791
  if(gridSub){
27785
27792
  delete gridSub.name;
27786
27793
  delete gridSub.label;
27794
+ //去除重复样式
27795
+ gridSub.className = gridSub.className.replace('border-b', '');
27787
27796
  convertData.items.push(
27788
27797
  Object.assign({}, gridSub, {label: subField.label}, subField.amis, {
27789
27798
  name: subFieldName
@@ -27838,6 +27847,10 @@ crudService && crudService.setData({showFieldsFilter: toShowFieldsFilter});
27838
27847
  }
27839
27848
  // if(ctx.mode === 'edit'){
27840
27849
  let convertDataResult = Object.assign({}, baseData, convertData, { labelClassName: 'text-left', clearValueOnHidden: true, fieldName: field.name}, field.amis, {name: baseData.name});
27850
+ // 只读时file字段的外层control层若存在name,内部each组件存在问题
27851
+ if(readonly && field.type == "file") {
27852
+ convertDataResult.name = "";
27853
+ }
27841
27854
  // console.log("convertDataResult:", convertDataResult);
27842
27855
  return convertDataResult;
27843
27856
  // }else{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos-widgets/sortable",
3
- "version": "6.3.0",
3
+ "version": "6.3.2",
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": "6.3.0"
48
+ "@steedos-widgets/amis-lib": "6.3.2"
49
49
  },
50
- "gitHead": "b8f4c71ba4639e584d04f348c61f1f4b3b4e484f"
50
+ "gitHead": "3b016d175f0d95e5d5f62e074af14e6e100004cf"
51
51
  }