@steedos-widgets/amis-object 6.10.1-beta.51 → 6.10.1-beta.52
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/AmisInstanceDetail.d.ts +1 -2
- package/dist/amis-object.cjs.js +12 -10
- package/dist/amis-object.cjs.js.map +1 -1
- package/dist/amis-object.esm.js +12 -10
- package/dist/amis-object.esm.js.map +1 -1
- package/dist/amis-object.umd.js +11 -10
- package/dist/amis-object.umd.js.map +1 -1
- package/dist/assets.json +19 -19
- package/dist/meta.js +56 -81
- package/package.json +3 -3
package/dist/amis-object.esm.js
CHANGED
|
@@ -21059,7 +21059,7 @@ const getInstanceApprovalHistory = async ()=>{
|
|
|
21059
21059
|
* @Author: baozhoutao@steedos.com
|
|
21060
21060
|
* @Date: 2022-09-07 16:20:45
|
|
21061
21061
|
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
21062
|
-
* @LastEditTime: 2025-08-29 01:
|
|
21062
|
+
* @LastEditTime: 2025-08-29 21:01:29
|
|
21063
21063
|
* @Description:
|
|
21064
21064
|
*/
|
|
21065
21065
|
|
|
@@ -21665,6 +21665,7 @@ const getFormTableView = async (instance) => {
|
|
|
21665
21665
|
};
|
|
21666
21666
|
|
|
21667
21667
|
const getFormSteps = async (instance) => {
|
|
21668
|
+
const formMode = instance.form.current.mode || "normal";//normal,horizontal,inline
|
|
21668
21669
|
const stepsSchema = [];
|
|
21669
21670
|
let stepFields = [];
|
|
21670
21671
|
let fields = [];
|
|
@@ -21692,11 +21693,16 @@ const getFormSteps = async (instance) => {
|
|
|
21692
21693
|
let fieldSchema;
|
|
21693
21694
|
for (const childField of field.fields) {
|
|
21694
21695
|
fieldSchema = await getTdInputTpl(childField, true);
|
|
21696
|
+
if (fieldSchema.type === "steedos-field"){
|
|
21697
|
+
fieldSchema.config.amis.mode = formMode;
|
|
21698
|
+
}
|
|
21699
|
+
else {
|
|
21700
|
+
fieldSchema.mode = formMode;
|
|
21701
|
+
}
|
|
21695
21702
|
stepFields.push(fieldSchema);
|
|
21696
21703
|
}
|
|
21697
21704
|
stepsSchema.push({
|
|
21698
21705
|
"title": field.name,
|
|
21699
|
-
"mode": "horizontal",
|
|
21700
21706
|
"body": stepFields
|
|
21701
21707
|
});
|
|
21702
21708
|
}
|
|
@@ -21893,7 +21899,7 @@ const getFlowFormSchema = async (instance$1, box) => {
|
|
|
21893
21899
|
return {
|
|
21894
21900
|
type: "page",
|
|
21895
21901
|
name: "instancePage",
|
|
21896
|
-
className: "steedos-amis-instance-view",
|
|
21902
|
+
className: "steedos-amis-instance-view " + "steedos-instance-style-" + formStyle,
|
|
21897
21903
|
bodyClassName: "overflow-y-auto h-full steedos-amis-instance-view-body",
|
|
21898
21904
|
headerClassName: "p-0",
|
|
21899
21905
|
"title": {
|
|
@@ -21924,7 +21930,7 @@ const getFlowFormSchema = async (instance$1, box) => {
|
|
|
21924
21930
|
".steedos-object-record-detail-header .antd-Grid-col--mdAuto": {
|
|
21925
21931
|
"padding": "0px !important"
|
|
21926
21932
|
},
|
|
21927
|
-
".steedos-amis-instance-view .antd-Page-body": {
|
|
21933
|
+
".steedos-amis-instance-view.steedos-instance-style-table .antd-Page-body": {
|
|
21928
21934
|
"width": "1024px"
|
|
21929
21935
|
},
|
|
21930
21936
|
".antd-List-placeholder": {
|
|
@@ -22160,7 +22166,7 @@ const getOpinionFieldStepsName = (field, top_keywords) => {
|
|
|
22160
22166
|
* @Author: baozhoutao@steedos.com
|
|
22161
22167
|
* @Date: 2022-09-09 17:47:37
|
|
22162
22168
|
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
22163
|
-
* @LastEditTime: 2025-08-
|
|
22169
|
+
* @LastEditTime: 2025-08-29 20:51:53
|
|
22164
22170
|
* @Description:
|
|
22165
22171
|
*/
|
|
22166
22172
|
|
|
@@ -22337,6 +22343,7 @@ const getInstanceInfo = async (props) => {
|
|
|
22337
22343
|
_id,
|
|
22338
22344
|
name,
|
|
22339
22345
|
style,
|
|
22346
|
+
mode,
|
|
22340
22347
|
current,
|
|
22341
22348
|
historys
|
|
22342
22349
|
},
|
|
@@ -29792,11 +29799,6 @@ var AmisSteedosFlowForm = function (props) {
|
|
|
29792
29799
|
if (props === void 0) { props = { className: null, body: null }; }
|
|
29793
29800
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
29794
29801
|
return __generator(this, function (_a) {
|
|
29795
|
-
console.log('AmisSteedosFlowForm===>', {
|
|
29796
|
-
type: "container",
|
|
29797
|
-
className: props.className,
|
|
29798
|
-
body: props.body || []
|
|
29799
|
-
});
|
|
29800
29802
|
return [2 /*return*/, {
|
|
29801
29803
|
type: "container",
|
|
29802
29804
|
className: props.className,
|