@steedos-widgets/amis-object 1.2.41 → 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 {
@@ -11132,6 +11132,12 @@ crudService && crudService.setData({showFieldsFilter: toShowFieldsFilter});
11132
11132
  if(field.type === 'textarea'){
11133
11133
  className += 'min-w-56';
11134
11134
  }
11135
+ if(field.type === 'date'){
11136
+ className += 'date-min-w';
11137
+ }
11138
+ if(field.type === 'datetime'){
11139
+ className += 'datetime-min-w';
11140
+ }
11135
11141
  if(!field.hidden && !field.extra){
11136
11142
  columnItem = Object.assign({}, {
11137
11143
  name: field.name,
@@ -11193,7 +11199,7 @@ crudService && crudService.setData({showFieldsFilter: toShowFieldsFilter});
11193
11199
  let isNewLine = false;
11194
11200
  let isLeft = true;
11195
11201
  let lineChildrenClassName = "";
11196
- let lineClassName = "flex items-center justify-between h-[20px]";
11202
+ let lineClassName = "flex items-center justify-between";
11197
11203
  tpls.forEach(function(item){
11198
11204
  if(isNewLine && lines.length < maxLineCount){
11199
11205
  lines.push({
@@ -11206,7 +11212,7 @@ crudService && crudService.setData({showFieldsFilter: toShowFieldsFilter});
11206
11212
  }
11207
11213
  if(isLeft){
11208
11214
  // 左侧半行
11209
- lineChildrenClassName = "steedos-listview-item-left truncate";
11215
+ lineChildrenClassName = "steedos-listview-item-left two-lines-truncate";
11210
11216
  if(item.field.is_wide){
11211
11217
  // 左侧全行样式可以单独写
11212
11218
  lineChildrenClassName = "steedos-listview-item-wide truncate";
@@ -13424,7 +13430,7 @@ crudService && crudService.setData({showFieldsFilter: toShowFieldsFilter});
13424
13430
  * @Author: baozhoutao@steedos.com
13425
13431
  * @Date: 2022-07-05 15:55:39
13426
13432
  * @LastEditors: liaodaxue
13427
- * @LastEditTime: 2023-06-20 14:05:50
13433
+ * @LastEditTime: 2023-08-21 14:50:21
13428
13434
  * @Description:
13429
13435
  */
13430
13436
 
@@ -13574,7 +13580,7 @@ crudService && crudService.setData({showFieldsFilter: toShowFieldsFilter});
13574
13580
  globalFilter,
13575
13581
  defaults: {
13576
13582
  listSchema: {
13577
- headerToolbar:[],
13583
+ headerToolbar:["bulkActions"],
13578
13584
  columnsTogglable: false,
13579
13585
  onEvent: {
13580
13586
  [`@data.changed.${relatedObjectName}`]: {
@@ -18781,8 +18787,8 @@ crudService && crudService.setData({showFieldsFilter: toShowFieldsFilter});
18781
18787
  /*
18782
18788
  * @Author: baozhoutao@steedos.com
18783
18789
  * @Date: 2022-09-01 14:44:57
18784
- * @LastEditors: 廖大雪 2291335922@qq.com
18785
- * @LastEditTime: 2023-03-17 14:09:53
18790
+ * @LastEditors: 殷亮辉 yinlianghui@hotoa.com
18791
+ * @LastEditTime: 2023-08-21 14:00:27
18786
18792
  * @Description:
18787
18793
  */
18788
18794
  var AmisGlobalHeaderToolbar = function (props) { return __awaiter(void 0, void 0, void 0, function () {
@@ -18927,7 +18933,7 @@ crudService && crudService.setData({showFieldsFilter: toShowFieldsFilter});
18927
18933
  "name": "notifications",
18928
18934
  "items": {
18929
18935
  "type": "tpl",
18930
- "tpl": "<div class='flex items-center p-4 hover:bg-sky-50'><img src='<%=data.context.rootUrl + `/avatar/` + data.from%>' alt='' class='h-10 w-10 flex-none rounded-full'><div class='ml-4 flex-auto'><div class='font-medium'><span class='text-primary'><%=data.name%></span></div><div class='mt-1 text-slate-700'><%=data.body%></div><div class='mt-1 text-slate-700'><%=moment(data.created).fromNow()%><abbr class='slds-text-link slds-m-horizontal_xxx-small <%=data.is_read ? 'hidden' : ''%>' title='unread'>●</abbr></div></div></div>",
18936
+ "tpl": "<div class='flex items-center p-4 hover:bg-sky-50'>\n <img src='<%=data.context.rootUrl + \"/avatar/\" + data.from%>' alt='' class='h-10 w-10 flex-none rounded-full'>\n <div class='ml-4 flex-auto'>\n <div class='font-medium'>\n <span class='text-primary'><%=data.name%></span>\n </div>\n <div class='mt-1 text-slate-700'>\n <%=data.body%>\n </div>\n <div class='mt-1 text-slate-700'>\n <%=moment(data.created).fromNow()%>\n <abbr class='slds-text-link slds-m-horizontal_xxx-small <%=data.is_read ? 'hidden' : ''%>' title='unread'>\u25CF</abbr>\n </div>\n </div>\n </div>",
18931
18937
  "id": "u:07ece657c7b7",
18932
18938
  "onEvent": {
18933
18939
  "click": {
@@ -19478,7 +19484,7 @@ crudService && crudService.setData({showFieldsFilter: toShowFieldsFilter});
19478
19484
  * @Author: baozhoutao@steedos.com
19479
19485
  * @Date: 2023-01-14 16:41:24
19480
19486
  * @LastEditors: 殷亮辉 yinlianghui@hotoa.com
19481
- * @LastEditTime: 2023-08-03 13:32:08
19487
+ * @LastEditTime: 2023-08-21 10:03:05
19482
19488
  * @Description:
19483
19489
  */
19484
19490
  var getSelectFlowSchema = function (id, props) {
@@ -19630,7 +19636,7 @@ crudService && crudService.setData({showFieldsFilter: toShowFieldsFilter});
19630
19636
  "headers": {
19631
19637
  "Authorization": "Bearer ${context.tenantId},${context.authToken}"
19632
19638
  }
19633
- }, "showIcon": showIcon, "showRadio": showRadio, "onlyLeaf": true, "onEvent": onEvent, "static": !!props.static }, amis);
19639
+ }, "showIcon": showIcon, "showRadio": showRadio, "onlyLeaf": true, "onEvent": onEvent, "static": !!props.static, "onlyChildren": true }, amis);
19634
19640
  };
19635
19641
  /**
19636
19642
  *