@steedos-widgets/sortable 6.3.0 → 6.3.1

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.
@@ -54545,7 +54545,7 @@ async function getLookupLinkOnClick(field, options) {
54545
54545
  const recordPage = await getPage({ type: 'record', appId: options.appId, objectName: options.objectName, formFactor: options.formFactor });
54546
54546
 
54547
54547
  const drawerRecordDetailSchema = recordPage ? Object.assign({}, recordPage.schema, {
54548
- "recordId": "${value}",
54548
+ "recordId": `\${${field.name}}`,
54549
54549
  "data": {
54550
54550
  ...recordPage.schema.data,
54551
54551
  "_inDrawer": true, // 用于判断是否在抽屉中
@@ -54555,7 +54555,7 @@ async function getLookupLinkOnClick(field, options) {
54555
54555
  }) : {
54556
54556
  "type": "steedos-record-detail",
54557
54557
  "objectApiName": options.objectName,
54558
- "recordId": "${value}",
54558
+ "recordId": `\${${field.name}}`,
54559
54559
  "showBackButton": false,
54560
54560
  "showButtons": true,
54561
54561
  "data": {
@@ -54661,7 +54661,7 @@ const getAmisFileReadonlySchema = async (steedosField,ctx = {})=>{
54661
54661
  labelClassName: "hidden",
54662
54662
  label: false,
54663
54663
  className: 'm-0',
54664
- tpl: `<a href="/app/-/cfs_files_filerecord/view/\${value}" ${lookupATagClick}>\${name}</a>`,
54664
+ tpl: `<a href="/app/-/cfs_files_filerecord/view/\${${steedosField.name}}" ${lookupATagClick}>\${name}</a>`,
54665
54665
  // tpl: "<%= item.name >",
54666
54666
  // onEvent: window.innerWidth < 768 ? null : REFERENCE_VALUE_ITEM_ONCLICK
54667
54667
  onEvent: window.innerWidth < 768 ? null : await getLookupLinkOnClick(steedosField, {
@@ -55671,7 +55671,7 @@ async function getTableColumns(object, fields, options){
55671
55671
  }
55672
55672
  //增加quickEdit属性,实现快速编辑
55673
55673
  const quickEditSchema = allowEdit ? await getQuickEditSchema(object, field, options) : allowEdit;
55674
- let className = "";
55674
+ let className = `steedos-table-${field.type}-field`;
55675
55675
  const bowserType = getBowserType();
55676
55676
  if(bowserType === "Safari"){
55677
55677
  className += " whitespace-nowrap ";
@@ -61479,6 +61479,8 @@ async function convertSFieldToAmisField(field, readonly, ctx) {
61479
61479
  if(gridSub){
61480
61480
  delete gridSub.name;
61481
61481
  delete gridSub.label;
61482
+ //去除重复样式
61483
+ gridSub.className = gridSub.className.replace('border-b', '');
61482
61484
  convertData.items.push(
61483
61485
  Object.assign({}, gridSub, {label: subField.label}, subField.amis, {
61484
61486
  name: subFieldName
@@ -61533,6 +61535,10 @@ async function convertSFieldToAmisField(field, readonly, ctx) {
61533
61535
  }
61534
61536
  // if(ctx.mode === 'edit'){
61535
61537
  let convertDataResult = Object.assign({}, baseData, convertData, { labelClassName: 'text-left', clearValueOnHidden: true, fieldName: field.name}, field.amis, {name: baseData.name});
61538
+ // 只读时file字段的外层control层若存在name,内部each组件存在问题
61539
+ if(readonly && field.type == "file") {
61540
+ convertDataResult.name = "";
61541
+ }
61536
61542
  // console.log("convertDataResult:", convertDataResult);
61537
61543
  return convertDataResult;
61538
61544
  // }else{