@steedos-widgets/amis-lib 6.10.20 → 6.10.22
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/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/index.cjs.js +9 -12
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +9 -12
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +4 -7
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -20008,11 +20008,6 @@ const getRelatedRecords = async (instance)=>{
|
|
|
20008
20008
|
|
|
20009
20009
|
// TODO delete button
|
|
20010
20010
|
const getRelatedInstances = async (instance)=>{
|
|
20011
|
-
// if(!instance.related_instances || isEmpty(instance.related_instances)){
|
|
20012
|
-
// return ;
|
|
20013
|
-
// }
|
|
20014
|
-
const spaceId = getSteedosAuth$1().tenantId;
|
|
20015
|
-
|
|
20016
20011
|
return {
|
|
20017
20012
|
"type": "list",
|
|
20018
20013
|
"name": "relatedInstances",
|
|
@@ -20023,7 +20018,7 @@ const getRelatedInstances = async (instance)=>{
|
|
|
20023
20018
|
{
|
|
20024
20019
|
type: 'tpl',
|
|
20025
20020
|
inline: true,
|
|
20026
|
-
tpl: `<a href='
|
|
20021
|
+
tpl: `<a href='/app/approve_workflow/page/page_instance_view?recordId=\${_id}' target='_blank'>\${name}</a>`
|
|
20027
20022
|
}
|
|
20028
20023
|
],
|
|
20029
20024
|
"actions": [
|
|
@@ -20135,10 +20130,6 @@ const getFieldEditTpl = async (field, label)=>{
|
|
|
20135
20130
|
visibleOn: field.visibleOn,
|
|
20136
20131
|
requiredOn: field.requiredOn
|
|
20137
20132
|
};
|
|
20138
|
-
|
|
20139
|
-
if(field.formula){
|
|
20140
|
-
tpl.value = `$${field.formula}`;
|
|
20141
|
-
}
|
|
20142
20133
|
|
|
20143
20134
|
if(isOpinionField(field)){
|
|
20144
20135
|
tpl.type = 'input-group';
|
|
@@ -20336,10 +20327,16 @@ const getFieldEditTpl = async (field, label)=>{
|
|
|
20336
20327
|
} else {
|
|
20337
20328
|
tpl.type = "input-text";
|
|
20338
20329
|
}
|
|
20330
|
+
if(field.formula){
|
|
20331
|
+
tpl.value = `$${field.formula}`;
|
|
20332
|
+
}
|
|
20339
20333
|
break;
|
|
20340
20334
|
case "number":
|
|
20341
20335
|
tpl.type = "input-number";
|
|
20342
|
-
tpl.precision=
|
|
20336
|
+
tpl.precision=field.digits;
|
|
20337
|
+
if(field.formula){
|
|
20338
|
+
tpl.value = `$${field.formula}`;
|
|
20339
|
+
}
|
|
20343
20340
|
break;
|
|
20344
20341
|
case "date":
|
|
20345
20342
|
tpl.type = "input-date";
|
|
@@ -21083,7 +21080,7 @@ const getFlowFormSchema = async (instance, box) => {
|
|
|
21083
21080
|
submitEvents = onEvent?.submit?.actions || [];
|
|
21084
21081
|
nextStepInitedEvents = onEvent?.nextStepInited?.actions || [];
|
|
21085
21082
|
nextStepChangeEvents = onEvent?.nextStepChange?.actions || [];
|
|
21086
|
-
nextStepUserChangeEvents = onEvent?.nextStepUserChange
|
|
21083
|
+
nextStepUserChangeEvents = onEvent?.nextStepUserChange?.actions || [];
|
|
21087
21084
|
}
|
|
21088
21085
|
// if (box == 'inbox' || box == 'draft') {
|
|
21089
21086
|
// TODO: 临时去掉 AutoOpenApproveDrawer 功能因为测试到性能问题
|