starfish-editor-custom 1.0.0

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 (108) hide show
  1. package/auto-imports.d.ts +10 -0
  2. package/babel.config.js +8 -0
  3. package/components.d.ts +46 -0
  4. package/dist/ConditionModule.js +892 -0
  5. package/dist/ConditionSelect.js +483 -0
  6. package/dist/CustomDialog.js +105 -0
  7. package/dist/formStyle.js +245 -0
  8. package/dist/globalFormList.js +59 -0
  9. package/dist/jsonCode.js +74 -0
  10. package/dist/jsonEditor.js +71 -0
  11. package/dist/main.js +3319 -0
  12. package/dist/starfish-editor.es.js +30 -0
  13. package/dist/style.css +1 -0
  14. package/dist/types/editor/src/common/ConditionSelect/ConditionGroup.vue.d.ts +61 -0
  15. package/dist/types/editor/src/common/ConditionSelect/ConditionModule.vue.d.ts +43 -0
  16. package/dist/types/editor/src/common/ConditionSelect/ConditionTanc.vue.d.ts +48 -0
  17. package/dist/types/editor/src/common/ConditionSelect.vue.d.ts +72 -0
  18. package/dist/types/editor/src/common/CustomDialog.vue.d.ts +25 -0
  19. package/dist/types/editor/src/common/Loading.vue.d.ts +3 -0
  20. package/dist/types/editor/src/common/formJson.d.ts +80 -0
  21. package/dist/types/editor/src/common/jsonCode.vue.d.ts +110 -0
  22. package/dist/types/editor/src/components/ComponentList.vue.d.ts +32 -0
  23. package/dist/types/editor/src/components/FormPreview.vue.d.ts +25 -0
  24. package/dist/types/editor/src/components/Nav.vue.d.ts +9 -0
  25. package/dist/types/editor/src/components/PropsPanel.vue.d.ts +53 -0
  26. package/dist/types/editor/src/components/Shape.vue.d.ts +40 -0
  27. package/dist/types/editor/src/components/Workspace.vue.d.ts +22 -0
  28. package/dist/types/editor/src/components/globalFormList.vue.d.ts +6 -0
  29. package/dist/types/editor/src/components/jsonEditor.vue.d.ts +6 -0
  30. package/dist/types/editor/src/controller/action.d.ts +18 -0
  31. package/dist/types/editor/src/controller/form.d.ts +24 -0
  32. package/dist/types/editor/src/controller/history.d.ts +12 -0
  33. package/dist/types/editor/src/controller/shortcut.d.ts +20 -0
  34. package/dist/types/editor/src/controller/ui.d.ts +10 -0
  35. package/dist/types/editor/src/layouts/ControlEditSize.vue.d.ts +17 -0
  36. package/dist/types/editor/src/layouts/Framework.vue.d.ts +33 -0
  37. package/dist/types/editor/src/layouts/Resizer.vue.d.ts +13 -0
  38. package/dist/types/editor/src/layouts/ShortcutKey.vue.d.ts +8 -0
  39. package/dist/types/editor/src/main.d.ts +5 -0
  40. package/dist/types/editor/src/shims-vue.d.ts +23 -0
  41. package/dist/types/editor/src/starfish-editor.vue.d.ts +109 -0
  42. package/dist/types/editor/src/type.d.ts +224 -0
  43. package/dist/types/editor/src/utils/_.d.ts +33 -0
  44. package/dist/types/editor/src/utils/formKeycon.d.ts +18 -0
  45. package/dist/types/editor/src/utils/shortcutKey.d.ts +3 -0
  46. package/dist/types/editor/src/utils/vm.d.ts +3 -0
  47. package/dist/types/starfish-editor.d.ts +3 -0
  48. package/package.json +55 -0
  49. package/src/common/ConditionSelect/ConditionGroup.vue +167 -0
  50. package/src/common/ConditionSelect/ConditionModule.vue +118 -0
  51. package/src/common/ConditionSelect/ConditionTanc.vue +319 -0
  52. package/src/common/ConditionSelect.vue +268 -0
  53. package/src/common/CustomDialog.vue +77 -0
  54. package/src/common/Loading.vue +10 -0
  55. package/src/common/formJson.ts +143 -0
  56. package/src/common/formStyle.vue +170 -0
  57. package/src/common/jsonCode.vue +45 -0
  58. package/src/components/ComponentList.vue +156 -0
  59. package/src/components/FormPreview.vue +197 -0
  60. package/src/components/Nav.vue +128 -0
  61. package/src/components/NavList.vue +560 -0
  62. package/src/components/PropsPanel.vue +376 -0
  63. package/src/components/Shape.vue +178 -0
  64. package/src/components/Workspace.vue +258 -0
  65. package/src/components/globalFormList.vue +30 -0
  66. package/src/components/jsonEditor.vue +41 -0
  67. package/src/controller/action.ts +37 -0
  68. package/src/controller/form.ts +207 -0
  69. package/src/controller/history.ts +57 -0
  70. package/src/controller/shortcut.ts +81 -0
  71. package/src/controller/ui.ts +91 -0
  72. package/src/layouts/ControlEditSize.vue +52 -0
  73. package/src/layouts/Framework.vue +76 -0
  74. package/src/layouts/Resizer.vue +54 -0
  75. package/src/layouts/ShortcutKey.vue +61 -0
  76. package/src/main.ts +56 -0
  77. package/src/shims-vue.d.ts +23 -0
  78. package/src/starfish-editor.vue +176 -0
  79. package/src/styles/common/normalize.css +455 -0
  80. package/src/styles/component-list.scss +64 -0
  81. package/src/styles/condition-select.scss +176 -0
  82. package/src/styles/control_edit_size.scss +36 -0
  83. package/src/styles/custom-dialog.scss +110 -0
  84. package/src/styles/form-preview.scss +47 -0
  85. package/src/styles/framework.scss +150 -0
  86. package/src/styles/iconfont/iconfont.css +247 -0
  87. package/src/styles/iconfont/iconfont.js +1 -0
  88. package/src/styles/iconfont/iconfont.json +415 -0
  89. package/src/styles/iconfont/iconfont.ttf +0 -0
  90. package/src/styles/iconfont/iconfont.woff +0 -0
  91. package/src/styles/iconfont/iconfont.woff2 +0 -0
  92. package/src/styles/index.scss +18 -0
  93. package/src/styles/nav-list.scss +59 -0
  94. package/src/styles/nav.scss +46 -0
  95. package/src/styles/props-panel.scss +115 -0
  96. package/src/styles/resizer.scss +15 -0
  97. package/src/styles/shape.scss +101 -0
  98. package/src/styles/shortcutkey.scss +44 -0
  99. package/src/styles/variables.scss +36 -0
  100. package/src/styles/work-space.scss +126 -0
  101. package/src/type.ts +240 -0
  102. package/src/utils/_.ts +349 -0
  103. package/src/utils/formKeycon.ts +42 -0
  104. package/src/utils/shortcutKey.ts +46 -0
  105. package/src/utils/vm.ts +3 -0
  106. package/stats.html +4949 -0
  107. package/tsconfig.json +19 -0
  108. package/vite.config.ts +111 -0
