@steedos-widgets/amis-object 1.3.10 → 1.3.11

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.
@@ -1632,6 +1632,12 @@ body.steedos {
1632
1632
  .antd-Select-popover .antd-Select-menu .antd-Select-option .antd-Checkbox--checkbox > span {
1633
1633
  vertical-align: middle;
1634
1634
  }
1635
+ .steedos-overflow-visible-dialog.antd-Modal .antd-Modal-content {
1636
+ max-height: unset;
1637
+ }
1638
+ .steedos-overflow-visible-dialog.antd-Modal .antd-Modal-content .antd-Modal-body {
1639
+ overflow: visible;
1640
+ }
1635
1641
  }
1636
1642
  .steedos-object-form .steedos-input-rich-text-readonly .antd-RichTextControl {
1637
1643
  border: 0;
@@ -1839,6 +1845,15 @@ body.steedos {
1839
1845
  .steedos-object-table .datetime-min-w {
1840
1846
  min-width: 12em;
1841
1847
  }
1848
+ .steedos-object-table .antd-Table-table thead tr th {
1849
+ height: 32px !important;
1850
+ }
1851
+ .steedos-object-table .antd-Table-table tbody tr {
1852
+ height: 46px;
1853
+ }
1854
+ .page-list-split .steedos-object-table .antd-Table-table tbody tr.antd-Table-placeholder {
1855
+ height: var(--Table-placeholder-height);
1856
+ }
1842
1857
  }
1843
1858
  .steedos-object-table.steedos-crud-mode-cards .antd-Crud {
1844
1859
  height: 100%;
@@ -1943,12 +1958,6 @@ body.steedos {
1943
1958
  float: none;
1944
1959
  }
1945
1960
  }
1946
- .antd-Table-table thead tr th {
1947
- height: 32px !important;
1948
- }
1949
- .antd-Table-table tbody tr {
1950
- height: 46px;
1951
- }
1952
1961
 
1953
1962
  @media (max-width: 768px) {
1954
1963
  .record-detail-header-name {
@@ -7602,6 +7602,7 @@ const getSetListviewFiltersButtonSchema = ()=>{
7602
7602
  }
7603
7603
  }
7604
7604
  ],
7605
+ "className": "steedos-overflow-visible-dialog",
7605
7606
  "showCloseButton": true,
7606
7607
  "showErrorMsg": true,
7607
7608
  "showLoading": true,
@@ -8188,7 +8189,7 @@ function getObjectHeaderQuickSearchBox(mainObject, fields, formFactor, { isLooku
8188
8189
  "value": crudKeywords,
8189
8190
  "clearable": true,
8190
8191
  "clearAndSubmit": true,
8191
- "searchImediately": true
8192
+ "searchImediately": false
8192
8193
  }
8193
8194
  ]
8194
8195
  }
