@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 {
@@ -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";
@@ -13398,7 +13404,7 @@ const getRecordPermissions = async (objectName, recordId)=>{
13398
13404
  * @Author: baozhoutao@steedos.com
13399
13405
  * @Date: 2022-07-05 15:55:39
13400
13406
  * @LastEditors: liaodaxue
13401
- * @LastEditTime: 2023-06-20 14:05:50
13407
+ * @LastEditTime: 2023-08-21 14:50:21
13402
13408
  * @Description:
13403
13409
  */
13404
13410
 
@@ -13548,7 +13554,7 @@ async function getRecordDetailRelatedListSchema(objectName, recordId, relatedObj
13548
13554
  globalFilter,
13549
13555
  defaults: {
13550
13556
  listSchema: {
13551
- headerToolbar:[],
13557
+ headerToolbar:["bulkActions"],
13552
13558
  columnsTogglable: false,
13553
13559
  onEvent: {
13554
13560
  [`@data.changed.${relatedObjectName}`]: {
@@ -18755,8 +18761,8 @@ var AmisGlobalFooter = function (props) { return __awaiter(void 0, void 0, void
18755
18761
  /*
18756
18762
  * @Author: baozhoutao@steedos.com
18757
18763
  * @Date: 2022-09-01 14:44:57
18758
- * @LastEditors: 廖大雪 2291335922@qq.com
18759
- * @LastEditTime: 2023-03-17 14:09:53
18764
+ * @LastEditors: 殷亮辉 yinlianghui@hotoa.com
18765
+ * @LastEditTime: 2023-08-21 14:00:27
18760
18766
  * @Description:
18761
18767
  */
18762
18768
  var AmisGlobalHeaderToolbar = function (props) { return __awaiter(void 0, void 0, void 0, function () {
@@ -18901,7 +18907,7 @@ var AmisGlobalHeaderToolbar = function (props) { return __awaiter(void 0, void 0
18901
18907
  "name": "notifications",
18902
18908
  "items": {
18903
18909
  "type": "tpl",
18904
- "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>",
18910
+ "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>",
18905
18911
  "id": "u:07ece657c7b7",
18906
18912
  "onEvent": {
18907
18913
  "click": {
@@ -19452,7 +19458,7 @@ var AmisSteedosField = function (props) { return __awaiter(void 0, void 0, void
19452
19458
  * @Author: baozhoutao@steedos.com
19453
19459
  * @Date: 2023-01-14 16:41:24
19454
19460
  * @LastEditors: 殷亮辉 yinlianghui@hotoa.com
19455
- * @LastEditTime: 2023-08-03 13:32:08
19461
+ * @LastEditTime: 2023-08-21 10:03:05
19456
19462
  * @Description:
19457
19463
  */
19458
19464
  var getSelectFlowSchema = function (id, props) {
@@ -19604,7 +19610,7 @@ var getSelectFlowSchema = function (id, props) {
19604
19610
  "headers": {
19605
19611
  "Authorization": "Bearer ${context.tenantId},${context.authToken}"
19606
19612
  }
19607
- }, "showIcon": showIcon, "showRadio": showRadio, "onlyLeaf": true, "onEvent": onEvent, "static": !!props.static }, amis);
19613
+ }, "showIcon": showIcon, "showRadio": showRadio, "onlyLeaf": true, "onEvent": onEvent, "static": !!props.static, "onlyChildren": true }, amis);
19608
19614
  };
19609
19615
  /**
19610
19616
  *