@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 {
@@ -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";
@@ -13426,7 +13432,7 @@ const getRecordPermissions = async (objectName, recordId)=>{
13426
13432
  * @Author: baozhoutao@steedos.com
13427
13433
  * @Date: 2022-07-05 15:55:39
13428
13434
  * @LastEditors: liaodaxue
13429
- * @LastEditTime: 2023-06-20 14:05:50
13435
+ * @LastEditTime: 2023-08-21 14:50:21
13430
13436
  * @Description:
13431
13437
  */
13432
13438
 
@@ -13576,7 +13582,7 @@ async function getRecordDetailRelatedListSchema(objectName, recordId, relatedObj
13576
13582
  globalFilter,
13577
13583
  defaults: {
13578
13584
  listSchema: {
13579
- headerToolbar:[],
13585
+ headerToolbar:["bulkActions"],
13580
13586
  columnsTogglable: false,
13581
13587
  onEvent: {
13582
13588
  [`@data.changed.${relatedObjectName}`]: {
@@ -18783,8 +18789,8 @@ var AmisGlobalFooter = function (props) { return __awaiter(void 0, void 0, void
18783
18789
  /*
18784
18790
  * @Author: baozhoutao@steedos.com
18785
18791
  * @Date: 2022-09-01 14:44:57
18786
- * @LastEditors: 廖大雪 2291335922@qq.com
18787
- * @LastEditTime: 2023-03-17 14:09:53
18792
+ * @LastEditors: 殷亮辉 yinlianghui@hotoa.com
18793
+ * @LastEditTime: 2023-08-21 14:00:27
18788
18794
  * @Description:
18789
18795
  */
18790
18796
  var AmisGlobalHeaderToolbar = function (props) { return __awaiter(void 0, void 0, void 0, function () {
@@ -18929,7 +18935,7 @@ var AmisGlobalHeaderToolbar = function (props) { return __awaiter(void 0, void 0
18929
18935
  "name": "notifications",
18930
18936
  "items": {
18931
18937
  "type": "tpl",
18932
- "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>",
18938
+ "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>",
18933
18939
  "id": "u:07ece657c7b7",
18934
18940
  "onEvent": {
18935
18941
  "click": {
@@ -19480,7 +19486,7 @@ var AmisSteedosField = function (props) { return __awaiter(void 0, void 0, void
19480
19486
  * @Author: baozhoutao@steedos.com
19481
19487
  * @Date: 2023-01-14 16:41:24
19482
19488
  * @LastEditors: 殷亮辉 yinlianghui@hotoa.com
19483
- * @LastEditTime: 2023-08-03 13:32:08
19489
+ * @LastEditTime: 2023-08-21 10:03:05
19484
19490
  * @Description:
19485
19491
  */
19486
19492
  var getSelectFlowSchema = function (id, props) {
@@ -19632,7 +19638,7 @@ var getSelectFlowSchema = function (id, props) {
19632
19638
  "headers": {
19633
19639
  "Authorization": "Bearer ${context.tenantId},${context.authToken}"
19634
19640
  }
19635
- }, "showIcon": showIcon, "showRadio": showRadio, "onlyLeaf": true, "onEvent": onEvent, "static": !!props.static }, amis);
19641
+ }, "showIcon": showIcon, "showRadio": showRadio, "onlyLeaf": true, "onEvent": onEvent, "static": !!props.static, "onlyChildren": true }, amis);
19636
19642
  };
19637
19643
  /**
19638
19644
  *