starfish-editor-custom 1.0.42 → 1.0.44

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 (44) hide show
  1. package/dist/ConditionModule.js +46 -56
  2. package/dist/ConditionSelect.js +23 -29
  3. package/dist/CustomDialog.js +1 -1
  4. package/dist/formStyle.js +26 -20
  5. package/dist/jsonCode.js +1 -1
  6. package/dist/jsonEditor.js +1 -1
  7. package/dist/main.js +275 -247
  8. package/dist/types/editor/src/common/ConditionSelect/ConditionGroup.vue.d.ts +0 -18
  9. package/dist/types/editor/src/common/ConditionSelect/ConditionModule.vue.d.ts +0 -17
  10. package/dist/types/editor/src/common/ConditionSelect/ConditionTanc.vue.d.ts +0 -30
  11. package/dist/types/editor/src/common/ConditionSelect.vue.d.ts +36 -14
  12. package/dist/types/editor/src/common/CustomDialog.vue.d.ts +11 -12
  13. package/dist/types/editor/src/common/Loading.vue.d.ts +2 -2
  14. package/dist/types/editor/src/common/jsonCode.vue.d.ts +104 -9
  15. package/dist/types/editor/src/components/ComponentList.vue.d.ts +31 -2
  16. package/dist/types/editor/src/components/FormPreview.vue.d.ts +65 -8
  17. package/dist/types/editor/src/components/Nav.vue.d.ts +2 -2
  18. package/dist/types/editor/src/components/PropsPanel.vue.d.ts +24 -16
  19. package/dist/types/editor/src/components/Shape.vue.d.ts +9 -10
  20. package/dist/types/editor/src/components/Workspace.vue.d.ts +8 -9
  21. package/dist/types/editor/src/components/globalFormList.vue.d.ts +2 -3
  22. package/dist/types/editor/src/components/jsonEditor.vue.d.ts +3 -4
  23. package/dist/types/editor/src/controller/action.d.ts +1 -1
  24. package/dist/types/editor/src/controller/form.d.ts +1 -1
  25. package/dist/types/editor/src/controller/history.d.ts +1 -1
  26. package/dist/types/editor/src/controller/shortcut.d.ts +1 -1
  27. package/dist/types/editor/src/controller/ui.d.ts +1 -1
  28. package/dist/types/editor/src/layouts/ControlEditSize.vue.d.ts +12 -6
  29. package/dist/types/editor/src/layouts/Framework.vue.d.ts +18 -6
  30. package/dist/types/editor/src/layouts/Resizer.vue.d.ts +6 -7
  31. package/dist/types/editor/src/layouts/ShortcutKey.vue.d.ts +4 -4
  32. package/dist/types/editor/src/starfish-editor.vue.d.ts +16 -10
  33. package/dist/types/editor/src/type.d.ts +7 -7
  34. package/dist/types/editor/src/utils/formKeycon.d.ts +1 -1
  35. package/package.json +55 -65
  36. package/src/controller/shortcut.ts +1 -1
  37. package/src/styles/component-list.scss +74 -74
  38. package/src/styles/custom-dialog.scss +110 -110
  39. package/src/styles/form-preview.scss +50 -50
  40. package/src/styles/framework.scss +150 -150
  41. package/src/styles/nav-list.scss +60 -60
  42. package/src/styles/props-panel.scss +124 -124
  43. package/src/styles/work-space.scss +129 -129
  44. package/stats.html +3690 -4918
