starfish-editor-custom 1.0.0 → 1.0.2

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.
Files changed (53) hide show
  1. package/dist/ConditionModule.js +62 -62
  2. package/dist/ConditionSelect.js +32 -32
  3. package/dist/CustomDialog.js +3 -3
  4. package/dist/formStyle.js +25 -33
  5. package/dist/globalFormList.js +2 -2
  6. package/dist/jsonCode.js +4 -3
  7. package/dist/jsonEditor.js +3 -3
  8. package/dist/main.js +274 -330
  9. package/dist/starfish-editor.es.js +2 -2
  10. package/dist/style.css +1 -1
  11. package/dist/types/editor/src/common/ConditionSelect/ConditionGroup.vue.d.ts +18 -0
  12. package/dist/types/editor/src/common/ConditionSelect/ConditionModule.vue.d.ts +17 -0
  13. package/dist/types/editor/src/common/ConditionSelect/ConditionTanc.vue.d.ts +30 -0
  14. package/dist/types/editor/src/common/ConditionSelect.vue.d.ts +14 -36
  15. package/dist/types/editor/src/common/CustomDialog.vue.d.ts +12 -11
  16. package/dist/types/editor/src/common/Loading.vue.d.ts +2 -2
  17. package/dist/types/editor/src/common/jsonCode.vue.d.ts +9 -104
  18. package/dist/types/editor/src/components/ComponentList.vue.d.ts +2 -31
  19. package/dist/types/editor/src/components/FormPreview.vue.d.ts +8 -10
  20. package/dist/types/editor/src/components/Nav.vue.d.ts +2 -2
  21. package/dist/types/editor/src/components/PropsPanel.vue.d.ts +15 -23
  22. package/dist/types/editor/src/components/Shape.vue.d.ts +10 -9
  23. package/dist/types/editor/src/components/Workspace.vue.d.ts +9 -8
  24. package/dist/types/editor/src/components/globalFormList.vue.d.ts +3 -2
  25. package/dist/types/editor/src/components/jsonEditor.vue.d.ts +4 -3
  26. package/dist/types/editor/src/controller/action.d.ts +1 -1
  27. package/dist/types/editor/src/controller/form.d.ts +1 -1
  28. package/dist/types/editor/src/controller/history.d.ts +1 -1
  29. package/dist/types/editor/src/controller/shortcut.d.ts +1 -1
  30. package/dist/types/editor/src/controller/ui.d.ts +1 -1
  31. package/dist/types/editor/src/layouts/ControlEditSize.vue.d.ts +6 -12
  32. package/dist/types/editor/src/layouts/Framework.vue.d.ts +6 -18
  33. package/dist/types/editor/src/layouts/Resizer.vue.d.ts +7 -6
  34. package/dist/types/editor/src/layouts/ShortcutKey.vue.d.ts +4 -4
  35. package/dist/types/editor/src/starfish-editor.vue.d.ts +10 -16
  36. package/dist/types/editor/src/type.d.ts +8 -8
  37. package/dist/types/editor/src/utils/formKeycon.d.ts +1 -1
  38. package/package.json +55 -55
  39. package/src/common/ConditionSelect/ConditionGroup.vue +3 -3
  40. package/src/common/ConditionSelect/ConditionTanc.vue +1 -1
  41. package/src/common/ConditionSelect.vue +1 -1
  42. package/src/common/formJson.ts +34 -34
  43. package/src/common/formStyle.vue +5 -0
  44. package/src/common/jsonCode.vue +8 -2
  45. package/src/components/ComponentList.vue +8 -4
  46. package/src/components/FormPreview.vue +1 -1
  47. package/src/components/NavList.vue +6 -6
  48. package/src/components/PropsPanel.vue +1 -1
  49. package/src/components/Workspace.vue +1 -0
  50. package/src/main.ts +2 -2
  51. package/src/styles/component-list.scss +71 -64
  52. package/src/type.ts +1 -1
  53. package/stats.html +4905 -3677
