@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
|
@@ -33,7 +33,7 @@ export declare const AmisInstanceDetail: (props: any) => Promise<{
|
|
|
33
33
|
".steedos-object-record-detail-header .antd-Grid-col--mdAuto": {
|
|
34
34
|
padding: string;
|
|
35
35
|
};
|
|
36
|
-
".steedos-amis-instance-view .antd-Page-body": {
|
|
36
|
+
".steedos-amis-instance-view.steedos-instance-style-table .antd-Page-body": {
|
|
37
37
|
width: string;
|
|
38
38
|
};
|
|
39
39
|
".antd-List-placeholder": {
|
|
@@ -587,7 +587,6 @@ export declare const AmisInstanceDetail: (props: any) => Promise<{
|
|
|
587
587
|
className: string;
|
|
588
588
|
steps: {
|
|
589
589
|
title: any;
|
|
590
|
-
mode: string;
|
|
591
590
|
body: {
|
|
592
591
|
label: any;
|
|
593
592
|
name: any;
|
package/dist/amis-object.cjs.js
CHANGED
|
@@ -21087,7 +21087,7 @@ const getInstanceApprovalHistory = async ()=>{
|
|
|
21087
21087
|
* @Author: baozhoutao@steedos.com
|
|
21088
21088
|
* @Date: 2022-09-07 16:20:45
|
|
21089
21089
|
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
21090
|
-
* @LastEditTime: 2025-08-29 01:
|
|
21090
|
+
* @LastEditTime: 2025-08-29 21:01:29
|
|
21091
21091
|
* @Description:
|
|
21092
21092
|
*/
|
|
21093
21093
|
|
|
@@ -21693,6 +21693,7 @@ const getFormTableView = async (instance) => {
|
|
|
21693
21693
|
};
|
|
21694
21694
|
|
|
21695
21695
|
const getFormSteps = async (instance) => {
|
|
21696
|
+
const formMode = instance.form.current.mode || "normal";//normal,horizontal,inline
|
|
21696
21697
|
const stepsSchema = [];
|
|
21697
21698
|
let stepFields = [];
|
|
21698
21699
|
let fields = [];
|
|
@@ -21720,11 +21721,16 @@ const getFormSteps = async (instance) => {
|
|
|
21720
21721
|
let fieldSchema;
|
|
21721
21722
|
for (const childField of field.fields) {
|
|
21722
21723
|
fieldSchema = await getTdInputTpl(childField, true);
|
|
21724
|
+
if (fieldSchema.type === "steedos-field"){
|
|
21725
|
+
fieldSchema.config.amis.mode = formMode;
|
|
21726
|
+
}
|
|
21727
|
+
else {
|
|
21728
|
+
fieldSchema.mode = formMode;
|
|
21729
|
+
}
|
|
21723
21730
|
stepFields.push(fieldSchema);
|
|
21724
21731
|
}
|
|
21725
21732
|
stepsSchema.push({
|
|
21726
21733
|
"title": field.name,
|
|
21727
|
-
"mode": "horizontal",
|
|
21728
21734
|
"body": stepFields
|
|
21729
21735
|
});
|
|
21730
21736
|
}
|
|
@@ -21921,7 +21927,7 @@ const getFlowFormSchema = async (instance$1, box) => {
|
|
|
21921
21927
|
return {
|
|
21922
21928
|
type: "page",
|
|
21923
21929
|
name: "instancePage",
|
|
21924
|
-
className: "steedos-amis-instance-view",
|
|
21930
|
+
className: "steedos-amis-instance-view " + "steedos-instance-style-" + formStyle,
|
|
21925
21931
|
bodyClassName: "overflow-y-auto h-full steedos-amis-instance-view-body",
|
|
21926
21932
|
headerClassName: "p-0",
|
|
21927
21933
|
"title": {
|
|
@@ -21952,7 +21958,7 @@ const getFlowFormSchema = async (instance$1, box) => {
|
|
|
21952
21958
|
".steedos-object-record-detail-header .antd-Grid-col--mdAuto": {
|
|
21953
21959
|
"padding": "0px !important"
|
|
21954
21960
|
},
|
|
21955
|
-
".steedos-amis-instance-view .antd-Page-body": {
|
|
21961
|
+
".steedos-amis-instance-view.steedos-instance-style-table .antd-Page-body": {
|
|
21956
21962
|
"width": "1024px"
|
|
21957
21963
|
},
|
|
21958
21964
|
".antd-List-placeholder": {
|
|
@@ -22188,7 +22194,7 @@ const getOpinionFieldStepsName = (field, top_keywords) => {
|
|
|
22188
22194
|
* @Author: baozhoutao@steedos.com
|
|
22189
22195
|
* @Date: 2022-09-09 17:47:37
|
|
22190
22196
|
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
22191
|
-
* @LastEditTime: 2025-08-
|
|
22197
|
+
* @LastEditTime: 2025-08-29 20:51:53
|
|
22192
22198
|
* @Description:
|
|
22193
22199
|
*/
|
|
22194
22200
|
|
|
@@ -22365,6 +22371,7 @@ const getInstanceInfo = async (props) => {
|
|
|
22365
22371
|
_id,
|
|
22366
22372
|
name,
|
|
22367
22373
|
style,
|
|
22374
|
+
mode,
|
|
22368
22375
|
current,
|
|
22369
22376
|
historys
|
|
22370
22377
|
},
|
|
@@ -29820,11 +29827,6 @@ var AmisSteedosFlowForm = function (props) {
|
|
|
29820
29827
|
if (props === void 0) { props = { className: null, body: null }; }
|
|
29821
29828
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
29822
29829
|
return __generator(this, function (_a) {
|
|
29823
|
-
console.log('AmisSteedosFlowForm===>', {
|
|
29824
|
-
type: "container",
|
|
29825
|
-
className: props.className,
|
|
29826
|
-
body: props.body || []
|
|
29827
|
-
});
|
|
29828
29830
|
return [2 /*return*/, {
|
|
29829
29831
|
type: "container",
|
|
29830
29832
|
className: props.className,
|