@@ -1,24 +1,23 @@
1
- import type { ComputedRef, Ref, WritableComputedRef } from '@vue/reactivity';
2
- import type { DefineComponent, ComponentOptionsMixin, EmitsOptions, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from '@vue/runtime-core';
1
+ import type { DefineComponent, ComputedRef, Ref, WritableComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
2
  declare const _sfc_main: DefineComponent<{}, {
4
3
  scale: ComputedRef<any>;
5
4
  globalDatas: ComputedRef<any>;
6
- canvasBox: Ref<any>;
7
- editForm: Ref<any>;
5
+ canvasBox: Ref<any, any>;
6
+ editForm: Ref<any, any>;
8
7
  handleCanvasSize: (size: string) => void;
9
8
  pageType: ComputedRef<any>;
10
- canvasSize: Ref<number>;
11
- dragDom: Ref<any>;
9
+ canvasSize: Ref<number, number>;
10
+ dragDom: Ref<any, any>;
12
11
  chooseClick: (e: any) => void;
13
12
  handleCanvasClick: (event: Event) => void;
14
13
  addControl: (e: any) => void;
15
14
  changePos: (e: any) => void;
16
- allmainList: WritableComputedRef<AllFormItem[]>;
15
+ allmainList: WritableComputedRef<any, AllFormItem[]>;
17
16
  currentId: ComputedRef<any>;
18
17
  handleNoDraggable: (e: any) => void;
19
18
  handlePaste: () => void;
20
- pasteShow: Ref<boolean>;
19
+ pasteShow: Ref<boolean, boolean>;
21
20
  fullScreen: ComputedRef<any>;
22
21
  onEditorCenter: (e: any) => void;
23
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, EmitsOptions, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}>;
22
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
24
23
  export default _sfc_main;
@@ -1,7 +1,6 @@
1
- import type { ComputedRef } from '@vue/reactivity';
2
- import type { DefineComponent, ComponentOptionsMixin, EmitsOptions, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from '@vue/runtime-core';
1
+ import type { DefineComponent, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
2
  declare const _sfc_main: DefineComponent<{}, {
4
3
  globalFormLists: ComputedRef<any>;
5
4
  globalDatas: ComputedRef<any>;
6
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, EmitsOptions, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}>;
5
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
7
6
  export default _sfc_main;
@@ -1,7 +1,6 @@
1
- import type { Ref } from '@vue/reactivity';
2
- import type { DefineComponent, ComponentOptionsMixin, EmitsOptions, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from '@vue/runtime-core';
1
+ import type { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
2
  export default _sfc_main;
4
3
  declare const _sfc_main: DefineComponent<{}, {
5
4
  initJsonCenter: () => any;
6
- jsonCenter: Ref<any>;
7
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, EmitsOptions, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}>;
5
+ jsonCenter: Ref<any, any>;
6
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
@@ -13,6 +13,6 @@ declare class Action {
13
13
  get(name: keyof typeof state): any;
14
14
  }
15
15
  export { state };
16
- export declare type ActionForm = Action;
16
+ export 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 declare type formContrl = Form;
22
+ export 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 declare type hisContrl = History;
10
+ export 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 declare type shortCut = ShortCut;
18
+ export 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 declare type UiControl = Ui;
8
+ export type UiControl = Ui;
9
9
  declare const _default: Ui;
10
10
  export default _default;
@@ -1,11 +1,17 @@
1
- import type { ComputedRef, Ref } from '@vue/reactivity';
2
- import type { DefineComponent, ComponentOptionsMixin, EmitsOptions, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from '@vue/runtime-core';
1
+ import type { DefineComponent, ComputedRef, Ref, ComponentOptionsMixin, PublicProps, Reactive, ComponentProvideOptions } from 'vue';
3
2
  declare const _sfc_main: DefineComponent<{}, {
4
3
  size: ComputedRef<any>;
5
- handleCanvasSize: (size?: number | undefined) => void;
6
- controllerSize: Ref<any>;
7
- shortCutShow: Ref<boolean>;
4
+ handleCanvasSize: (size?: number) => void;
5
+ controllerSize: Ref<any, any>;
6
+ shortCutShow: Ref<boolean, boolean>;
8
7
  handleShortCutHidden: () => void;
9
8
  handleShortcutShow: () => void;
10
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, EmitsOptions, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}>;
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>;
11
17
  export default _sfc_main;
@@ -1,21 +1,33 @@
1
- import type { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from '@vue/runtime-core';
2
- declare const _sfc_main: DefineComponent<{
1
+ import type { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, Ref, ComponentProvideOptions } from 'vue';
2
+ declare const _sfc_main: DefineComponent<ExtractPropTypes<{
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
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
13
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
14
14
  headerShow: {
15
15
  type: BooleanConstructor;
16
16
  default: boolean;
17
17
  };
18
- }>>, {
18
+ }>> & Readonly<{}>, {
19
19
  headerShow: boolean;
20
- }>;
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>;
21
33
  export default _sfc_main;
@@ -1,14 +1,13 @@
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<{
1
+ import type { DefineComponent, ExtractPropTypes, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ declare const _sfc_main: DefineComponent<ExtractPropTypes<{
4
3
  type: {
5
4
  type: StringConstructor;
6
5
  };
7
- }, {
8
- target: Ref<HTMLDivElement | undefined>;
9
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
6
+ }>, {
7
+ target: Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
8
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
10
9
  type: {
11
10
  type: StringConstructor;
12
11
  };
13
- }>>, {}>;
12
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
14
13
  export default _sfc_main;
@@ -1,8 +1,8 @@
1
- import type { DefineComponent, ComponentOptionsMixin, EmitsOptions, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from '@vue/runtime-core';
1
+ import type { DefineComponent, Reactive, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
2
  declare const _sfc_main: DefineComponent<{}, {
3
- keyList: {
3
+ keyList: Reactive<{
4
4
  key: string;
5
5
  value: string;
6
- }[];
7
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, EmitsOptions, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}>;
6
+ }[]>;
7
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
8
8
  export default _sfc_main;
@@ -1,8 +1,6 @@
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";
1
+ import type { DefineComponent, ExtractPropTypes, Ref, ComponentOptionsMixin, PublicProps, ComputedOptions, MethodOptions, ComponentProvideOptions, PropType } from 'vue';
4
2
  import type { MenuBarData } from "./type";
5
- declare const _sfc_main: DefineComponent<{
3
+ declare const _sfc_main: DefineComponent<ExtractPropTypes<{
6
4
  /**
7
5
  * 基础控件
8
6
  */
@@ -44,13 +42,13 @@ declare const _sfc_main: DefineComponent<{
44
42
  type: ArrayConstructor;
45
43
  default: () => string[];
46
44
  };
47
- }, {
48
- workspace: Ref<any>;
49
- formPreview: Ref<any>;
45
+ }>, {
46
+ workspace: Ref<any, any>;
47
+ formPreview: Ref<any, any>;
50
48
  onSave(): void;
51
49
  getJson(): void;
52
50
  setJson(jsonList: any[]): void;
53
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
51
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
54
52
  /**
55
53
  * 基础控件
56
54
  */
@@ -92,12 +90,20 @@ declare const _sfc_main: DefineComponent<{
92
90
  type: ArrayConstructor;
93
91
  default: () => string[];
94
92
  };
95
- }>>, {
93
+ }>> & Readonly<{}>, {
96
94
  basicFields: unknown[];
97
95
  layoutFields: unknown[];
98
96
  shortcutDisabled: boolean;
99
97
  headerShow: boolean;
100
98
  menu: MenuBarData;
101
99
  panel: unknown[];
102
- }>;
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>;
103
109
  export default _sfc_main;
@@ -7,7 +7,7 @@ import type { FormConfig, fields } from "starfish-form-custom/src/main";
7
7
  /**
8
8
  * 组件名称枚举
9
9
  */
10
- declare type ComponentListEnum = Omit<keyof typeof window.VApp.$formcomponents, "symbol">;
10
+ 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 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 = {
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 = {
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 declare type RequiredKey<T, K extends keyof T> = Omit<T, K> & {
217
+ export type RequiredKey<T, K extends keyof T> = Omit<T, K> & {
218
218
  [P in K]-?: T[P];
219
219
  };
220
- export declare type PartialKey<T, K extends keyof T> = Omit<T, K> & {
220
+ export type PartialKey<T, K extends keyof T> = Omit<T, K> & {
221
221
  [P in K]?: T[P];
222
222
  };
223
- export declare type BaseFormConfig = FormConfig;
223
+ export 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 declare type shortCutType = typeof result;
17
+ export type shortCutType = typeof result;
18
18
  export default result;
package/package.json CHANGED
@@ -1,65 +1,55 @@
1
- {
2
- "name": "starfish-editor-custom",
3
- "version": "1.0.42",
4
- "main": "dist/starfish-editor.umd.js",
5
- "style": "dist/style.css",
6
- "module": "dist/starfish-editor.es.js",
7
- "types": "dist/types/starfish-editor.d.ts",
8
- "exports": {
9
- ".": {
10
- "import": "./dist/starfish-editor.es.js"
11
- },
12
- "./dist/style.css": {
13
- "import": "./dist/style.css"
14
- },
15
- "./*": "./*"
16
- },
17
- "scripts": {
18
- "dev": "vite",
19
- "build": "vite build"
20
- },
21
- "dependencies": {
22
- "@babel/core": "^7.18.5",
23
- "@codemirror/lang-css": "6.0.0",
24
- "@codemirror/lang-html": "6.1.0",
25
- "@codemirror/lang-javascript": "6.0.2",
26
- "@codemirror/lang-json": "6.0.0",
27
- "@tiptap/extension-blockquote": "^3.10.7",
28
- "@tiptap/extension-code": "^3.10.7",
29
- "@tiptap/extension-code-block": "^3.13.0",
30
- "@tiptap/extension-code-block-lowlight": "^3.10.7",
31
- "@tiptap/extension-horizontal-rule": "^3.10.7",
32
- "@tiptap/extension-underline": "^3.10.7",
33
- "@tiptap/pm": "^3.10.7",
34
- "@tiptap/starter-kit": "^3.10.7",
35
- "@tiptap/vue-3": "^3.10.7",
36
- "clipboard": "^2.0.11",
37
- "codemirror": "6.0.1",
38
- "core-js": "^3.6.5",
39
- "element-plus": "^2.2.12",
40
- "gesto": "^1.9.0",
41
- "jsoneditor": "^9.9.0",
42
- "keycon": "^1.1.2",
43
- "mitt": "^3.0.0",
44
- "nanoid": "^4.0.0",
45
- "remixicon": "^4.7.0",
46
- "starfish-form-custom": "1.0.44",
47
- "vue": "^3.2.37",
48
- "vue-codemirror": "6.1.1",
49
- "vuedraggable": "^4.1.0"
50
- },
51
- "devDependencies": {
52
- "@vitejs/plugin-vue": "^2.3.3",
53
- "cross-env": "^7.0.3",
54
- "live-server": "^1.2.2",
55
- "rollup-plugin-visualizer": "^5.8.3",
56
- "sass": "^1.94.1",
57
- "sass-embedded": "^1.93.3",
58
- "typescript": "^4.3.4",
59
- "unplugin-auto-import": "^0.17.5",
60
- "unplugin-vue-components": "^0.26.0",
61
- "vite": "^2.9.12",
62
- "vite-plugin-dts": "^1.2.0",
63
- "vue-tsc": "^0.34.7"
64
- }
65
- }
1
+ {
2
+ "name": "starfish-editor-custom",
3
+ "version": "1.0.44",
4
+ "main": "dist/starfish-editor.umd.js",
5
+ "style": "dist/style.css",
6
+ "module": "dist/starfish-editor.es.js",
7
+ "types": "dist/types/starfish-editor.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/starfish-editor.es.js"
11
+ },
12
+ "./dist/style.css": {
13
+ "import": "./dist/style.css"
14
+ },
15
+ "./*": "./*"
16
+ },
17
+ "scripts": {
18
+ "dev": "vite",
19
+ "build": "vite build"
20
+ },
21
+ "dependencies": {
22
+ "@babel/core": "^7.18.5",
23
+ "@codemirror/lang-css": "6.0.0",
24
+ "@codemirror/lang-html": "6.1.0",
25
+ "@codemirror/lang-javascript": "6.0.2",
26
+ "@codemirror/lang-json": "6.0.0",
27
+ "clipboard": "^2.0.11",
28
+ "codemirror": "6.0.1",
29
+ "core-js": "^3.6.5",
30
+ "element-plus": "^2.2.12",
31
+ "gesto": "^1.9.0",
32
+ "jsoneditor": "^9.9.0",
33
+ "keycon": "^1.1.2",
34
+ "mitt": "^3.0.0",
35
+ "nanoid": "^4.0.0",
36
+ "starfish-form-custom": "1.0.46",
37
+ "vue": "^3.2.37",
38
+ "vue-codemirror": "6.1.1",
39
+ "vuedraggable": "^4.1.0"
40
+ },
41
+ "devDependencies": {
42
+ "@vitejs/plugin-vue": "^2.3.3",
43
+ "cross-env": "^7.0.3",
44
+ "live-server": "^1.2.2",
45
+ "rollup-plugin-visualizer": "^5.8.3",
46
+ "sass": "^1.94.1",
47
+ "sass-embedded": "^1.93.3",
48
+ "typescript": "^4.3.4",
49
+ "unplugin-auto-import": "^0.17.5",
50
+ "unplugin-vue-components": "^0.26.0",
51
+ "vite": "^2.9.12",
52
+ "vite-plugin-dts": "^1.2.0",
53
+ "vue-tsc": "^0.34.7"
54
+ }
55
+ }
@@ -24,7 +24,7 @@ class ShortCut {
24
24
  if(pasteControl.data){
25
25
  pasteControl.data.fieldName = pasteControl.ControlType + "_" + window.VueContext.$Flex.generateMixed();
26
26
  pasteControl.id = window.VueContext.$Flex.generateMixed();
27
- list.push(pasteControl);
27
+ list.splice(state.form.currentIndex, 0, pasteControl);
28
28
  state.form.formUpdate = true;
29
29
  }
30
30
  }
@@ -1,74 +1,74 @@
1
- .starfish-editor {
2
- .editor_pages_left {
3
- width: 100%;
4
- height: 100%;
5
- box-sizing: border-box;
6
- padding-left: 16px;
7
- padding-right: 16px;
8
- background-color: white;
9
- .filter {
10
- padding: 12px 0;
11
- }
12
- .group-name {
13
- display: flex;
14
- justify-content: flex-start;
15
- }
16
- .list-group {
17
- // display: flex;
18
- // flex-wrap: wrap;
19
- display: grid;
20
- grid-template-columns: repeat(2, 1fr); /* 2列,每列平均分配空间 */
21
- // gap: 10px; /* 网格项之间的间隙 */
22
- }
23
-
24
- .list-group-item {
25
- display: flex;
26
- flex-direction: column;
27
- justify-content: space-between;
28
- align-items: center;
29
- flex-wrap: wrap;
30
- width: 96px;
31
- .form-item {
32
- width: 96px;
33
- height: 32px;
34
- line-height: 32px;
35
- padding-left: 8px;
36
- box-sizing: border-box;
37
- border: 1px solid #1b6b9b;
38
- display: flex;
39
- align-items: flex-start;
40
- justify-content: flex-start;
41
- gap: 8px;
42
- transition: all 0.1s ease-in-out;
43
- margin-bottom: 5px;
44
- border-radius: 4px;
45
- &:hover {
46
- background: #14427b;
47
- // border: 1px solid #409eff;
48
- color: #fff;
49
- }
50
- > span:first-child {
51
- font-size: 16px;
52
- }
53
- }
54
- .item-text {
55
- height: 32px;
56
- // display: flex;
57
- align-items: center;
58
- font-size: 12px;
59
- display: inline-block;
60
- width: 100%;
61
- text-align: left;
62
- -webkit-box-orient: vertical;
63
- /*! autoprefixer: on*/
64
-
65
- -webkit-line-clamp: 2;
66
- display: -webkit-box;
67
- overflow: hidden;
68
- // overflow: hidden;
69
- // text-overflow: ellipsis;
70
- // white-space: nowrap;
71
- }
72
- }
73
- }
74
- }
1
+ .starfish-editor {
2
+ .editor_pages_left {
3
+ width: 100%;
4
+ height: 100%;
5
+ box-sizing: border-box;
6
+ padding-left: 16px;
7
+ padding-right: 16px;
8
+ background-color: white;
9
+ .filter {
10
+ padding: 12px 0;
11
+ }
12
+ .group-name {
13
+ display: flex;
14
+ justify-content: flex-start;
15
+ }
16
+ .list-group {
17
+ // display: flex;
18
+ // flex-wrap: wrap;
19
+ display: grid;
20
+ grid-template-columns: repeat(2, 1fr); /* 2列,每列平均分配空间 */
21
+ // gap: 10px; /* 网格项之间的间隙 */
22
+ }
23
+
24
+ .list-group-item {
25
+ display: flex;
26
+ flex-direction: column;
27
+ justify-content: space-between;
28
+ align-items: center;
29
+ flex-wrap: wrap;
30
+ width: 96px;
31
+ .form-item {
32
+ width: 96px;
33
+ height: 32px;
34
+ line-height: 32px;
35
+ padding-left: 8px;
36
+ box-sizing: border-box;
37
+ border: 1px solid #1b6b9b;
38
+ display: flex;
39
+ align-items: flex-start;
40
+ justify-content: flex-start;
41
+ gap: 8px;
42
+ transition: all 0.1s ease-in-out;
43
+ margin-bottom: 5px;
44
+ border-radius: 4px;
45
+ &:hover {
46
+ background: #14427b;
47
+ // border: 1px solid #409eff;
48
+ color: #fff;
49
+ }
50
+ > span:first-child {
51
+ font-size: 16px;
52
+ }
53
+ }
54
+ .item-text {
55
+ height: 32px;
56
+ // display: flex;
57
+ align-items: center;
58
+ font-size: 12px;
59
+ display: inline-block;
60
+ width: 100%;
61
+ text-align: left;
62
+ -webkit-box-orient: vertical;
63
+ /*! autoprefixer: on*/
64
+
65
+ -webkit-line-clamp: 2;
66
+ display: -webkit-box;
67
+ overflow: hidden;
68
+ // overflow: hidden;
69
+ // text-overflow: ellipsis;
70
+ // white-space: nowrap;
71
+ }
72
+ }
73
+ }
74
+ }