@tmagic/editor 1.8.0-beta.12 → 1.8.0-beta.14
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/Editor.vue_vue_type_script_setup_true_lang.js +15 -3
- package/dist/es/components/CodeBlockEditor.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/components/CompareForm.vue_vue_type_script_setup_true_lang.js +13 -121
- package/dist/es/components/ContentMenu.vue_vue_type_script_setup_true_lang.js +11 -4
- package/dist/es/components/FloatingBox.vue_vue_type_script_setup_true_lang.js +7 -2
- package/dist/es/components/ViewForm.js +5 -0
- package/dist/es/components/ViewForm.vue_vue_type_script_setup_true_lang.js +58 -0
- package/dist/es/fields/Code.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/es/fields/CodeLink.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/es/fields/CodeSelect.vue_vue_type_script_setup_true_lang.js +80 -55
- package/dist/es/fields/CodeSelectCol.vue_vue_type_script_setup_true_lang.js +5 -1
- package/dist/es/fields/CondOpSelect.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/es/fields/DataSourceFieldSelect/Index.vue_vue_type_script_setup_true_lang.js +10 -7
- package/dist/es/fields/DataSourceFields.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/es/fields/DataSourceInput.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/es/fields/DataSourceMethodSelect.vue_vue_type_script_setup_true_name_true_lang.js +4 -1
- package/dist/es/fields/DataSourceMethods.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/es/fields/DataSourceMocks.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/es/fields/DataSourceSelect.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/es/fields/DisplayConds.vue_vue_type_script_setup_true_lang.js +8 -2
- package/dist/es/fields/EventSelect.vue_vue_type_script_setup_true_lang.js +99 -64
- package/dist/es/fields/KeyValue.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/es/fields/PageFragmentSelect.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/es/fields/StyleSetter/Index.vue_vue_type_script_setup_true_lang.js +5 -4
- package/dist/es/fields/StyleSetter/components/BackgroundPosition.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/es/fields/StyleSetter/components/Border.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/es/fields/StyleSetter/icons/align-items/Center.js +31 -0
- package/dist/es/fields/StyleSetter/icons/align-items/FlexEnd.js +31 -0
- package/dist/es/fields/StyleSetter/icons/align-items/FlexStart.js +31 -0
- package/dist/es/fields/StyleSetter/icons/align-items/SpaceAround.js +50 -0
- package/dist/es/fields/StyleSetter/icons/align-items/SpaceBetween.js +50 -0
- package/dist/es/fields/StyleSetter/icons/background-repeat/NoRepeat.js +6 -6
- package/dist/es/fields/StyleSetter/icons/background-repeat/Repeat.js +5 -2
- package/dist/es/fields/StyleSetter/icons/background-repeat/RepeatX.js +28 -5
- package/dist/es/fields/StyleSetter/icons/background-repeat/RepeatY.js +31 -5
- package/dist/es/fields/StyleSetter/icons/flex-direction/Column.js +10 -2
- package/dist/es/fields/StyleSetter/icons/flex-direction/ColumnReverse.js +10 -2
- package/dist/es/fields/StyleSetter/icons/flex-direction/Row.js +10 -2
- package/dist/es/fields/StyleSetter/icons/flex-direction/RowReverse.js +10 -2
- package/dist/es/fields/StyleSetter/icons/justify-content/Center.js +16 -2
- package/dist/es/fields/StyleSetter/icons/justify-content/FlexEnd.js +18 -2
- package/dist/es/fields/StyleSetter/icons/justify-content/FlexStart.js +18 -2
- package/dist/es/fields/StyleSetter/icons/justify-content/SpaceAround.js +36 -2
- package/dist/es/fields/StyleSetter/icons/justify-content/SpaceBetween.js +32 -2
- package/dist/es/fields/StyleSetter/pro/Background.vue_vue_type_script_setup_true_lang.js +7 -6
- package/dist/es/fields/StyleSetter/pro/Font.vue_vue_type_script_setup_true_lang.js +6 -3
- package/dist/es/fields/StyleSetter/pro/Layout.vue_vue_type_script_setup_true_lang.js +47 -25
- package/dist/es/fields/UISelect.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/es/hooks/use-compare-form.js +119 -0
- package/dist/es/icons/DatasourceIcon.js +17 -0
- package/dist/es/index.js +6 -4
- package/dist/es/layouts/Framework.vue_vue_type_script_setup_true_lang.js +14 -10
- package/dist/es/layouts/props-panel/PropsPanel.vue_vue_type_script_setup_true_lang.js +10 -1
- package/dist/es/layouts/sidebar/Sidebar.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/es/plugin.js +2 -1
- package/dist/es/services/codeBlock.js +1 -1
- package/dist/es/services/editor.js +54 -13
- package/dist/es/services/history.js +1 -1
- package/dist/es/services/props.js +1 -1
- package/dist/es/services/storage.js +1 -1
- package/dist/es/services/ui.js +5 -3
- package/dist/es/style.css +303 -40
- package/dist/es/utils/config.js +4 -1
- package/dist/es/utils/const.js +2 -2
- package/dist/es/utils/props.js +69 -30
- package/dist/style.css +303 -40
- package/dist/themes/magic-admin.css +3000 -0
- package/dist/tmagic-editor.umd.cjs +1748 -1079
- package/package.json +7 -7
- package/src/Editor.vue +22 -1
- package/src/components/CompareForm.vue +15 -202
- package/src/components/ContentMenu.vue +10 -2
- package/src/components/FloatingBox.vue +8 -2
- package/src/components/ViewForm.vue +55 -0
- package/src/editorProps.ts +4 -0
- package/src/fields/CodeSelect.vue +54 -43
- package/src/fields/CodeSelectCol.vue +1 -0
- package/src/fields/DataSourceFieldSelect/Index.vue +14 -5
- package/src/fields/DisplayConds.vue +4 -1
- package/src/fields/EventSelect.vue +56 -32
- package/src/fields/StyleSetter/Index.vue +1 -4
- package/src/fields/StyleSetter/components/Border.vue +1 -1
- package/src/fields/StyleSetter/icons/align-items/Center.vue +19 -0
- package/src/fields/StyleSetter/icons/align-items/FlexEnd.vue +19 -0
- package/src/fields/StyleSetter/icons/align-items/FlexStart.vue +19 -0
- package/src/fields/StyleSetter/icons/align-items/SpaceAround.vue +34 -0
- package/src/fields/StyleSetter/icons/align-items/SpaceBetween.vue +34 -0
- package/src/fields/StyleSetter/icons/align-items/index.ts +5 -0
- package/src/fields/StyleSetter/icons/background-repeat/NoRepeat.vue +20 -4
- package/src/fields/StyleSetter/icons/background-repeat/Repeat.vue +10 -28
- package/src/fields/StyleSetter/icons/background-repeat/RepeatX.vue +4 -5
- package/src/fields/StyleSetter/icons/background-repeat/RepeatY.vue +4 -5
- package/src/fields/StyleSetter/icons/flex-direction/Column.vue +4 -3
- package/src/fields/StyleSetter/icons/flex-direction/ColumnReverse.vue +4 -3
- package/src/fields/StyleSetter/icons/flex-direction/Row.vue +4 -3
- package/src/fields/StyleSetter/icons/flex-direction/RowReverse.vue +4 -3
- package/src/fields/StyleSetter/icons/justify-content/Center.vue +5 -2
- package/src/fields/StyleSetter/icons/justify-content/FlexEnd.vue +15 -2
- package/src/fields/StyleSetter/icons/justify-content/FlexStart.vue +15 -2
- package/src/fields/StyleSetter/icons/justify-content/SpaceAround.vue +28 -3
- package/src/fields/StyleSetter/icons/justify-content/SpaceBetween.vue +28 -2
- package/src/fields/StyleSetter/pro/Background.vue +7 -2
- package/src/fields/StyleSetter/pro/Font.vue +3 -3
- package/src/fields/StyleSetter/pro/Layout.vue +98 -28
- package/src/hooks/index.ts +1 -0
- package/src/hooks/use-compare-form.ts +187 -0
- package/src/icons/DatasourceIcon.vue +7 -0
- package/src/index.ts +4 -0
- package/src/layouts/Framework.vue +7 -1
- package/src/layouts/props-panel/PropsPanel.vue +19 -1
- package/src/layouts/sidebar/Sidebar.vue +3 -3
- package/src/plugin.ts +3 -2
- package/src/services/editor.ts +54 -11
- package/src/services/ui.ts +20 -5
- package/src/theme/code-block.scss +37 -0
- package/src/theme/common/var.scss +1 -1
- package/src/theme/component-list-panel.scss +2 -2
- package/src/theme/data-source-field.scss +4 -0
- package/src/theme/display-conds.scss +11 -0
- package/src/theme/event.scss +58 -4
- package/src/theme/framework.scss +4 -1
- package/src/theme/history-list-panel.scss +9 -9
- package/src/theme/nav-menu.scss +5 -1
- package/src/theme/props-panel.scss +2 -1
- package/src/theme/style-setter/border.scss +14 -5
- package/src/theme/theme.scss +1 -0
- package/src/theme/themes/magic-admin/index.scss +214 -0
- package/src/theme/ui-select.scss +1 -1
- package/src/type.ts +79 -6
- package/src/utils/config.ts +9 -1
- package/src/utils/const.ts +3 -2
- package/src/utils/props.ts +51 -9
- package/types/index.d.ts +314 -203
package/types/index.d.ts
CHANGED
|
@@ -302,7 +302,7 @@ declare class CodeBlock extends BaseService {
|
|
|
302
302
|
private applyHistoryStep;
|
|
303
303
|
}
|
|
304
304
|
type CodeBlockService = CodeBlock;
|
|
305
|
-
declare const _default$
|
|
305
|
+
declare const _default$40: CodeBlock;
|
|
306
306
|
//#endregion
|
|
307
307
|
//#region temp/packages/editor/src/services/componentList.d.ts
|
|
308
308
|
declare class ComponentList extends BaseService {
|
|
@@ -317,7 +317,7 @@ declare class ComponentList extends BaseService {
|
|
|
317
317
|
destroy(): void;
|
|
318
318
|
}
|
|
319
319
|
type ComponentListService = ComponentList;
|
|
320
|
-
declare const _default$
|
|
320
|
+
declare const _default$41: ComponentList;
|
|
321
321
|
//#endregion
|
|
322
322
|
//#region temp/packages/editor/src/services/dataSource.d.ts
|
|
323
323
|
interface State$2 {
|
|
@@ -501,7 +501,7 @@ declare class DataSource extends BaseService {
|
|
|
501
501
|
private applyHistoryStep;
|
|
502
502
|
}
|
|
503
503
|
type DataSourceService = DataSource;
|
|
504
|
-
declare const _default$
|
|
504
|
+
declare const _default$42: DataSource;
|
|
505
505
|
//#endregion
|
|
506
506
|
//#region temp/packages/editor/src/services/dep.d.ts
|
|
507
507
|
interface DepEvents {
|
|
@@ -554,7 +554,7 @@ declare class Dep extends BaseService {
|
|
|
554
554
|
private enqueueTask;
|
|
555
555
|
}
|
|
556
556
|
type DepService = Dep;
|
|
557
|
-
declare const _default$
|
|
557
|
+
declare const _default$44: Dep;
|
|
558
558
|
//#endregion
|
|
559
559
|
//#region temp/packages/editor/src/services/editor.d.ts
|
|
560
560
|
declare class Editor extends BaseService {
|
|
@@ -955,10 +955,12 @@ declare class Editor extends BaseService {
|
|
|
955
955
|
/**
|
|
956
956
|
* 应用历史操作(撤销 / 重做)
|
|
957
957
|
*
|
|
958
|
-
*
|
|
959
|
-
* `doNotSelect / doNotSwitchPage`
|
|
958
|
+
* 删除 / 更新类修改走 `editor.remove / update`,并通过 `doNotPushHistory` 阻止再次入栈、
|
|
959
|
+
* `doNotSelect / doNotSwitchPage` 让选区由方法末尾的统一逻辑兜底;
|
|
960
|
+
* 「重新插回节点」(撤销 remove / 重做 add)需按 step 记录的 parentId / index 精确还原,
|
|
961
|
+
* 不走 this.add,由手工 splice + stage.add 完成后补发等价的 add / change 事件(见 emitHistoryInsertEvents)。
|
|
960
962
|
*
|
|
961
|
-
*
|
|
963
|
+
* 注意:这些路径都会发出 add / remove / update / change 事件,业务侧若需要区分"用户操作"与"撤销重做触发",
|
|
962
964
|
* 请监听 `history-change` 事件配合判断。
|
|
963
965
|
*
|
|
964
966
|
* @param step 操作记录
|
|
@@ -966,9 +968,14 @@ declare class Editor extends BaseService {
|
|
|
966
968
|
*/
|
|
967
969
|
private applyHistoryOp;
|
|
968
970
|
private selectedConfigExceptionHandler;
|
|
971
|
+
/**
|
|
972
|
+
* 撤销 remove / 重做 add 通过手工 splice 按 step 记录的 parentId / index 精确还原节点(不走 this.add,原因见调用处注释),
|
|
973
|
+
* 这里补齐与 this.add 等价的 add / change 事件,保证撤销/重做路径的事件行为与正向操作一致。
|
|
974
|
+
*/
|
|
975
|
+
private emitHistoryInsertEvents;
|
|
969
976
|
}
|
|
970
977
|
type EditorService = Editor;
|
|
971
|
-
declare const _default$
|
|
978
|
+
declare const _default$45: Editor;
|
|
972
979
|
//#endregion
|
|
973
980
|
//#region temp/packages/editor/src/services/events.d.ts
|
|
974
981
|
declare const canUsePluginMethods$6: {
|
|
@@ -990,7 +997,7 @@ declare class Events extends BaseService {
|
|
|
990
997
|
usePlugin(options: AsyncHookPlugin<AsyncMethodName$3, Events> & SyncHookPlugin<SyncMethodName$4, Events>): void;
|
|
991
998
|
}
|
|
992
999
|
type EventsService = Events;
|
|
993
|
-
declare const _default$
|
|
1000
|
+
declare const _default$46: Events;
|
|
994
1001
|
//#endregion
|
|
995
1002
|
//#region temp/packages/editor/src/utils/undo-redo.d.ts
|
|
996
1003
|
/**
|
|
@@ -1306,7 +1313,7 @@ declare class History extends BaseService {
|
|
|
1306
1313
|
private resolveDbName;
|
|
1307
1314
|
}
|
|
1308
1315
|
type HistoryService = History;
|
|
1309
|
-
declare const _default$
|
|
1316
|
+
declare const _default$47: History;
|
|
1310
1317
|
//#endregion
|
|
1311
1318
|
//#region temp/packages/editor/src/services/keybinding.d.ts
|
|
1312
1319
|
declare class Keybinding extends BaseService {
|
|
@@ -1345,7 +1352,7 @@ declare class Keybinding extends BaseService {
|
|
|
1345
1352
|
private getKeyconKeys;
|
|
1346
1353
|
}
|
|
1347
1354
|
type KeybindingService = Keybinding;
|
|
1348
|
-
declare const _default$
|
|
1355
|
+
declare const _default$48: Keybinding;
|
|
1349
1356
|
//#endregion
|
|
1350
1357
|
//#region temp/packages/editor/src/services/props.d.ts
|
|
1351
1358
|
declare const canUsePluginMethods$4: {
|
|
@@ -1445,7 +1452,7 @@ declare class Props extends BaseService {
|
|
|
1445
1452
|
private setRelateId;
|
|
1446
1453
|
}
|
|
1447
1454
|
type PropsService = Props;
|
|
1448
|
-
declare const _default$
|
|
1455
|
+
declare const _default$50: Props;
|
|
1449
1456
|
//#endregion
|
|
1450
1457
|
//#region temp/packages/editor/src/services/stageOverlay.d.ts
|
|
1451
1458
|
declare const canUsePluginMethods$3: {
|
|
@@ -1472,7 +1479,7 @@ declare class StageOverlay extends BaseService {
|
|
|
1472
1479
|
private updateSelectStatus;
|
|
1473
1480
|
}
|
|
1474
1481
|
type StageOverlayService = StageOverlay;
|
|
1475
|
-
declare const _default$
|
|
1482
|
+
declare const _default$51: StageOverlay;
|
|
1476
1483
|
//#endregion
|
|
1477
1484
|
//#region temp/packages/editor/src/services/storage.d.ts
|
|
1478
1485
|
interface Options$1 {
|
|
@@ -1535,7 +1542,7 @@ declare class WebStorage extends BaseService {
|
|
|
1535
1542
|
private getValueAndProtocol;
|
|
1536
1543
|
}
|
|
1537
1544
|
type StorageService = WebStorage;
|
|
1538
|
-
declare const _default$
|
|
1545
|
+
declare const _default$52: WebStorage;
|
|
1539
1546
|
//#endregion
|
|
1540
1547
|
//#region temp/packages/editor/src/services/ui.d.ts
|
|
1541
1548
|
declare const canUsePluginMethods$1: {
|
|
@@ -1555,7 +1562,7 @@ declare class Ui extends BaseService {
|
|
|
1555
1562
|
private setStageRect;
|
|
1556
1563
|
}
|
|
1557
1564
|
type UiService = Ui;
|
|
1558
|
-
declare const _default$
|
|
1565
|
+
declare const _default$53: Ui;
|
|
1559
1566
|
//#endregion
|
|
1560
1567
|
//#region temp/packages/editor/src/type.d.ts
|
|
1561
1568
|
type EditorSlots = FrameworkSlots & WorkspaceSlots & SidebarSlots & PropsPanelSlots & {
|
|
@@ -1647,6 +1654,7 @@ type SidebarSlots = LayerPanelSlots & CodeBlockListPanelSlots & ComponentListPan
|
|
|
1647
1654
|
type BeforeAdd = (config: MNode, parent: MContainer) => Promise<MNode> | MNode;
|
|
1648
1655
|
type GetConfig = (config: FormConfig) => Promise<FormConfig> | FormConfig;
|
|
1649
1656
|
interface EditorInstallOptions {
|
|
1657
|
+
flat?: boolean;
|
|
1650
1658
|
parseDSL: <T = any>(dsl: string) => T;
|
|
1651
1659
|
customCreateMonacoEditor: (monaco: typeof import('monaco-editor'), codeEditorEl: HTMLElement, options: Monaco.editor.IStandaloneEditorConstructionOptions & {
|
|
1652
1660
|
editorCustomType?: string;
|
|
@@ -2002,6 +2010,57 @@ interface CompareFormLoadConfigContext {
|
|
|
2002
2010
|
* 可通过 `ctx.defaultLoadConfig()` 复用默认结果再做二次加工。
|
|
2003
2011
|
*/
|
|
2004
2012
|
type CompareFormLoadConfig = (ctx: CompareFormLoadConfigContext) => FormConfig | Promise<FormConfig>;
|
|
2013
|
+
/**
|
|
2014
|
+
* CompareForm / ViewForm 共用的基础 props。
|
|
2015
|
+
* 两者都基于同一套「按 category 加载 FormConfig + 注入 services/stage」的逻辑(见 useCompareForm),
|
|
2016
|
+
* 差异仅在于是否做新旧值对比。这里抽出公共字段避免重复定义。
|
|
2017
|
+
*/
|
|
2018
|
+
interface CompareFormBaseProps {
|
|
2019
|
+
/** 当前值(对比场景下为修改后的值) */
|
|
2020
|
+
value: Partial<MNode> | Partial<DataSourceSchema> | Partial<CodeBlockContent> | Record<string, any>;
|
|
2021
|
+
/**
|
|
2022
|
+
* 类型说明:
|
|
2023
|
+
* - `category` 为 `node` 时,`type` 为节点组件的类型,例如 'text'、'button'、'page'、'container' 等
|
|
2024
|
+
* - `category` 为 `data-source` 时,`type` 为数据源类型,例如 'base'、'http'
|
|
2025
|
+
* - `category` 为 `code-block` 时,`type` 可不传
|
|
2026
|
+
*/
|
|
2027
|
+
type?: string;
|
|
2028
|
+
/** 表单配置类别,决定从哪里取 FormConfig */
|
|
2029
|
+
category?: CompareCategory;
|
|
2030
|
+
/** 数据源代码块场景下的数据源类型(base/http),用于代码块表单中"执行时机"展示 */
|
|
2031
|
+
dataSourceType?: string;
|
|
2032
|
+
labelWidth?: string;
|
|
2033
|
+
/**
|
|
2034
|
+
* 外层容器高度。设置后表单内容超出时会在组件内部出现滚动条,
|
|
2035
|
+
* 避免 dialog / 面板使用方需要自行处理滚动。可传任意 CSS 长度,例如 `60vh` / `400px` / `100%`。
|
|
2036
|
+
*/
|
|
2037
|
+
height?: string;
|
|
2038
|
+
/**
|
|
2039
|
+
* 用户自定义注入到 MForm.formState 的扩展字段,与 Editor 顶层的 `extendFormState`、
|
|
2040
|
+
* PropsPanel 的 `extend-state` 语义一致。表单 item 的 `display` / `disabled` 等
|
|
2041
|
+
* filterFunction 经常依赖这里注入的字段(如 stage、自定义业务上下文等),
|
|
2042
|
+
* 因此在对比 / 展示场景下也需要透传,避免出现 `formState.xxx is undefined` 的运行时错误。
|
|
2043
|
+
*/
|
|
2044
|
+
extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
2045
|
+
/**
|
|
2046
|
+
* 外部透传的基础 formState(通常来自 PropsPanel 主属性表单)。
|
|
2047
|
+
* 组件会提取其中的扩展字段覆盖到自己的 formState,保证 filterFunction 上下文一致。
|
|
2048
|
+
*/
|
|
2049
|
+
baseFormState?: FormState;
|
|
2050
|
+
/**
|
|
2051
|
+
* 表单内组件的尺寸(透传给 MForm 的 `size`),可选 'large' | 'default' | 'small'。
|
|
2052
|
+
* 缺省时使用 MForm 内置默认尺寸。
|
|
2053
|
+
*/
|
|
2054
|
+
size?: FieldSize;
|
|
2055
|
+
/**
|
|
2056
|
+
* 自定义 FormConfig 加载逻辑。传入后将接管内置的按 `category`(node/data-source/code-block)
|
|
2057
|
+
* 取配置逻辑,调用方可根据业务自行返回(或异步返回)表单配置。可通过
|
|
2058
|
+
* `ctx.defaultLoadConfig()` 复用默认结果再做二次加工。
|
|
2059
|
+
*/
|
|
2060
|
+
loadConfig?: CompareFormLoadConfig;
|
|
2061
|
+
/** 编辑器服务集合,由调用方传入(不再通过 inject('services') 获取)。 */
|
|
2062
|
+
services?: Services;
|
|
2063
|
+
}
|
|
2005
2064
|
declare enum SideItemKey {
|
|
2006
2065
|
COMPONENT_LIST = "component-list",
|
|
2007
2066
|
LAYER = "layer",
|
|
@@ -2578,30 +2637,44 @@ interface EditorUpdateChangeItem {
|
|
|
2578
2637
|
};
|
|
2579
2638
|
page: StoreState['page'];
|
|
2580
2639
|
}
|
|
2640
|
+
/** {@link EditorEvents.change} 各操作类型共有的历史相关字段。 */
|
|
2641
|
+
interface EditorChangeEventHistoryMeta {
|
|
2642
|
+
/**
|
|
2643
|
+
* 本次变更的「历史来源」(调用 DSL 操作时传入的 {@link HistoryOpOptions.historySource},
|
|
2644
|
+
* 撤销 / 重做时则为被应用 step 上记录的 `source`),未携带时为 undefined。
|
|
2645
|
+
*/
|
|
2646
|
+
historySource?: HistoryOpSource;
|
|
2647
|
+
/**
|
|
2648
|
+
* 本次操作是否未写入历史记录(即调用时传入的 {@link HistoryOpOptions.doNotPushHistory},缺省为 false);
|
|
2649
|
+
* 撤销 / 重做路径补发的事件恒为 true(撤销/重做本身不再入栈)。
|
|
2650
|
+
*/
|
|
2651
|
+
doNotPushHistory?: boolean;
|
|
2652
|
+
}
|
|
2581
2653
|
/**
|
|
2582
2654
|
* {@link EditorEvents.change} 的回调参数:以 `type` 区分操作类型,并携带对应的操作内容。
|
|
2583
2655
|
* `data` 为本次变更的节点列表,每项包含 node 及其所属的 page(可能为 null);
|
|
2584
|
-
* `move-layer` 额外带层级偏移 `offset`,`drag-to` 额外带目标位置 `targetIndex` / `targetParent
|
|
2656
|
+
* `move-layer` 额外带层级偏移 `offset`,`drag-to` 额外带目标位置 `targetIndex` / `targetParent`;
|
|
2657
|
+
* 历史相关字段(historySource / doNotPushHistory)见 {@link EditorChangeEventHistoryMeta}。
|
|
2585
2658
|
*/
|
|
2586
|
-
type EditorChangeEvent = {
|
|
2659
|
+
type EditorChangeEvent = ({
|
|
2587
2660
|
type: 'add';
|
|
2588
2661
|
data: EditorChangeItem[];
|
|
2589
|
-
} | {
|
|
2662
|
+
} & EditorChangeEventHistoryMeta) | ({
|
|
2590
2663
|
type: 'remove';
|
|
2591
2664
|
data: EditorChangeItem[];
|
|
2592
|
-
} | {
|
|
2665
|
+
} & EditorChangeEventHistoryMeta) | ({
|
|
2593
2666
|
type: 'update';
|
|
2594
2667
|
data: EditorUpdateChangeItem[];
|
|
2595
|
-
} | {
|
|
2668
|
+
} & EditorChangeEventHistoryMeta) | ({
|
|
2596
2669
|
type: 'move-layer';
|
|
2597
2670
|
data: EditorChangeItem[];
|
|
2598
2671
|
offset: number | LayerOffset;
|
|
2599
|
-
} | {
|
|
2672
|
+
} & EditorChangeEventHistoryMeta) | ({
|
|
2600
2673
|
type: 'drag-to';
|
|
2601
2674
|
data: EditorChangeItem[];
|
|
2602
2675
|
targetIndex: number;
|
|
2603
2676
|
targetParent: MContainer;
|
|
2604
|
-
};
|
|
2677
|
+
} & EditorChangeEventHistoryMeta);
|
|
2605
2678
|
interface HistoryEvents {
|
|
2606
2679
|
change: [state: BaseStepValue | StepValue | CodeBlockStepValue | DataSourceStepValue, stepType: HistoryStepType, id: Id];
|
|
2607
2680
|
'code-block-history-change': [id: Id, state: CodeBlockStepValue];
|
|
@@ -2856,6 +2929,27 @@ declare const useCodeBlockEdit: (codeBlockService: Services["codeBlockService"])
|
|
|
2856
2929
|
submitCodeBlockHandler: (values: CodeBlockContent, eventData?: ContainerChangeEventData) => Promise<void>;
|
|
2857
2930
|
};
|
|
2858
2931
|
//#endregion
|
|
2932
|
+
//#region temp/packages/editor/src/hooks/use-compare-form.d.ts
|
|
2933
|
+
interface UseCompareFormReturn {
|
|
2934
|
+
config: Ref<FormConfig>;
|
|
2935
|
+
currentValues: ComputedRef<FormValue>;
|
|
2936
|
+
wrapperStyle: ComputedRef<Record<string, string> | undefined>;
|
|
2937
|
+
mergedExtendState: (state: FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
2938
|
+
loadConfig: () => Promise<void>;
|
|
2939
|
+
formRef: Readonly<Ref<InstanceType<typeof MForm> | null>>;
|
|
2940
|
+
normalizeCodeBlockValue: (v: Partial<CodeBlockContent> | Record<string, any> | undefined) => Record<string, any>;
|
|
2941
|
+
}
|
|
2942
|
+
/**
|
|
2943
|
+
* CompareForm / ViewForm 共用逻辑:
|
|
2944
|
+
* - 按 `category`(node / data-source / code-block) 加载 FormConfig(支持自定义 `loadConfig`);
|
|
2945
|
+
* - 代码块 `content` 归一化为字符串;
|
|
2946
|
+
* - 外层容器固定高度 + 内部滚动的 `wrapperStyle`;
|
|
2947
|
+
* - 将 services / stage 注入 MForm.formState,保证 filterFunction 上下文一致。
|
|
2948
|
+
*
|
|
2949
|
+
* 两个组件的差异仅在于是否做新旧值对比,这部分逻辑保留在各自组件中。
|
|
2950
|
+
*/
|
|
2951
|
+
declare const useCompareForm: (props: CompareFormBaseProps) => UseCompareFormReturn;
|
|
2952
|
+
//#endregion
|
|
2859
2953
|
//#region temp/packages/editor/src/hooks/use-stage.d.ts
|
|
2860
2954
|
declare const useStage: (stageOptions: StageOptions) => StageCore$1;
|
|
2861
2955
|
//#endregion
|
|
@@ -2934,6 +3028,7 @@ declare const useNodeStatus: (nodeData: ComputedRef<TreeNodeData[]>) => {
|
|
|
2934
3028
|
declare const useServices: () => Services;
|
|
2935
3029
|
//#endregion
|
|
2936
3030
|
//#region temp/packages/editor/src/utils/config.d.ts
|
|
3031
|
+
declare const isGlobalFlat: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
2937
3032
|
declare const setEditorConfig: (option: EditorInstallOptions) => void;
|
|
2938
3033
|
declare const getEditorConfig: <K extends keyof EditorInstallOptions>(key: K) => EditorInstallOptions[K];
|
|
2939
3034
|
//#endregion
|
|
@@ -2977,6 +3072,18 @@ declare const fillConfig: (config?: FormConfig, {
|
|
|
2977
3072
|
disabledDataSource?: boolean;
|
|
2978
3073
|
disabledCodeBlock?: boolean;
|
|
2979
3074
|
}) => FormConfig;
|
|
3075
|
+
/**
|
|
3076
|
+
* 将属性表单配置中「样式」tab-pane 的 `display` 强制置为 `true`。
|
|
3077
|
+
*
|
|
3078
|
+
* `propsService.getPropsConfig` 返回的样式 tab 默认带有
|
|
3079
|
+
* `display: ({ services }) => !(services?.uiService?.get('showStylePanel') ?? true)`,
|
|
3080
|
+
* 在对比 / 只读展示场景(CompareForm / ViewForm)下并不需要跟随 uiService 状态隐藏,
|
|
3081
|
+
* 这里统一放开,保证样式 tab 始终可见。
|
|
3082
|
+
*
|
|
3083
|
+
* @param formConfig 组件属性表单配置
|
|
3084
|
+
* @returns 处理后的表单配置(不修改入参,返回浅拷贝)
|
|
3085
|
+
*/
|
|
3086
|
+
declare const removeStyleDisplayConfig: (formConfig: FormConfig) => FormConfig;
|
|
2980
3087
|
/**
|
|
2981
3088
|
* validatePropsForm 参数
|
|
2982
3089
|
*/
|
|
@@ -3448,9 +3555,9 @@ declare const UI_SELECT_MODE_EVENT_NAME = "ui-select";
|
|
|
3448
3555
|
declare const LEFT_COLUMN_WIDTH_STORAGE_KEY = "$MagicEditorLeftColumnWidthData";
|
|
3449
3556
|
declare const RIGHT_COLUMN_WIDTH_STORAGE_KEY = "$MagicEditorRightColumnWidthData";
|
|
3450
3557
|
declare const PROPS_PANEL_WIDTH_STORAGE_KEY = "$MagicEditorPropsPanelWidthData";
|
|
3451
|
-
declare const DEFAULT_LEFT_COLUMN_WIDTH =
|
|
3558
|
+
declare const DEFAULT_LEFT_COLUMN_WIDTH = 345;
|
|
3452
3559
|
declare const DEFAULT_RIGHT_COLUMN_WIDTH = 480;
|
|
3453
|
-
declare const MIN_LEFT_COLUMN_WIDTH =
|
|
3560
|
+
declare const MIN_LEFT_COLUMN_WIDTH = 345;
|
|
3454
3561
|
declare const MIN_CENTER_COLUMN_WIDTH = 400;
|
|
3455
3562
|
declare const MIN_RIGHT_COLUMN_WIDTH = 300;
|
|
3456
3563
|
declare const H_GUIDE_LINE_STORAGE_KEY = "$MagicStageHorizontalGuidelinesData";
|
|
@@ -3505,7 +3612,7 @@ declare const getCompActionAllowedValues: (config?: {
|
|
|
3505
3612
|
}) => Set<string> | null;
|
|
3506
3613
|
//#endregion
|
|
3507
3614
|
//#region temp/packages/editor/src/utils/monaco-editor.d.ts
|
|
3508
|
-
declare const _default$
|
|
3615
|
+
declare const _default$49: () => Promise<typeof import("monaco-editor")>;
|
|
3509
3616
|
//#endregion
|
|
3510
3617
|
//#region temp/packages/form/src/schema.d.ts
|
|
3511
3618
|
interface ChangeRecord$1 {
|
|
@@ -3536,6 +3643,9 @@ interface FormSlots {
|
|
|
3536
3643
|
//#endregion
|
|
3537
3644
|
//#region temp/packages/editor/src/editorProps.d.ts
|
|
3538
3645
|
interface EditorProps {
|
|
3646
|
+
/** 是否是大屏模拟器容器,大屏容器时,左侧属性面板会扩展为两列(正常3列),颜色表单不扩展两列等 */
|
|
3647
|
+
isLargeStageContainer?: boolean;
|
|
3648
|
+
theme?: string;
|
|
3539
3649
|
/** 页面初始值 */
|
|
3540
3650
|
modelValue?: MApp;
|
|
3541
3651
|
/** 左侧面板中的组件类型列表 */
|
|
@@ -3674,9 +3784,9 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
3674
3784
|
readonly codeValueKey?: string | undefined;
|
|
3675
3785
|
readonly labelPosition?: string | undefined;
|
|
3676
3786
|
readonly extendState?: ((_state: import("@tmagic/form-schema").FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
|
|
3787
|
+
readonly onSubmit?: ((values: any, eventData?: ContainerChangeEventData$1 | undefined, error?: any) => any) | undefined;
|
|
3677
3788
|
readonly onMounted?: ((internalInstance: any) => any) | undefined;
|
|
3678
3789
|
readonly onUnmounted?: (() => any) | undefined;
|
|
3679
|
-
readonly onSubmit?: ((values: any, eventData?: ContainerChangeEventData$1 | undefined, error?: any) => any) | undefined;
|
|
3680
3790
|
readonly "onSubmit-error"?: ((e: any) => any) | undefined;
|
|
3681
3791
|
readonly "onForm-error"?: ((e: any) => any) | undefined;
|
|
3682
3792
|
} & import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps;
|
|
@@ -3690,7 +3800,7 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
3690
3800
|
$root: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
3691
3801
|
$parent: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
3692
3802
|
$host: Element | null;
|
|
3693
|
-
$emit: ((event: "
|
|
3803
|
+
$emit: ((event: "submit", values: any, eventData?: ContainerChangeEventData$1 | undefined, error?: any) => void) & ((event: "mounted", internalInstance: any) => void) & ((event: "unmounted") => void) & ((event: "submit-error", e: any) => void) & ((event: "form-error", e: any) => void);
|
|
3694
3804
|
$el: any;
|
|
3695
3805
|
$options: import("@vue/runtime-core").ComponentOptionsBase<Readonly<{
|
|
3696
3806
|
config: import("@tmagic/form-schema").FormConfig;
|
|
@@ -3701,9 +3811,9 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
3701
3811
|
labelPosition?: string;
|
|
3702
3812
|
extendState?: (_state: import("@tmagic/form-schema").FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
3703
3813
|
}> & Readonly<{
|
|
3814
|
+
onSubmit?: ((values: any, eventData?: ContainerChangeEventData$1 | undefined, error?: any) => any) | undefined;
|
|
3704
3815
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
3705
3816
|
onUnmounted?: (() => any) | undefined;
|
|
3706
|
-
onSubmit?: ((values: any, eventData?: ContainerChangeEventData$1 | undefined, error?: any) => any) | undefined;
|
|
3707
3817
|
"onSubmit-error"?: ((e: any) => any) | undefined;
|
|
3708
3818
|
"onForm-error"?: ((e: any) => any) | undefined;
|
|
3709
3819
|
}>, {
|
|
@@ -3735,6 +3845,7 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
3735
3845
|
config: any;
|
|
3736
3846
|
}) => boolean) | undefined;
|
|
3737
3847
|
readonly selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]) | undefined;
|
|
3848
|
+
readonly theme?: string | undefined;
|
|
3738
3849
|
readonly onError?: ((...args: any[]) => any) | undefined;
|
|
3739
3850
|
readonly onChange?: ((...args: any[]) => any) | undefined;
|
|
3740
3851
|
readonly "onField-input"?: ((...args: any[]) => any) | undefined;
|
|
@@ -3778,6 +3889,7 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
3778
3889
|
config: any;
|
|
3779
3890
|
}) => boolean;
|
|
3780
3891
|
selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
|
|
3892
|
+
theme?: string;
|
|
3781
3893
|
}> & Readonly<{
|
|
3782
3894
|
onError?: ((...args: any[]) => any) | undefined;
|
|
3783
3895
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
@@ -3874,6 +3986,7 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
3874
3986
|
config: any;
|
|
3875
3987
|
}) => boolean;
|
|
3876
3988
|
selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
|
|
3989
|
+
theme?: string;
|
|
3877
3990
|
}> & Readonly<{
|
|
3878
3991
|
onError?: ((...args: any[]) => any) | undefined;
|
|
3879
3992
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
@@ -3896,9 +4009,9 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
3896
4009
|
}) | null>>;
|
|
3897
4010
|
submit: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData$1) => Promise<void>;
|
|
3898
4011
|
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
4012
|
+
submit: (values: any, eventData?: ContainerChangeEventData$1 | undefined, error?: any) => any;
|
|
3899
4013
|
mounted: (internalInstance: any) => any;
|
|
3900
4014
|
unmounted: () => any;
|
|
3901
|
-
submit: (values: any, eventData?: ContainerChangeEventData$1 | undefined, error?: any) => any;
|
|
3902
4015
|
"submit-error": (e: any) => any;
|
|
3903
4016
|
"form-error": (e: any) => any;
|
|
3904
4017
|
}, string, {}, {}, string, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, import("@vue/runtime-core").ComponentProvideOptions> & {
|
|
@@ -3930,9 +4043,9 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
3930
4043
|
labelPosition?: string;
|
|
3931
4044
|
extendState?: (_state: import("@tmagic/form-schema").FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
3932
4045
|
}> & Readonly<{
|
|
4046
|
+
onSubmit?: ((values: any, eventData?: ContainerChangeEventData$1 | undefined, error?: any) => any) | undefined;
|
|
3933
4047
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
3934
4048
|
onUnmounted?: (() => any) | undefined;
|
|
3935
|
-
onSubmit?: ((values: any, eventData?: ContainerChangeEventData$1 | undefined, error?: any) => any) | undefined;
|
|
3936
4049
|
"onSubmit-error"?: ((e: any) => any) | undefined;
|
|
3937
4050
|
"onForm-error"?: ((e: any) => any) | undefined;
|
|
3938
4051
|
}>, "submit" | "configForm"> & {
|
|
@@ -3964,6 +4077,7 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
3964
4077
|
config: any;
|
|
3965
4078
|
}) => boolean) | undefined;
|
|
3966
4079
|
readonly selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]) | undefined;
|
|
4080
|
+
readonly theme?: string | undefined;
|
|
3967
4081
|
readonly onError?: ((...args: any[]) => any) | undefined;
|
|
3968
4082
|
readonly onChange?: ((...args: any[]) => any) | undefined;
|
|
3969
4083
|
readonly "onField-input"?: ((...args: any[]) => any) | undefined;
|
|
@@ -4007,6 +4121,7 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4007
4121
|
config: any;
|
|
4008
4122
|
}) => boolean;
|
|
4009
4123
|
selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
|
|
4124
|
+
theme?: string;
|
|
4010
4125
|
}> & Readonly<{
|
|
4011
4126
|
onError?: ((...args: any[]) => any) | undefined;
|
|
4012
4127
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
@@ -4103,6 +4218,7 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4103
4218
|
config: any;
|
|
4104
4219
|
}) => boolean;
|
|
4105
4220
|
selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
|
|
4221
|
+
theme?: string;
|
|
4106
4222
|
}> & Readonly<{
|
|
4107
4223
|
onError?: ((...args: any[]) => any) | undefined;
|
|
4108
4224
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
@@ -4146,9 +4262,9 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4146
4262
|
readonly codeValueKey?: string | undefined;
|
|
4147
4263
|
readonly labelPosition?: string | undefined;
|
|
4148
4264
|
readonly extendState?: ((_state: import("@tmagic/form-schema").FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
|
|
4265
|
+
readonly onSubmit?: ((values: any, eventData?: ContainerChangeEventData$1 | undefined, error?: any) => any) | undefined;
|
|
4149
4266
|
readonly onMounted?: ((internalInstance: any) => any) | undefined;
|
|
4150
4267
|
readonly onUnmounted?: (() => any) | undefined;
|
|
4151
|
-
readonly onSubmit?: ((values: any, eventData?: ContainerChangeEventData$1 | undefined, error?: any) => any) | undefined;
|
|
4152
4268
|
readonly "onSubmit-error"?: ((e: any) => any) | undefined;
|
|
4153
4269
|
readonly "onForm-error"?: ((e: any) => any) | undefined;
|
|
4154
4270
|
} & import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps;
|
|
@@ -4162,7 +4278,7 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4162
4278
|
$root: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
4163
4279
|
$parent: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
4164
4280
|
$host: Element | null;
|
|
4165
|
-
$emit: ((event: "
|
|
4281
|
+
$emit: ((event: "submit", values: any, eventData?: ContainerChangeEventData$1 | undefined, error?: any) => void) & ((event: "mounted", internalInstance: any) => void) & ((event: "unmounted") => void) & ((event: "submit-error", e: any) => void) & ((event: "form-error", e: any) => void);
|
|
4166
4282
|
$el: any;
|
|
4167
4283
|
$options: import("@vue/runtime-core").ComponentOptionsBase<Readonly<{
|
|
4168
4284
|
config: import("@tmagic/form-schema").FormConfig;
|
|
@@ -4173,9 +4289,9 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4173
4289
|
labelPosition?: string;
|
|
4174
4290
|
extendState?: (_state: import("@tmagic/form-schema").FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
4175
4291
|
}> & Readonly<{
|
|
4292
|
+
onSubmit?: ((values: any, eventData?: ContainerChangeEventData$1 | undefined, error?: any) => any) | undefined;
|
|
4176
4293
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
4177
4294
|
onUnmounted?: (() => any) | undefined;
|
|
4178
|
-
onSubmit?: ((values: any, eventData?: ContainerChangeEventData$1 | undefined, error?: any) => any) | undefined;
|
|
4179
4295
|
"onSubmit-error"?: ((e: any) => any) | undefined;
|
|
4180
4296
|
"onForm-error"?: ((e: any) => any) | undefined;
|
|
4181
4297
|
}>, {
|
|
@@ -4207,6 +4323,7 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4207
4323
|
config: any;
|
|
4208
4324
|
}) => boolean) | undefined;
|
|
4209
4325
|
readonly selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]) | undefined;
|
|
4326
|
+
readonly theme?: string | undefined;
|
|
4210
4327
|
readonly onError?: ((...args: any[]) => any) | undefined;
|
|
4211
4328
|
readonly onChange?: ((...args: any[]) => any) | undefined;
|
|
4212
4329
|
readonly "onField-input"?: ((...args: any[]) => any) | undefined;
|
|
@@ -4250,6 +4367,7 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4250
4367
|
config: any;
|
|
4251
4368
|
}) => boolean;
|
|
4252
4369
|
selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
|
|
4370
|
+
theme?: string;
|
|
4253
4371
|
}> & Readonly<{
|
|
4254
4372
|
onError?: ((...args: any[]) => any) | undefined;
|
|
4255
4373
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
@@ -4346,6 +4464,7 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4346
4464
|
config: any;
|
|
4347
4465
|
}) => boolean;
|
|
4348
4466
|
selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
|
|
4467
|
+
theme?: string;
|
|
4349
4468
|
}> & Readonly<{
|
|
4350
4469
|
onError?: ((...args: any[]) => any) | undefined;
|
|
4351
4470
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
@@ -4368,9 +4487,9 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4368
4487
|
}) | null>>;
|
|
4369
4488
|
submit: (v: import("@tmagic/form-schema").FormValue, eventData: ContainerChangeEventData$1) => Promise<void>;
|
|
4370
4489
|
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
4490
|
+
submit: (values: any, eventData?: ContainerChangeEventData$1 | undefined, error?: any) => any;
|
|
4371
4491
|
mounted: (internalInstance: any) => any;
|
|
4372
4492
|
unmounted: () => any;
|
|
4373
|
-
submit: (values: any, eventData?: ContainerChangeEventData$1 | undefined, error?: any) => any;
|
|
4374
4493
|
"submit-error": (e: any) => any;
|
|
4375
4494
|
"form-error": (e: any) => any;
|
|
4376
4495
|
}, string, {}, {}, string, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, import("@vue/runtime-core").ComponentProvideOptions> & {
|
|
@@ -4402,9 +4521,9 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4402
4521
|
labelPosition?: string;
|
|
4403
4522
|
extendState?: (_state: import("@tmagic/form-schema").FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
4404
4523
|
}> & Readonly<{
|
|
4524
|
+
onSubmit?: ((values: any, eventData?: ContainerChangeEventData$1 | undefined, error?: any) => any) | undefined;
|
|
4405
4525
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
4406
4526
|
onUnmounted?: (() => any) | undefined;
|
|
4407
|
-
onSubmit?: ((values: any, eventData?: ContainerChangeEventData$1 | undefined, error?: any) => any) | undefined;
|
|
4408
4527
|
"onSubmit-error"?: ((e: any) => any) | undefined;
|
|
4409
4528
|
"onForm-error"?: ((e: any) => any) | undefined;
|
|
4410
4529
|
}>, "submit" | "configForm"> & {
|
|
@@ -4436,6 +4555,7 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4436
4555
|
config: any;
|
|
4437
4556
|
}) => boolean) | undefined;
|
|
4438
4557
|
readonly selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]) | undefined;
|
|
4558
|
+
readonly theme?: string | undefined;
|
|
4439
4559
|
readonly onError?: ((...args: any[]) => any) | undefined;
|
|
4440
4560
|
readonly onChange?: ((...args: any[]) => any) | undefined;
|
|
4441
4561
|
readonly "onField-input"?: ((...args: any[]) => any) | undefined;
|
|
@@ -4479,6 +4599,7 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4479
4599
|
config: any;
|
|
4480
4600
|
}) => boolean;
|
|
4481
4601
|
selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
|
|
4602
|
+
theme?: string;
|
|
4482
4603
|
}> & Readonly<{
|
|
4483
4604
|
onError?: ((...args: any[]) => any) | undefined;
|
|
4484
4605
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
@@ -4575,6 +4696,7 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4575
4696
|
config: any;
|
|
4576
4697
|
}) => boolean;
|
|
4577
4698
|
selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
|
|
4699
|
+
theme?: string;
|
|
4578
4700
|
}> & Readonly<{
|
|
4579
4701
|
onError?: ((...args: any[]) => any) | undefined;
|
|
4580
4702
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
@@ -4638,8 +4760,8 @@ declare const __VLS_base$12: import("@vue/runtime-core").DefineComponent<EditorP
|
|
|
4638
4760
|
containerHighlightType: import("@tmagic/stage").ContainerHighlightType;
|
|
4639
4761
|
canSelect: (el: HTMLElement) => boolean | Promise<boolean>;
|
|
4640
4762
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
4641
|
-
declare const __VLS_export$
|
|
4642
|
-
declare const _default$35: typeof __VLS_export$
|
|
4763
|
+
declare const __VLS_export$39: __VLS_WithSlots$12<typeof __VLS_base$12, __VLS_Slots$12>;
|
|
4764
|
+
declare const _default$35: typeof __VLS_export$39;
|
|
4643
4765
|
type __VLS_WithSlots$12<T, S> = T & {
|
|
4644
4766
|
new (): {
|
|
4645
4767
|
$slots: S;
|
|
@@ -4647,7 +4769,7 @@ type __VLS_WithSlots$12<T, S> = T & {
|
|
|
4647
4769
|
};
|
|
4648
4770
|
//#endregion
|
|
4649
4771
|
//#region temp/packages/editor/src/layouts/CodeEditor.vue.d.ts
|
|
4650
|
-
type __VLS_Props$
|
|
4772
|
+
type __VLS_Props$34 = {
|
|
4651
4773
|
initValues?: any;
|
|
4652
4774
|
modifiedValues?: any;
|
|
4653
4775
|
type?: 'diff';
|
|
@@ -4663,7 +4785,7 @@ type __VLS_Props$33 = {
|
|
|
4663
4785
|
};
|
|
4664
4786
|
editorCustomType?: string;
|
|
4665
4787
|
};
|
|
4666
|
-
declare const __VLS_export$
|
|
4788
|
+
declare const __VLS_export$38: import("@vue/runtime-core").DefineComponent<__VLS_Props$34, {
|
|
4667
4789
|
values: import("@vue/reactivity").Ref<string, string>;
|
|
4668
4790
|
getEditor(): Monaco.editor.IStandaloneCodeEditor | Monaco.editor.IStandaloneDiffEditor | null;
|
|
4669
4791
|
getVsEditor(): Monaco.editor.IStandaloneCodeEditor | null;
|
|
@@ -4674,7 +4796,7 @@ declare const __VLS_export$37: import("@vue/runtime-core").DefineComponent<__VLS
|
|
|
4674
4796
|
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
4675
4797
|
save: (...args: any[]) => void;
|
|
4676
4798
|
initd: (...args: any[]) => void;
|
|
4677
|
-
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$
|
|
4799
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$34> & Readonly<{
|
|
4678
4800
|
onSave?: ((...args: any[]) => any) | undefined;
|
|
4679
4801
|
onInitd?: ((...args: any[]) => any) | undefined;
|
|
4680
4802
|
}>, {
|
|
@@ -4685,13 +4807,13 @@ declare const __VLS_export$37: import("@vue/runtime-core").DefineComponent<__VLS
|
|
|
4685
4807
|
autoSave: boolean;
|
|
4686
4808
|
disabledFullScreen: boolean;
|
|
4687
4809
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
4688
|
-
declare const _default$34: typeof __VLS_export$
|
|
4810
|
+
declare const _default$34: typeof __VLS_export$38;
|
|
4689
4811
|
//#endregion
|
|
4690
4812
|
//#region temp/packages/editor/src/layouts/sidebar/ComponentListPanel.vue.d.ts
|
|
4691
4813
|
type __VLS_Slots$11 = ComponentListPanelSlots;
|
|
4692
4814
|
declare const __VLS_base$11: import("@vue/runtime-core").DefineComponent<{}, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
|
|
4693
|
-
declare const __VLS_export$
|
|
4694
|
-
declare const _default$6: typeof __VLS_export$
|
|
4815
|
+
declare const __VLS_export$37: __VLS_WithSlots$11<typeof __VLS_base$11, __VLS_Slots$11>;
|
|
4816
|
+
declare const _default$6: typeof __VLS_export$37;
|
|
4695
4817
|
type __VLS_WithSlots$11<T, S> = T & {
|
|
4696
4818
|
new (): {
|
|
4697
4819
|
$slots: S;
|
|
@@ -4700,7 +4822,7 @@ type __VLS_WithSlots$11<T, S> = T & {
|
|
|
4700
4822
|
//#endregion
|
|
4701
4823
|
//#region temp/packages/editor/src/layouts/sidebar/layer/LayerPanel.vue.d.ts
|
|
4702
4824
|
type __VLS_Slots$10 = LayerPanelSlots;
|
|
4703
|
-
type __VLS_Props$
|
|
4825
|
+
type __VLS_Props$33 = {
|
|
4704
4826
|
layerContentMenu: (MenuButton | MenuComponent)[];
|
|
4705
4827
|
indent?: number;
|
|
4706
4828
|
nextLevelIndentIncrement?: number;
|
|
@@ -4709,13 +4831,13 @@ type __VLS_Props$32 = {
|
|
|
4709
4831
|
canDropIn?: CanDropInFunction; /** 组件树节点双击前的钩子函数,返回 false 则阻止默认的双击行为 */
|
|
4710
4832
|
beforeNodeDblclick?: (_event: MouseEvent, _data: TreeNodeData) => Promise<boolean | void> | boolean | void;
|
|
4711
4833
|
};
|
|
4712
|
-
declare const __VLS_base$10: import("@vue/runtime-core").DefineComponent<__VLS_Props$
|
|
4834
|
+
declare const __VLS_base$10: import("@vue/runtime-core").DefineComponent<__VLS_Props$33, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
4713
4835
|
"node-dblclick": (event: MouseEvent, data: TreeNodeData) => any;
|
|
4714
|
-
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$
|
|
4836
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$33> & Readonly<{
|
|
4715
4837
|
"onNode-dblclick"?: ((event: MouseEvent, data: TreeNodeData) => any) | undefined;
|
|
4716
4838
|
}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
4717
|
-
declare const __VLS_export$
|
|
4718
|
-
declare const _default$27: typeof __VLS_export$
|
|
4839
|
+
declare const __VLS_export$36: __VLS_WithSlots$10<typeof __VLS_base$10, __VLS_Slots$10>;
|
|
4840
|
+
declare const _default$27: typeof __VLS_export$36;
|
|
4719
4841
|
type __VLS_WithSlots$10<T, S> = T & {
|
|
4720
4842
|
new (): {
|
|
4721
4843
|
$slots: S;
|
|
@@ -4723,41 +4845,41 @@ type __VLS_WithSlots$10<T, S> = T & {
|
|
|
4723
4845
|
};
|
|
4724
4846
|
//#endregion
|
|
4725
4847
|
//#region temp/packages/editor/src/layouts/sidebar/layer/LayerNodeContent.vue.d.ts
|
|
4726
|
-
type __VLS_Props$
|
|
4848
|
+
type __VLS_Props$32 = {
|
|
4727
4849
|
data: TreeNodeData;
|
|
4728
4850
|
};
|
|
4729
|
-
declare const __VLS_export$
|
|
4730
|
-
declare const _default$26: typeof __VLS_export$
|
|
4851
|
+
declare const __VLS_export$35: import("@vue/runtime-core").DefineComponent<__VLS_Props$32, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$32> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
4852
|
+
declare const _default$26: typeof __VLS_export$35;
|
|
4731
4853
|
//#endregion
|
|
4732
4854
|
//#region temp/packages/editor/src/fields/CodeSelect.vue.d.ts
|
|
4733
|
-
type __VLS_Props$
|
|
4734
|
-
declare const __VLS_export$
|
|
4855
|
+
type __VLS_Props$31 = FieldProps<CodeSelectConfig>;
|
|
4856
|
+
declare const __VLS_export$34: import("@vue/runtime-core").DefineComponent<__VLS_Props$31, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
4735
4857
|
change: (v: any, eventData: ContainerChangeEventData) => any;
|
|
4736
|
-
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$
|
|
4858
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$31> & Readonly<{
|
|
4737
4859
|
onChange?: ((v: any, eventData: ContainerChangeEventData) => any) | undefined;
|
|
4738
4860
|
}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
4739
|
-
declare const _default$3: typeof __VLS_export$
|
|
4861
|
+
declare const _default$3: typeof __VLS_export$34;
|
|
4740
4862
|
//#endregion
|
|
4741
4863
|
//#region temp/packages/editor/src/fields/CodeSelectCol.vue.d.ts
|
|
4742
|
-
type __VLS_Props$
|
|
4743
|
-
declare const __VLS_export$
|
|
4864
|
+
type __VLS_Props$30 = FieldProps<CodeSelectColConfig>;
|
|
4865
|
+
declare const __VLS_export$33: import("@vue/runtime-core").DefineComponent<__VLS_Props$30, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
4744
4866
|
change: (v: any, eventData: ContainerChangeEventData) => any;
|
|
4745
|
-
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$
|
|
4867
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$30> & Readonly<{
|
|
4746
4868
|
onChange?: ((v: any, eventData: ContainerChangeEventData) => any) | undefined;
|
|
4747
4869
|
}>, {
|
|
4748
4870
|
disabled: boolean;
|
|
4749
4871
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
4750
|
-
declare const _default$4: typeof __VLS_export$
|
|
4872
|
+
declare const _default$4: typeof __VLS_export$33;
|
|
4751
4873
|
//#endregion
|
|
4752
4874
|
//#region temp/packages/editor/src/fields/DataSourceFields.vue.d.ts
|
|
4753
|
-
type __VLS_Props$
|
|
4875
|
+
type __VLS_Props$29 = FieldProps<DataSourceFieldsConfig>;
|
|
4754
4876
|
type __VLS_ModelProps$4 = {
|
|
4755
4877
|
'width'?: number;
|
|
4756
4878
|
'visible'?: boolean;
|
|
4757
4879
|
'visible1'?: boolean;
|
|
4758
4880
|
};
|
|
4759
|
-
type __VLS_PublicProps$4 = __VLS_Props$
|
|
4760
|
-
declare const __VLS_export$
|
|
4881
|
+
type __VLS_PublicProps$4 = __VLS_Props$29 & __VLS_ModelProps$4;
|
|
4882
|
+
declare const __VLS_export$32: import("@vue/runtime-core").DefineComponent<__VLS_PublicProps$4, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
4761
4883
|
change: (v: any, eventData?: ContainerChangeEventData | undefined) => any;
|
|
4762
4884
|
"update:visible": (value: boolean) => any;
|
|
4763
4885
|
"update:width": (value: number) => any;
|
|
@@ -4770,16 +4892,16 @@ declare const __VLS_export$31: import("@vue/runtime-core").DefineComponent<__VLS
|
|
|
4770
4892
|
}>, {
|
|
4771
4893
|
disabled: boolean;
|
|
4772
4894
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
4773
|
-
declare const _default$12: typeof __VLS_export$
|
|
4895
|
+
declare const _default$12: typeof __VLS_export$32;
|
|
4774
4896
|
//#endregion
|
|
4775
4897
|
//#region temp/packages/editor/src/fields/DataSourceMocks.vue.d.ts
|
|
4776
|
-
type __VLS_Props$
|
|
4898
|
+
type __VLS_Props$28 = FieldProps<DataSourceMocksConfig>;
|
|
4777
4899
|
type __VLS_ModelProps$3 = {
|
|
4778
4900
|
'width'?: number;
|
|
4779
4901
|
'visible'?: boolean;
|
|
4780
4902
|
};
|
|
4781
|
-
type __VLS_PublicProps$3 = __VLS_Props$
|
|
4782
|
-
declare const __VLS_export$
|
|
4903
|
+
type __VLS_PublicProps$3 = __VLS_Props$28 & __VLS_ModelProps$3;
|
|
4904
|
+
declare const __VLS_export$31: import("@vue/runtime-core").DefineComponent<__VLS_PublicProps$3, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
4783
4905
|
"update:visible": (value: boolean) => any;
|
|
4784
4906
|
"update:width": (value: number) => any;
|
|
4785
4907
|
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_PublicProps$3> & Readonly<{
|
|
@@ -4788,91 +4910,91 @@ declare const __VLS_export$30: import("@vue/runtime-core").DefineComponent<__VLS
|
|
|
4788
4910
|
}>, {
|
|
4789
4911
|
disabled: boolean;
|
|
4790
4912
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
4791
|
-
declare const _default$16: typeof __VLS_export$
|
|
4913
|
+
declare const _default$16: typeof __VLS_export$31;
|
|
4792
4914
|
//#endregion
|
|
4793
4915
|
//#region temp/packages/editor/src/fields/DataSourceMethods.vue.d.ts
|
|
4794
|
-
type __VLS_Props$
|
|
4795
|
-
declare const __VLS_export$
|
|
4916
|
+
type __VLS_Props$27 = FieldProps<DataSourceMethodsConfig>;
|
|
4917
|
+
declare const __VLS_export$30: import("@vue/runtime-core").DefineComponent<__VLS_Props$27, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
4796
4918
|
change: (...args: any[]) => void;
|
|
4797
|
-
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$
|
|
4919
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$27> & Readonly<{
|
|
4798
4920
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
4799
4921
|
}>, {
|
|
4800
4922
|
disabled: boolean;
|
|
4801
4923
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
4802
|
-
declare const _default$15: typeof __VLS_export$
|
|
4924
|
+
declare const _default$15: typeof __VLS_export$30;
|
|
4803
4925
|
//#endregion
|
|
4804
4926
|
//#region temp/packages/editor/src/fields/DataSourceInput.vue.d.ts
|
|
4805
|
-
type __VLS_Props$
|
|
4806
|
-
declare const __VLS_export$
|
|
4927
|
+
type __VLS_Props$26 = FieldProps<DataSourceInputConfig>;
|
|
4928
|
+
declare const __VLS_export$29: import("@vue/runtime-core").DefineComponent<__VLS_Props$26, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
4807
4929
|
change: (value: string) => any;
|
|
4808
|
-
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$
|
|
4930
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$26> & Readonly<{
|
|
4809
4931
|
onChange?: ((value: string) => any) | undefined;
|
|
4810
4932
|
}>, {
|
|
4811
4933
|
disabled: boolean;
|
|
4812
4934
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
4813
|
-
declare const _default$13: typeof __VLS_export$
|
|
4935
|
+
declare const _default$13: typeof __VLS_export$29;
|
|
4814
4936
|
//#endregion
|
|
4815
4937
|
//#region temp/packages/editor/src/fields/DataSourceSelect.vue.d.ts
|
|
4816
|
-
type __VLS_Props$
|
|
4817
|
-
declare const __VLS_export$
|
|
4938
|
+
type __VLS_Props$25 = FieldProps<DataSourceSelect>;
|
|
4939
|
+
declare const __VLS_export$28: import("@vue/runtime-core").DefineComponent<__VLS_Props$25, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
4818
4940
|
change: (...args: any[]) => void;
|
|
4819
|
-
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$
|
|
4941
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$25> & Readonly<{
|
|
4820
4942
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
4821
4943
|
}>, {
|
|
4822
4944
|
disabled: boolean;
|
|
4823
4945
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
4824
|
-
declare const _default$17: typeof __VLS_export$
|
|
4946
|
+
declare const _default$17: typeof __VLS_export$28;
|
|
4825
4947
|
//#endregion
|
|
4826
4948
|
//#region temp/packages/editor/src/fields/DataSourceMethodSelect.vue.d.ts
|
|
4827
|
-
type __VLS_Props$
|
|
4828
|
-
declare const __VLS_export$
|
|
4949
|
+
type __VLS_Props$24 = FieldProps<DataSourceMethodSelectConfig>;
|
|
4950
|
+
declare const __VLS_export$27: import("@vue/runtime-core").DefineComponent<__VLS_Props$24, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
4829
4951
|
change: (...args: any[]) => void;
|
|
4830
|
-
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$
|
|
4952
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$24> & Readonly<{
|
|
4831
4953
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
4832
4954
|
}>, {
|
|
4833
4955
|
disabled: boolean;
|
|
4834
4956
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
4835
|
-
declare const _default$14: typeof __VLS_export$
|
|
4957
|
+
declare const _default$14: typeof __VLS_export$27;
|
|
4836
4958
|
//#endregion
|
|
4837
4959
|
//#region temp/packages/editor/src/fields/DataSourceFieldSelect/Index.vue.d.ts
|
|
4838
|
-
type __VLS_Props$
|
|
4839
|
-
declare const __VLS_export$
|
|
4960
|
+
type __VLS_Props$23 = FieldProps<DataSourceFieldSelectConfig>;
|
|
4961
|
+
declare const __VLS_export$26: import("@vue/runtime-core").DefineComponent<__VLS_Props$23, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
4840
4962
|
change: (...args: any[]) => void;
|
|
4841
|
-
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$
|
|
4963
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$23> & Readonly<{
|
|
4842
4964
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
4843
4965
|
}>, {
|
|
4844
4966
|
disabled: boolean;
|
|
4845
4967
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
4846
|
-
declare const _default$11: typeof __VLS_export$
|
|
4968
|
+
declare const _default$11: typeof __VLS_export$26;
|
|
4847
4969
|
//#endregion
|
|
4848
4970
|
//#region temp/packages/editor/src/fields/EventSelect.vue.d.ts
|
|
4849
|
-
type __VLS_Props$
|
|
4850
|
-
declare const __VLS_export$
|
|
4971
|
+
type __VLS_Props$22 = FieldProps<EventSelectConfig>;
|
|
4972
|
+
declare const __VLS_export$25: import("@vue/runtime-core").DefineComponent<__VLS_Props$22, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
4851
4973
|
change: (v: any, eventData?: ContainerChangeEventData | undefined) => any;
|
|
4852
|
-
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$
|
|
4974
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$22> & Readonly<{
|
|
4853
4975
|
onChange?: ((v: any, eventData?: ContainerChangeEventData | undefined) => any) | undefined;
|
|
4854
4976
|
}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
4855
|
-
declare const _default$19: typeof __VLS_export$
|
|
4977
|
+
declare const _default$19: typeof __VLS_export$25;
|
|
4856
4978
|
//#endregion
|
|
4857
4979
|
//#region temp/packages/editor/src/fields/KeyValue.vue.d.ts
|
|
4858
|
-
type __VLS_Props$
|
|
4859
|
-
declare const __VLS_export$
|
|
4980
|
+
type __VLS_Props$21 = FieldProps<KeyValueConfig>;
|
|
4981
|
+
declare const __VLS_export$24: import("@vue/runtime-core").DefineComponent<__VLS_Props$21, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
4860
4982
|
change: (value: Record<string, any>) => any;
|
|
4861
|
-
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$
|
|
4983
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$21> & Readonly<{
|
|
4862
4984
|
onChange?: ((value: Record<string, any>) => any) | undefined;
|
|
4863
4985
|
}>, {
|
|
4864
4986
|
disabled: boolean;
|
|
4865
4987
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
4866
|
-
declare const _default$25: typeof __VLS_export$
|
|
4988
|
+
declare const _default$25: typeof __VLS_export$24;
|
|
4867
4989
|
//#endregion
|
|
4868
4990
|
//#region temp/packages/editor/src/layouts/sidebar/code-block/CodeBlockList.vue.d.ts
|
|
4869
4991
|
type __VLS_Slots$9 = CodeBlockListSlots;
|
|
4870
|
-
type __VLS_Props$
|
|
4992
|
+
type __VLS_Props$20 = {
|
|
4871
4993
|
indent?: number;
|
|
4872
4994
|
nextLevelIndentIncrement?: number;
|
|
4873
4995
|
customError?: (_id: Id, _errorType: CodeDeleteErrorType) => any;
|
|
4874
4996
|
};
|
|
4875
|
-
declare const __VLS_base$9: import("@vue/runtime-core").DefineComponent<__VLS_Props$
|
|
4997
|
+
declare const __VLS_base$9: import("@vue/runtime-core").DefineComponent<__VLS_Props$20, {
|
|
4876
4998
|
nodeStatusMap: import("@vue/reactivity").Ref<Map<Id, {
|
|
4877
4999
|
visible: boolean;
|
|
4878
5000
|
expand: boolean;
|
|
@@ -4896,15 +5018,15 @@ declare const __VLS_base$9: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
4896
5018
|
}) => any;
|
|
4897
5019
|
edit: (id: string) => any;
|
|
4898
5020
|
"node-contextmenu": (event: MouseEvent, data: TreeNodeData) => any;
|
|
4899
|
-
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$
|
|
5021
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$20> & Readonly<{
|
|
4900
5022
|
onRemove?: ((id: string, args_1: {
|
|
4901
5023
|
historySource?: HistoryOpSource;
|
|
4902
5024
|
}) => any) | undefined;
|
|
4903
5025
|
onEdit?: ((id: string) => any) | undefined;
|
|
4904
5026
|
"onNode-contextmenu"?: ((event: MouseEvent, data: TreeNodeData) => any) | undefined;
|
|
4905
5027
|
}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
4906
|
-
declare const __VLS_export$
|
|
4907
|
-
declare const _default$1: typeof __VLS_export$
|
|
5028
|
+
declare const __VLS_export$23: __VLS_WithSlots$9<typeof __VLS_base$9, __VLS_Slots$9>;
|
|
5029
|
+
declare const _default$1: typeof __VLS_export$23;
|
|
4908
5030
|
type __VLS_WithSlots$9<T, S> = T & {
|
|
4909
5031
|
new (): {
|
|
4910
5032
|
$slots: S;
|
|
@@ -4913,15 +5035,15 @@ type __VLS_WithSlots$9<T, S> = T & {
|
|
|
4913
5035
|
//#endregion
|
|
4914
5036
|
//#region temp/packages/editor/src/layouts/sidebar/code-block/CodeBlockListPanel.vue.d.ts
|
|
4915
5037
|
type __VLS_Slots$8 = CodeBlockListPanelSlots;
|
|
4916
|
-
type __VLS_Props$
|
|
5038
|
+
type __VLS_Props$19 = {
|
|
4917
5039
|
indent?: number;
|
|
4918
5040
|
nextLevelIndentIncrement?: number;
|
|
4919
5041
|
customError?: (_id: Id, _errorType: CodeDeleteErrorType) => any;
|
|
4920
5042
|
customContentMenu: CustomContentMenuFunction;
|
|
4921
5043
|
};
|
|
4922
|
-
declare const __VLS_base$8: import("@vue/runtime-core").DefineComponent<__VLS_Props$
|
|
4923
|
-
declare const __VLS_export$
|
|
4924
|
-
declare const _default$2: typeof __VLS_export$
|
|
5044
|
+
declare const __VLS_base$8: import("@vue/runtime-core").DefineComponent<__VLS_Props$19, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$19> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
5045
|
+
declare const __VLS_export$22: __VLS_WithSlots$8<typeof __VLS_base$8, __VLS_Slots$8>;
|
|
5046
|
+
declare const _default$2: typeof __VLS_export$22;
|
|
4925
5047
|
type __VLS_WithSlots$8<T, S> = T & {
|
|
4926
5048
|
new (): {
|
|
4927
5049
|
$slots: S;
|
|
@@ -4929,7 +5051,7 @@ type __VLS_WithSlots$8<T, S> = T & {
|
|
|
4929
5051
|
};
|
|
4930
5052
|
//#endregion
|
|
4931
5053
|
//#region temp/packages/editor/src/layouts/sidebar/data-source/DataSourceConfigPanel.vue.d.ts
|
|
4932
|
-
type __VLS_Props$
|
|
5054
|
+
type __VLS_Props$18 = {
|
|
4933
5055
|
title?: string;
|
|
4934
5056
|
values: any;
|
|
4935
5057
|
disabled: boolean; /** 打开后需要直接定位并打开的方法名,传入时默认激活「方法定义」tab */
|
|
@@ -4940,8 +5062,8 @@ type __VLS_ModelProps$2 = {
|
|
|
4940
5062
|
'visible'?: boolean;
|
|
4941
5063
|
'width'?: number;
|
|
4942
5064
|
};
|
|
4943
|
-
type __VLS_PublicProps$2 = __VLS_Props$
|
|
4944
|
-
declare const __VLS_export$
|
|
5065
|
+
type __VLS_PublicProps$2 = __VLS_Props$18 & __VLS_ModelProps$2;
|
|
5066
|
+
declare const __VLS_export$21: import("@vue/runtime-core").DefineComponent<__VLS_PublicProps$2, {
|
|
4945
5067
|
show(): void;
|
|
4946
5068
|
hide(): void;
|
|
4947
5069
|
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
@@ -4957,10 +5079,10 @@ declare const __VLS_export$20: import("@vue/runtime-core").DefineComponent<__VLS
|
|
|
4957
5079
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
4958
5080
|
"onUpdate:width"?: ((value: number) => any) | undefined;
|
|
4959
5081
|
}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
4960
|
-
declare const _default$10: typeof __VLS_export$
|
|
5082
|
+
declare const _default$10: typeof __VLS_export$21;
|
|
4961
5083
|
//#endregion
|
|
4962
5084
|
//#region temp/packages/editor/src/layouts/sidebar/data-source/DataSourceAddButton.vue.d.ts
|
|
4963
|
-
type __VLS_Props$
|
|
5085
|
+
type __VLS_Props$17 = {
|
|
4964
5086
|
datasourceTypeList: {
|
|
4965
5087
|
text: string;
|
|
4966
5088
|
type: string;
|
|
@@ -4968,20 +5090,20 @@ type __VLS_Props$16 = {
|
|
|
4968
5090
|
addButtonConfig?: ButtonProps;
|
|
4969
5091
|
addButtonText?: string;
|
|
4970
5092
|
};
|
|
4971
|
-
declare const __VLS_export$
|
|
5093
|
+
declare const __VLS_export$20: import("@vue/runtime-core").DefineComponent<__VLS_Props$17, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
4972
5094
|
add: (type: string) => any;
|
|
4973
|
-
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$
|
|
5095
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$17> & Readonly<{
|
|
4974
5096
|
onAdd?: ((type: string) => any) | undefined;
|
|
4975
5097
|
}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
4976
|
-
declare const _default$9: typeof __VLS_export$
|
|
5098
|
+
declare const _default$9: typeof __VLS_export$20;
|
|
4977
5099
|
//#endregion
|
|
4978
5100
|
//#region temp/packages/editor/src/layouts/props-panel/PropsPanel.vue.d.ts
|
|
4979
5101
|
type __VLS_Slots$7 = PropsPanelSlots;
|
|
4980
|
-
type __VLS_Props$
|
|
5102
|
+
type __VLS_Props$16 = {
|
|
4981
5103
|
disabledShowSrc?: boolean;
|
|
4982
5104
|
extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
4983
5105
|
};
|
|
4984
|
-
declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Props$
|
|
5106
|
+
declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Props$16, {
|
|
4985
5107
|
getFormState(): FormState | undefined;
|
|
4986
5108
|
submit: (v: MNode, eventData?: ContainerChangeEventData, error?: any, source?: NodeInvalidSource) => Promise<void>;
|
|
4987
5109
|
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
@@ -4996,9 +5118,9 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
4996
5118
|
readonly codeValueKey?: string | undefined;
|
|
4997
5119
|
readonly labelPosition?: string | undefined;
|
|
4998
5120
|
readonly extendState?: ((_state: FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
|
|
5121
|
+
readonly onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any) | undefined;
|
|
4999
5122
|
readonly onMounted?: ((internalInstance: any) => any) | undefined;
|
|
5000
5123
|
readonly onUnmounted?: (() => any) | undefined;
|
|
5001
|
-
readonly onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any) | undefined;
|
|
5002
5124
|
readonly "onSubmit-error"?: ((e: any) => any) | undefined;
|
|
5003
5125
|
readonly "onForm-error"?: ((e: any) => any) | undefined;
|
|
5004
5126
|
} & import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps;
|
|
@@ -5012,7 +5134,7 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5012
5134
|
$root: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
5013
5135
|
$parent: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
5014
5136
|
$host: Element | null;
|
|
5015
|
-
$emit: ((event: "
|
|
5137
|
+
$emit: ((event: "submit", values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => void) & ((event: "mounted", internalInstance: any) => void) & ((event: "unmounted") => void) & ((event: "submit-error", e: any) => void) & ((event: "form-error", e: any) => void);
|
|
5016
5138
|
$el: any;
|
|
5017
5139
|
$options: import("@vue/runtime-core").ComponentOptionsBase<Readonly<{
|
|
5018
5140
|
config: import("@tmagic/form-schema").FormConfig;
|
|
@@ -5023,9 +5145,9 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5023
5145
|
labelPosition?: string;
|
|
5024
5146
|
extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
5025
5147
|
}> & Readonly<{
|
|
5148
|
+
onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any) | undefined;
|
|
5026
5149
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
5027
5150
|
onUnmounted?: (() => any) | undefined;
|
|
5028
|
-
onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any) | undefined;
|
|
5029
5151
|
"onSubmit-error"?: ((e: any) => any) | undefined;
|
|
5030
5152
|
"onForm-error"?: ((e: any) => any) | undefined;
|
|
5031
5153
|
}>, {
|
|
@@ -5057,6 +5179,7 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5057
5179
|
config: any;
|
|
5058
5180
|
}) => boolean) | undefined;
|
|
5059
5181
|
readonly selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]) | undefined;
|
|
5182
|
+
readonly theme?: string | undefined;
|
|
5060
5183
|
readonly onError?: ((...args: any[]) => any) | undefined;
|
|
5061
5184
|
readonly onChange?: ((...args: any[]) => any) | undefined;
|
|
5062
5185
|
readonly "onField-input"?: ((...args: any[]) => any) | undefined;
|
|
@@ -5100,6 +5223,7 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5100
5223
|
config: any;
|
|
5101
5224
|
}) => boolean;
|
|
5102
5225
|
selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
|
|
5226
|
+
theme?: string;
|
|
5103
5227
|
}> & Readonly<{
|
|
5104
5228
|
onError?: ((...args: any[]) => any) | undefined;
|
|
5105
5229
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
@@ -5196,6 +5320,7 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5196
5320
|
config: any;
|
|
5197
5321
|
}) => boolean;
|
|
5198
5322
|
selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
|
|
5323
|
+
theme?: string;
|
|
5199
5324
|
}> & Readonly<{
|
|
5200
5325
|
onError?: ((...args: any[]) => any) | undefined;
|
|
5201
5326
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
@@ -5218,9 +5343,9 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5218
5343
|
}) | null>>;
|
|
5219
5344
|
submit: (v: FormValue, eventData: ContainerChangeEventData) => Promise<void>;
|
|
5220
5345
|
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
5346
|
+
submit: (values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any;
|
|
5221
5347
|
mounted: (internalInstance: any) => any;
|
|
5222
5348
|
unmounted: () => any;
|
|
5223
|
-
submit: (values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any;
|
|
5224
5349
|
"submit-error": (e: any) => any;
|
|
5225
5350
|
"form-error": (e: any) => any;
|
|
5226
5351
|
}, string, {}, {}, string, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, import("@vue/runtime-core").ComponentProvideOptions> & {
|
|
@@ -5252,9 +5377,9 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5252
5377
|
labelPosition?: string;
|
|
5253
5378
|
extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
5254
5379
|
}> & Readonly<{
|
|
5380
|
+
onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any) | undefined;
|
|
5255
5381
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
5256
5382
|
onUnmounted?: (() => any) | undefined;
|
|
5257
|
-
onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any) | undefined;
|
|
5258
5383
|
"onSubmit-error"?: ((e: any) => any) | undefined;
|
|
5259
5384
|
"onForm-error"?: ((e: any) => any) | undefined;
|
|
5260
5385
|
}>, "submit" | "configForm"> & {
|
|
@@ -5286,6 +5411,7 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5286
5411
|
config: any;
|
|
5287
5412
|
}) => boolean) | undefined;
|
|
5288
5413
|
readonly selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]) | undefined;
|
|
5414
|
+
readonly theme?: string | undefined;
|
|
5289
5415
|
readonly onError?: ((...args: any[]) => any) | undefined;
|
|
5290
5416
|
readonly onChange?: ((...args: any[]) => any) | undefined;
|
|
5291
5417
|
readonly "onField-input"?: ((...args: any[]) => any) | undefined;
|
|
@@ -5329,6 +5455,7 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5329
5455
|
config: any;
|
|
5330
5456
|
}) => boolean;
|
|
5331
5457
|
selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
|
|
5458
|
+
theme?: string;
|
|
5332
5459
|
}> & Readonly<{
|
|
5333
5460
|
onError?: ((...args: any[]) => any) | undefined;
|
|
5334
5461
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
@@ -5425,6 +5552,7 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5425
5552
|
config: any;
|
|
5426
5553
|
}) => boolean;
|
|
5427
5554
|
selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
|
|
5555
|
+
theme?: string;
|
|
5428
5556
|
}> & Readonly<{
|
|
5429
5557
|
onError?: ((...args: any[]) => any) | undefined;
|
|
5430
5558
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
@@ -5454,7 +5582,7 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5454
5582
|
unmounted: () => any;
|
|
5455
5583
|
"submit-error": (e: any) => any;
|
|
5456
5584
|
"form-error": (e: any) => any;
|
|
5457
|
-
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$
|
|
5585
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$16> & Readonly<{
|
|
5458
5586
|
onMounted?: ((internalInstance: {
|
|
5459
5587
|
$: import("@vue/runtime-core").ComponentInternalInstance;
|
|
5460
5588
|
$data: {};
|
|
@@ -5466,9 +5594,9 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5466
5594
|
readonly codeValueKey?: string | undefined;
|
|
5467
5595
|
readonly labelPosition?: string | undefined;
|
|
5468
5596
|
readonly extendState?: ((_state: FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
|
|
5597
|
+
readonly onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any) | undefined;
|
|
5469
5598
|
readonly onMounted?: ((internalInstance: any) => any) | undefined;
|
|
5470
5599
|
readonly onUnmounted?: (() => any) | undefined;
|
|
5471
|
-
readonly onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any) | undefined;
|
|
5472
5600
|
readonly "onSubmit-error"?: ((e: any) => any) | undefined;
|
|
5473
5601
|
readonly "onForm-error"?: ((e: any) => any) | undefined;
|
|
5474
5602
|
} & import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps;
|
|
@@ -5482,7 +5610,7 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5482
5610
|
$root: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
5483
5611
|
$parent: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
5484
5612
|
$host: Element | null;
|
|
5485
|
-
$emit: ((event: "
|
|
5613
|
+
$emit: ((event: "submit", values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => void) & ((event: "mounted", internalInstance: any) => void) & ((event: "unmounted") => void) & ((event: "submit-error", e: any) => void) & ((event: "form-error", e: any) => void);
|
|
5486
5614
|
$el: any;
|
|
5487
5615
|
$options: import("@vue/runtime-core").ComponentOptionsBase<Readonly<{
|
|
5488
5616
|
config: import("@tmagic/form-schema").FormConfig;
|
|
@@ -5493,9 +5621,9 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5493
5621
|
labelPosition?: string;
|
|
5494
5622
|
extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
5495
5623
|
}> & Readonly<{
|
|
5624
|
+
onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any) | undefined;
|
|
5496
5625
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
5497
5626
|
onUnmounted?: (() => any) | undefined;
|
|
5498
|
-
onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any) | undefined;
|
|
5499
5627
|
"onSubmit-error"?: ((e: any) => any) | undefined;
|
|
5500
5628
|
"onForm-error"?: ((e: any) => any) | undefined;
|
|
5501
5629
|
}>, {
|
|
@@ -5527,6 +5655,7 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5527
5655
|
config: any;
|
|
5528
5656
|
}) => boolean) | undefined;
|
|
5529
5657
|
readonly selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]) | undefined;
|
|
5658
|
+
readonly theme?: string | undefined;
|
|
5530
5659
|
readonly onError?: ((...args: any[]) => any) | undefined;
|
|
5531
5660
|
readonly onChange?: ((...args: any[]) => any) | undefined;
|
|
5532
5661
|
readonly "onField-input"?: ((...args: any[]) => any) | undefined;
|
|
@@ -5570,6 +5699,7 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5570
5699
|
config: any;
|
|
5571
5700
|
}) => boolean;
|
|
5572
5701
|
selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
|
|
5702
|
+
theme?: string;
|
|
5573
5703
|
}> & Readonly<{
|
|
5574
5704
|
onError?: ((...args: any[]) => any) | undefined;
|
|
5575
5705
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
@@ -5666,6 +5796,7 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5666
5796
|
config: any;
|
|
5667
5797
|
}) => boolean;
|
|
5668
5798
|
selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
|
|
5799
|
+
theme?: string;
|
|
5669
5800
|
}> & Readonly<{
|
|
5670
5801
|
onError?: ((...args: any[]) => any) | undefined;
|
|
5671
5802
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
@@ -5688,9 +5819,9 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5688
5819
|
}) | null>>;
|
|
5689
5820
|
submit: (v: FormValue, eventData: ContainerChangeEventData) => Promise<void>;
|
|
5690
5821
|
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
5822
|
+
submit: (values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any;
|
|
5691
5823
|
mounted: (internalInstance: any) => any;
|
|
5692
5824
|
unmounted: () => any;
|
|
5693
|
-
submit: (values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any;
|
|
5694
5825
|
"submit-error": (e: any) => any;
|
|
5695
5826
|
"form-error": (e: any) => any;
|
|
5696
5827
|
}, string, {}, {}, string, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, import("@vue/runtime-core").ComponentProvideOptions> & {
|
|
@@ -5722,9 +5853,9 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5722
5853
|
labelPosition?: string;
|
|
5723
5854
|
extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
5724
5855
|
}> & Readonly<{
|
|
5856
|
+
onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any) | undefined;
|
|
5725
5857
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
5726
5858
|
onUnmounted?: (() => any) | undefined;
|
|
5727
|
-
onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any) | undefined;
|
|
5728
5859
|
"onSubmit-error"?: ((e: any) => any) | undefined;
|
|
5729
5860
|
"onForm-error"?: ((e: any) => any) | undefined;
|
|
5730
5861
|
}>, "submit" | "configForm"> & {
|
|
@@ -5756,6 +5887,7 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5756
5887
|
config: any;
|
|
5757
5888
|
}) => boolean) | undefined;
|
|
5758
5889
|
readonly selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]) | undefined;
|
|
5890
|
+
readonly theme?: string | undefined;
|
|
5759
5891
|
readonly onError?: ((...args: any[]) => any) | undefined;
|
|
5760
5892
|
readonly onChange?: ((...args: any[]) => any) | undefined;
|
|
5761
5893
|
readonly "onField-input"?: ((...args: any[]) => any) | undefined;
|
|
@@ -5799,6 +5931,7 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5799
5931
|
config: any;
|
|
5800
5932
|
}) => boolean;
|
|
5801
5933
|
selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
|
|
5934
|
+
theme?: string;
|
|
5802
5935
|
}> & Readonly<{
|
|
5803
5936
|
onError?: ((...args: any[]) => any) | undefined;
|
|
5804
5937
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
@@ -5895,6 +6028,7 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5895
6028
|
config: any;
|
|
5896
6029
|
}) => boolean;
|
|
5897
6030
|
selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
|
|
6031
|
+
theme?: string;
|
|
5898
6032
|
}> & Readonly<{
|
|
5899
6033
|
onError?: ((...args: any[]) => any) | undefined;
|
|
5900
6034
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
@@ -5925,8 +6059,8 @@ declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5925
6059
|
"onSubmit-error"?: ((e: any) => any) | undefined;
|
|
5926
6060
|
"onForm-error"?: ((e: any) => any) | undefined;
|
|
5927
6061
|
}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
5928
|
-
declare const __VLS_export$
|
|
5929
|
-
declare const _default$31: typeof __VLS_export$
|
|
6062
|
+
declare const __VLS_export$19: __VLS_WithSlots$7<typeof __VLS_base$7, __VLS_Slots$7>;
|
|
6063
|
+
declare const _default$31: typeof __VLS_export$19;
|
|
5930
6064
|
type __VLS_WithSlots$7<T, S> = T & {
|
|
5931
6065
|
new (): {
|
|
5932
6066
|
$slots: S;
|
|
@@ -5937,7 +6071,7 @@ type __VLS_WithSlots$7<T, S> = T & {
|
|
|
5937
6071
|
type __VLS_Slots$6 = {
|
|
5938
6072
|
'props-form-panel-header'(_props: {}): any;
|
|
5939
6073
|
};
|
|
5940
|
-
type __VLS_Props$
|
|
6074
|
+
type __VLS_Props$15 = {
|
|
5941
6075
|
config: FormConfig;
|
|
5942
6076
|
values: FormValue;
|
|
5943
6077
|
disabledShowSrc?: boolean;
|
|
@@ -5946,7 +6080,7 @@ type __VLS_Props$14 = {
|
|
|
5946
6080
|
labelPosition?: string;
|
|
5947
6081
|
extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
5948
6082
|
};
|
|
5949
|
-
declare const __VLS_base$6: import("@vue/runtime-core").DefineComponent<__VLS_Props$
|
|
6083
|
+
declare const __VLS_base$6: import("@vue/runtime-core").DefineComponent<__VLS_Props$15, {
|
|
5950
6084
|
configForm: Readonly<import("@vue/reactivity").ShallowRef<({
|
|
5951
6085
|
$: import("@vue/runtime-core").ComponentInternalInstance;
|
|
5952
6086
|
$data: {};
|
|
@@ -5975,6 +6109,7 @@ declare const __VLS_base$6: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
5975
6109
|
config: any;
|
|
5976
6110
|
}) => boolean) | undefined;
|
|
5977
6111
|
readonly selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]) | undefined;
|
|
6112
|
+
readonly theme?: string | undefined;
|
|
5978
6113
|
readonly onError?: ((...args: any[]) => any) | undefined;
|
|
5979
6114
|
readonly onChange?: ((...args: any[]) => any) | undefined;
|
|
5980
6115
|
readonly "onField-input"?: ((...args: any[]) => any) | undefined;
|
|
@@ -6018,6 +6153,7 @@ declare const __VLS_base$6: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
6018
6153
|
config: any;
|
|
6019
6154
|
}) => boolean;
|
|
6020
6155
|
selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
|
|
6156
|
+
theme?: string;
|
|
6021
6157
|
}> & Readonly<{
|
|
6022
6158
|
onError?: ((...args: any[]) => any) | undefined;
|
|
6023
6159
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
@@ -6114,6 +6250,7 @@ declare const __VLS_base$6: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
6114
6250
|
config: any;
|
|
6115
6251
|
}) => boolean;
|
|
6116
6252
|
selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
|
|
6253
|
+
theme?: string;
|
|
6117
6254
|
}> & Readonly<{
|
|
6118
6255
|
onError?: ((...args: any[]) => any) | undefined;
|
|
6119
6256
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
@@ -6136,20 +6273,20 @@ declare const __VLS_base$6: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
6136
6273
|
}) | null>>;
|
|
6137
6274
|
submit: (v: FormValue, eventData: ContainerChangeEventData) => Promise<void>;
|
|
6138
6275
|
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
6276
|
+
submit: (values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any;
|
|
6139
6277
|
mounted: (internalInstance: any) => any;
|
|
6140
6278
|
unmounted: () => any;
|
|
6141
|
-
submit: (values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any;
|
|
6142
6279
|
"submit-error": (e: any) => any;
|
|
6143
6280
|
"form-error": (e: any) => any;
|
|
6144
|
-
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$
|
|
6281
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$15> & Readonly<{
|
|
6282
|
+
onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any) | undefined;
|
|
6145
6283
|
onMounted?: ((internalInstance: any) => any) | undefined;
|
|
6146
6284
|
onUnmounted?: (() => any) | undefined;
|
|
6147
|
-
onSubmit?: ((values: any, eventData?: ContainerChangeEventData | undefined, error?: any) => any) | undefined;
|
|
6148
6285
|
"onSubmit-error"?: ((e: any) => any) | undefined;
|
|
6149
6286
|
"onForm-error"?: ((e: any) => any) | undefined;
|
|
6150
6287
|
}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
6151
|
-
declare const __VLS_export$
|
|
6152
|
-
declare const _default$30: typeof __VLS_export$
|
|
6288
|
+
declare const __VLS_export$18: __VLS_WithSlots$6<typeof __VLS_base$6, __VLS_Slots$6>;
|
|
6289
|
+
declare const _default$30: typeof __VLS_export$18;
|
|
6153
6290
|
type __VLS_WithSlots$6<T, S> = T & {
|
|
6154
6291
|
new (): {
|
|
6155
6292
|
$slots: S;
|
|
@@ -6157,20 +6294,20 @@ type __VLS_WithSlots$6<T, S> = T & {
|
|
|
6157
6294
|
};
|
|
6158
6295
|
//#endregion
|
|
6159
6296
|
//#region temp/packages/editor/src/components/ToolButton.vue.d.ts
|
|
6160
|
-
type __VLS_Props$
|
|
6297
|
+
type __VLS_Props$14 = {
|
|
6161
6298
|
data?: MenuButton | MenuComponent;
|
|
6162
6299
|
eventType?: 'mousedown' | 'mouseup' | 'click';
|
|
6163
6300
|
};
|
|
6164
|
-
declare const __VLS_export$
|
|
6301
|
+
declare const __VLS_export$17: import("@vue/runtime-core").DefineComponent<__VLS_Props$14, {
|
|
6165
6302
|
getElRef: () => Readonly<import("@vue/reactivity").ShallowRef<HTMLDivElement | null>>;
|
|
6166
|
-
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$
|
|
6303
|
+
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$14> & Readonly<{}>, {
|
|
6167
6304
|
data: MenuButton | MenuComponent;
|
|
6168
6305
|
eventType: "mousedown" | "mouseup" | "click";
|
|
6169
6306
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
6170
|
-
declare const _default$36: typeof __VLS_export$
|
|
6307
|
+
declare const _default$36: typeof __VLS_export$17;
|
|
6171
6308
|
//#endregion
|
|
6172
6309
|
//#region temp/packages/editor/src/components/ContentMenu.vue.d.ts
|
|
6173
|
-
type __VLS_Props$
|
|
6310
|
+
type __VLS_Props$13 = {
|
|
6174
6311
|
menuData?: (MenuButton | MenuComponent)[];
|
|
6175
6312
|
isSubMenu?: boolean;
|
|
6176
6313
|
active?: string | number;
|
|
@@ -6180,7 +6317,7 @@ declare var __VLS_7$1: {};
|
|
|
6180
6317
|
type __VLS_Slots$5 = {} & {
|
|
6181
6318
|
title?: (props: typeof __VLS_7$1) => any;
|
|
6182
6319
|
};
|
|
6183
|
-
declare const __VLS_base$5: import("@vue/runtime-core").DefineComponent<__VLS_Props$
|
|
6320
|
+
declare const __VLS_base$5: import("@vue/runtime-core").DefineComponent<__VLS_Props$13, {
|
|
6184
6321
|
menu: Readonly<import("@vue/reactivity").ShallowRef<HTMLDivElement | null>>;
|
|
6185
6322
|
menuPosition: Ref<{
|
|
6186
6323
|
left: number;
|
|
@@ -6206,7 +6343,7 @@ declare const __VLS_base$5: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
6206
6343
|
mouseenter: () => any;
|
|
6207
6344
|
show: () => any;
|
|
6208
6345
|
hide: () => any;
|
|
6209
|
-
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$
|
|
6346
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$13> & Readonly<{
|
|
6210
6347
|
onMouseenter?: (() => any) | undefined;
|
|
6211
6348
|
onShow?: (() => any) | undefined;
|
|
6212
6349
|
onHide?: (() => any) | undefined;
|
|
@@ -6215,8 +6352,8 @@ declare const __VLS_base$5: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
6215
6352
|
isSubMenu: boolean;
|
|
6216
6353
|
autoHide: boolean;
|
|
6217
6354
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
6218
|
-
declare const __VLS_export$
|
|
6219
|
-
declare const _default$8: typeof __VLS_export$
|
|
6355
|
+
declare const __VLS_export$16: __VLS_WithSlots$5<typeof __VLS_base$5, __VLS_Slots$5>;
|
|
6356
|
+
declare const _default$8: typeof __VLS_export$16;
|
|
6220
6357
|
type __VLS_WithSlots$5<T, S> = T & {
|
|
6221
6358
|
new (): {
|
|
6222
6359
|
$slots: S;
|
|
@@ -6224,14 +6361,14 @@ type __VLS_WithSlots$5<T, S> = T & {
|
|
|
6224
6361
|
};
|
|
6225
6362
|
//#endregion
|
|
6226
6363
|
//#region temp/packages/editor/src/components/Icon.vue.d.ts
|
|
6227
|
-
type __VLS_Props$
|
|
6364
|
+
type __VLS_Props$12 = {
|
|
6228
6365
|
icon?: any;
|
|
6229
6366
|
};
|
|
6230
|
-
declare const __VLS_export$
|
|
6231
|
-
declare const _default$24: typeof __VLS_export$
|
|
6367
|
+
declare const __VLS_export$15: import("@vue/runtime-core").DefineComponent<__VLS_Props$12, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$12> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
6368
|
+
declare const _default$24: typeof __VLS_export$15;
|
|
6232
6369
|
//#endregion
|
|
6233
6370
|
//#region temp/packages/editor/src/components/SplitView.vue.d.ts
|
|
6234
|
-
type __VLS_Props$
|
|
6371
|
+
type __VLS_Props$11 = {
|
|
6235
6372
|
width?: number;
|
|
6236
6373
|
left?: number;
|
|
6237
6374
|
right?: number;
|
|
@@ -6250,13 +6387,13 @@ type __VLS_Slots$4 = {} & {
|
|
|
6250
6387
|
} & {
|
|
6251
6388
|
right?: (props: typeof __VLS_19) => any;
|
|
6252
6389
|
};
|
|
6253
|
-
declare const __VLS_base$4: import("@vue/runtime-core").DefineComponent<__VLS_Props$
|
|
6390
|
+
declare const __VLS_base$4: import("@vue/runtime-core").DefineComponent<__VLS_Props$11, {
|
|
6254
6391
|
updateWidth(): void;
|
|
6255
6392
|
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
6256
6393
|
change: (...args: any[]) => void;
|
|
6257
6394
|
"update:left": (...args: any[]) => void;
|
|
6258
6395
|
"update:right": (...args: any[]) => void;
|
|
6259
|
-
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$
|
|
6396
|
+
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$11> & Readonly<{
|
|
6260
6397
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
6261
6398
|
"onUpdate:left"?: ((...args: any[]) => any) | undefined;
|
|
6262
6399
|
"onUpdate:right"?: ((...args: any[]) => any) | undefined;
|
|
@@ -6265,8 +6402,8 @@ declare const __VLS_base$4: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
6265
6402
|
minRight: number;
|
|
6266
6403
|
minCenter: number;
|
|
6267
6404
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
6268
|
-
declare const __VLS_export$
|
|
6269
|
-
declare const _default$28: typeof __VLS_export$
|
|
6405
|
+
declare const __VLS_export$14: __VLS_WithSlots$4<typeof __VLS_base$4, __VLS_Slots$4>;
|
|
6406
|
+
declare const _default$28: typeof __VLS_export$14;
|
|
6270
6407
|
type __VLS_WithSlots$4<T, S> = T & {
|
|
6271
6408
|
new (): {
|
|
6272
6409
|
$slots: S;
|
|
@@ -6283,8 +6420,8 @@ declare const __VLS_base$3: import("@vue/runtime-core").DefineComponent<{}, {},
|
|
|
6283
6420
|
}, string, import("@vue/runtime-core").PublicProps, Readonly<{}> & Readonly<{
|
|
6284
6421
|
onChange?: ((e: OnDrag$1<import("gesto").default>) => any) | undefined;
|
|
6285
6422
|
}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
|
|
6286
|
-
declare const __VLS_export$
|
|
6287
|
-
declare const _default$32: typeof __VLS_export$
|
|
6423
|
+
declare const __VLS_export$13: __VLS_WithSlots$3<typeof __VLS_base$3, __VLS_Slots$3>;
|
|
6424
|
+
declare const _default$32: typeof __VLS_export$13;
|
|
6288
6425
|
type __VLS_WithSlots$3<T, S> = T & {
|
|
6289
6426
|
new (): {
|
|
6290
6427
|
$slots: S;
|
|
@@ -6292,7 +6429,7 @@ type __VLS_WithSlots$3<T, S> = T & {
|
|
|
6292
6429
|
};
|
|
6293
6430
|
//#endregion
|
|
6294
6431
|
//#region temp/packages/editor/src/components/CodeBlockEditor.vue.d.ts
|
|
6295
|
-
type __VLS_Props$
|
|
6432
|
+
type __VLS_Props$10 = {
|
|
6296
6433
|
content: Omit<CodeBlockContent, 'content'> & {
|
|
6297
6434
|
content: string;
|
|
6298
6435
|
};
|
|
@@ -6304,8 +6441,8 @@ type __VLS_ModelProps$1 = {
|
|
|
6304
6441
|
'width'?: number;
|
|
6305
6442
|
'visible'?: boolean;
|
|
6306
6443
|
};
|
|
6307
|
-
type __VLS_PublicProps$1 = __VLS_Props$
|
|
6308
|
-
declare const __VLS_export$
|
|
6444
|
+
type __VLS_PublicProps$1 = __VLS_Props$10 & __VLS_ModelProps$1;
|
|
6445
|
+
declare const __VLS_export$12: import("@vue/runtime-core").DefineComponent<__VLS_PublicProps$1, {
|
|
6309
6446
|
show(): Promise<void>;
|
|
6310
6447
|
hide(): Promise<void>;
|
|
6311
6448
|
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
@@ -6321,63 +6458,37 @@ declare const __VLS_export$11: import("@vue/runtime-core").DefineComponent<__VLS
|
|
|
6321
6458
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
6322
6459
|
"onUpdate:width"?: ((value: number) => any) | undefined;
|
|
6323
6460
|
}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
6324
|
-
declare const _default: typeof __VLS_export$
|
|
6461
|
+
declare const _default: typeof __VLS_export$12;
|
|
6325
6462
|
//#endregion
|
|
6326
6463
|
//#region temp/packages/editor/src/components/CompareForm.vue.d.ts
|
|
6327
|
-
type __VLS_Props$
|
|
6328
|
-
/**
|
|
6329
|
-
lastValue?: Partial<MNode> | Partial<DataSourceSchema> | Partial<CodeBlockContent> | Record<string, any>;
|
|
6330
|
-
/**
|
|
6331
|
-
* 类型说明:
|
|
6332
|
-
* - `category` 为 `node` 时,`type` 为节点组件的类型,例如 'text'、'button'、'page'、'container' 等
|
|
6333
|
-
* - `category` 为 `data-source` 时,`type` 为数据源类型,例如 'base'、'http'
|
|
6334
|
-
* - `category` 为 `code-block` 时,`type` 可不传
|
|
6335
|
-
*/
|
|
6336
|
-
type?: string; /** 表单配置类别,决定从哪里取 FormConfig */
|
|
6337
|
-
category?: CompareCategory; /** 数据源代码块场景下的数据源类型(base/http),用于代码块表单中"执行时机"展示 */
|
|
6338
|
-
dataSourceType?: string;
|
|
6339
|
-
labelWidth?: string;
|
|
6340
|
-
/**
|
|
6341
|
-
* 外层容器高度。设置后表单内容超出时会在 CompareForm 内部出现滚动条,
|
|
6342
|
-
* 避免 dialog / 面板使用方需要自行处理滚动。可传任意 CSS 长度,例如 `60vh` / `400px` / `100%`。
|
|
6343
|
-
*/
|
|
6344
|
-
height?: string;
|
|
6345
|
-
/**
|
|
6346
|
-
* 用户自定义注入到 MForm.formState 的扩展字段,与 Editor 顶层的 `extendFormState`、
|
|
6347
|
-
* PropsPanel 的 `extend-state` 语义一致。表单 item 的 `display` / `disabled` 等
|
|
6348
|
-
* filterFunction 经常依赖这里注入的字段(如 stage、自定义业务上下文等),
|
|
6349
|
-
* 因此在差异对比场景下也需要透传,避免出现 `formState.xxx is undefined` 的运行时错误。
|
|
6350
|
-
*/
|
|
6351
|
-
extendState?: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
6352
|
-
/**
|
|
6353
|
-
* 外部透传的基础 formState(通常来自 PropsPanel 主属性表单)。
|
|
6354
|
-
* CompareForm 会提取其中的扩展字段覆盖到自己的 formState,保证 filterFunction 上下文一致。
|
|
6355
|
-
*/
|
|
6356
|
-
baseFormState?: FormState; /** 需要走 self diff 的字段类型(例如 mod-cond)。 */
|
|
6464
|
+
type __VLS_Props$9 = CompareFormBaseProps & {
|
|
6465
|
+
/** 用于对比的旧值(修改前的值) */lastValue?: CompareFormBaseProps['value']; /** 需要走 self diff 的字段类型(例如 mod-cond)。 */
|
|
6357
6466
|
selfDiffFieldTypes?: string[];
|
|
6358
|
-
|
|
6359
|
-
|
|
6360
|
-
|
|
6361
|
-
|
|
6362
|
-
|
|
6363
|
-
|
|
6364
|
-
|
|
6365
|
-
|
|
6366
|
-
|
|
6367
|
-
|
|
6368
|
-
|
|
6369
|
-
|
|
6467
|
+
};
|
|
6468
|
+
declare const __VLS_export$11: import("@vue/runtime-core").DefineComponent<__VLS_Props$9, {
|
|
6469
|
+
form: ShallowRef<InstanceType<typeof MForm> | null>;
|
|
6470
|
+
config: Ref<FormConfig>;
|
|
6471
|
+
reload: () => Promise<void>;
|
|
6472
|
+
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$9> & Readonly<{}>, {
|
|
6473
|
+
labelWidth: string;
|
|
6474
|
+
category: CompareCategory;
|
|
6475
|
+
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
6476
|
+
declare const _default$5: typeof __VLS_export$11;
|
|
6477
|
+
//#endregion
|
|
6478
|
+
//#region temp/packages/editor/src/components/ViewForm.vue.d.ts
|
|
6479
|
+
type __VLS_Props$8 = CompareFormBaseProps & {
|
|
6480
|
+
/** 是否禁用表单(默认只读展示)。 */disabled?: boolean;
|
|
6370
6481
|
};
|
|
6371
6482
|
declare const __VLS_export$10: import("@vue/runtime-core").DefineComponent<__VLS_Props$8, {
|
|
6372
6483
|
form: ShallowRef<InstanceType<typeof MForm> | null>;
|
|
6373
6484
|
config: Ref<FormConfig>;
|
|
6374
6485
|
reload: () => Promise<void>;
|
|
6375
6486
|
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$8> & Readonly<{}>, {
|
|
6487
|
+
disabled: boolean;
|
|
6376
6488
|
labelWidth: string;
|
|
6377
|
-
extendState: (_state: FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
6378
6489
|
category: CompareCategory;
|
|
6379
6490
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
6380
|
-
declare const _default$
|
|
6491
|
+
declare const _default$39: typeof __VLS_export$10;
|
|
6381
6492
|
//#endregion
|
|
6382
6493
|
//#region temp/packages/editor/src/layouts/history-list/composables.d.ts
|
|
6383
6494
|
/**
|
|
@@ -6765,8 +6876,8 @@ declare const __VLS_export: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
6765
6876
|
declare const _default$33: typeof __VLS_export;
|
|
6766
6877
|
//#endregion
|
|
6767
6878
|
//#region temp/packages/editor/src/plugin.d.ts
|
|
6768
|
-
declare const _default$
|
|
6879
|
+
declare const _default$43: {
|
|
6769
6880
|
install: (app: App, opt?: Partial<EditorInstallOptions | DesignPluginOptions | FormInstallOptions>) => void;
|
|
6770
6881
|
};
|
|
6771
6882
|
//#endregion
|
|
6772
|
-
export { ALL_COND_OPS, AddMNode, AddPrefixToObject, AsyncAfterHook, AsyncBeforeHook, AsyncHookPlugin, AsyncMethodName, BaseStepValue, BeforeAdd, CODE_DRAFT_STORAGE_KEY, COPY_CODE_STORAGE_KEY, COPY_DS_STORAGE_KEY, COPY_STORAGE_KEY, CanDropInFunction, CanDropInScene, _default as CodeBlockEditor, _default$1 as CodeBlockList, _default$2 as CodeBlockListPanel, CodeBlockListPanelSlots, CodeBlockListSlots, CodeBlockStepValue, CodeDeleteErrorType, CodeDslItem, CodeParamStatement, CodeRelation, _default$3 as CodeSelect, _default$4 as CodeSelectCol, CodeState, ColumnLayout, CombineInfo, CompareCategory, _default$5 as CompareForm, CompareFormLoadConfig, CompareFormLoadConfigContext, ComponentGroup, ComponentGroupState, ComponentItem, _default$6 as ComponentListPanel, ComponentListPanelSlots, _default$7 as CondOpSelect, ConfirmAndRevertOptions, _default$8 as ContentMenu, ContentMenuTarget, ContentMenuType, CustomContentMenuFunction, CustomDiffFormOptions, DEFAULT_LEFT_COLUMN_WIDTH, DEFAULT_RIGHT_COLUMN_WIDTH, _default$9 as DataSourceAddButton, _default$10 as DataSourceConfigPanel, _default$11 as DataSourceFieldSelect, _default$12 as DataSourceFields, _default$13 as DataSourceInput, DataSourceListSlots, _default$14 as DataSourceMethodSelect, _default$15 as DataSourceMethods, _default$16 as DataSourceMocks, _default$17 as DataSourceSelect, DataSourceStepValue, DatasourceTypeOption, DepTargetType, DiffDialogPayload, _default$18 as DisplayConds, DragClassification, DragType, DslOpOptions, DslOpWithHistoryIdsResult, EVENT_NAME_VALUE_SEPARATOR, EditorChangeEvent, EditorChangeItem, EditorEvents, EditorInstallOptions, EditorNodeInfo, EditorSlots, EditorUpdateChangeItem, EventBus, EventBusEvent, EventNameOption, EventNameSelectOption, _default$19 as EventSelect, Fixed2Other, _default$20 as FloatingBox, FrameworkSlots, GetCodeBlockFormConfigOptions, GetColumnWidth, GetConfig, H_GUIDE_LINE_STORAGE_KEY, HistoryBucketConfig, _default$21 as HistoryDiffDialog, HistoryEvents, HistoryGroup, _default$22 as HistoryListBucket, _default$23 as HistoryListBucketTab, HistoryListExtraTab, HistoryOpOptions, HistoryOpOptionsWithChangeRecords, HistoryOpSource, HistoryOpType, HistoryPersistOptions, HistoryRowDescriptor, HistoryState, HistoryStepEntry, HistoryStepType, HistorySteps, _default$24 as Icon, IdleTask, IdleTaskEvents, IsExpandableFunction, KeyBindingCacheItem, KeyBindingCommand, KeyBindingItem, _default$25 as KeyValue, Keys, LEFT_COLUMN_WIDTH_STORAGE_KEY, _default$26 as LayerNodeContent, LayerNodeSlots, LayerNodeStatus, LayerOffset, _default$27 as LayerPanel, LayerPanelSlots, Layout, _default$28 as LayoutContainer, _default$28 as SplitView, ListState, MIN_CENTER_COLUMN_WIDTH, MIN_LEFT_COLUMN_WIDTH, MIN_RIGHT_COLUMN_WIDTH, MenuBarData, MenuButton, MenuComponent, MenuItem, NodeInvalidInfo, NodeInvalidSource, type OnDrag, PROPS_PANEL_WIDTH_STORAGE_KEY, PageBarSortOptions, _default$29 as PageFragmentSelect, PartSortableOptions, PastePosition, PersistedHistoryState, PropsFormConfigFunction, _default$30 as PropsFormPanel, PropsFormValueFunction, _default$31 as PropsPanel, PropsPanelSlots, PropsState, RIGHT_COLUMN_WIDTH_STORAGE_KEY, _default$32 as Resizer, ScrollViewer, ScrollViewerEvent, ScrollViewerSlots, SerializedUndoRedo, Services, SetColumnWidth, SideBarData, SideComponent, SideItem, SideItemKey, SidebarSlots, StageCore, StageOptions, StageOverlayState, StageRect, StageSlots, StepDiffItem, StepExtra, StepValue, StoreState, StoreStateKey, _default$33 as StyleSetter, SyncAfterHook, SyncBeforeHook, SyncHookPlugin, _default$34 as TMagicCodeEditor, _default$35 as TMagicEditor, _default$36 as ToolButton, _default$37 as Tree, _default$38 as TreeNode, TreeNodeData, type TypeMatchValidateContext, UI_SELECT_MODE_EVENT_NAME, UiState, UndoRedo, UseHistoryRevertOptions, V_GUIDE_LINE_STORAGE_KEY, ValidatePropsFormOptions, WorkspaceSlots, advancedTabConfig, arrayOptions, beforePaste, booleanOptions, buildChangeRecords, calcAlignCenterStyle, calcLayerTargetIndex, calcMoveStyle, canUsePluginMethods, change2Fixed, classifyDragSources, _default$
|
|
6883
|
+
export { ALL_COND_OPS, AddMNode, AddPrefixToObject, AsyncAfterHook, AsyncBeforeHook, AsyncHookPlugin, AsyncMethodName, BaseStepValue, BeforeAdd, CODE_DRAFT_STORAGE_KEY, COPY_CODE_STORAGE_KEY, COPY_DS_STORAGE_KEY, COPY_STORAGE_KEY, CanDropInFunction, CanDropInScene, _default as CodeBlockEditor, _default$1 as CodeBlockList, _default$2 as CodeBlockListPanel, CodeBlockListPanelSlots, CodeBlockListSlots, CodeBlockStepValue, CodeDeleteErrorType, CodeDslItem, CodeParamStatement, CodeRelation, _default$3 as CodeSelect, _default$4 as CodeSelectCol, CodeState, ColumnLayout, CombineInfo, CompareCategory, _default$5 as CompareForm, CompareFormBaseProps, CompareFormLoadConfig, CompareFormLoadConfigContext, ComponentGroup, ComponentGroupState, ComponentItem, _default$6 as ComponentListPanel, ComponentListPanelSlots, _default$7 as CondOpSelect, ConfirmAndRevertOptions, _default$8 as ContentMenu, ContentMenuTarget, ContentMenuType, CustomContentMenuFunction, CustomDiffFormOptions, DEFAULT_LEFT_COLUMN_WIDTH, DEFAULT_RIGHT_COLUMN_WIDTH, _default$9 as DataSourceAddButton, _default$10 as DataSourceConfigPanel, _default$11 as DataSourceFieldSelect, _default$12 as DataSourceFields, _default$13 as DataSourceInput, DataSourceListSlots, _default$14 as DataSourceMethodSelect, _default$15 as DataSourceMethods, _default$16 as DataSourceMocks, _default$17 as DataSourceSelect, DataSourceStepValue, DatasourceTypeOption, DepTargetType, DiffDialogPayload, _default$18 as DisplayConds, DragClassification, DragType, DslOpOptions, DslOpWithHistoryIdsResult, EVENT_NAME_VALUE_SEPARATOR, EditorChangeEvent, EditorChangeEventHistoryMeta, EditorChangeItem, EditorEvents, EditorInstallOptions, EditorNodeInfo, EditorSlots, EditorUpdateChangeItem, EventBus, EventBusEvent, EventNameOption, EventNameSelectOption, _default$19 as EventSelect, Fixed2Other, _default$20 as FloatingBox, FrameworkSlots, GetCodeBlockFormConfigOptions, GetColumnWidth, GetConfig, H_GUIDE_LINE_STORAGE_KEY, HistoryBucketConfig, _default$21 as HistoryDiffDialog, HistoryEvents, HistoryGroup, _default$22 as HistoryListBucket, _default$23 as HistoryListBucketTab, HistoryListExtraTab, HistoryOpOptions, HistoryOpOptionsWithChangeRecords, HistoryOpSource, HistoryOpType, HistoryPersistOptions, HistoryRowDescriptor, HistoryState, HistoryStepEntry, HistoryStepType, HistorySteps, _default$24 as Icon, IdleTask, IdleTaskEvents, IsExpandableFunction, KeyBindingCacheItem, KeyBindingCommand, KeyBindingItem, _default$25 as KeyValue, Keys, LEFT_COLUMN_WIDTH_STORAGE_KEY, _default$26 as LayerNodeContent, LayerNodeSlots, LayerNodeStatus, LayerOffset, _default$27 as LayerPanel, LayerPanelSlots, Layout, _default$28 as LayoutContainer, _default$28 as SplitView, ListState, MIN_CENTER_COLUMN_WIDTH, MIN_LEFT_COLUMN_WIDTH, MIN_RIGHT_COLUMN_WIDTH, MenuBarData, MenuButton, MenuComponent, MenuItem, NodeInvalidInfo, NodeInvalidSource, type OnDrag, PROPS_PANEL_WIDTH_STORAGE_KEY, PageBarSortOptions, _default$29 as PageFragmentSelect, PartSortableOptions, PastePosition, PersistedHistoryState, PropsFormConfigFunction, _default$30 as PropsFormPanel, PropsFormValueFunction, _default$31 as PropsPanel, PropsPanelSlots, PropsState, RIGHT_COLUMN_WIDTH_STORAGE_KEY, _default$32 as Resizer, ScrollViewer, ScrollViewerEvent, ScrollViewerSlots, SerializedUndoRedo, Services, SetColumnWidth, SideBarData, SideComponent, SideItem, SideItemKey, SidebarSlots, StageCore, StageOptions, StageOverlayState, StageRect, StageSlots, StepDiffItem, StepExtra, StepValue, StoreState, StoreStateKey, _default$33 as StyleSetter, SyncAfterHook, SyncBeforeHook, SyncHookPlugin, _default$34 as TMagicCodeEditor, _default$35 as TMagicEditor, _default$36 as ToolButton, _default$37 as Tree, _default$38 as TreeNode, TreeNodeData, type TypeMatchValidateContext, UI_SELECT_MODE_EVENT_NAME, UiState, UndoRedo, UseCompareFormReturn, UseHistoryRevertOptions, V_GUIDE_LINE_STORAGE_KEY, ValidatePropsFormOptions, _default$39 as ViewForm, WorkspaceSlots, advancedTabConfig, arrayOptions, beforePaste, booleanOptions, buildChangeRecords, calcAlignCenterStyle, calcLayerTargetIndex, calcMoveStyle, canUsePluginMethods, change2Fixed, classifyDragSources, _default$40 as codeBlockService, collectEventNameOptionValues, collectRelatedNodes, _default$41 as componentListService, confirmHistoryAction, createStackStep, _default$42 as dataSourceService, debug$1 as debug, _default$43 as default, defaultIsExpandable, _default$44 as depService, describeRevertStep, describeStepForRevert, deserializeStacks, designPlugin, detectStackOpType, detectTargetId, detectTargetName, displayTabConfig, editorNodeMergeCustomizer, _default$45 as editorService, editorTypeMatchRules, eqOptions, error, eventTabConfig, _default$46 as eventsService, fillConfig, fixNodeLeft, fixNodePosition, formPlugin, generatePageName, generatePageNameByApp, getAddParent, getCascaderOptionsFromFields, getCodeBlockFormConfig, getCompActionAllowedValues, getCompActionOptions, getCondOpOptionsByFieldType, getDefaultConfig, getDisplayField, getEditorConfig, getEventNameAllowedValues, getEventNameOptions, getFieldType, getFormConfig, getFormValue, getGuideLineFromCache, getInitPositionStyle, getLastPushedHistoryIds, getNodeIndex, getOrCreateStack, getPageFragmentList, getPageList, getPageNameList, getPositionInContainer, getRelativeStyle, _default$47 as historyService, idbDelete, idbGet, idbSet, info, isEventNameCheckStrictly, isGlobalFlat, isIncludeDataSource, isIndexedDBSupported, _default$48 as keybindingService, _default$49 as loadMonaco, log, markStackSaved, mergeSteps, moveItemsInContainer, normalizeCompActionValue, numberOptions, openIndexedDB, _default$50 as propsService, removeStyleDisplayConfig, resolveFieldByPath, resolveSelectedNode, serializeConfig, serializeStacks, setChildrenLayout, setEditorConfig, setLayout, _default$51 as stageOverlayService, _default$52 as storageService, styleTabConfig, tablePlugin, toggleFixedPosition, _default$53 as uiService, undoFloor, updateStatus, useCodeBlockEdit, useCompareForm, useEditorContentHeight, useFilter, useFloatBox, useGetSo, useHistoryRevert, useNextFloatBoxPosition, useNodeStatus, useServices, useStage, useWindowRect, validatePropsForm, warn };
|