@tmagic/editor 1.8.0-manmanyu.22 → 1.8.0-manmanyu.23
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/es/components/CompareForm.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/es/layouts/history-list/HistoryDiffDialog.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/es/layouts/history-list/useHistoryRevert.js +7 -3
- package/dist/themes/magic-admin.css +5 -0
- package/dist/tmagic-editor.umd.cjs +16 -6
- package/package.json +7 -7
- package/src/components/CompareForm.vue +7 -0
- package/src/layouts/history-list/HistoryDiffDialog.vue +11 -1
- package/src/layouts/history-list/useHistoryRevert.ts +4 -0
- package/src/theme/themes/magic-admin/index.scss +13 -0
- package/src/type.ts +6 -0
- package/types/index.d.ts +13 -2
|
@@ -21,6 +21,7 @@ var CompareForm_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
21
21
|
},
|
|
22
22
|
baseFormState: {},
|
|
23
23
|
selfDiffFieldTypes: {},
|
|
24
|
+
size: {},
|
|
24
25
|
loadConfig: {},
|
|
25
26
|
services: {}
|
|
26
27
|
},
|
|
@@ -181,13 +182,15 @@ var CompareForm_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
181
182
|
"label-width": __props.labelWidth,
|
|
182
183
|
"extend-state": mergedExtendState,
|
|
183
184
|
"show-diff": showDiff,
|
|
184
|
-
"self-diff-field-types": __props.selfDiffFieldTypes
|
|
185
|
+
"self-diff-field-types": __props.selfDiffFieldTypes,
|
|
186
|
+
size: __props.size
|
|
185
187
|
}, null, 8, [
|
|
186
188
|
"config",
|
|
187
189
|
"init-values",
|
|
188
190
|
"last-values",
|
|
189
191
|
"label-width",
|
|
190
|
-
"self-diff-field-types"
|
|
192
|
+
"self-diff-field-types",
|
|
193
|
+
"size"
|
|
191
194
|
])) : createCommentVNode("v-if", true)], 4);
|
|
192
195
|
};
|
|
193
196
|
}
|
package/dist/es/layouts/history-list/HistoryDiffDialog.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -28,6 +28,7 @@ var HistoryDiffDialog_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*
|
|
|
28
28
|
extendState: {},
|
|
29
29
|
loadConfig: {},
|
|
30
30
|
width: { default: "900px" },
|
|
31
|
+
size: {},
|
|
31
32
|
isConfirm: { type: Boolean },
|
|
32
33
|
onConfirm: {},
|
|
33
34
|
selfDiffFieldTypes: {},
|
|
@@ -258,6 +259,7 @@ var HistoryDiffDialog_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*
|
|
|
258
259
|
"load-config": __props.loadConfig,
|
|
259
260
|
"self-diff-field-types": __props.selfDiffFieldTypes,
|
|
260
261
|
services: props.services,
|
|
262
|
+
size: props.size,
|
|
261
263
|
height: "70vh"
|
|
262
264
|
}, null, 8, [
|
|
263
265
|
"category",
|
|
@@ -269,7 +271,8 @@ var HistoryDiffDialog_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*
|
|
|
269
271
|
"extend-state",
|
|
270
272
|
"load-config",
|
|
271
273
|
"self-diff-field-types",
|
|
272
|
-
"services"
|
|
274
|
+
"services",
|
|
275
|
+
"size"
|
|
273
276
|
])) : (openBlock(), createBlock(CodeEditor_default, {
|
|
274
277
|
key: 2,
|
|
275
278
|
type: "diff",
|
|
@@ -48,6 +48,7 @@ var mountHistoryDiffDialog = async (options) => {
|
|
|
48
48
|
selfDiffFieldTypes: options.selfDiffFieldTypes,
|
|
49
49
|
compareFormState: options.compareFormState,
|
|
50
50
|
width: options.width,
|
|
51
|
+
size: options.size ?? options.services?.uiService?.get("propsPanelSize"),
|
|
51
52
|
onClose: options.onClose
|
|
52
53
|
});
|
|
53
54
|
if (options.appContext) Object.assign(app._context, options.appContext);
|
|
@@ -148,7 +149,8 @@ var useHistoryRevert = (options = {}, services) => {
|
|
|
148
149
|
extendState,
|
|
149
150
|
services,
|
|
150
151
|
...extra,
|
|
151
|
-
width: extra?.width ?? dialogWidth
|
|
152
|
+
width: extra?.width ?? dialogWidth,
|
|
153
|
+
size: extra?.size
|
|
152
154
|
});
|
|
153
155
|
return confirmRevert();
|
|
154
156
|
};
|
|
@@ -275,7 +277,8 @@ var useHistoryRevert = (options = {}, services) => {
|
|
|
275
277
|
if (!await runRevert(revertOptions.diffPayload ?? null, {
|
|
276
278
|
loadConfig: revertOptions.loadConfig,
|
|
277
279
|
selfDiffFieldTypes: revertOptions.selfDiffFieldTypes,
|
|
278
|
-
width: revertOptions.width
|
|
280
|
+
width: revertOptions.width,
|
|
281
|
+
size: revertOptions.size
|
|
279
282
|
})) return null;
|
|
280
283
|
return await revertOptions.revert();
|
|
281
284
|
};
|
|
@@ -289,7 +292,8 @@ var useHistoryRevert = (options = {}, services) => {
|
|
|
289
292
|
extendState,
|
|
290
293
|
services,
|
|
291
294
|
...extra,
|
|
292
|
-
width: extra?.width ?? dialogWidth
|
|
295
|
+
width: extra?.width ?? dialogWidth,
|
|
296
|
+
size: extra?.size
|
|
293
297
|
});
|
|
294
298
|
};
|
|
295
299
|
return {
|
|
@@ -2788,6 +2788,7 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
2788
2788
|
}
|
|
2789
2789
|
.m-editor.m-editor--magic-admin .m-editor-sidebar .m-editor-sidebar-header .m-editor-sidebar-header-item > i {
|
|
2790
2790
|
color: #84909d;
|
|
2791
|
+
font-size: 20px;
|
|
2791
2792
|
}
|
|
2792
2793
|
.m-editor.m-editor--magic-admin .m-editor-sidebar .m-editor-sidebar-header .m-editor-sidebar-header-item.is-active {
|
|
2793
2794
|
background-color: var(--el-button-hover-bg-color, rgb(230, 238, 253));
|
|
@@ -2887,4 +2888,8 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
2887
2888
|
}
|
|
2888
2889
|
.m-editor.m-theme--magic-admin .magic-right-panel-tabs-top > .el-tabs > .el-tabs__header .el-tabs__nav-wrap.is-top::after {
|
|
2889
2890
|
display: none;
|
|
2891
|
+
}
|
|
2892
|
+
|
|
2893
|
+
.m-editor.m-theme--magic-admin .m-editor-nav-menu .menu-item > button > i {
|
|
2894
|
+
font-size: 16px;
|
|
2890
2895
|
}
|
|
@@ -11309,6 +11309,7 @@
|
|
|
11309
11309
|
},
|
|
11310
11310
|
baseFormState: {},
|
|
11311
11311
|
selfDiffFieldTypes: {},
|
|
11312
|
+
size: {},
|
|
11312
11313
|
loadConfig: {},
|
|
11313
11314
|
services: {}
|
|
11314
11315
|
},
|
|
@@ -11469,13 +11470,15 @@
|
|
|
11469
11470
|
"label-width": __props.labelWidth,
|
|
11470
11471
|
"extend-state": mergedExtendState,
|
|
11471
11472
|
"show-diff": showDiff,
|
|
11472
|
-
"self-diff-field-types": __props.selfDiffFieldTypes
|
|
11473
|
+
"self-diff-field-types": __props.selfDiffFieldTypes,
|
|
11474
|
+
size: __props.size
|
|
11473
11475
|
}, null, 8, [
|
|
11474
11476
|
"config",
|
|
11475
11477
|
"init-values",
|
|
11476
11478
|
"last-values",
|
|
11477
11479
|
"label-width",
|
|
11478
|
-
"self-diff-field-types"
|
|
11480
|
+
"self-diff-field-types",
|
|
11481
|
+
"size"
|
|
11479
11482
|
])) : (0, vue.createCommentVNode)("v-if", true)], 4);
|
|
11480
11483
|
};
|
|
11481
11484
|
}
|
|
@@ -11520,6 +11523,7 @@
|
|
|
11520
11523
|
extendState: {},
|
|
11521
11524
|
loadConfig: {},
|
|
11522
11525
|
width: { default: "900px" },
|
|
11526
|
+
size: {},
|
|
11523
11527
|
isConfirm: { type: Boolean },
|
|
11524
11528
|
onConfirm: {},
|
|
11525
11529
|
selfDiffFieldTypes: {},
|
|
@@ -11750,6 +11754,7 @@
|
|
|
11750
11754
|
"load-config": __props.loadConfig,
|
|
11751
11755
|
"self-diff-field-types": __props.selfDiffFieldTypes,
|
|
11752
11756
|
services: props.services,
|
|
11757
|
+
size: props.size,
|
|
11753
11758
|
height: "70vh"
|
|
11754
11759
|
}, null, 8, [
|
|
11755
11760
|
"category",
|
|
@@ -11761,7 +11766,8 @@
|
|
|
11761
11766
|
"extend-state",
|
|
11762
11767
|
"load-config",
|
|
11763
11768
|
"self-diff-field-types",
|
|
11764
|
-
"services"
|
|
11769
|
+
"services",
|
|
11770
|
+
"size"
|
|
11765
11771
|
])) : ((0, vue.openBlock)(), (0, vue.createBlock)(CodeEditor_default, {
|
|
11766
11772
|
key: 2,
|
|
11767
11773
|
type: "diff",
|
|
@@ -11840,6 +11846,7 @@
|
|
|
11840
11846
|
selfDiffFieldTypes: options.selfDiffFieldTypes,
|
|
11841
11847
|
compareFormState: options.compareFormState,
|
|
11842
11848
|
width: options.width,
|
|
11849
|
+
size: options.size ?? options.services?.uiService?.get("propsPanelSize"),
|
|
11843
11850
|
onClose: options.onClose
|
|
11844
11851
|
});
|
|
11845
11852
|
if (options.appContext) Object.assign(app._context, options.appContext);
|
|
@@ -11940,7 +11947,8 @@
|
|
|
11940
11947
|
extendState,
|
|
11941
11948
|
services,
|
|
11942
11949
|
...extra,
|
|
11943
|
-
width: extra?.width ?? dialogWidth
|
|
11950
|
+
width: extra?.width ?? dialogWidth,
|
|
11951
|
+
size: extra?.size
|
|
11944
11952
|
});
|
|
11945
11953
|
return confirmRevert();
|
|
11946
11954
|
};
|
|
@@ -12067,7 +12075,8 @@
|
|
|
12067
12075
|
if (!await runRevert(revertOptions.diffPayload ?? null, {
|
|
12068
12076
|
loadConfig: revertOptions.loadConfig,
|
|
12069
12077
|
selfDiffFieldTypes: revertOptions.selfDiffFieldTypes,
|
|
12070
|
-
width: revertOptions.width
|
|
12078
|
+
width: revertOptions.width,
|
|
12079
|
+
size: revertOptions.size
|
|
12071
12080
|
})) return null;
|
|
12072
12081
|
return await revertOptions.revert();
|
|
12073
12082
|
};
|
|
@@ -12081,7 +12090,8 @@
|
|
|
12081
12090
|
extendState,
|
|
12082
12091
|
services,
|
|
12083
12092
|
...extra,
|
|
12084
|
-
width: extra?.width ?? dialogWidth
|
|
12093
|
+
width: extra?.width ?? dialogWidth,
|
|
12094
|
+
size: extra?.size
|
|
12085
12095
|
});
|
|
12086
12096
|
};
|
|
12087
12097
|
return {
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.8.0-manmanyu.
|
|
2
|
+
"version": "1.8.0-manmanyu.23",
|
|
3
3
|
"name": "@tmagic/editor",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": [
|
|
@@ -58,11 +58,11 @@
|
|
|
58
58
|
"moveable": "^0.53.0",
|
|
59
59
|
"serialize-javascript": "^7.0.0",
|
|
60
60
|
"sortablejs": "^1.15.6",
|
|
61
|
-
"@tmagic/
|
|
62
|
-
"@tmagic/
|
|
63
|
-
"@tmagic/
|
|
64
|
-
"@tmagic/utils": "1.8.0-manmanyu.
|
|
65
|
-
"@tmagic/
|
|
61
|
+
"@tmagic/design": "1.8.0-manmanyu.23",
|
|
62
|
+
"@tmagic/form": "1.8.0-manmanyu.23",
|
|
63
|
+
"@tmagic/table": "1.8.0-manmanyu.23",
|
|
64
|
+
"@tmagic/utils": "1.8.0-manmanyu.23",
|
|
65
|
+
"@tmagic/stage": "1.8.0-manmanyu.23"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@types/events": "^3.0.3",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"type-fest": "^5.2.0",
|
|
77
77
|
"typescript": "^6.0.3",
|
|
78
78
|
"vue": "^3.5.38",
|
|
79
|
-
"@tmagic/core": "1.8.0-manmanyu.
|
|
79
|
+
"@tmagic/core": "1.8.0-manmanyu.23"
|
|
80
80
|
},
|
|
81
81
|
"peerDependenciesMeta": {
|
|
82
82
|
"typescript": {
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
:extend-state="mergedExtendState"
|
|
14
14
|
:show-diff="showDiff"
|
|
15
15
|
:self-diff-field-types="selfDiffFieldTypes"
|
|
16
|
+
:size="size"
|
|
16
17
|
></MForm>
|
|
17
18
|
</div>
|
|
18
19
|
</template>
|
|
@@ -22,6 +23,7 @@ import { computed, inject, provide, type Ref, ref, type ShallowRef, useTemplateR
|
|
|
22
23
|
import { isEqual } from 'lodash-es';
|
|
23
24
|
|
|
24
25
|
import { type CodeBlockContent, type DataSourceSchema, HookType, type MNode } from '@tmagic/core';
|
|
26
|
+
import { type FieldSize } from '@tmagic/design';
|
|
25
27
|
import { type FormConfig, type FormState, type FormValue, MForm } from '@tmagic/form';
|
|
26
28
|
|
|
27
29
|
import type { CompareCategory, CompareFormLoadConfig, Services } from '@editor/type';
|
|
@@ -68,6 +70,11 @@ const props = withDefaults(
|
|
|
68
70
|
baseFormState?: FormState;
|
|
69
71
|
/** 需要走 self diff 的字段类型(例如 mod-cond)。 */
|
|
70
72
|
selfDiffFieldTypes?: string[];
|
|
73
|
+
/**
|
|
74
|
+
* 表单内组件的尺寸(透传给 MForm 的 `size`),可选 'large' | 'default' | 'small'。
|
|
75
|
+
* 缺省时使用 MForm 内置默认尺寸。
|
|
76
|
+
*/
|
|
77
|
+
size?: FieldSize;
|
|
71
78
|
/**
|
|
72
79
|
* 自定义 FormConfig 加载逻辑。传入后将接管内置的按 `category`(node/data-source/code-block)
|
|
73
80
|
* 取配置逻辑,调用方可根据业务自行返回(或异步返回)表单配置。可通过
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
:load-config="loadConfig"
|
|
49
49
|
:self-diff-field-types="selfDiffFieldTypes"
|
|
50
50
|
:services="props.services"
|
|
51
|
+
:size="props.size"
|
|
51
52
|
height="70vh"
|
|
52
53
|
/>
|
|
53
54
|
|
|
@@ -77,7 +78,14 @@
|
|
|
77
78
|
import { computed, ref, watch } from 'vue';
|
|
78
79
|
import { isEqual } from 'lodash-es';
|
|
79
80
|
|
|
80
|
-
import {
|
|
81
|
+
import {
|
|
82
|
+
type FieldSize,
|
|
83
|
+
TMagicButton,
|
|
84
|
+
TMagicDialog,
|
|
85
|
+
TMagicRadioButton,
|
|
86
|
+
TMagicRadioGroup,
|
|
87
|
+
TMagicTag,
|
|
88
|
+
} from '@tmagic/design';
|
|
81
89
|
import type { FormState } from '@tmagic/form';
|
|
82
90
|
|
|
83
91
|
import CompareForm from '@editor/components/CompareForm.vue';
|
|
@@ -104,6 +112,8 @@ const props = withDefaults(
|
|
|
104
112
|
*/
|
|
105
113
|
loadConfig?: CompareFormLoadConfig;
|
|
106
114
|
width?: string;
|
|
115
|
+
/** 差异对比表单内组件的尺寸(透传给 CompareForm 的 `size`),可选 'large' | 'default' | 'small'。 */
|
|
116
|
+
size?: FieldSize;
|
|
107
117
|
isConfirm?: boolean;
|
|
108
118
|
onConfirm?: () => void;
|
|
109
119
|
selfDiffFieldTypes?: string[];
|
|
@@ -95,6 +95,7 @@ const mountHistoryDiffDialog = async (
|
|
|
95
95
|
selfDiffFieldTypes: options.selfDiffFieldTypes,
|
|
96
96
|
compareFormState: options.compareFormState,
|
|
97
97
|
width: options.width,
|
|
98
|
+
size: options.size ?? options.services?.uiService?.get('propsPanelSize'),
|
|
98
99
|
onClose: options.onClose,
|
|
99
100
|
});
|
|
100
101
|
if (options.appContext) {
|
|
@@ -223,6 +224,7 @@ export const useHistoryRevert = (options: UseHistoryRevertOptions = {}, services
|
|
|
223
224
|
services,
|
|
224
225
|
...extra,
|
|
225
226
|
width: extra?.width ?? dialogWidth,
|
|
227
|
+
size: extra?.size,
|
|
226
228
|
});
|
|
227
229
|
}
|
|
228
230
|
return confirmRevert();
|
|
@@ -382,6 +384,7 @@ export const useHistoryRevert = (options: UseHistoryRevertOptions = {}, services
|
|
|
382
384
|
loadConfig: revertOptions.loadConfig,
|
|
383
385
|
selfDiffFieldTypes: revertOptions.selfDiffFieldTypes,
|
|
384
386
|
width: revertOptions.width,
|
|
387
|
+
size: revertOptions.size,
|
|
385
388
|
});
|
|
386
389
|
if (!confirmed) return null;
|
|
387
390
|
return await revertOptions.revert();
|
|
@@ -399,6 +402,7 @@ export const useHistoryRevert = (options: UseHistoryRevertOptions = {}, services
|
|
|
399
402
|
services,
|
|
400
403
|
...extra,
|
|
401
404
|
width: extra?.width ?? dialogWidth,
|
|
405
|
+
size: extra?.size,
|
|
402
406
|
});
|
|
403
407
|
};
|
|
404
408
|
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
}
|
|
51
51
|
> i {
|
|
52
52
|
color: #84909d;
|
|
53
|
+
font-size: 20px;
|
|
53
54
|
}
|
|
54
55
|
&.is-active {
|
|
55
56
|
background-color: var(--el-button-hover-bg-color, rgb(230, 238, 253));
|
|
@@ -181,3 +182,15 @@
|
|
|
181
182
|
}
|
|
182
183
|
}
|
|
183
184
|
}
|
|
185
|
+
|
|
186
|
+
.m-editor.m-theme--magic-admin {
|
|
187
|
+
.m-editor-nav-menu {
|
|
188
|
+
.menu-item {
|
|
189
|
+
> button {
|
|
190
|
+
> i {
|
|
191
|
+
font-size: 16px;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
package/src/type.ts
CHANGED
|
@@ -33,6 +33,7 @@ import type {
|
|
|
33
33
|
MPage,
|
|
34
34
|
MPageFragment,
|
|
35
35
|
} from '@tmagic/core';
|
|
36
|
+
import type { FieldSize } from '@tmagic/design';
|
|
36
37
|
import type { ChangeRecord, FormConfig, FormState, TableColumnConfig, TypeFunction } from '@tmagic/form';
|
|
37
38
|
import type StageCore from '@tmagic/stage';
|
|
38
39
|
import type {
|
|
@@ -1454,6 +1455,11 @@ export interface CustomDiffFormOptions {
|
|
|
1454
1455
|
* 如 `'1200px'` / `'80%'`。缺省时使用弹窗内置默认宽度(900px)。
|
|
1455
1456
|
*/
|
|
1456
1457
|
width?: string;
|
|
1458
|
+
/**
|
|
1459
|
+
* 差异 / 确认回滚弹窗内 form 表单的尺寸(透传给 CompareForm 的 `size`),
|
|
1460
|
+
* 可选 `'large' | 'default' | 'small'`,缺省时使用表单内置默认尺寸。
|
|
1461
|
+
*/
|
|
1462
|
+
size?: FieldSize;
|
|
1457
1463
|
}
|
|
1458
1464
|
|
|
1459
1465
|
/**
|
package/types/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import formPlugin, { CascaderOption, ChangeRecord, CodeSelectColConfig, CodeSelectConfig, CondOpSelectConfig, ContainerChangeEventData, DataSourceFieldSelectConfig, DataSourceFieldsConfig, DataSourceInputConfig, DataSourceMethodSelectConfig, DataSourceMethodsConfig, DataSourceMocksConfig, DataSourceSelect, DisplayCondsConfig, EventSelectConfig, FieldProps, FormConfig, FormInstallOptions, FormState, FormValue, KeyValueConfig, MForm, PageFragmentSelectConfig, TabPaneConfig, TableColumnConfig, TypeFunction } from "@tmagic/form";
|
|
2
2
|
import tablePlugin from "@tmagic/table";
|
|
3
3
|
import StageCore, { CanDropIn, ContainerHighlightType, CustomizeMoveableOptions, GuidesOptions, RenderType, UpdateDragEl, default as StageCore$1 } from "@tmagic/stage";
|
|
4
|
-
import designPlugin, { ButtonProps, DesignPluginOptions } from "@tmagic/design";
|
|
4
|
+
import designPlugin, { ButtonProps, DesignPluginOptions, FieldSize } from "@tmagic/design";
|
|
5
5
|
import Gesto, { OnDrag, OnDrag as OnDrag$1 } from "gesto";
|
|
6
6
|
import { CodeBlockContent, CodeBlockDSL, DataSchema, DataSourceFieldType, DataSourceSchema, DepData, DepExtendedData, DepTargetType, DepTargetType as DepTargetType$1, DisplayCond, EventOption, Id, MApp, MContainer, MNode, MPage, MPageFragment, NodeType, Target, TargetOptions } from "@tmagic/core";
|
|
7
7
|
import { App, AppContext, CSSProperties, Component, ComputedRef, Ref, ShallowRef } from "vue";
|
|
@@ -2686,6 +2686,11 @@ interface CustomDiffFormOptions {
|
|
|
2686
2686
|
* 如 `'1200px'` / `'80%'`。缺省时使用弹窗内置默认宽度(900px)。
|
|
2687
2687
|
*/
|
|
2688
2688
|
width?: string;
|
|
2689
|
+
/**
|
|
2690
|
+
* 差异 / 确认回滚弹窗内 form 表单的尺寸(透传给 CompareForm 的 `size`),
|
|
2691
|
+
* 可选 `'large' | 'default' | 'small'`,缺省时使用表单内置默认尺寸。
|
|
2692
|
+
*/
|
|
2693
|
+
size?: FieldSize;
|
|
2689
2694
|
}
|
|
2690
2695
|
/**
|
|
2691
2696
|
* 业务自有历史复用「单步回滚」交互({@link useHistoryRevert} 的 `confirmAndRevert`)的入参。
|
|
@@ -6123,6 +6128,11 @@ type __VLS_Props$8 = {
|
|
|
6123
6128
|
*/
|
|
6124
6129
|
baseFormState?: FormState; /** 需要走 self diff 的字段类型(例如 mod-cond)。 */
|
|
6125
6130
|
selfDiffFieldTypes?: string[];
|
|
6131
|
+
/**
|
|
6132
|
+
* 表单内组件的尺寸(透传给 MForm 的 `size`),可选 'large' | 'default' | 'small'。
|
|
6133
|
+
* 缺省时使用 MForm 内置默认尺寸。
|
|
6134
|
+
*/
|
|
6135
|
+
size?: FieldSize;
|
|
6126
6136
|
/**
|
|
6127
6137
|
* 自定义 FormConfig 加载逻辑。传入后将接管内置的按 `category`(node/data-source/code-block)
|
|
6128
6138
|
* 取配置逻辑,调用方可根据业务自行返回(或异步返回)表单配置。可通过
|
|
@@ -6267,7 +6277,8 @@ type __VLS_Props$7 = {
|
|
|
6267
6277
|
* 取配置逻辑,可通过 `ctx.defaultLoadConfig()` 复用默认结果再做二次加工。
|
|
6268
6278
|
*/
|
|
6269
6279
|
loadConfig?: CompareFormLoadConfig;
|
|
6270
|
-
width?: string;
|
|
6280
|
+
width?: string; /** 差异对比表单内组件的尺寸(透传给 CompareForm 的 `size`),可选 'large' | 'default' | 'small'。 */
|
|
6281
|
+
size?: FieldSize;
|
|
6271
6282
|
isConfirm?: boolean;
|
|
6272
6283
|
onConfirm?: () => void;
|
|
6273
6284
|
selfDiffFieldTypes?: string[];
|