@steedos-widgets/amis-lib 6.3.17-beta.1 → 6.3.17-beta.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.
package/dist/index.esm.js CHANGED
@@ -2650,7 +2650,7 @@ function getMobileLines(tpls){
2650
2650
  }
2651
2651
  if(isLeft){
2652
2652
  // 左侧半行
2653
- lineChildrenClassName = "steedos-listview-item-left truncate";
2653
+ lineChildrenClassName = "steedos-listview-item-left";
2654
2654
  if(item.field.is_wide){
2655
2655
  // 左侧全行样式可以单独写,如果需要配置两行省略号效果,可以加样式类 two-lines-truncate
2656
2656
  lineChildrenClassName = "steedos-listview-item-wide";
@@ -2662,7 +2662,7 @@ function getMobileLines(tpls){
2662
2662
  }
2663
2663
  else {
2664
2664
  // 右侧半行,这里加样式类 flex flex-shrink-0,是为了省略号只显示在左半行,右半行文字一般比较短,如果也加省略号效果的话,左侧文字多的话,右侧没几个字就显示省略号了
2665
- lineChildrenClassName = "steedos-listview-item-right truncate ml-2 flex flex-shrink-0";
2665
+ lineChildrenClassName = "steedos-listview-item-right ml-2 flex flex-shrink-0";
2666
2666
  }
2667
2667
  //支持字段amis属性配置classname,识别classname的类型,与原样式合并
2668
2668
  var className;
@@ -7504,30 +7504,29 @@ function getObjectListHeaderFirstLine(objectSchema, listViewName, ctx) {
7504
7504
  let amisButtonsSchema = getObjectListViewButtonsSchemas(objectSchema, {formFactor: ctx.formFactor});
7505
7505
  const reg = new RegExp('_', 'g');
7506
7506
  const standardIcon = icon && icon.replace(reg, '-');
7507
- const standardNewButton = _.find(amisButtonsSchema, { name: "standard_new" });
7507
+ _.find(amisButtonsSchema, { name: "standard_new" });
7508
7508
  const buttonSchema = [{
7509
7509
  "type": "flex",
7510
7510
  "items": amisButtonsSchema,
7511
- "visibleOn": "${display == 'split'?false:true}"
7512
7511
  }];
7513
- if(ctx.formFactor !== 'SMALL'){
7514
- const restButtons = Array.isArray(amisButtonsSchema) ? amisButtonsSchema.filter(obj => obj.name !== "standard_new"):[];
7515
- buttonSchema.push({
7516
- "type": "flex",
7517
- "items":[
7518
- standardNewButton,
7519
- (restButtons.length > 0) && {
7520
- "type": "dropdown-button",
7521
- "buttons": restButtons,
7522
- "className": " ml-1",
7523
- "menuClassName": "p-none split-dropdown-buttons",
7524
- "align": "right",
7525
- "size": "sm"
7526
- }
7527
- ],
7528
- "visibleOn": "${display == 'split'?true:false}"
7529
- });
7530
- }
7512
+ // if(ctx.formFactor !== 'SMALL'){
7513
+ // const restButtons = Array.isArray(amisButtonsSchema) ? amisButtonsSchema.filter(obj => obj.name !== "standard_new"):[]
7514
+ // buttonSchema.push({
7515
+ // "type": "flex",
7516
+ // "items":[
7517
+ // standardNewButton,
7518
+ // (restButtons.length > 0) && {
7519
+ // "type": "dropdown-button",
7520
+ // "buttons": restButtons,
7521
+ // "className": " ml-1",
7522
+ // "menuClassName": "p-none split-dropdown-buttons",
7523
+ // "align": "right",
7524
+ // "size": "sm"
7525
+ // }
7526
+ // ],
7527
+ // "visibleOn": "${display == 'split'?true:false}"
7528
+ // })
7529
+ // }
7531
7530
  const listviewNewButton = getNewListviewButtonSchema();
7532
7531
  listviewNewButton.visibleOn = "global.user.is_space_admin";
7533
7532
  return {