@@ -0,0 +1,32 @@
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>;
32
+ export default _sfc_main;
@@ -0,0 +1,25 @@
1
+ import type { DefineComponent, Ref, ComputedRef, ComponentOptionsMixin, PublicProps, ComputedOptions, MethodOptions, ExtractPropTypes, ComponentProvideOptions } from 'vue';
2
+ declare const _sfc_main: DefineComponent<{}, {
3
+ code: Ref<any, any>;
4
+ pageType: ComputedRef<any>;
5
+ codeDialog: Ref<any, any>;
6
+ globalDatas: ComputedRef<any>;
7
+ dialogWidth: ComputedRef<any>;
8
+ previewShow: ComputedRef<any>;
9
+ previewDialog: Ref<any, any>;
10
+ handlePreviewShow: () => void;
11
+ JsonViewerDialog: Ref<any, any>;
12
+ allFormList: ComputedRef<any>;
13
+ formResult: ComputedRef<any>;
14
+ dynamicform: Ref<any, any>;
15
+ resetForm(): void;
16
+ closeDialog(): void;
17
+ getData(): void;
18
+ closeCodeDialog(): void;
19
+ copyJson(): void;
20
+ 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>;
25
+ export default _sfc_main;
@@ -0,0 +1,9 @@
1
+ import type { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ /**
3
+ * 2022.7.1想到的优化点
4
+ * 新增json导入导出功能
5
+ */
6
+ declare const _sfc_main: DefineComponent<{}, {
7
+ onLink(): void;
8
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
9
+ export default _sfc_main;
@@ -0,0 +1,53 @@
1
+ import type { DefineComponent, ExtractPropTypes, Ref, ComponentOptionsMixin, PublicProps, ComputedOptions, MethodOptions, ComponentProvideOptions, ComputedRef } from 'vue';
2
+ import type { TabPaneInstance } from "element-plus";
3
+ declare const _sfc_main: DefineComponent<ExtractPropTypes<{
4
+ column: {
5
+ type: BooleanConstructor;
6
+ default: boolean;
7
+ };
8
+ panel: {
9
+ type: ArrayConstructor;
10
+ default: () => string[];
11
+ };
12
+ }>, {
13
+ globalFormLists: ComputedRef<any>;
14
+ globalDatas: ComputedRef<any>;
15
+ jsonCenter: Ref<any, any>;
16
+ handleClick: (tab: TabPaneInstance) => void;
17
+ jsonEditor: any;
18
+ onEditor: (editor: any) => void;
19
+ activeName: Ref<string, string>;
20
+ handleMouseDown: () => Promise<void>;
21
+ moduleIsHidden: Ref<boolean, boolean>;
22
+ handleEditBtn: () => void;
23
+ isTransition: Ref<boolean, boolean>;
24
+ editRight: Ref<any, any>;
25
+ controlItems: ComputedRef<any>;
26
+ curControl: ComputedRef<any>;
27
+ ruleForm: Ref<any, any>;
28
+ show: Ref<boolean, boolean>;
29
+ currentIndex: ComputedRef<any>;
30
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
31
+ column: {
32
+ type: BooleanConstructor;
33
+ default: boolean;
34
+ };
35
+ panel: {
36
+ type: ArrayConstructor;
37
+ default: () => string[];
38
+ };
39
+ }>> & Readonly<{}>, {
40
+ panel: unknown[];
41
+ 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>;
53
+ export default _sfc_main;
@@ -0,0 +1,40 @@
1
+ import type { DefineComponent, ExtractPropTypes, Ref, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ declare const _sfc_main: DefineComponent<ExtractPropTypes<{
3
+ active: BooleanConstructor;
4
+ currentIndex: NumberConstructor;
5
+ len: {
6
+ type: NumberConstructor;
7
+ default: number;
8
+ };
9
+ inline: BooleanConstructor;
10
+ layout: BooleanConstructor;
11
+ currentId: StringConstructor;
12
+ item: ObjectConstructor;
13
+ }>, {
14
+ isShow: Ref<boolean, boolean>;
15
+ handleShortCut: (e: MouseEvent) => void;
16
+ handleMenu: () => void;
17
+ editForm: Ref<any, any>;
18
+ handleActive: (type: string) => void;
19
+ handleCopyAndPaste: () => void;
20
+ copyContent: ComputedRef<any>;
21
+ handleColumn: () => void;
22
+ handleRow: () => void;
23
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
24
+ active: BooleanConstructor;
25
+ currentIndex: NumberConstructor;
26
+ len: {
27
+ type: NumberConstructor;
28
+ default: number;
29
+ };
30
+ inline: BooleanConstructor;
31
+ layout: BooleanConstructor;
32
+ currentId: StringConstructor;
33
+ item: ObjectConstructor;
34
+ }>> & Readonly<{}>, {
35
+ active: boolean;
36
+ inline: boolean;
37
+ layout: boolean;
38
+ len: number;
39
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
40
+ export default _sfc_main;
@@ -0,0 +1,22 @@
1
+ import type { DefineComponent, ComputedRef, Ref, WritableComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ declare const _sfc_main: DefineComponent<{}, {
3
+ scale: ComputedRef<any>;
4
+ globalDatas: ComputedRef<any>;
5
+ canvasBox: Ref<any, any>;
6
+ editForm: Ref<any, any>;
7
+ handleCanvasSize: (size: string) => void;
8
+ pageType: ComputedRef<any>;
9
+ canvasSize: Ref<number, number>;
10
+ dragDom: Ref<any, any>;
11
+ chooseClick: (e: any) => void;
12
+ addControl: (e: any) => void;
13
+ changePos: (e: any) => void;
14
+ allmainList: WritableComputedRef<any, AllFormItem[]>;
15
+ currentId: ComputedRef<any>;
16
+ handleNoDraggable: (e: any) => void;
17
+ handlePaste: () => void;
18
+ pasteShow: Ref<boolean, boolean>;
19
+ fullScreen: ComputedRef<any>;
20
+ onEditorCenter: (e: any) => void;
21
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
22
+ export default _sfc_main;
@@ -0,0 +1,6 @@
1
+ import type { DefineComponent, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ declare const _sfc_main: DefineComponent<{}, {
3
+ globalFormLists: ComputedRef<any>;
4
+ globalDatas: ComputedRef<any>;
5
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
6
+ export default _sfc_main;
@@ -0,0 +1,6 @@
1
+ import type { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ export default _sfc_main;
3
+ declare const _sfc_main: DefineComponent<{}, {
4
+ initJsonCenter: () => any;
5
+ jsonCenter: Ref<any, any>;
6
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,18 @@
1
+ declare const state: {
2
+ action: {
3
+ funcName: string;
4
+ type: string;
5
+ methods: string;
6
+ funcStr: string;
7
+ disabled: boolean;
8
+ }[];
9
+ currentAction: null;
10
+ };
11
+ declare class Action {
12
+ set(name: keyof typeof state, value: any): void;
13
+ get(name: keyof typeof state): any;
14
+ }
15
+ export { state };
16
+ export type ActionForm = Action;
17
+ declare const _default: Action;
18
+ export default _default;
@@ -0,0 +1,24 @@
1
+ import { AllFormItem, BaseFormConfig } from '../type';
2
+ declare const state: any;
3
+ export { state };
4
+ declare class Form {
5
+ updateAllFormList(allFormList: AllFormItem[]): void;
6
+ setHistory(): void;
7
+ setFormCurrentIndex(index: number): void;
8
+ setFormCurrentId(id: string): void;
9
+ getCurrentItem(id: string): undefined;
10
+ getLayoutCurCtrol(item: AllFormItem, id: string): AllFormItem | undefined;
11
+ handleDynamicForm(): void;
12
+ getDynamicForm(list: BaseFormConfig[]): Record<string, any>;
13
+ openPreview(preview: boolean): void;
14
+ setSave(type: boolean): void;
15
+ setFormUpdate(type: boolean): void;
16
+ getControlItems(): AllFormItem[];
17
+ getAllFormList(): AllFormItem[];
18
+ setAllFormList(item: AllFormItem): void;
19
+ set(name: keyof typeof state, value: any): void;
20
+ get(name: keyof typeof state): any;
21
+ }
22
+ export type formContrl = Form;
23
+ declare const _default: Form;
24
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import { HistoryItem } from '../type';
2
+ declare const state: any;
3
+ declare class History {
4
+ setValue(value: HistoryItem): void;
5
+ back(): void;
6
+ go(): void;
7
+ get<T>(name: keyof typeof state): T;
8
+ set(name: keyof typeof state, value: any): void;
9
+ }
10
+ export type hisContrl = History;
11
+ declare const _default: History;
12
+ export default _default;
@@ -0,0 +1,20 @@
1
+ import { AllFormItem, ShortCutState } from '../type';
2
+ /**
3
+ * 快捷键对表单的处理
4
+ */
5
+ declare class ShortCut {
6
+ copy(list: AllFormItem[]): void;
7
+ paste(list: AllFormItem[]): void;
8
+ delete(list: AllFormItem[]): void;
9
+ onTop(list: AllFormItem[]): void;
10
+ onBottom(list: AllFormItem[]): void;
11
+ clear(): void;
12
+ moveTop(): void;
13
+ moveBottom(list: AllFormItem[]): void;
14
+ set(name: keyof ShortCutState, value: any): void;
15
+ get(name: keyof ShortCutState): any;
16
+ commit(event: string): void;
17
+ }
18
+ export type shortCut = ShortCut;
19
+ declare const _default: ShortCut;
20
+ export default _default;
@@ -0,0 +1,10 @@
1
+ declare const state: any;
2
+ declare class Ui {
3
+ get<T>(name: keyof typeof state): T;
4
+ set<T>(name: keyof typeof state, value: T): void;
5
+ private setScale;
6
+ private setColumnWidth;
7
+ }
8
+ export type UiControl = Ui;
9
+ declare const _default: Ui;
10
+ export default _default;
@@ -0,0 +1,17 @@
1
+ import type { DefineComponent, ComputedRef, Ref, ComponentOptionsMixin, PublicProps, Reactive, ComponentProvideOptions } from 'vue';
2
+ declare const _sfc_main: DefineComponent<{}, {
3
+ size: ComputedRef<any>;
4
+ handleCanvasSize: (size?: number) => void;
5
+ controllerSize: Ref<any, any>;
6
+ shortCutShow: Ref<boolean, boolean>;
7
+ handleShortCutHidden: () => void;
8
+ 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>;
17
+ export default _sfc_main;
@@ -0,0 +1,33 @@
1
+ import type { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, Ref, ComponentProvideOptions } from 'vue';
2
+ declare const _sfc_main: DefineComponent<ExtractPropTypes<{
3
+ headerShow: {
4
+ type: BooleanConstructor;
5
+ default: boolean;
6
+ };
7
+ }>, {
8
+ columnWidth: any;
9
+ leftClose: any;
10
+ rightClose: any;
11
+ onLeftArrow: () => void;
12
+ onRightArrow: () => void;
13
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
14
+ headerShow: {
15
+ type: BooleanConstructor;
16
+ default: boolean;
17
+ };
18
+ }>> & Readonly<{}>, {
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>;
33
+ export default _sfc_main;
@@ -0,0 +1,13 @@
1
+ import type { DefineComponent, ExtractPropTypes, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ declare const _sfc_main: DefineComponent<ExtractPropTypes<{
3
+ type: {
4
+ type: StringConstructor;
5
+ };
6
+ }>, {
7
+ target: Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
8
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
9
+ type: {
10
+ type: StringConstructor;
11
+ };
12
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
13
+ export default _sfc_main;
@@ -0,0 +1,8 @@
1
+ import type { DefineComponent, Reactive, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ declare const _sfc_main: DefineComponent<{}, {
3
+ keyList: Reactive<{
4
+ key: string;
5
+ value: string;
6
+ }[]>;
7
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
8
+ export default _sfc_main;
@@ -0,0 +1,5 @@
1
+ import { App } from "vue";
2
+ declare const _default: {
3
+ install: (app: App) => void;
4
+ };
5
+ export default _default;
@@ -0,0 +1,23 @@
1
+ /* eslint-disable */
2
+ declare module "*.vue" {
3
+ import type { DefineComponent } from "vue";
4
+ const component: DefineComponent<{}, {}, any>;
5
+ export default component;
6
+ }
7
+
8
+ declare module "starfish-form";
9
+
10
+ declare module "jsoneditor";
11
+
12
+ /**
13
+ * 在d.ts文件中定义类型,就相当于global,不需要再declare global
14
+ */
15
+ interface Window {
16
+ VueContext: {
17
+ $Flex: any;
18
+ };
19
+ clickCountLimitMock: boolean;
20
+ JSONEditor: any;
21
+ VApp: any;
22
+ Clipboard: any;
23
+ }
@@ -0,0 +1,109 @@
1
+ import type { DefineComponent, ExtractPropTypes, Ref, ComponentOptionsMixin, PublicProps, ComputedOptions, MethodOptions, ComponentProvideOptions, PropType } from 'vue';
2
+ import type { MenuBarData } from "./type";
3
+ declare const _sfc_main: DefineComponent<ExtractPropTypes<{
4
+ /**
5
+ * 基础控件
6
+ */
7
+ basicFields: {
8
+ type: ArrayConstructor;
9
+ default(): never[];
10
+ };
11
+ /**
12
+ * 布局控件
13
+ */
14
+ layoutFields: {
15
+ type: ArrayConstructor;
16
+ default(): never[];
17
+ };
18
+ /**
19
+ * 是否禁用快捷键
20
+ */
21
+ shortcutDisabled: {
22
+ type: BooleanConstructor;
23
+ default: boolean;
24
+ };
25
+ /**
26
+ * 导航头是否展示
27
+ */
28
+ headerShow: {
29
+ type: BooleanConstructor;
30
+ default: boolean;
31
+ };
32
+ /** 顶部工具栏配置 */
33
+ menu: {
34
+ type: PropType<MenuBarData>;
35
+ default: () => {
36
+ left: never[];
37
+ right: never[];
38
+ column: boolean;
39
+ };
40
+ };
41
+ panel: {
42
+ type: ArrayConstructor;
43
+ default: () => string[];
44
+ };
45
+ }>, {
46
+ workspace: Ref<any, any>;
47
+ formPreview: Ref<any, any>;
48
+ onSave(): void;
49
+ getJson(): void;
50
+ setJson(jsonList: any[]): void;
51
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
52
+ /**
53
+ * 基础控件
54
+ */
55
+ basicFields: {
56
+ type: ArrayConstructor;
57
+ default(): never[];
58
+ };
59
+ /**
60
+ * 布局控件
61
+ */
62
+ layoutFields: {
63
+ type: ArrayConstructor;
64
+ default(): never[];
65
+ };
66
+ /**
67
+ * 是否禁用快捷键
68
+ */
69
+ shortcutDisabled: {
70
+ type: BooleanConstructor;
71
+ default: boolean;
72
+ };
73
+ /**
74
+ * 导航头是否展示
75
+ */
76
+ headerShow: {
77
+ type: BooleanConstructor;
78
+ default: boolean;
79
+ };
80
+ /** 顶部工具栏配置 */
81
+ menu: {
82
+ type: PropType<MenuBarData>;
83
+ default: () => {
84
+ left: never[];
85
+ right: never[];
86
+ column: boolean;
87
+ };
88
+ };
89
+ panel: {
90
+ type: ArrayConstructor;
91
+ default: () => string[];
92
+ };
93
+ }>> & Readonly<{}>, {
94
+ basicFields: unknown[];
95
+ layoutFields: unknown[];
96
+ shortcutDisabled: boolean;
97
+ headerShow: boolean;
98
+ menu: MenuBarData;
99
+ 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>;
109
+ export default _sfc_main;