@steedos-widgets/amis-object 1.1.8 → 1.1.9
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.
- package/dist/amis-object.cjs.css +2 -2
- package/dist/amis-object.cjs.js +19 -5
- package/dist/amis-object.cjs.js.map +1 -1
- package/dist/amis-object.esm.css +2 -2
- package/dist/amis-object.esm.js +19 -5
- package/dist/amis-object.esm.js.map +1 -1
- package/dist/amis-object.umd.css +2 -2
- package/dist/amis-object.umd.js +19 -5
- package/dist/amis-object.umd.js.map +1 -1
- package/dist/assets.json +11 -11
- package/package.json +3 -3
package/dist/amis-object.cjs.css
CHANGED
package/dist/amis-object.cjs.js
CHANGED
|
@@ -767,7 +767,7 @@ const Router$1 = {
|
|
|
767
767
|
* @Author: baozhoutao@steedos.com
|
|
768
768
|
* @Date: 2022-05-23 09:53:08
|
|
769
769
|
* @LastEditors: baozhoutao@steedos.com
|
|
770
|
-
* @LastEditTime: 2023-
|
|
770
|
+
* @LastEditTime: 2023-04-10 11:22:54
|
|
771
771
|
* @Description:
|
|
772
772
|
*/
|
|
773
773
|
|
|
@@ -962,6 +962,7 @@ async function getFieldTpl (field, options){
|
|
|
962
962
|
case 'number':
|
|
963
963
|
case 'currency':
|
|
964
964
|
return await getNumberTpl(field);
|
|
965
|
+
case 'percent':
|
|
965
966
|
case 'formula':
|
|
966
967
|
case 'summary':
|
|
967
968
|
return getUiFieldTpl(field)
|
|
@@ -994,7 +995,7 @@ async function getFieldsTemplate(fields, expand){
|
|
|
994
995
|
if(___default.includes(['time','date','datetime','boolean','number','currency'], field.type)){
|
|
995
996
|
fieldsName.push(`${field.name}`);
|
|
996
997
|
}
|
|
997
|
-
if(___default.includes(['time','filesize','date','datetime','boolean','number','currency', 'select', 'file', 'image', 'avatar', 'formula', 'summary', 'object', 'grid'], field.type)){
|
|
998
|
+
if(___default.includes(['percent','time','filesize','date','datetime','boolean','number','currency', 'select', 'file', 'image', 'avatar', 'formula', 'summary', 'object', 'grid'], field.type)){
|
|
998
999
|
displayFields.push(`${field.name}`);
|
|
999
1000
|
}
|
|
1000
1001
|
}
|
|
@@ -12249,7 +12250,7 @@ var AmisRecordDetailHeader = function (props) { return __awaiter(void 0, void 0,
|
|
|
12249
12250
|
return __generator(this, function (_d) {
|
|
12250
12251
|
switch (_d.label) {
|
|
12251
12252
|
case 0:
|
|
12252
|
-
_a = props.className, className = _a === void 0 ? 'sticky top-0 z-
|
|
12253
|
+
_a = props.className, className = _a === void 0 ? 'sticky top-0 z-10 bg-gray-100 border-b sm:shadow sm:rounded sm:border border-slate-300 p-4' : _a;
|
|
12253
12254
|
return [4 /*yield*/, getUISchema(props.objectApiName || "space_users", false)];
|
|
12254
12255
|
case 1:
|
|
12255
12256
|
objectUiSchema = _d.sent();
|
|
@@ -12557,8 +12558,6 @@ var AmisAppLauncher = function (props) { return __awaiter(void 0, void 0, void 0
|
|
|
12557
12558
|
"items": {
|
|
12558
12559
|
"type": "button",
|
|
12559
12560
|
"level": "link",
|
|
12560
|
-
"actionType": "link",
|
|
12561
|
-
"link": "${path}",
|
|
12562
12561
|
"body": [{
|
|
12563
12562
|
"type": "tpl",
|
|
12564
12563
|
"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>",
|
|
@@ -12585,6 +12584,21 @@ var AmisAppLauncher = function (props) { return __awaiter(void 0, void 0, void 0
|
|
|
12585
12584
|
"actions": [
|
|
12586
12585
|
{
|
|
12587
12586
|
"actionType": "closeDialog"
|
|
12587
|
+
},
|
|
12588
|
+
{
|
|
12589
|
+
"actionType": "link",
|
|
12590
|
+
"args": {
|
|
12591
|
+
"link": "${path}"
|
|
12592
|
+
},
|
|
12593
|
+
"expression": "${!blank}"
|
|
12594
|
+
},
|
|
12595
|
+
{
|
|
12596
|
+
"actionType": "url",
|
|
12597
|
+
"args": {
|
|
12598
|
+
"url": "${path}",
|
|
12599
|
+
"blank": true
|
|
12600
|
+
},
|
|
12601
|
+
"expression": "${blank}"
|
|
12588
12602
|
}
|
|
12589
12603
|
]
|
|
12590
12604
|
}
|