@steedos-widgets/amis-object 1.2.42 → 1.2.43

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.
@@ -497,9 +497,6 @@ fieldset.antd-Collapse > legend{
497
497
  .h-4 {
498
498
  height: 1rem
499
499
  }
500
- .h-\[20px\] {
501
- height: 20px
502
- }
503
500
  .h-12 {
504
501
  height: 3rem
505
502
  }
@@ -1196,6 +1193,15 @@ fieldset.antd-Collapse > legend{
1196
1193
  flex-grow: 1;
1197
1194
  }
1198
1195
  }
1196
+ .steedos-object-table .two-lines-truncate {
1197
+ white-space: pre-wrap;
1198
+ overflow: hidden;
1199
+ text-overflow: ellipsis;
1200
+ display: -webkit-box;
1201
+ -webkit-line-clamp: 2;
1202
+ /* 显示的行数 */
1203
+ -webkit-box-orient: vertical;
1204
+ }
1199
1205
 
1200
1206
 
1201
1207
  .steedos-dropdown-button-overlay .ant-dropdown-menu-item {
@@ -1417,6 +1423,12 @@ fieldset.antd-Collapse > legend{
1417
1423
  .steedos-object-table tbody td.antd-Field--quickEditable:hover div .antd-Field-quickEditBtn svg {
1418
1424
  display: inline-block;
1419
1425
  }
1426
+ .steedos-object-table .date-min-w {
1427
+ min-width: 9em;
1428
+ }
1429
+ .steedos-object-table .datetime-min-w {
1430
+ min-width: 12em;
1431
+ }
1420
1432
  }
1421
1433
 
1422
1434
  @media (max-width: 768px) {
@@ -1555,12 +1567,12 @@ fieldset.antd-Collapse > legend{
1555
1567
  height: 100%;
1556
1568
  }
1557
1569
  @media (max-width: 767px) {
1558
- .steedos-object-listview .antd-Table-content {
1559
- max-height: calc(100vh - 263px);
1560
- }
1561
1570
  .steedos-object-table .antd-Table-content {
1562
1571
  max-height: calc(100vh - 195px);
1563
1572
  }
1573
+ .steedos-object-listview .antd-Table-content {
1574
+ max-height: calc(100vh - 295px);
1575
+ }
1564
1576
  .steedos-global-footer-root .antd-Nav-Menu-horizontal:after {
1565
1577
  /*手机端底部导航左右间隔不平衡*/
1566
1578
  content: unset;
@@ -1623,6 +1635,7 @@ body.sidebar #sidebar {
1623
1635
  }
1624
1636
  .steedos-select-flow-service .antd-TreeControl {
1625
1637
  max-height: calc(100vh - 248px) !important;
1638
+ overflow: auto;
1626
1639
  }
1627
1640
 
1628
1641
  .steedos-amis-instance-view {
@@ -11134,6 +11134,12 @@ async function getTableColumns$1(fields, options){
11134
11134
  if(field.type === 'textarea'){
11135
11135
  className += 'min-w-56';
11136
11136
  }
11137
+ if(field.type === 'date'){
11138
+ className += 'date-min-w';
11139
+ }
11140
+ if(field.type === 'datetime'){
11141
+ className += 'datetime-min-w';
11142
+ }
11137
11143
  if(!field.hidden && !field.extra){
11138
11144
  columnItem = Object.assign({}, {
11139
11145
  name: field.name,
@@ -11195,7 +11201,7 @@ function getMobileLines(tpls){
11195
11201
  let isNewLine = false;
11196
11202
  let isLeft = true;
11197
11203
  let lineChildrenClassName = "";
11198
- let lineClassName = "flex items-center justify-between h-[20px]";
11204
+ let lineClassName = "flex items-center justify-between";
11199
11205
  tpls.forEach(function(item){
11200
11206
  if(isNewLine && lines.length < maxLineCount){
11201
11207
  lines.push({
@@ -11208,7 +11214,7 @@ function getMobileLines(tpls){
11208
11214
  }
11209
11215
  if(isLeft){
11210
11216
  // 左侧半行
11211
- lineChildrenClassName = "steedos-listview-item-left truncate";
11217
+ lineChildrenClassName = "steedos-listview-item-left two-lines-truncate";
11212
11218
  if(item.field.is_wide){
11213
11219
  // 左侧全行样式可以单独写
11214
11220
  lineChildrenClassName = "steedos-listview-item-wide truncate";