@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 {
@@ -11106,6 +11106,12 @@ async function getTableColumns$1(fields, options){
11106
11106
  if(field.type === 'textarea'){
11107
11107
  className += 'min-w-56';
11108
11108
  }
11109
+ if(field.type === 'date'){
11110
+ className += 'date-min-w';
11111
+ }
11112
+ if(field.type === 'datetime'){
11113
+ className += 'datetime-min-w';
11114
+ }
11109
11115
  if(!field.hidden && !field.extra){
11110
11116
  columnItem = Object.assign({}, {
11111
11117
  name: field.name,
@@ -11167,7 +11173,7 @@ function getMobileLines(tpls){
11167
11173
  let isNewLine = false;
11168
11174
  let isLeft = true;
11169
11175
  let lineChildrenClassName = "";
11170
- let lineClassName = "flex items-center justify-between h-[20px]";
11176
+ let lineClassName = "flex items-center justify-between";
11171
11177
  tpls.forEach(function(item){
11172
11178
  if(isNewLine && lines.length < maxLineCount){
11173
11179
  lines.push({
@@ -11180,7 +11186,7 @@ function getMobileLines(tpls){
11180
11186
  }
11181
11187
  if(isLeft){
11182
11188
  // 左侧半行
11183
- lineChildrenClassName = "steedos-listview-item-left truncate";
11189
+ lineChildrenClassName = "steedos-listview-item-left two-lines-truncate";
11184
11190
  if(item.field.is_wide){
11185
11191
  // 左侧全行样式可以单独写
11186
11192
  lineChildrenClassName = "steedos-listview-item-wide truncate";