@steedos-widgets/amis-lib 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/index.esm.js CHANGED
@@ -17882,7 +17882,7 @@ const getInstanceApprovalHistory = async ()=>{
17882
17882
  * @Author: baozhoutao@steedos.com
17883
17883
  * @Date: 2022-09-07 16:20:45
17884
17884
  * @LastEditors: 殷亮辉 yinlianghui@hotoa.com
17885
- * @LastEditTime: 2025-08-29 01:56:00
17885
+ * @LastEditTime: 2025-08-29 21:01:29
17886
17886
  * @Description:
17887
17887
  */
17888
17888
 
@@ -18488,6 +18488,7 @@ const getFormTableView = async (instance) => {
18488
18488
  };
18489
18489
 
18490
18490
  const getFormSteps = async (instance) => {
18491
+ const formMode = instance.form.current.mode || "normal";//normal,horizontal,inline
18491
18492
  const stepsSchema = [];
18492
18493
  let stepFields = [];
18493
18494
  let fields = [];
@@ -18515,11 +18516,16 @@ const getFormSteps = async (instance) => {
18515
18516
  let fieldSchema;
18516
18517
  for (const childField of field.fields) {
18517
18518
  fieldSchema = await getTdInputTpl(childField, true);
18519
+ if (fieldSchema.type === "steedos-field"){
18520
+ fieldSchema.config.amis.mode = formMode;
18521
+ }
18522
+ else {
18523
+ fieldSchema.mode = formMode;
18524
+ }
18518
18525
  stepFields.push(fieldSchema);
18519
18526
  }
18520
18527
  stepsSchema.push({
18521
18528
  "title": field.name,
18522
- "mode": "horizontal",
18523
18529
  "body": stepFields
18524
18530
  });
18525
18531
  }
@@ -18716,7 +18722,7 @@ const getFlowFormSchema = async (instance, box) => {
18716
18722
  return {
18717
18723
  type: "page",
18718
18724
  name: "instancePage",
18719
- className: "steedos-amis-instance-view",
18725
+ className: "steedos-amis-instance-view " + "steedos-instance-style-" + formStyle,
18720
18726
  bodyClassName: "overflow-y-auto h-full steedos-amis-instance-view-body",
18721
18727
  headerClassName: "p-0",
18722
18728
  "title": {
@@ -18747,7 +18753,7 @@ const getFlowFormSchema = async (instance, box) => {
18747
18753
  ".steedos-object-record-detail-header .antd-Grid-col--mdAuto": {
18748
18754
  "padding": "0px !important"
18749
18755
  },
18750
- ".steedos-amis-instance-view .antd-Page-body": {
18756
+ ".steedos-amis-instance-view.steedos-instance-style-table .antd-Page-body": {
18751
18757
  "width": "1024px"
18752
18758
  },
18753
18759
  ".antd-List-placeholder": {
@@ -18983,7 +18989,7 @@ const getOpinionFieldStepsName = (field, top_keywords) => {
18983
18989
  * @Author: baozhoutao@steedos.com
18984
18990
  * @Date: 2022-09-09 17:47:37
18985
18991
  * @LastEditors: 殷亮辉 yinlianghui@hotoa.com
18986
- * @LastEditTime: 2025-08-28 01:47:42
18992
+ * @LastEditTime: 2025-08-29 20:51:53
18987
18993
  * @Description:
18988
18994
  */
18989
18995
 
@@ -19160,6 +19166,7 @@ const getInstanceInfo = async (props) => {
19160
19166
  _id,
19161
19167
  name,
19162
19168
  style,
19169
+ mode,
19163
19170
  current,
19164
19171
  historys
19165
19172
  },