starfish-editor-custom 1.0.42 → 1.0.43

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 +56 -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,60 +1,60 @@
1
- .starfish-editor {
2
- .nav_list {
3
- height: 40px;
4
- display: flex;
5
- align-items: center;
6
- justify-content: space-between;
7
- background-color: $editor-nav-background-color;
8
- box-sizing: border-box;
9
- border-bottom: 2px solid #d8dee8;
10
- padding: 0 15px;
11
- .detailBtn {
12
- span {
13
- padding: 0 5px;
14
- font-size: 16px;
15
- color: #03c0ff;
16
- }
17
- .noactive {
18
- color: #a1a7b0;
19
- cursor: no-drop;
20
- }
21
- }
22
- .pageBtn {
23
- white-space: nowrap;
24
- > div {
25
- margin: 0 5px;
26
- }
27
- .el-button-group {
28
- span {
29
- margin-right: 12px;
30
- }
31
- i {
32
- font-size: 16px;
33
- }
34
- .info {
35
- color: #03c0ff;
36
- }
37
- }
38
- }
39
- :deep(.demo-drawer) {
40
- width: 20% !important;
41
- }
42
- }
43
- }
44
- .codeDialog {
45
- height: auto;
46
- .custom_code {
47
- height: 100%;
48
- flex: 1;
49
- .upload-demo {
50
- margin-top: 20px;
51
- }
52
- }
53
- }
54
- .custom-tree-node {
55
- display: flex;
56
- align-items: center;
57
- span:last-child {
58
- justify-content: flex-end;
59
- }
60
- }
1
+ .starfish-editor {
2
+ .nav_list {
3
+ height: 40px;
4
+ display: flex;
5
+ align-items: center;
6
+ justify-content: space-between;
7
+ background-color: $editor-nav-background-color;
8
+ box-sizing: border-box;
9
+ border-bottom: 2px solid #d8dee8;
10
+ padding: 0 15px;
11
+ .detailBtn {
12
+ span {
13
+ padding: 0 5px;
14
+ font-size: 16px;
15
+ color: #03c0ff;
16
+ }
17
+ .noactive {
18
+ color: #a1a7b0;
19
+ cursor: no-drop;
20
+ }
21
+ }
22
+ .pageBtn {
23
+ white-space: nowrap;
24
+ > div {
25
+ margin: 0 5px;
26
+ }
27
+ .el-button-group {
28
+ span {
29
+ margin-right: 12px;
30
+ }
31
+ i {
32
+ font-size: 16px;
33
+ }
34
+ .info {
35
+ color: #03c0ff;
36
+ }
37
+ }
38
+ }
39
+ :deep(.demo-drawer) {
40
+ width: 20% !important;
41
+ }
42
+ }
43
+ }
44
+ .codeDialog {
45
+ height: auto;
46
+ .custom_code {
47
+ height: 100%;
48
+ flex: 1;
49
+ .upload-demo {
50
+ margin-top: 20px;
51
+ }
52
+ }
53
+ }
54
+ .custom-tree-node {
55
+ display: flex;
56
+ align-items: center;
57
+ span:last-child {
58
+ justify-content: flex-end;
59
+ }
60
+ }
@@ -1,124 +1,124 @@
1
- .starfish-editor {
2
- .editor_pages_right {
3
- width: 100%;
4
- height: 100%;
5
- // position: fixed;
6
- // right: 0;
7
- background: white;
8
- // padding: 30px 0;
9
- z-index: 1;
10
- position: relative;
11
- display: flex;
12
- overflow: hidden;
13
- .demo-tabs {
14
- width: 380px;
15
- flex: 1;
16
- flex-direction: column;
17
- .el-tabs__nav {
18
- display: flex;
19
- justify-content: space-around;
20
- width: 100%;
21
- }
22
-
23
- .dynamic {
24
- padding-top: 1px;
25
- .el-form-item__content {
26
- margin-bottom: 16px;
27
- }
28
- }
29
- }
30
- .form_tab3 {
31
- padding: 5px;
32
- .form_tab3_list {
33
- margin-bottom: 15px;
34
- }
35
- }
36
- .json {
37
- padding: 10px;
38
- height: 100%;
39
- > div {
40
- height: 90%;
41
- }
42
- }
43
- .el-tabs__content {
44
- padding: 0;
45
- height: 100%;
46
- > div {
47
- height: 100%;
48
- }
49
- }
50
- &.editor_transition {
51
- transition: all 0.5s ease-in-out 0s;
52
- }
53
- .editor_container {
54
- // position: absolute;
55
- // left: 0;
56
- // top: 0;
57
- padding-top: 30px;
58
- box-sizing: border-box;
59
- height: 100%;
60
- border-right: 1px solid $resizer_background_color;
61
- margin-right: 5px;
62
- }
63
- .controlLine {
64
- position: absolute;
65
- left: 0;
66
- height: 100%;
67
- width: 5px;
68
- background: red;
69
- z-index: 2;
70
- &:hover {
71
- background: $blue;
72
- cursor: ew-resize;
73
- }
74
- }
75
- .viewAndJson {
76
- display: flex;
77
- justify-content: center;
78
- justify-items: center;
79
- margin: 5px auto;
80
- width: 80%;
81
- > div {
82
- width: 30%;
83
- border: 3px solid rgb(121, 118, 118);
84
- height: 30px;
85
- line-height: 30px;
86
- text-align: center;
87
- border-radius: 5px;
88
- &.active {
89
- border-color: $blue;
90
- color: $blue;
91
- }
92
- }
93
- }
94
- .dynamic {
95
- overflow: auto;
96
- height: 100%;
97
- @include scrollbar();
98
- }
99
-
100
- &.editor_pages_right_visible {
101
- right: 0;
102
- }
103
- &.editor_pages_right_hidden {
104
- transform: translateX(100%);
105
- // right: -100%;
106
- }
107
- .editor_right_accept {
108
- width: 20px;
109
- height: 80px;
110
- background: #fff;
111
- box-shadow: -2px 0 4px 0 rgba(0, 0, 0, 0.1);
112
- display: flex;
113
- justify-content: center;
114
- align-items: center;
115
- right: 304px;
116
- top: 50%;
117
- margin-top: -32px;
118
- transform: translateY(-50%);
119
- cursor: pointer;
120
- position: absolute;
121
- left: -28px;
122
- }
123
- }
124
- }
1
+ .starfish-editor {
2
+ .editor_pages_right {
3
+ width: 100%;
4
+ height: 100%;
5
+ // position: fixed;
6
+ // right: 0;
7
+ background: white;
8
+ // padding: 30px 0;
9
+ z-index: 1;
10
+ position: relative;
11
+ display: flex;
12
+ overflow: hidden;
13
+ .demo-tabs {
14
+ width: 380px;
15
+ flex: 1;
16
+ flex-direction: column;
17
+ .el-tabs__nav {
18
+ display: flex;
19
+ justify-content: space-around;
20
+ width: 100%;
21
+ }
22
+
23
+ .dynamic {
24
+ padding-top: 1px;
25
+ .el-form-item__content {
26
+ margin-bottom: 16px;
27
+ }
28
+ }
29
+ }
30
+ .form_tab3 {
31
+ padding: 5px;
32
+ .form_tab3_list {
33
+ margin-bottom: 15px;
34
+ }
35
+ }
36
+ .json {
37
+ padding: 10px;
38
+ height: 100%;
39
+ > div {
40
+ height: 90%;
41
+ }
42
+ }
43
+ .el-tabs__content {
44
+ padding: 0;
45
+ height: 100%;
46
+ > div {
47
+ height: 100%;
48
+ }
49
+ }
50
+ &.editor_transition {
51
+ transition: all 0.5s ease-in-out 0s;
52
+ }
53
+ .editor_container {
54
+ // position: absolute;
55
+ // left: 0;
56
+ // top: 0;
57
+ padding-top: 30px;
58
+ box-sizing: border-box;
59
+ height: 100%;
60
+ border-right: 1px solid $resizer_background_color;
61
+ margin-right: 5px;
62
+ }
63
+ .controlLine {
64
+ position: absolute;
65
+ left: 0;
66
+ height: 100%;
67
+ width: 5px;
68
+ background: red;
69
+ z-index: 2;
70
+ &:hover {
71
+ background: $blue;
72
+ cursor: ew-resize;
73
+ }
74
+ }
75
+ .viewAndJson {
76
+ display: flex;
77
+ justify-content: center;
78
+ justify-items: center;
79
+ margin: 5px auto;
80
+ width: 80%;
81
+ > div {
82
+ width: 30%;
83
+ border: 3px solid rgb(121, 118, 118);
84
+ height: 30px;
85
+ line-height: 30px;
86
+ text-align: center;
87
+ border-radius: 5px;
88
+ &.active {
89
+ border-color: $blue;
90
+ color: $blue;
91
+ }
92
+ }
93
+ }
94
+ .dynamic {
95
+ overflow: auto;
96
+ height: 100%;
97
+ @include scrollbar();
98
+ }
99
+
100
+ &.editor_pages_right_visible {
101
+ right: 0;
102
+ }
103
+ &.editor_pages_right_hidden {
104
+ transform: translateX(100%);
105
+ // right: -100%;
106
+ }
107
+ .editor_right_accept {
108
+ width: 20px;
109
+ height: 80px;
110
+ background: #fff;
111
+ box-shadow: -2px 0 4px 0 rgba(0, 0, 0, 0.1);
112
+ display: flex;
113
+ justify-content: center;
114
+ align-items: center;
115
+ right: 304px;
116
+ top: 50%;
117
+ margin-top: -32px;
118
+ transform: translateY(-50%);
119
+ cursor: pointer;
120
+ position: absolute;
121
+ left: -28px;
122
+ }
123
+ }
124
+ }
@@ -1,129 +1,129 @@
1
- .starfish-editor {
2
- background: #fafafa;
3
- .editor_pages_center {
4
- position: relative;
5
- height: calc(100% - 40px);
6
- // overflow-y: auto;
7
- outline: 0;
8
- .editor_nav {
9
- position: absolute;
10
- top: 0;
11
- left: 0;
12
- width: 100%;
13
- box-shadow: 0 0 10px #ebedf0;
14
- }
15
- .canvasBox {
16
- position: absolute;
17
- // left: 16px;
18
- left: 50%;
19
- transform: translateX(-50%) scale(var(--scale));
20
- top: 16px;
21
- // right: 16px;
22
- bottom: 10px;
23
- width: calc(100% - 32px);
24
- // margin-left: -350px;
25
- background: white;
26
- box-shadow: 0 4px 12px #ebedf0;
27
- transform-origin: 50% 50%;
28
- transition: all 0.2s linear;
29
- overflow: hidden;
30
- box-sizing: border-box;
31
- // &.fullScreenBox {
32
- // width: 100% ;
33
- // }
34
- &.PC_layout {
35
- width: calc(100% - 32px);
36
- }
37
- &.Pad_layout {
38
- width: 70%;
39
- border-radius: 15px;
40
- // box-shadow: 0 0 1px 10px #495060;
41
- border: 10px solid #495060;
42
- }
43
- &.H5_layout {
44
- width: 50%;
45
- border-radius: 15px;
46
- // box-shadow: 0 0 1px 10px #495060;
47
- border: 10px solid #495060;
48
- }
49
- .draggable_container {
50
- width: 100%;
51
- height: 100%;
52
- // min-height: $editor_canvas_min_height;
53
- min-height: 100%;
54
- z-index: 1;
55
- text-align: left;
56
- position: relative;
57
- .starfish-formitem {
58
- padding-top: 12px;
59
- }
60
- .dragArea {
61
- width: 100%;
62
- height: 100%;
63
- min-height: 100%;
64
- @include scrollbar();
65
- overflow-y: auto;
66
- }
67
- .form-empty {
68
- position: absolute;
69
- top: 50%;
70
- left: 50%;
71
- transform: translate(-50%, -50%);
72
- text-align: center;
73
- font-size: 14px;
74
- color: #a3a6ad;
75
- }
76
- }
77
- .grid_controller {
78
- position: absolute;
79
- top: -30px;
80
- left: 50%;
81
- transform: translateX(-50%);
82
- height: 25px;
83
- line-height: 25px;
84
- display: flex;
85
- background: white;
86
- span {
87
- font-size: 14px;
88
- padding: 0 10px;
89
- border: 1px solid #d9d9d9;
90
- box-sizing: border-box;
91
- }
92
- .grid_check {
93
- color: #40a9ff;
94
- border-color: #40a9ff;
95
- }
96
- .grid_check_none2 {
97
- border-left: transparent;
98
- }
99
- .grid_check_none1 {
100
- border-right: transparent;
101
- }
102
- }
103
- }
104
- .editForm {
105
- position: absolute;
106
- display: flex;
107
- flex-direction: column;
108
- z-index: 3;
109
- user-select: none;
110
- background-color: #fff;
111
- box-sizing: border-box;
112
- box-shadow: 0 10px 20px rgb(0 0 0 / 30%), 0 0 0 1px #eee;
113
- padding: 5px 0;
114
- min-width: 180px;
115
- span {
116
- padding: 6px 12px;
117
- display: flex;
118
- text-align: left;
119
- white-space: nowrap;
120
- color: #333;
121
- position: relative;
122
- &:hover {
123
- background: #409eff;
124
- color: white;
125
- }
126
- }
127
- }
128
- }
129
- }
1
+ .starfish-editor {
2
+ background: #fafafa;
3
+ .editor_pages_center {
4
+ position: relative;
5
+ height: calc(100% - 40px);
6
+ // overflow-y: auto;
7
+ outline: 0;
8
+ .editor_nav {
9
+ position: absolute;
10
+ top: 0;
11
+ left: 0;
12
+ width: 100%;
13
+ box-shadow: 0 0 10px #ebedf0;
14
+ }
15
+ .canvasBox {
16
+ position: absolute;
17
+ // left: 16px;
18
+ left: 50%;
19
+ transform: translateX(-50%) scale(var(--scale));
20
+ top: 16px;
21
+ // right: 16px;
22
+ bottom: 10px;
23
+ width: calc(100% - 32px);
24
+ // margin-left: -350px;
25
+ background: white;
26
+ box-shadow: 0 4px 12px #ebedf0;
27
+ transform-origin: 50% 50%;
28
+ transition: all 0.2s linear;
29
+ overflow: hidden;
30
+ box-sizing: border-box;
31
+ // &.fullScreenBox {
32
+ // width: 100% ;
33
+ // }
34
+ &.PC_layout {
35
+ width: calc(100% - 32px);
36
+ }
37
+ &.Pad_layout {
38
+ width: 70%;
39
+ border-radius: 15px;
40
+ // box-shadow: 0 0 1px 10px #495060;
41
+ border: 10px solid #495060;
42
+ }
43
+ &.H5_layout {
44
+ width: 50%;
45
+ border-radius: 15px;
46
+ // box-shadow: 0 0 1px 10px #495060;
47
+ border: 10px solid #495060;
48
+ }
49
+ .draggable_container {
50
+ width: 100%;
51
+ height: 100%;
52
+ // min-height: $editor_canvas_min_height;
53
+ min-height: 100%;
54
+ z-index: 1;
55
+ text-align: left;
56
+ position: relative;
57
+ .starfish-formitem {
58
+ padding-top: 12px;
59
+ }
60
+ .dragArea {
61
+ width: 100%;
62
+ height: 100%;
63
+ min-height: 100%;
64
+ @include scrollbar();
65
+ overflow-y: auto;
66
+ }
67
+ .form-empty {
68
+ position: absolute;
69
+ top: 50%;
70
+ left: 50%;
71
+ transform: translate(-50%, -50%);
72
+ text-align: center;
73
+ font-size: 14px;
74
+ color: #a3a6ad;
75
+ }
76
+ }
77
+ .grid_controller {
78
+ position: absolute;
79
+ top: -30px;
80
+ left: 50%;
81
+ transform: translateX(-50%);
82
+ height: 25px;
83
+ line-height: 25px;
84
+ display: flex;
85
+ background: white;
86
+ span {
87
+ font-size: 14px;
88
+ padding: 0 10px;
89
+ border: 1px solid #d9d9d9;
90
+ box-sizing: border-box;
91
+ }
92
+ .grid_check {
93
+ color: #40a9ff;
94
+ border-color: #40a9ff;
95
+ }
96
+ .grid_check_none2 {
97
+ border-left: transparent;
98
+ }
99
+ .grid_check_none1 {
100
+ border-right: transparent;
101
+ }
102
+ }
103
+ }
104
+ .editForm {
105
+ position: absolute;
106
+ display: flex;
107
+ flex-direction: column;
108
+ z-index: 3;
109
+ user-select: none;
110
+ background-color: #fff;
111
+ box-sizing: border-box;
112
+ box-shadow: 0 10px 20px rgb(0 0 0 / 30%), 0 0 0 1px #eee;
113
+ padding: 5px 0;
114
+ min-width: 180px;
115
+ span {
116
+ padding: 6px 12px;
117
+ display: flex;
118
+ text-align: left;
119
+ white-space: nowrap;
120
+ color: #333;
121
+ position: relative;
122
+ &:hover {
123
+ background: #409eff;
124
+ color: white;
125
+ }
126
+ }
127
+ }
128
+ }
129
+ }