@cicctencent/low-code-editor 1.1.9-beta.6 → 1.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/domain/EditorDomain.d.ts +2 -2
- package/dist/editor.d.ts +4 -4
- package/dist/formily/MenuTable/useMenuTable.d.ts +40 -1
- package/dist/index.css +224 -224
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -5
- package/package.json +10 -10
- package/src/DataSource/index.vue +1 -1
- package/src/HeaderBar/components/BarDialog.vue +1 -1
- package/src/HeaderBar/index.vue +1 -1
- package/src/NavTree/index.vue +3 -3
- package/src/SchemaConfig/index.vue +2 -2
- package/src/components/ComponentTreeFavorites/index.vue +1 -1
- package/src/domain/EditorDomain.ts +2 -2
- package/src/editor.ts +4 -4
- package/src/editor.vue +2 -2
- package/src/formily/ActivityBar/index.ts +1 -1
- package/src/formily/ComponentTree/index.ts +1 -1
- package/src/formily/DataBinding/index.ts +1 -1
- package/src/formily/DataBinding/index.vue +1 -1
- package/src/formily/DataSource/index.ts +1 -1
- package/src/formily/MenuTable/index.ts +1 -1
- package/src/formily/MenuTable/useMenuTable.ts +1 -1
- package/src/formily/NavTree/index.ts +1 -1
- package/src/formily/SidebarPane/index.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Entity } from '@
|
|
2
|
-
import { Communicator } from '@
|
|
1
|
+
import { Entity } from '@cicctencent/ark-util';
|
|
2
|
+
import { Communicator } from '@cicctencent/postmessage-channel';
|
|
3
3
|
import { CheckResponseItem, EditorConfig, LowCodeKey } from '@cicctencent/low-code-core';
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
package/dist/editor.d.ts
CHANGED
|
@@ -443,13 +443,13 @@ export default function (props: any, emits: any): {
|
|
|
443
443
|
}>;
|
|
444
444
|
communicator: import("vue").Ref<{
|
|
445
445
|
isReady: boolean;
|
|
446
|
-
publish: (cmdname: string, data: Record<string, any>) => Promise<import("@
|
|
447
|
-
subscribe: (cmdname: string, callback: import("@
|
|
446
|
+
publish: (cmdname: string, data: Record<string, any>) => Promise<import("@cicctencent/postmessage-channel").PostResponse>;
|
|
447
|
+
subscribe: (cmdname: string, callback: import("@cicctencent/postmessage-channel").PostCallback) => import("@cicctencent/postmessage-channel").Communicator;
|
|
448
448
|
destroy: () => void;
|
|
449
449
|
}, {
|
|
450
450
|
isReady: boolean;
|
|
451
|
-
publish: (cmdname: string, data: Record<string, any>) => Promise<import("@
|
|
452
|
-
subscribe: (cmdname: string, callback: import("@
|
|
451
|
+
publish: (cmdname: string, data: Record<string, any>) => Promise<import("@cicctencent/postmessage-channel").PostResponse>;
|
|
452
|
+
subscribe: (cmdname: string, callback: import("@cicctencent/postmessage-channel").PostCallback) => import("@cicctencent/postmessage-channel").Communicator;
|
|
453
453
|
destroy: () => void;
|
|
454
454
|
}>;
|
|
455
455
|
request: import("vue").Ref<Function, Function>;
|
|
@@ -1,2 +1,41 @@
|
|
|
1
1
|
import { ProjectMetaNavMenu } from '@cicctencent/low-code-core';
|
|
2
|
-
export default function (props: any, emits: any):
|
|
2
|
+
export default function (props: any, emits: any): {
|
|
3
|
+
editModalOptions: {
|
|
4
|
+
title: string;
|
|
5
|
+
visible: boolean;
|
|
6
|
+
hasClose: boolean;
|
|
7
|
+
hasFooter: boolean;
|
|
8
|
+
width: string;
|
|
9
|
+
};
|
|
10
|
+
menuForm: {
|
|
11
|
+
content: "pageId" | "url";
|
|
12
|
+
icon: string;
|
|
13
|
+
name: string;
|
|
14
|
+
pageId?: number;
|
|
15
|
+
url?: string;
|
|
16
|
+
target?: "_blank" | "_self";
|
|
17
|
+
};
|
|
18
|
+
menuFormRef: import("vue").Ref<FormInstance, FormInstance>;
|
|
19
|
+
menuTree: import("vue").Ref<{
|
|
20
|
+
children: any[];
|
|
21
|
+
icon: string;
|
|
22
|
+
name: string;
|
|
23
|
+
pageId?: number;
|
|
24
|
+
url?: string;
|
|
25
|
+
target?: "_blank" | "_self";
|
|
26
|
+
}[], ProjectMetaNavMenu[] | {
|
|
27
|
+
children: any[];
|
|
28
|
+
icon: string;
|
|
29
|
+
name: string;
|
|
30
|
+
pageId?: number;
|
|
31
|
+
url?: string;
|
|
32
|
+
target?: "_blank" | "_self";
|
|
33
|
+
}[]>;
|
|
34
|
+
pageNameMap: import("vue").ComputedRef<any>;
|
|
35
|
+
confirm: () => void;
|
|
36
|
+
cancel: () => void;
|
|
37
|
+
addPeer: (index: any, row: any) => void;
|
|
38
|
+
addSubordinate: (index: any, row: any) => void;
|
|
39
|
+
handleEdit: (index: any, row: any) => void;
|
|
40
|
+
handleDelete: (index: any, row: any) => void;
|
|
41
|
+
};
|
package/dist/index.css
CHANGED
|
@@ -89,66 +89,18 @@
|
|
|
89
89
|
box-shadow: 0px 2px 12px rgba(216, 222, 235, 0.5);
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
.
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
flex-shrink: 1;
|
|
96
|
-
position: relative;
|
|
97
|
-
height: 100%;
|
|
98
|
-
display: flex;
|
|
99
|
-
flex-direction: column;
|
|
100
|
-
background: #fff;
|
|
101
|
-
}
|
|
102
|
-
.component-tree-v2__title {
|
|
103
|
-
display: flex;
|
|
104
|
-
align-items: center;
|
|
105
|
-
}
|
|
106
|
-
.component-tree-v2__title .text_info {
|
|
107
|
-
min-width: 54px;
|
|
108
|
-
font-size: 18px;
|
|
109
|
-
font-weight: 500;
|
|
110
|
-
color: #282f40;
|
|
111
|
-
line-height: 24px;
|
|
112
|
-
display: inline-flex;
|
|
113
|
-
margin-right: 15px;
|
|
114
|
-
}
|
|
115
|
-
.component-tree-v2__classify {
|
|
116
|
-
margin-top: 12px;
|
|
117
|
-
height: 48px;
|
|
118
|
-
border-radius: 6px;
|
|
119
|
-
background: #e6e6e6;
|
|
120
|
-
display: flex;
|
|
121
|
-
align-items: center;
|
|
122
|
-
position: relative;
|
|
123
|
-
}
|
|
124
|
-
.component-tree-v2__classify .classify_item {
|
|
125
|
-
flex: 1;
|
|
126
|
-
color: #828690;
|
|
127
|
-
font-size: 16px;
|
|
128
|
-
line-height: 24px;
|
|
129
|
-
display: flex;
|
|
130
|
-
justify-content: center;
|
|
131
|
-
align-items: center;
|
|
132
|
-
cursor: pointer;
|
|
133
|
-
position: relative;
|
|
134
|
-
z-index: 3;
|
|
135
|
-
}
|
|
136
|
-
.component-tree-v2__classify .classify_item img {
|
|
137
|
-
margin-right: 4px;
|
|
138
|
-
}
|
|
139
|
-
.component-tree-v2__classify .classify_item.active {
|
|
140
|
-
font-weight: 700;
|
|
141
|
-
color: #c79156;
|
|
92
|
+
.binded-page {
|
|
93
|
+
display: "flex";
|
|
94
|
+
align-items: "center";
|
|
142
95
|
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
border
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
margin-left: 5px;
|
|
96
|
+
|
|
97
|
+
.menu-form {
|
|
98
|
+
margin-bottom: 17px;
|
|
99
|
+
padding-top: 44px;
|
|
100
|
+
padding-bottom: 26px;
|
|
101
|
+
border: 1px solid #e8e9eb;
|
|
102
|
+
border-left: none;
|
|
103
|
+
border-right: none;
|
|
152
104
|
}
|
|
153
105
|
|
|
154
106
|
.data-binding {
|
|
@@ -256,18 +208,66 @@
|
|
|
256
208
|
align-items: center;
|
|
257
209
|
}
|
|
258
210
|
|
|
259
|
-
.
|
|
260
|
-
|
|
261
|
-
|
|
211
|
+
.component-tree-v2 {
|
|
212
|
+
box-sizing: border-box;
|
|
213
|
+
padding: 20px;
|
|
214
|
+
flex-shrink: 1;
|
|
215
|
+
position: relative;
|
|
216
|
+
height: 100%;
|
|
217
|
+
display: flex;
|
|
218
|
+
flex-direction: column;
|
|
219
|
+
background: #fff;
|
|
262
220
|
}
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
221
|
+
.component-tree-v2__title {
|
|
222
|
+
display: flex;
|
|
223
|
+
align-items: center;
|
|
224
|
+
}
|
|
225
|
+
.component-tree-v2__title .text_info {
|
|
226
|
+
min-width: 54px;
|
|
227
|
+
font-size: 18px;
|
|
228
|
+
font-weight: 500;
|
|
229
|
+
color: #282f40;
|
|
230
|
+
line-height: 24px;
|
|
231
|
+
display: inline-flex;
|
|
232
|
+
margin-right: 15px;
|
|
233
|
+
}
|
|
234
|
+
.component-tree-v2__classify {
|
|
235
|
+
margin-top: 12px;
|
|
236
|
+
height: 48px;
|
|
237
|
+
border-radius: 6px;
|
|
238
|
+
background: #e6e6e6;
|
|
239
|
+
display: flex;
|
|
240
|
+
align-items: center;
|
|
241
|
+
position: relative;
|
|
242
|
+
}
|
|
243
|
+
.component-tree-v2__classify .classify_item {
|
|
244
|
+
flex: 1;
|
|
245
|
+
color: #828690;
|
|
246
|
+
font-size: 16px;
|
|
247
|
+
line-height: 24px;
|
|
248
|
+
display: flex;
|
|
249
|
+
justify-content: center;
|
|
250
|
+
align-items: center;
|
|
251
|
+
cursor: pointer;
|
|
252
|
+
position: relative;
|
|
253
|
+
z-index: 3;
|
|
254
|
+
}
|
|
255
|
+
.component-tree-v2__classify .classify_item img {
|
|
256
|
+
margin-right: 4px;
|
|
257
|
+
}
|
|
258
|
+
.component-tree-v2__classify .classify_item.active {
|
|
259
|
+
font-weight: 700;
|
|
260
|
+
color: #c79156;
|
|
261
|
+
}
|
|
262
|
+
.component-tree-v2__classify .action {
|
|
263
|
+
z-index: 2;
|
|
264
|
+
position: absolute;
|
|
265
|
+
width: calc(50% - 10px);
|
|
266
|
+
height: 38px;
|
|
267
|
+
border-radius: 4px;
|
|
268
|
+
background: #fff;
|
|
269
|
+
transition: all 0.3s;
|
|
270
|
+
margin-left: 5px;
|
|
271
271
|
}
|
|
272
272
|
|
|
273
273
|
.page-list {
|
|
@@ -470,6 +470,38 @@
|
|
|
470
470
|
z-index: 99;
|
|
471
471
|
}
|
|
472
472
|
|
|
473
|
+
.nav-tree .el-tree-node.activity > .el-tree-node__content {
|
|
474
|
+
background-color: rgba(245, 219, 193, 0.5);
|
|
475
|
+
}
|
|
476
|
+
.nav-tree .el-tree-node {
|
|
477
|
+
padding: 8px 0;
|
|
478
|
+
}
|
|
479
|
+
.nav-tree .el-tree-node .el-tree-node__content:hover, .nav-tree .el-tree-node .el-tree-node__content:active {
|
|
480
|
+
background-color: rgba(245, 219, 193, 0.5);
|
|
481
|
+
}
|
|
482
|
+
.nav-tree .el-tree-node .el-tree-node__content .el-tree-node__label {
|
|
483
|
+
flex: 1;
|
|
484
|
+
}
|
|
485
|
+
.nav-tree .el-tree-node .el-tree-node__content .tree-item span {
|
|
486
|
+
font-weight: 500;
|
|
487
|
+
font-size: 16px;
|
|
488
|
+
line-height: 24px;
|
|
489
|
+
}
|
|
490
|
+
.nav-tree .el-tree-node .el-tree-node__children .el-tree-node:nth-child(1) {
|
|
491
|
+
margin-top: 8px;
|
|
492
|
+
}
|
|
493
|
+
.nav-tree .el-tree-node .el-tree-node__children .tree-item span {
|
|
494
|
+
font-weight: 400;
|
|
495
|
+
font-size: 14px;
|
|
496
|
+
}
|
|
497
|
+
.nav-tree .tree-item .el-input__wrapper {
|
|
498
|
+
box-shadow: 0 0 0 1px #bf935f inset;
|
|
499
|
+
padding: 4px 5px 4px 4px;
|
|
500
|
+
}
|
|
501
|
+
.nav-tree .tree-item .el-input__wrapper .el-input__inner {
|
|
502
|
+
color: #50381f;
|
|
503
|
+
}
|
|
504
|
+
|
|
473
505
|
.nav-tree {
|
|
474
506
|
flex: 0 0 30%;
|
|
475
507
|
padding: 16px 17px;
|
|
@@ -507,38 +539,6 @@
|
|
|
507
539
|
font-size: 18px !important;
|
|
508
540
|
}
|
|
509
541
|
|
|
510
|
-
.nav-tree .el-tree-node.activity > .el-tree-node__content {
|
|
511
|
-
background-color: rgba(245, 219, 193, 0.5);
|
|
512
|
-
}
|
|
513
|
-
.nav-tree .el-tree-node {
|
|
514
|
-
padding: 8px 0;
|
|
515
|
-
}
|
|
516
|
-
.nav-tree .el-tree-node .el-tree-node__content:hover, .nav-tree .el-tree-node .el-tree-node__content:active {
|
|
517
|
-
background-color: rgba(245, 219, 193, 0.5);
|
|
518
|
-
}
|
|
519
|
-
.nav-tree .el-tree-node .el-tree-node__content .el-tree-node__label {
|
|
520
|
-
flex: 1;
|
|
521
|
-
}
|
|
522
|
-
.nav-tree .el-tree-node .el-tree-node__content .tree-item span {
|
|
523
|
-
font-weight: 500;
|
|
524
|
-
font-size: 16px;
|
|
525
|
-
line-height: 24px;
|
|
526
|
-
}
|
|
527
|
-
.nav-tree .el-tree-node .el-tree-node__children .el-tree-node:nth-child(1) {
|
|
528
|
-
margin-top: 8px;
|
|
529
|
-
}
|
|
530
|
-
.nav-tree .el-tree-node .el-tree-node__children .tree-item span {
|
|
531
|
-
font-weight: 400;
|
|
532
|
-
font-size: 14px;
|
|
533
|
-
}
|
|
534
|
-
.nav-tree .tree-item .el-input__wrapper {
|
|
535
|
-
box-shadow: 0 0 0 1px #bf935f inset;
|
|
536
|
-
padding: 4px 5px 4px 4px;
|
|
537
|
-
}
|
|
538
|
-
.nav-tree .tree-item .el-input__wrapper .el-input__inner {
|
|
539
|
-
color: #50381f;
|
|
540
|
-
}
|
|
541
|
-
|
|
542
542
|
.component-tree {
|
|
543
543
|
flex-shrink: 1;
|
|
544
544
|
padding: 16px 17px;
|
|
@@ -558,99 +558,6 @@
|
|
|
558
558
|
flex-grow: 0;
|
|
559
559
|
}
|
|
560
560
|
|
|
561
|
-
.float-pane {
|
|
562
|
-
position: absolute;
|
|
563
|
-
width: 300px;
|
|
564
|
-
top: 0;
|
|
565
|
-
bottom: 0;
|
|
566
|
-
left: 46px;
|
|
567
|
-
z-index: 820;
|
|
568
|
-
border-left: 1px solid rgba(0, 0, 0, 0.1);
|
|
569
|
-
box-shadow: 4px 6px 6px 0 rgba(31, 50, 88, 0.08);
|
|
570
|
-
background-color: #fff;
|
|
571
|
-
display: none;
|
|
572
|
-
}
|
|
573
|
-
|
|
574
|
-
.fixed-pane {
|
|
575
|
-
position: relative;
|
|
576
|
-
margin-left: 1px;
|
|
577
|
-
border-left: 1px solid rgba(0, 0, 0, 0.1);
|
|
578
|
-
height: 100%;
|
|
579
|
-
width: 300px;
|
|
580
|
-
flex-shrink: 0;
|
|
581
|
-
background-color: #fff;
|
|
582
|
-
display: none;
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
.float-pane .titled-panel,
|
|
586
|
-
.fixed-pane .titled-panel {
|
|
587
|
-
position: relative;
|
|
588
|
-
width: 100%;
|
|
589
|
-
height: 100%;
|
|
590
|
-
}
|
|
591
|
-
.float-pane .titled-panel .icon-float,
|
|
592
|
-
.float-pane .titled-panel .icon-fixed,
|
|
593
|
-
.fixed-pane .titled-panel .icon-float,
|
|
594
|
-
.fixed-pane .titled-panel .icon-fixed {
|
|
595
|
-
position: absolute;
|
|
596
|
-
right: 38px;
|
|
597
|
-
top: 14px;
|
|
598
|
-
height: auto;
|
|
599
|
-
z-index: 2;
|
|
600
|
-
background: transparent;
|
|
601
|
-
border-color: transparent;
|
|
602
|
-
border-radius: 0;
|
|
603
|
-
padding: 0;
|
|
604
|
-
height: 20px;
|
|
605
|
-
font-size: 14px;
|
|
606
|
-
border-width: 0;
|
|
607
|
-
cursor: pointer;
|
|
608
|
-
}
|
|
609
|
-
.float-pane .titled-panel .icon-close,
|
|
610
|
-
.fixed-pane .titled-panel .icon-close {
|
|
611
|
-
position: absolute;
|
|
612
|
-
right: 16px;
|
|
613
|
-
top: 14px;
|
|
614
|
-
height: auto;
|
|
615
|
-
z-index: 2;
|
|
616
|
-
background: transparent;
|
|
617
|
-
border-color: transparent;
|
|
618
|
-
border-radius: 0;
|
|
619
|
-
padding: 0;
|
|
620
|
-
height: 20px;
|
|
621
|
-
font-size: 14px;
|
|
622
|
-
border-width: 0;
|
|
623
|
-
cursor: pointer;
|
|
624
|
-
display: flex;
|
|
625
|
-
align-items: center;
|
|
626
|
-
justify-content: center;
|
|
627
|
-
}
|
|
628
|
-
.float-pane .titled-panel .panel-title,
|
|
629
|
-
.fixed-pane .titled-panel .panel-title {
|
|
630
|
-
height: 48px;
|
|
631
|
-
font-size: 16px;
|
|
632
|
-
padding: 0 15px;
|
|
633
|
-
color: #0f1726;
|
|
634
|
-
font-weight: 700;
|
|
635
|
-
display: flex;
|
|
636
|
-
justify-content: flex-start;
|
|
637
|
-
align-items: center;
|
|
638
|
-
}
|
|
639
|
-
.float-pane .titled-panel .panel-body,
|
|
640
|
-
.fixed-pane .titled-panel .panel-body {
|
|
641
|
-
position: absolute;
|
|
642
|
-
top: 0;
|
|
643
|
-
bottom: 0;
|
|
644
|
-
left: 0;
|
|
645
|
-
right: 0;
|
|
646
|
-
overflow: visible;
|
|
647
|
-
border-top: 1px solid rgba(31, 56, 88, 0.1);
|
|
648
|
-
}
|
|
649
|
-
|
|
650
|
-
.visible {
|
|
651
|
-
display: block;
|
|
652
|
-
}
|
|
653
|
-
|
|
654
561
|
.schema-config .title {
|
|
655
562
|
font-family: "Noto Sans SC";
|
|
656
563
|
font-style: normal;
|
|
@@ -859,6 +766,99 @@
|
|
|
859
766
|
color: #f0dcc4;
|
|
860
767
|
}
|
|
861
768
|
|
|
769
|
+
.float-pane {
|
|
770
|
+
position: absolute;
|
|
771
|
+
width: 300px;
|
|
772
|
+
top: 0;
|
|
773
|
+
bottom: 0;
|
|
774
|
+
left: 46px;
|
|
775
|
+
z-index: 820;
|
|
776
|
+
border-left: 1px solid rgba(0, 0, 0, 0.1);
|
|
777
|
+
box-shadow: 4px 6px 6px 0 rgba(31, 50, 88, 0.08);
|
|
778
|
+
background-color: #fff;
|
|
779
|
+
display: none;
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
.fixed-pane {
|
|
783
|
+
position: relative;
|
|
784
|
+
margin-left: 1px;
|
|
785
|
+
border-left: 1px solid rgba(0, 0, 0, 0.1);
|
|
786
|
+
height: 100%;
|
|
787
|
+
width: 300px;
|
|
788
|
+
flex-shrink: 0;
|
|
789
|
+
background-color: #fff;
|
|
790
|
+
display: none;
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
.float-pane .titled-panel,
|
|
794
|
+
.fixed-pane .titled-panel {
|
|
795
|
+
position: relative;
|
|
796
|
+
width: 100%;
|
|
797
|
+
height: 100%;
|
|
798
|
+
}
|
|
799
|
+
.float-pane .titled-panel .icon-float,
|
|
800
|
+
.float-pane .titled-panel .icon-fixed,
|
|
801
|
+
.fixed-pane .titled-panel .icon-float,
|
|
802
|
+
.fixed-pane .titled-panel .icon-fixed {
|
|
803
|
+
position: absolute;
|
|
804
|
+
right: 38px;
|
|
805
|
+
top: 14px;
|
|
806
|
+
height: auto;
|
|
807
|
+
z-index: 2;
|
|
808
|
+
background: transparent;
|
|
809
|
+
border-color: transparent;
|
|
810
|
+
border-radius: 0;
|
|
811
|
+
padding: 0;
|
|
812
|
+
height: 20px;
|
|
813
|
+
font-size: 14px;
|
|
814
|
+
border-width: 0;
|
|
815
|
+
cursor: pointer;
|
|
816
|
+
}
|
|
817
|
+
.float-pane .titled-panel .icon-close,
|
|
818
|
+
.fixed-pane .titled-panel .icon-close {
|
|
819
|
+
position: absolute;
|
|
820
|
+
right: 16px;
|
|
821
|
+
top: 14px;
|
|
822
|
+
height: auto;
|
|
823
|
+
z-index: 2;
|
|
824
|
+
background: transparent;
|
|
825
|
+
border-color: transparent;
|
|
826
|
+
border-radius: 0;
|
|
827
|
+
padding: 0;
|
|
828
|
+
height: 20px;
|
|
829
|
+
font-size: 14px;
|
|
830
|
+
border-width: 0;
|
|
831
|
+
cursor: pointer;
|
|
832
|
+
display: flex;
|
|
833
|
+
align-items: center;
|
|
834
|
+
justify-content: center;
|
|
835
|
+
}
|
|
836
|
+
.float-pane .titled-panel .panel-title,
|
|
837
|
+
.fixed-pane .titled-panel .panel-title {
|
|
838
|
+
height: 48px;
|
|
839
|
+
font-size: 16px;
|
|
840
|
+
padding: 0 15px;
|
|
841
|
+
color: #0f1726;
|
|
842
|
+
font-weight: 700;
|
|
843
|
+
display: flex;
|
|
844
|
+
justify-content: flex-start;
|
|
845
|
+
align-items: center;
|
|
846
|
+
}
|
|
847
|
+
.float-pane .titled-panel .panel-body,
|
|
848
|
+
.fixed-pane .titled-panel .panel-body {
|
|
849
|
+
position: absolute;
|
|
850
|
+
top: 0;
|
|
851
|
+
bottom: 0;
|
|
852
|
+
left: 0;
|
|
853
|
+
right: 0;
|
|
854
|
+
overflow: visible;
|
|
855
|
+
border-top: 1px solid rgba(31, 56, 88, 0.1);
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
.visible {
|
|
859
|
+
display: block;
|
|
860
|
+
}
|
|
861
|
+
|
|
862
862
|
.datapool {
|
|
863
863
|
box-sizing: border-box;
|
|
864
864
|
display: flex;
|
|
@@ -1080,6 +1080,35 @@
|
|
|
1080
1080
|
margin-top: 15px;
|
|
1081
1081
|
}
|
|
1082
1082
|
|
|
1083
|
+
.component-list .el-collapse {
|
|
1084
|
+
border-top: none;
|
|
1085
|
+
}
|
|
1086
|
+
.component-list .el-collapse .el-collapse-item__arrow {
|
|
1087
|
+
display: none;
|
|
1088
|
+
}
|
|
1089
|
+
.component-list .el-collapse .el-collapse-item__header {
|
|
1090
|
+
border-bottom: none;
|
|
1091
|
+
font-size: 14px;
|
|
1092
|
+
font-weight: 400;
|
|
1093
|
+
line-height: 24px;
|
|
1094
|
+
color: #020202;
|
|
1095
|
+
}
|
|
1096
|
+
.component-list .el-collapse .el-collapse-item__wrap {
|
|
1097
|
+
border-bottom: none;
|
|
1098
|
+
}
|
|
1099
|
+
.component-list .el-collapse .el-collapse-item__wrap .el-collapse-item__content {
|
|
1100
|
+
padding-bottom: 0px;
|
|
1101
|
+
padding-left: 10px;
|
|
1102
|
+
}
|
|
1103
|
+
.component-list .nested-list .el-collapse-item__header {
|
|
1104
|
+
font-size: 12px;
|
|
1105
|
+
line-height: 24px;
|
|
1106
|
+
color: #4b515e;
|
|
1107
|
+
}
|
|
1108
|
+
.component-list .nested-list .el-collapse-item__content {
|
|
1109
|
+
padding-left: 0px !important;
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1083
1112
|
.component-list {
|
|
1084
1113
|
display: flex;
|
|
1085
1114
|
flex-basis: 100px;
|
|
@@ -1135,33 +1164,4 @@
|
|
|
1135
1164
|
position: fixed;
|
|
1136
1165
|
inset: 0;
|
|
1137
1166
|
z-index: 99;
|
|
1138
|
-
}
|
|
1139
|
-
|
|
1140
|
-
.component-list .el-collapse {
|
|
1141
|
-
border-top: none;
|
|
1142
|
-
}
|
|
1143
|
-
.component-list .el-collapse .el-collapse-item__arrow {
|
|
1144
|
-
display: none;
|
|
1145
|
-
}
|
|
1146
|
-
.component-list .el-collapse .el-collapse-item__header {
|
|
1147
|
-
border-bottom: none;
|
|
1148
|
-
font-size: 14px;
|
|
1149
|
-
font-weight: 400;
|
|
1150
|
-
line-height: 24px;
|
|
1151
|
-
color: #020202;
|
|
1152
|
-
}
|
|
1153
|
-
.component-list .el-collapse .el-collapse-item__wrap {
|
|
1154
|
-
border-bottom: none;
|
|
1155
|
-
}
|
|
1156
|
-
.component-list .el-collapse .el-collapse-item__wrap .el-collapse-item__content {
|
|
1157
|
-
padding-bottom: 0px;
|
|
1158
|
-
padding-left: 10px;
|
|
1159
|
-
}
|
|
1160
|
-
.component-list .nested-list .el-collapse-item__header {
|
|
1161
|
-
font-size: 12px;
|
|
1162
|
-
line-height: 24px;
|
|
1163
|
-
color: #4b515e;
|
|
1164
|
-
}
|
|
1165
|
-
.component-list .nested-list .el-collapse-item__content {
|
|
1166
|
-
padding-left: 0px !important;
|
|
1167
1167
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
|
-
import { Entity } from '@
|
|
3
|
-
import { Communicator } from '@
|
|
2
|
+
import { Entity } from '@cicctencent/ark-util';
|
|
3
|
+
import { Communicator } from '@cicctencent/postmessage-channel';
|
|
4
4
|
import { LowCodeKey, CheckResponseItem, EditorConfig } from '@cicctencent/low-code-core';
|
|
5
5
|
|
|
6
6
|
declare const _default$1: vue.DefineComponent<vue.ExtractPropTypes<{
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, renderSlot, reactive, computed, watch as watch$1, ref, createElementBlock, createElementVNode, normalizeClass, toDisplayString, createVNode, unref, createCommentVNode, Fragment, renderList, createTextVNode, createStaticVNode, withDirectives, normalizeStyle, resolveDynamicComponent, nextTick, inject, isRef, withModifiers, provide, readonly, onMounted, h, onUnmounted, toRefs, resolveDirective, mergeProps } from 'vue';
|
|
2
|
-
import { debounce, isEqual, cloneDeep, log, isPlainObject, toPlainObject, Entity } from '@
|
|
2
|
+
import { debounce, isEqual, cloneDeep, log, isPlainObject, toPlainObject, Entity } from '@cicctencent/ark-util';
|
|
3
3
|
import { directive, Contextmenu, ContextmenuItem } from 'v-contextmenu';
|
|
4
4
|
import 'v-contextmenu/dist/themes/default.css';
|
|
5
5
|
import { ComponentType, DataSourceType } from '@cicctencent/low-code-core';
|
|
6
6
|
import PinyinMatch from 'pinyin-match';
|
|
7
|
-
import { VueForm, transformComponent } from '@
|
|
8
|
-
import PostMessage from '@
|
|
9
|
-
import { ElMessageBox, ElMessage } from '@
|
|
7
|
+
import { VueForm, transformComponent } from '@cicctencent/formily';
|
|
8
|
+
import PostMessage from '@cicctencent/postmessage-channel';
|
|
9
|
+
import { ElMessageBox, ElMessage } from '@cicctencent/jtui';
|
|
10
10
|
import Draggable from 'vuedraggable';
|
|
11
11
|
import { VAceEditor } from 'vue3-ace-editor';
|
|
12
12
|
import { connect, mapProps } from '@formily/vue';
|
|
@@ -42682,7 +42682,7 @@ EditorComponent.install = function (app) {
|
|
|
42682
42682
|
app.component('VcEditor', script$6);
|
|
42683
42683
|
};
|
|
42684
42684
|
window.JT_VERSION = Object.assign({
|
|
42685
|
-
'@cicctencent/low-code-editor@0.0.1': '10/9/2026,
|
|
42685
|
+
'@cicctencent/low-code-editor@0.0.1': '10/9/2026, 11:51:44 AM',
|
|
42686
42686
|
}, window.JT_VERSION);
|
|
42687
42687
|
|
|
42688
42688
|
export { script as ComponentTreeFavorites, script$6 as Editor, EditorDomain, EditorComponent as default, formily as formilyComponents };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cicctencent/low-code-editor",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.10",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -8,26 +8,26 @@
|
|
|
8
8
|
"build": "rollup --config && rollup --config ../../scripts/rollup.dts.config.js --bundleConfigAsCjs && node ../../scripts/replace.js"
|
|
9
9
|
},
|
|
10
10
|
"peerDependencies": {
|
|
11
|
-
"@
|
|
11
|
+
"@cicctencent/formily": ">= 0.0.78",
|
|
12
12
|
"v-contextmenu": ">= 3.0.0",
|
|
13
13
|
"vue": ">= 3.0.0"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@
|
|
17
|
-
"@
|
|
18
|
-
"@
|
|
19
|
-
"@cicctencent/low-code-core": "
|
|
20
|
-
"@cicctencent/low-code-validate": "
|
|
21
|
-
"@
|
|
22
|
-
"jm-jsruntime": "^1.0.
|
|
16
|
+
"@cicctencent/ark-util": "^0.0.30",
|
|
17
|
+
"@cicctencent/formily": "^0.0.1",
|
|
18
|
+
"@cicctencent/jtui": "^2.2.13",
|
|
19
|
+
"@cicctencent/low-code-core": "latest",
|
|
20
|
+
"@cicctencent/low-code-validate": "latest",
|
|
21
|
+
"@cicctencent/postmessage-channel": "^1.0.0",
|
|
22
|
+
"jm-jsruntime": "^1.0.7",
|
|
23
23
|
"pinyin-match": "1.2.4",
|
|
24
24
|
"v-contextmenu": ">= 3.0.0",
|
|
25
25
|
"vue": ">= 3.0.0",
|
|
26
26
|
"vuedraggable": "^4.1.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@formily/grid": "^2.2.29",
|
|
30
29
|
"@cicctencent/icons-vue": "^0.2.8",
|
|
30
|
+
"@formily/grid": "^2.2.29",
|
|
31
31
|
"@rollup/plugin-commonjs": "^17.0.0",
|
|
32
32
|
"@rollup/plugin-image": "^2.1.1",
|
|
33
33
|
"@rollup/plugin-node-resolve": "^15.1.0",
|
package/src/DataSource/index.vue
CHANGED
|
@@ -280,7 +280,7 @@ import Draggable from 'vuedraggable';
|
|
|
280
280
|
import '../config/ace.config';
|
|
281
281
|
import { VAceEditor } from 'vue3-ace-editor';
|
|
282
282
|
import { DataSource, DataSourceType } from '@cicctencent/low-code-core';
|
|
283
|
-
import { FormInstance } from '@
|
|
283
|
+
import { FormInstance } from '@cicctencent/jtui';
|
|
284
284
|
enum DataPoolWidth {
|
|
285
285
|
FOLD = 300,
|
|
286
286
|
EXPAND = 710,
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
<script lang="ts" setup>
|
|
19
19
|
// @ts-nocheck
|
|
20
20
|
import { ref, withDefaults, defineProps, computed } from 'vue';
|
|
21
|
-
import { VueForm } from '@
|
|
21
|
+
import { VueForm } from '@cicctencent/formily';
|
|
22
22
|
import { Schema } from '@cicctencent/low-code-core';
|
|
23
23
|
|
|
24
24
|
const props = withDefaults(
|
package/src/HeaderBar/index.vue
CHANGED
|
@@ -147,7 +147,7 @@ import {
|
|
|
147
147
|
import { FunctionData, Simulator } from '@cicctencent/low-code-core';
|
|
148
148
|
import { changeEnum2Array } from '../utils';
|
|
149
149
|
import BarTooltip from './components/BarTooltip.vue';
|
|
150
|
-
import { debounce } from '@
|
|
150
|
+
import { debounce } from '@cicctencent/ark-util';
|
|
151
151
|
|
|
152
152
|
const props = withDefaults(
|
|
153
153
|
defineProps<{
|
package/src/NavTree/index.vue
CHANGED
|
@@ -78,10 +78,10 @@
|
|
|
78
78
|
|
|
79
79
|
<script lang="ts" setup>
|
|
80
80
|
import { ref, nextTick, computed, ComputedRef, watch } from 'vue';
|
|
81
|
-
import type { ElTree, ElInput } from '@
|
|
81
|
+
import type { ElTree, ElInput } from '@cicctencent/jtui';
|
|
82
82
|
import * as IconMap from '@cicctencent/icons-vue';
|
|
83
|
-
import type Node from '@
|
|
84
|
-
import type { DropType } from '@
|
|
83
|
+
import type Node from '@cicctencent/jtui/es/components/tree/src/model/node';
|
|
84
|
+
import type { DropType } from '@cicctencent/jtui/es/components/tree/src/tree.type';
|
|
85
85
|
import {
|
|
86
86
|
directive as vContextmenu,
|
|
87
87
|
Contextmenu,
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
|
|
28
28
|
<script lang="ts" setup>
|
|
29
29
|
// @ts-nocheck
|
|
30
|
-
import { VueForm } from '@
|
|
30
|
+
import { VueForm } from '@cicctencent/formily';
|
|
31
31
|
|
|
32
32
|
import {
|
|
33
33
|
ref,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
nextTick,
|
|
40
40
|
} from 'vue';
|
|
41
41
|
import { SchemaData } from '@cicctencent/low-code-core';
|
|
42
|
-
import { cloneDeep, isEqual } from '@
|
|
42
|
+
import { cloneDeep, isEqual } from '@cicctencent/ark-util';
|
|
43
43
|
|
|
44
44
|
const props = withDefaults(
|
|
45
45
|
defineProps<{
|
|
@@ -15,7 +15,7 @@ import AllSelectIcon from '../../assets/img/tool/all-select.svg';
|
|
|
15
15
|
import collectionIcon from '../../assets/img/tool/collection-tag.svg';
|
|
16
16
|
import collectionSelectIcon from '../../assets/img/tool/collection-select.svg';
|
|
17
17
|
import { favoriteRebuild } from '../../utils';
|
|
18
|
-
import { cloneDeep } from '@
|
|
18
|
+
import { cloneDeep } from '@cicctencent/ark-util';
|
|
19
19
|
|
|
20
20
|
import useComponentTree from '../../composables/useComponentTree';
|
|
21
21
|
|
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
toPlainObject,
|
|
6
6
|
isEqual,
|
|
7
7
|
isPlainObject,
|
|
8
|
-
} from '@
|
|
9
|
-
import { Communicator } from '@
|
|
8
|
+
} from '@cicctencent/ark-util';
|
|
9
|
+
import { Communicator } from '@cicctencent/postmessage-channel';
|
|
10
10
|
|
|
11
11
|
import { CheckResponseItem, EditorConfig, LowCodeKey } from '@cicctencent/low-code-core';
|
|
12
12
|
|
package/src/editor.ts
CHANGED
|
@@ -10,8 +10,8 @@ import {
|
|
|
10
10
|
provide,
|
|
11
11
|
readonly,
|
|
12
12
|
} from 'vue';
|
|
13
|
-
import PostMessage from '@
|
|
14
|
-
import { ElMessage, ElMessageBox } from '@
|
|
13
|
+
import PostMessage from '@cicctencent/postmessage-channel';
|
|
14
|
+
import { ElMessage, ElMessageBox } from '@cicctencent/jtui';
|
|
15
15
|
import EditorDomain, { EditorDomainState } from './domain/EditorDomain';
|
|
16
16
|
import {
|
|
17
17
|
CheckResponseItem,
|
|
@@ -20,8 +20,8 @@ import {
|
|
|
20
20
|
EditDialogRenderData,
|
|
21
21
|
SendReq,
|
|
22
22
|
} from '@cicctencent/low-code-core';
|
|
23
|
-
import { VueForm } from '@
|
|
24
|
-
import { isEqual, toPlainObject } from '@
|
|
23
|
+
import { VueForm } from '@cicctencent/formily';
|
|
24
|
+
import { isEqual, toPlainObject } from '@cicctencent/ark-util';
|
|
25
25
|
|
|
26
26
|
export default function (props, emits) {
|
|
27
27
|
const state = reactive<EditorDomainState>({
|
package/src/editor.vue
CHANGED
|
@@ -158,7 +158,7 @@ import {
|
|
|
158
158
|
onMounted,
|
|
159
159
|
watch,
|
|
160
160
|
} from 'vue';
|
|
161
|
-
import { PostMessageOption } from '@
|
|
161
|
+
import { PostMessageOption } from '@cicctencent/postmessage-channel';
|
|
162
162
|
import HeaderBar from './HeaderBar/index.vue';
|
|
163
163
|
import NavTree from './NavTree/index.vue';
|
|
164
164
|
import ComponentTree from './ComponentTree/index.vue';
|
|
@@ -169,7 +169,7 @@ import SidebarPane from './SidebarPane/index.vue';
|
|
|
169
169
|
import { Project } from '@cicctencent/low-code-core';
|
|
170
170
|
import useEditor from './editor';
|
|
171
171
|
import { editorComponents } from './components';
|
|
172
|
-
import { VueForm } from '@
|
|
172
|
+
import { VueForm } from '@cicctencent/formily';
|
|
173
173
|
import EditorDomain from './domain/EditorDomain';
|
|
174
174
|
|
|
175
175
|
interface MessageReq {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { connect, mapProps } from '@formily/vue';
|
|
2
|
-
import { transformComponent } from '@
|
|
2
|
+
import { transformComponent } from '@cicctencent/formily';
|
|
3
3
|
import JtComponentTree from '../../ComponentTree/index.vue';
|
|
4
4
|
|
|
5
5
|
export type JtComponentTreeProps = typeof JtComponentTree;
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
import { PropType, computed, reactive, ref, watch, defineProps, defineEmits } from 'vue';
|
|
83
83
|
import '../../config/ace.config';
|
|
84
84
|
import { VAceEditor } from 'vue3-ace-editor';
|
|
85
|
-
import { VueForm } from '@
|
|
85
|
+
import { VueForm } from '@cicctencent/formily';
|
|
86
86
|
import { Search } from '@cicctencent/icons-vue';
|
|
87
87
|
import { DataSource } from '@cicctencent/low-code-core';
|
|
88
88
|
const props = defineProps({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { connect, mapProps } from '@formily/vue';
|
|
2
|
-
import { transformComponent } from '@
|
|
2
|
+
import { transformComponent } from '@cicctencent/formily';
|
|
3
3
|
import JtDataSource from '../../dataSource/index.vue';
|
|
4
4
|
|
|
5
5
|
export type JtDataSourceProps = typeof JtDataSource;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { reactive, nextTick, ref, computed, watch } from 'vue';
|
|
2
|
-
import type { FormInstance } from '@
|
|
2
|
+
import type { FormInstance } from '@cicctencent/jtui';
|
|
3
3
|
import { ProjectMetaNavMenu } from '@cicctencent/low-code-core';
|
|
4
4
|
interface IMenuForm extends Omit<ProjectMetaNavMenu, 'children'> {
|
|
5
5
|
content: 'pageId' | 'url';
|