xframelib 0.9.6 → 0.9.7
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.
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { LayoutContainerEnum, IWidgetConfig } from '../../model/Layout';
|
|
2
|
-
import { Ref
|
|
2
|
+
import { Ref } from 'vue';
|
|
3
3
|
/**
|
|
4
4
|
* 布局对象定义
|
|
5
5
|
*/
|
|
6
6
|
export interface ILayoutContainer {
|
|
7
|
-
topContainer:
|
|
8
|
-
centerBackContainer:
|
|
9
|
-
centerMainContainer:
|
|
10
|
-
centerFrontContainer:
|
|
11
|
-
bottomContainer:
|
|
12
|
-
leftContainer:
|
|
13
|
-
rightContainer:
|
|
7
|
+
topContainer: Ref<HTMLElement | undefined>;
|
|
8
|
+
centerBackContainer: Ref<HTMLElement | undefined>;
|
|
9
|
+
centerMainContainer: Ref<HTMLElement | undefined>;
|
|
10
|
+
centerFrontContainer: Ref<HTMLElement | undefined>;
|
|
11
|
+
bottomContainer: Ref<HTMLElement | undefined>;
|
|
12
|
+
leftContainer: Ref<HTMLElement | undefined>;
|
|
13
|
+
rightContainer: Ref<HTMLElement | undefined>;
|
|
14
14
|
}
|
|
15
15
|
export declare class LayoutManager {
|
|
16
16
|
private layoutState;
|
|
@@ -74,7 +74,7 @@ export declare class LayoutManager {
|
|
|
74
74
|
* @param enumContainer
|
|
75
75
|
* @returns
|
|
76
76
|
*/
|
|
77
|
-
getLayoutContainer(enumContainer: LayoutContainerEnum): HTMLElement |
|
|
77
|
+
getLayoutContainer(enumContainer: LayoutContainerEnum): HTMLElement | undefined;
|
|
78
78
|
/**
|
|
79
79
|
* 改变容器可见性
|
|
80
80
|
* @param enumContainer
|
package/dist/index.css
CHANGED
|
@@ -130,6 +130,23 @@
|
|
|
130
130
|
margin-top: 1px;
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
+
.adivider {
|
|
134
|
+
width: 100%;
|
|
135
|
+
margin: 10px 0;
|
|
136
|
+
display: flex;
|
|
137
|
+
align-items: center;
|
|
138
|
+
justify-items: center;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.adivider .line {
|
|
142
|
+
border: v-bind(lineColor) 1px solid;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.adivider .contentText {
|
|
146
|
+
background-color: inherit;
|
|
147
|
+
font-size: 18px;
|
|
148
|
+
}
|
|
149
|
+
|
|
133
150
|
.layoutContainer {
|
|
134
151
|
position: relative;
|
|
135
152
|
width: 100%;
|
|
@@ -236,66 +253,6 @@
|
|
|
236
253
|
z-index: var(--layout-centerfront-zindex);
|
|
237
254
|
}
|
|
238
255
|
|
|
239
|
-
.adivider {
|
|
240
|
-
width: 100%;
|
|
241
|
-
margin: 10px 0;
|
|
242
|
-
display: flex;
|
|
243
|
-
align-items: center;
|
|
244
|
-
justify-items: center;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
.adivider .line {
|
|
248
|
-
border: v-bind(lineColor) 1px solid;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
.adivider .contentText {
|
|
252
|
-
background-color: inherit;
|
|
253
|
-
font-size: 18px;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
.window {
|
|
257
|
-
display: flex;
|
|
258
|
-
flex-flow: column;
|
|
259
|
-
position: absolute;
|
|
260
|
-
border-radius: 4pt 4pt 0 0;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
.titlebar {
|
|
264
|
-
display: flex;
|
|
265
|
-
flex-flow: row nowrap;
|
|
266
|
-
border-radius: 4pt 4pt 0 0;
|
|
267
|
-
font-family: sans-serif;
|
|
268
|
-
padding: 0.5em;
|
|
269
|
-
flex: 0 0 auto;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
.title {
|
|
273
|
-
flex-grow: 1;
|
|
274
|
-
white-space: nowrap;
|
|
275
|
-
overflow: hidden;
|
|
276
|
-
text-overflow: ellipsis;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
.content {
|
|
280
|
-
flex-grow: 1;
|
|
281
|
-
padding: 0.5em;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
.draggable-handle {
|
|
285
|
-
cursor: move;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
.fade-enter,
|
|
289
|
-
.fade-leave-to {
|
|
290
|
-
opacity: 0;
|
|
291
|
-
transform: scale(0.9);
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
.fade-enter-active,
|
|
295
|
-
.fade-leave-active {
|
|
296
|
-
transition: 0.2s;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
256
|
.iconify {
|
|
300
257
|
color: #000;
|
|
301
258
|
}
|
|
@@ -450,6 +407,49 @@
|
|
|
450
407
|
cursor: s-resize;
|
|
451
408
|
}
|
|
452
409
|
|
|
410
|
+
.window {
|
|
411
|
+
display: flex;
|
|
412
|
+
flex-flow: column;
|
|
413
|
+
position: absolute;
|
|
414
|
+
border-radius: 4pt 4pt 0 0;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.titlebar {
|
|
418
|
+
display: flex;
|
|
419
|
+
flex-flow: row nowrap;
|
|
420
|
+
border-radius: 4pt 4pt 0 0;
|
|
421
|
+
font-family: sans-serif;
|
|
422
|
+
padding: 0.5em;
|
|
423
|
+
flex: 0 0 auto;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
.title {
|
|
427
|
+
flex-grow: 1;
|
|
428
|
+
white-space: nowrap;
|
|
429
|
+
overflow: hidden;
|
|
430
|
+
text-overflow: ellipsis;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
.content {
|
|
434
|
+
flex-grow: 1;
|
|
435
|
+
padding: 0.5em;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
.draggable-handle {
|
|
439
|
+
cursor: move;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
.fade-enter,
|
|
443
|
+
.fade-leave-to {
|
|
444
|
+
opacity: 0;
|
|
445
|
+
transform: scale(0.9);
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
.fade-enter-active,
|
|
449
|
+
.fade-leave-active {
|
|
450
|
+
transition: 0.2s;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
453
|
.btn {
|
|
454
454
|
background-color: transparent;
|
|
455
455
|
border: none;
|