@@ -10318,7 +10319,9 @@ async function convertSFieldToAmisField(field, readonly, ctx) {
10318
10319
  suffix: "%",
10319
10320
  pipeIn: (value, data) => {
10320
10321
  if(value){
10321
- return value*100;
10322
+ // 因为例如 1.11 * 100 的值不是111,所以调整下。
10323
+ const result = value*100;
10324
+ return Number(result.toFixed(field.scale));
10322
10325
  }
10323
10326
  return value;
10324
10327
  },
@@ -19381,12 +19384,12 @@ var AmisProvider = function (props) { return __awaiter(void 0, void 0, void 0, f
19381
19384
  /*
19382
19385
  * @Author: baozhoutao@steedos.com
19383
19386
  * @Date: 2022-09-01 14:44:57
19384
- * @LastEditors: liaodaxue
19385
- * @LastEditTime: 2023-09-19 15:20:58
19387
+ * @LastEditors: 涂佳俊 tujiajun@steedos.com
19388
+ * @LastEditTime: 2023-11-22 09:07:37
19386
19389
  * @Description:
19387
19390
  */
19388
19391
  var AmisAppLauncher = function (props) { return __awaiter(void 0, void 0, void 0, function () {
19389
- var app, data, className, _a, showAppName, _b, appNameClassName, formFactor, isMobile, on_click_script, mobile_blank_script, dialogSchema;
19392
+ var app, data, className, _a, showAppName, _b, appNameClassName, formFactor, isMobile, on_click_script, mobile_blank_script, dialogSchema, badgeText;
19390
19393
  return __generator(this, function (_c) {
19391
19394
  app = props.app, data = props.data, className = props.className, _a = props.showAppName, showAppName = _a === void 0 ? true : _a, _b = props.appNameClassName, appNameClassName = _b === void 0 ? '' : _b;
19392
19395
  if (!app) {
@@ -19397,6 +19400,7 @@ var AmisAppLauncher = function (props) { return __awaiter(void 0, void 0, void 0
19397
19400
  on_click_script = "\n var evalFunString = \"(function(){\" + event.data.on_click + \"})()\";\n try{\n eval(evalFunString);\n }\n catch(e){\n console.error(\"catch some error when eval the on_click script for app link:\");\n console.error(e.message + \"\\r\\n\" + e.stack);\n }\n ";
19398
19401
  mobile_blank_script = "\n if(event.data.path[0] == \"/\"){\n Steedos.openWindow(event.data.context.rootUrl + event.data.path)\n }else{\n Steedos.openWindow(event.data.path)\n }\n ";
19399
19402
  dialogSchema = {};
19403
+ badgeText = "${IF(${id} == 'approve_workflow',${ss:keyvalues.badge.value|pick:'workflow'},${keyvalues.badge.value|pick:${id}}) | toInt}";
19400
19404
  if (isMobile) {
19401
19405
  dialogSchema = {
19402
19406
  "type": "service",
@@ -19415,8 +19419,8 @@ var AmisAppLauncher = function (props) { return __awaiter(void 0, void 0, void 0
19415
19419
  "tpl": "<div class='flex flex-col justify-center'><div class='text-center'><svg class='w-12 h-12 slds-icon slds-icon_container slds-icon-standard-${REPLACE(icon, '_', '-' )}' aria-hidden='true'><use xlink:href='/assets/icons/standard-sprite/svg/symbols.svg#${icon}'></use></svg></div><div class='text-center text-lg'>${name}</div></div>",
19416
19420
  "badge": {
19417
19421
  "mode": "text",
19418
- "text": "${ss:keyvalues.badge.value|pick:${id} | toInt}",
19419
- "visibleOn": "${ss:keyvalues.badge.value|pick:${id} | toInt}",
19422
+ "text": badgeText,
19423
+ "visibleOn": badgeText,
19420
19424
  "overflowCount": 99,
19421
19425
  "style": {
19422
19426
  "right": "50%",
@@ -19531,8 +19535,8 @@ var AmisAppLauncher = function (props) { return __awaiter(void 0, void 0, void 0
19531
19535
  "tpl": "<div class='slds-app-launcher__tile slds-text-link_reset'><div class='slds-app-launcher__tile-figure'><svg class='w-12 h-12 slds-icon slds-icon_container slds-icon-standard-${REPLACE(icon, '_', '-')}' aria-hidden='true'><use xlink:href='/assets/icons/standard-sprite/svg/symbols.svg#${icon}'></use></svg><span class='slds-assistive-text'>${name}</span></div><div class='slds-app-launcher__tile-body'><span class='slds-link text-blue-600 text-lg'><span title='${name}'>${name}</span></span><div style='display: -webkit-box; -webkit-line-clamp: 1;-webkit-box-orient: vertical;overflow: hidden;'><span title='${description}'>${description}</span></div></div></div>",
19532
19536
  "badge": {
19533
19537
  "mode": "text",
19534
- "text": "${ss:keyvalues.badge.value|pick:${id} | toInt}",
19535
- "visibleOn": "${ss:keyvalues.badge.value|pick:${id} | toInt}",
19538
+ "text": badgeText,
19539
+ "visibleOn": badgeText,
19536
19540
  "className": "w-full",
19537
19541
  "overflowCount": 99,
19538
19542
  "style": {
@@ -19541,7 +19545,7 @@ var AmisAppLauncher = function (props) { return __awaiter(void 0, void 0, void 0
19541
19545
  "height": "20px",
19542
19546
  "border-radius": "10px",
19543
19547
  "line-height": "18px",
19544
- "margin-left": "${${ss:keyvalues.badge.value|pick:${id}}>9?(${ss:keyvalues.badge.value|pick:${id}}>99?'-21px':'-11px'):'0'}",
19548
+ "margin-left": "${" + badgeText + ">9?(" + badgeText + ">99?'-21px':'-11px'):'0'}",
19545
19549
  "right": "auto",
19546
19550
  "font-size": "16px"
19547
19551
  }