@@ -1,110 +1,15 @@
1
- import type { ViewUpdate, EditorView } from '.pnpm/@codemirror+view@6.38.1/node_modules/@codemirror/view';
2
- import type { Extension, EditorSelection, EditorState } from '.pnpm/@codemirror+state@6.5.2/node_modules/@codemirror/state';
3
- import type { LanguageSupport } from '.pnpm/@codemirror+language@6.11.2/node_modules/@codemirror/language';
4
- import type { DefineComponent, ExtractPropTypes, Ref, ComponentOptionsMixin, PublicProps, PropType, CSSProperties, VNode, RendererNode, RendererElement, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentProvideOptions } from 'vue';
1
+ import type { Ref } from '@vue/reactivity';
2
+ import type { LanguageSupport } from '.pnpm/@codemirror+language@6.2.1/node_modules/@codemirror/language';
3
+ import type { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from '@vue/runtime-core';
5
4
  export default _sfc_main;
6
- declare const _sfc_main: DefineComponent<ExtractPropTypes<{
5
+ declare const _sfc_main: DefineComponent<{
7
6
  value: StringConstructor;
8
- }>, {
7
+ }, {
9
8
  extensions: LanguageSupport[];
10
- internalValue: Ref<string | undefined, string | undefined>;
9
+ internalValue: Ref<string | undefined>;
11
10
  onUpdateValue: (newVal: any) => void;
12
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:value"[], "update:value", PublicProps, Readonly<ExtractPropTypes<{
11
+ }, any, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:value"[], "update:value", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
13
12
  value: StringConstructor;
14
- }>> & Readonly<{
13
+ }>> & {
15
14
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
16
- }>, {}, {}, {
17
- Codemirror: DefineComponent<{
18
- modelValue: {
19
- type: StringConstructor;
20
- default: string;
21
- };
22
- autofocus: {
23
- type: BooleanConstructor;
24
- default: undefined;
25
- };
26
- disabled: {
27
- type: BooleanConstructor;
28
- default: undefined;
29
- };
30
- indentWithTab: {
31
- type: BooleanConstructor;
32
- default: undefined;
33
- };
34
- tabSize: NumberConstructor;
35
- placeholder: StringConstructor;
36
- style: PropType<CSSProperties>;
37
- autoDestroy: {
38
- type: BooleanConstructor;
39
- default: undefined;
40
- };
41
- phrases: PropType<Record<string, string>>;
42
- root: PropType<Document | ShadowRoot>;
43
- extensions: PropType<Extension | undefined>;
44
- selection: PropType<EditorSelection | {
45
- anchor: number;
46
- head?: number | undefined;
47
- } | undefined>;
48
- }, () => VNode<RendererNode, RendererElement, {
49
- [key: string]: any;
50
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
51
- "update:modelValue": (value: string, viewUpdate: ViewUpdate) => boolean;
52
- change: (value: string, viewUpdate: ViewUpdate) => boolean;
53
- update: (viewUpdate: ViewUpdate) => boolean;
54
- focus: (viewUpdate: ViewUpdate) => boolean;
55
- blur: (viewUpdate: ViewUpdate) => boolean;
56
- ready: (payload: {
57
- view: EditorView;
58
- state: EditorState;
59
- container: HTMLDivElement;
60
- }) => boolean;
61
- }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
62
- modelValue: {
63
- type: StringConstructor;
64
- default: string;
65
- };
66
- autofocus: {
67
- type: BooleanConstructor;
68
- default: undefined;
69
- };
70
- disabled: {
71
- type: BooleanConstructor;
72
- default: undefined;
73
- };
74
- indentWithTab: {
75
- type: BooleanConstructor;
76
- default: undefined;
77
- };
78
- tabSize: NumberConstructor;
79
- placeholder: StringConstructor;
80
- style: PropType<CSSProperties>;
81
- autoDestroy: {
82
- type: BooleanConstructor;
83
- default: undefined;
84
- };
85
- phrases: PropType<Record<string, string>>;
86
- root: PropType<Document | ShadowRoot>;
87
- extensions: PropType<Extension | undefined>;
88
- selection: PropType<EditorSelection | {
89
- anchor: number;
90
- head?: number | undefined;
91
- } | undefined>;
92
- }>> & {
93
- onChange?: ((value: string, viewUpdate: ViewUpdate) => any) | undefined;
94
- onUpdate?: ((viewUpdate: ViewUpdate) => any) | undefined;
95
- onFocus?: ((viewUpdate: ViewUpdate) => any) | undefined;
96
- onBlur?: ((viewUpdate: ViewUpdate) => any) | undefined;
97
- onReady?: ((payload: {
98
- view: EditorView;
99
- state: EditorState;
100
- container: HTMLDivElement;
101
- }) => any) | undefined;
102
- "onUpdate:modelValue"?: ((value: string, viewUpdate: ViewUpdate) => any) | undefined;
103
- }, {
104
- autofocus: boolean;
105
- disabled: boolean;
106
- indentWithTab: boolean;
107
- autoDestroy: boolean;
108
- modelValue: string;
109
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
110
- }, {}, string, ComponentProvideOptions, true, {}, any>;
15
+ }, {}>;
@@ -1,32 +1,3 @@
1
- import type { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
- declare const _sfc_main: DefineComponent<ExtractPropTypes<{
3
- basicFields: {
4
- type: ArrayConstructor;
5
- default(): never[];
6
- };
7
- layoutFields: {
8
- type: ArrayConstructor;
9
- default(): never[];
10
- };
11
- }>, {}, {
12
- formcomponents: any[];
13
- filterContent: string;
14
- }, {
15
- newcomponentlist(): any;
16
- layoutList(): any;
17
- }, {
18
- clickAddControl(item: any): void;
19
- }, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
20
- basicFields: {
21
- type: ArrayConstructor;
22
- default(): never[];
23
- };
24
- layoutFields: {
25
- type: ArrayConstructor;
26
- default(): never[];
27
- };
28
- }>> & Readonly<{}>, {
29
- basicFields: unknown[];
30
- layoutFields: unknown[];
31
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1
+ import type { DefineComponent, ComputedOptions, MethodOptions, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps } from '@vue/runtime-core';
2
+ declare const _sfc_main: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
32
3
  export default _sfc_main;
@@ -1,25 +1,23 @@
1
- import type { DefineComponent, Ref, ComputedRef, ComponentOptionsMixin, PublicProps, ComputedOptions, MethodOptions, ExtractPropTypes, ComponentProvideOptions } from 'vue';
1
+ import type { Ref, ComputedRef } from '@vue/reactivity';
2
+ import type { DefineComponent, ComponentOptionsMixin, EmitsOptions, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from '@vue/runtime-core';
2
3
  declare const _sfc_main: DefineComponent<{}, {
3
- code: Ref<any, any>;
4
+ code: Ref<any>;
4
5
  pageType: ComputedRef<any>;
5
- codeDialog: Ref<any, any>;
6
+ codeDialog: Ref<any>;
6
7
  globalDatas: ComputedRef<any>;
7
8
  dialogWidth: ComputedRef<any>;
8
9
  previewShow: ComputedRef<any>;
9
- previewDialog: Ref<any, any>;
10
+ previewDialog: Ref<any>;
10
11
  handlePreviewShow: () => void;
11
- JsonViewerDialog: Ref<any, any>;
12
+ JsonViewerDialog: Ref<any>;
12
13
  allFormList: ComputedRef<any>;
13
14
  formResult: ComputedRef<any>;
14
- dynamicform: Ref<any, any>;
15
+ dynamicform: Ref<any>;
15
16
  resetForm(): void;
16
17
  closeDialog(): void;
17
18
  getData(): void;
18
19
  closeCodeDialog(): void;
19
20
  copyJson(): void;
20
21
  saveFile(fileName?: string): void;
21
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {
22
- Dynamicform: any;
23
- JsonCode: DefineComponent<{}, {}, any, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{}>>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
24
- }, {}, string, ComponentProvideOptions, true, {}, any>;
22
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, EmitsOptions, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}>;
25
23
  export default _sfc_main;
@@ -1,9 +1,9 @@
1
- import type { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
1
+ import type { DefineComponent, ComponentOptionsMixin, EmitsOptions, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from '@vue/runtime-core';
2
2
  /**
3
3
  * 2022.7.1想到的优化点
4
4
  * 新增json导入导出功能
5
5
  */
6
6
  declare const _sfc_main: DefineComponent<{}, {
7
7
  onLink(): void;
8
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
8
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, EmitsOptions, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}>;
9
9
  export default _sfc_main;
@@ -1,6 +1,8 @@
1
- import type { DefineComponent, ExtractPropTypes, Ref, ComponentOptionsMixin, PublicProps, ComputedOptions, MethodOptions, ComponentProvideOptions, ComputedRef } from 'vue';
1
+ import type { Ref } from '@vue/reactivity';
2
+ import type { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from '@vue/runtime-core';
3
+ import { ComputedRef } from "vue";
2
4
  import type { TabPaneInstance } from "element-plus";
3
- declare const _sfc_main: DefineComponent<ExtractPropTypes<{
5
+ declare const _sfc_main: DefineComponent<{
4
6
  column: {
5
7
  type: BooleanConstructor;
6
8
  default: boolean;
@@ -9,25 +11,25 @@ declare const _sfc_main: DefineComponent<ExtractPropTypes<{
9
11
  type: ArrayConstructor;
10
12
  default: () => string[];
11
13
  };
12
- }>, {
14
+ }, {
13
15
  globalFormLists: ComputedRef<any>;
14
16
  globalDatas: ComputedRef<any>;
15
- jsonCenter: Ref<any, any>;
17
+ jsonCenter: Ref<any>;
16
18
  handleClick: (tab: TabPaneInstance) => void;
17
19
  jsonEditor: any;
18
20
  onEditor: (editor: any) => void;
19
- activeName: Ref<string, string>;
21
+ activeName: Ref<string>;
20
22
  handleMouseDown: () => Promise<void>;
21
- moduleIsHidden: Ref<boolean, boolean>;
23
+ moduleIsHidden: Ref<boolean>;
22
24
  handleEditBtn: () => void;
23
- isTransition: Ref<boolean, boolean>;
24
- editRight: Ref<any, any>;
25
+ isTransition: Ref<boolean>;
26
+ editRight: Ref<any>;
25
27
  controlItems: ComputedRef<any>;
26
28
  curControl: ComputedRef<any>;
27
- ruleForm: Ref<any, any>;
28
- show: Ref<boolean, boolean>;
29
+ ruleForm: Ref<any>;
30
+ show: Ref<boolean>;
29
31
  currentIndex: ComputedRef<any>;
30
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
32
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
31
33
  column: {
32
34
  type: BooleanConstructor;
33
35
  default: boolean;
@@ -36,18 +38,8 @@ declare const _sfc_main: DefineComponent<ExtractPropTypes<{
36
38
  type: ArrayConstructor;
37
39
  default: () => string[];
38
40
  };
39
- }>> & Readonly<{}>, {
41
+ }>>, {
40
42
  panel: unknown[];
41
43
  column: boolean;
42
- }, {}, {
43
- ControllEditSize: DefineComponent<{}, {}, any, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{}>>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
44
- jsonEnter: DefineComponent<{}, {
45
- initJsonCenter: () => any;
46
- jsonCenter: Ref<any, any>;
47
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
48
- globalFormComponent: DefineComponent<{}, {
49
- globalFormLists: ComputedRef<any>;
50
- globalDatas: ComputedRef<any>;
51
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
52
- }, {}, string, ComponentProvideOptions, true, {}, any>;
44
+ }>;
53
45
  export default _sfc_main;
@@ -1,5 +1,6 @@
1
- import type { DefineComponent, ExtractPropTypes, Ref, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
- declare const _sfc_main: DefineComponent<ExtractPropTypes<{
1
+ import type { Ref, ComputedRef } from '@vue/reactivity';
2
+ import type { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from '@vue/runtime-core';
3
+ declare const _sfc_main: DefineComponent<{
3
4
  active: BooleanConstructor;
4
5
  currentIndex: NumberConstructor;
5
6
  len: {
@@ -10,17 +11,17 @@ declare const _sfc_main: DefineComponent<ExtractPropTypes<{
10
11
  layout: BooleanConstructor;
11
12
  currentId: StringConstructor;
12
13
  item: ObjectConstructor;
13
- }>, {
14
- isShow: Ref<boolean, boolean>;
14
+ }, {
15
+ isShow: Ref<boolean>;
15
16
  handleShortCut: (e: MouseEvent) => void;
16
17
  handleMenu: () => void;
17
- editForm: Ref<any, any>;
18
+ editForm: Ref<any>;
18
19
  handleActive: (type: string) => void;
19
20
  handleCopyAndPaste: () => void;
20
21
  copyContent: ComputedRef<any>;
21
22
  handleColumn: () => void;
22
23
  handleRow: () => void;
23
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
24
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
24
25
  active: BooleanConstructor;
25
26
  currentIndex: NumberConstructor;
26
27
  len: {
@@ -31,10 +32,10 @@ declare const _sfc_main: DefineComponent<ExtractPropTypes<{
31
32
  layout: BooleanConstructor;
32
33
  currentId: StringConstructor;
33
34
  item: ObjectConstructor;
34
- }>> & Readonly<{}>, {
35
+ }>>, {
35
36
  active: boolean;
37
+ len: number;
36
38
  inline: boolean;
37
39
  layout: boolean;
38
- len: number;
39
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
40
+ }>;
40
41
  export default _sfc_main;
@@ -1,22 +1,23 @@
1
- import type { DefineComponent, ComputedRef, Ref, WritableComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
1
+ import type { ComputedRef, Ref, WritableComputedRef } from '@vue/reactivity';
2
+ import type { DefineComponent, ComponentOptionsMixin, EmitsOptions, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from '@vue/runtime-core';
2
3
  declare const _sfc_main: DefineComponent<{}, {
3
4
  scale: ComputedRef<any>;
4
5
  globalDatas: ComputedRef<any>;
5
- canvasBox: Ref<any, any>;
6
- editForm: Ref<any, any>;
6
+ canvasBox: Ref<any>;
7
+ editForm: Ref<any>;
7
8
  handleCanvasSize: (size: string) => void;
8
9
  pageType: ComputedRef<any>;
9
- canvasSize: Ref<number, number>;
10
- dragDom: Ref<any, any>;
10
+ canvasSize: Ref<number>;
11
+ dragDom: Ref<any>;
11
12
  chooseClick: (e: any) => void;
12
13
  addControl: (e: any) => void;
13
14
  changePos: (e: any) => void;
14
- allmainList: WritableComputedRef<any, AllFormItem[]>;
15
+ allmainList: WritableComputedRef<AllFormItem[]>;
15
16
  currentId: ComputedRef<any>;
16
17
  handleNoDraggable: (e: any) => void;
17
18
  handlePaste: () => void;
18
- pasteShow: Ref<boolean, boolean>;
19
+ pasteShow: Ref<boolean>;
19
20
  fullScreen: ComputedRef<any>;
20
21
  onEditorCenter: (e: any) => void;
21
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
22
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, EmitsOptions, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}>;
22
23
  export default _sfc_main;
@@ -1,6 +1,7 @@
1
- import type { DefineComponent, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
1
+ import type { ComputedRef } from '@vue/reactivity';
2
+ import type { DefineComponent, ComponentOptionsMixin, EmitsOptions, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from '@vue/runtime-core';
2
3
  declare const _sfc_main: DefineComponent<{}, {
3
4
  globalFormLists: ComputedRef<any>;
4
5
  globalDatas: ComputedRef<any>;
5
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
6
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, EmitsOptions, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}>;
6
7
  export default _sfc_main;
@@ -1,6 +1,7 @@
1
- import type { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
1
+ import type { Ref } from '@vue/reactivity';
2
+ import type { DefineComponent, ComponentOptionsMixin, EmitsOptions, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from '@vue/runtime-core';
2
3
  export default _sfc_main;
3
4
  declare const _sfc_main: DefineComponent<{}, {
4
5
  initJsonCenter: () => any;
5
- jsonCenter: Ref<any, any>;
6
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
6
+ jsonCenter: Ref<any>;
7
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, EmitsOptions, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}>;
@@ -13,6 +13,6 @@ declare class Action {
13
13
  get(name: keyof typeof state): any;
14
14
  }
15
15
  export { state };
16
- export type ActionForm = Action;
16
+ export declare type ActionForm = Action;
17
17
  declare const _default: Action;
18
18
  export default _default;
@@ -19,6 +19,6 @@ declare class Form {
19
19
  set(name: keyof typeof state, value: any): void;
20
20
  get(name: keyof typeof state): any;
21
21
  }
22
- export type formContrl = Form;
22
+ export declare type formContrl = Form;
23
23
  declare const _default: Form;
24
24
  export default _default;
@@ -7,6 +7,6 @@ declare class History {
7
7
  get<T>(name: keyof typeof state): T;
8
8
  set(name: keyof typeof state, value: any): void;
9
9
  }
10
- export type hisContrl = History;
10
+ export declare type hisContrl = History;
11
11
  declare const _default: History;
12
12
  export default _default;
@@ -15,6 +15,6 @@ declare class ShortCut {
15
15
  get(name: keyof ShortCutState): any;
16
16
  commit(event: string): void;
17
17
  }
18
- export type shortCut = ShortCut;
18
+ export declare type shortCut = ShortCut;
19
19
  declare const _default: ShortCut;
20
20
  export default _default;
@@ -5,6 +5,6 @@ declare class Ui {
5
5
  private setScale;
6
6
  private setColumnWidth;
7
7
  }
8
- export type UiControl = Ui;
8
+ export declare type UiControl = Ui;
9
9
  declare const _default: Ui;
10
10
  export default _default;
@@ -1,17 +1,11 @@
1
- import type { DefineComponent, ComputedRef, Ref, ComponentOptionsMixin, PublicProps, Reactive, ComponentProvideOptions } from 'vue';
1
+ import type { ComputedRef, Ref } from '@vue/reactivity';
2
+ import type { DefineComponent, ComponentOptionsMixin, EmitsOptions, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from '@vue/runtime-core';
2
3
  declare const _sfc_main: DefineComponent<{}, {
3
4
  size: ComputedRef<any>;
4
- handleCanvasSize: (size?: number) => void;
5
- controllerSize: Ref<any, any>;
6
- shortCutShow: Ref<boolean, boolean>;
5
+ handleCanvasSize: (size?: number | undefined) => void;
6
+ controllerSize: Ref<any>;
7
+ shortCutShow: Ref<boolean>;
7
8
  handleShortCutHidden: () => void;
8
9
  handleShortcutShow: () => void;
9
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {
10
- shortcutKey: DefineComponent<{}, {
11
- keyList: Reactive<{
12
- key: string;
13
- value: string;
14
- }[]>;
15
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
16
- }, {}, string, ComponentProvideOptions, true, {}, any>;
10
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, EmitsOptions, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}>;
17
11
  export default _sfc_main;
@@ -1,33 +1,21 @@
1
- import type { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, Ref, ComponentProvideOptions } from 'vue';
2
- declare const _sfc_main: DefineComponent<ExtractPropTypes<{
1
+ import type { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from '@vue/runtime-core';
2
+ declare const _sfc_main: DefineComponent<{
3
3
  headerShow: {
4
4
  type: BooleanConstructor;
5
5
  default: boolean;
6
6
  };
7
- }>, {
7
+ }, {
8
8
  columnWidth: any;
9
9
  leftClose: any;
10
10
  rightClose: any;
11
11
  onLeftArrow: () => void;
12
12
  onRightArrow: () => void;
13
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
13
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
14
14
  headerShow: {
15
15
  type: BooleanConstructor;
16
16
  default: boolean;
17
17
  };
18
- }>> & Readonly<{}>, {
18
+ }>>, {
19
19
  headerShow: boolean;
20
- }, {}, {
21
- Resizer: DefineComponent<ExtractPropTypes<{
22
- type: {
23
- type: StringConstructor;
24
- };
25
- }>, {
26
- target: Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
27
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
28
- type: {
29
- type: StringConstructor;
30
- };
31
- }>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
32
- }, {}, string, ComponentProvideOptions, true, {}, any>;
20
+ }>;
33
21
  export default _sfc_main;
@@ -1,13 +1,14 @@
1
- import type { DefineComponent, ExtractPropTypes, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
- declare const _sfc_main: DefineComponent<ExtractPropTypes<{
1
+ import type { Ref } from '@vue/reactivity';
2
+ import type { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from '@vue/runtime-core';
3
+ declare const _sfc_main: DefineComponent<{
3
4
  type: {
4
5
  type: StringConstructor;
5
6
  };
6
- }>, {
7
- target: Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
8
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
7
+ }, {
8
+ target: Ref<HTMLDivElement | undefined>;
9
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
9
10
  type: {
10
11
  type: StringConstructor;
11
12
  };
12
- }>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
13
+ }>>, {}>;
13
14
  export default _sfc_main;
@@ -1,8 +1,8 @@
1
- import type { DefineComponent, Reactive, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
1
+ import type { DefineComponent, ComponentOptionsMixin, EmitsOptions, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from '@vue/runtime-core';
2
2
  declare const _sfc_main: DefineComponent<{}, {
3
- keyList: Reactive<{
3
+ keyList: {
4
4
  key: string;
5
5
  value: string;
6
- }[]>;
7
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
6
+ }[];
7
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, EmitsOptions, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}>;
8
8
  export default _sfc_main;
@@ -1,6 +1,8 @@
1
- import type { DefineComponent, ExtractPropTypes, Ref, ComponentOptionsMixin, PublicProps, ComputedOptions, MethodOptions, ComponentProvideOptions, PropType } from 'vue';
1
+ import type { Ref } from '@vue/reactivity';
2
+ import type { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from '@vue/runtime-core';
3
+ import { PropType } from "vue";
2
4
  import type { MenuBarData } from "./type";
3
- declare const _sfc_main: DefineComponent<ExtractPropTypes<{
5
+ declare const _sfc_main: DefineComponent<{
4
6
  /**
5
7
  * 基础控件
6
8
  */
@@ -42,13 +44,13 @@ declare const _sfc_main: DefineComponent<ExtractPropTypes<{
42
44
  type: ArrayConstructor;
43
45
  default: () => string[];
44
46
  };
45
- }>, {
46
- workspace: Ref<any, any>;
47
- formPreview: Ref<any, any>;
47
+ }, {
48
+ workspace: Ref<any>;
49
+ formPreview: Ref<any>;
48
50
  onSave(): void;
49
51
  getJson(): void;
50
52
  setJson(jsonList: any[]): void;
51
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
53
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
52
54
  /**
53
55
  * 基础控件
54
56
  */
@@ -90,20 +92,12 @@ declare const _sfc_main: DefineComponent<ExtractPropTypes<{
90
92
  type: ArrayConstructor;
91
93
  default: () => string[];
92
94
  };
93
- }>> & Readonly<{}>, {
95
+ }>>, {
94
96
  basicFields: unknown[];
95
97
  layoutFields: unknown[];
96
98
  shortcutDisabled: boolean;
97
99
  headerShow: boolean;
98
100
  menu: MenuBarData;
99
101
  panel: unknown[];
100
- }, {}, {
101
- Framework: DefineComponent<{}, {}, any, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{}>>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
102
- NavList: DefineComponent<{}, {}, any, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{}>>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
103
- ComponentList: DefineComponent<{}, {}, any, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{}>>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
104
- Workspace: DefineComponent<{}, {}, any, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{}>>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
105
- PropsPanel: DefineComponent<{}, {}, any, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{}>>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
106
- FormPreview: DefineComponent<{}, {}, any, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{}>>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
107
- Nav: DefineComponent<{}, {}, any, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{}>>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
108
- }, {}, string, ComponentProvideOptions, true, {}, any>;
102
+ }>;
109
103
  export default _sfc_main;
@@ -3,11 +3,11 @@ import type { hisContrl } from "./controller/history";
3
3
  import type { formContrl } from "./controller/form";
4
4
  import type { ActionForm } from "./controller/action";
5
5
  import type { shortCut } from "./controller/shortcut";
6
- import type { FormConfig, fields } from "starfish-form/src/main";
6
+ import type { FormConfig, fields } from "starfish-form-custom/src/main";
7
7
  /**
8
8
  * 组件名称枚举
9
9
  */
10
- type ComponentListEnum = Omit<keyof typeof window.VApp.$formcomponents, "symbol">;
10
+ declare type ComponentListEnum = Omit<keyof typeof window.VApp.$formcomponents, "symbol">;
11
11
  interface ColumnWidth {
12
12
  left: number;
13
13
  center: number;
@@ -89,9 +89,9 @@ export interface HistoryItem {
89
89
  currentId: string;
90
90
  curControl: AllFormItem | Record<string, any>;
91
91
  }
92
- export type MenuItem = "delete" | "undo" | "redo" | "tree" | "save" | "preview" | "fullscreen" | "viewport" | "json-export" | "json-import";
93
- export type MenuRight = "viewport" | "json-export" | "json-import";
94
- export type MenuBarData = {
92
+ export declare type MenuItem = "delete" | "undo" | "redo" | "tree" | "save" | "preview" | "fullscreen" | "viewport" | "json-export" | "json-import";
93
+ export declare type MenuRight = "viewport" | "json-export" | "json-import";
94
+ export declare type MenuBarData = {
95
95
  left: MenuItem[];
96
96
  right: MenuRight[];
97
97
  column: boolean;
@@ -214,11 +214,11 @@ export interface BaseComponentItem {
214
214
  */
215
215
  rules?: FormRule;
216
216
  }
217
- export type RequiredKey<T, K extends keyof T> = Omit<T, K> & {
217
+ export declare type RequiredKey<T, K extends keyof T> = Omit<T, K> & {
218
218
  [P in K]-?: T[P];
219
219
  };
220
- export type PartialKey<T, K extends keyof T> = Omit<T, K> & {
220
+ export declare type PartialKey<T, K extends keyof T> = Omit<T, K> & {
221
221
  [P in K]?: T[P];
222
222
  };
223
- export type BaseFormConfig = FormConfig;
223
+ export declare type BaseFormConfig = FormConfig;
224
224
  export {};
@@ -14,5 +14,5 @@ declare const result: {
14
14
  onBottom: typeof onBottom;
15
15
  clearCanvas: typeof clearCanvas;
16
16
  };
17
- export type shortCutType = typeof result;
17
+ export declare type shortCutType = typeof result;
18
18
  export default result;