逻辑修改
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
$titleBarHeight: 40px;
|
||||
|
||||
/* 窗体容器 */
|
||||
.window {
|
||||
width: 100%;
|
||||
@@ -15,6 +17,8 @@
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
user-select: none;
|
||||
width: 100%;
|
||||
height: $titleBarHeight;
|
||||
|
||||
.title {
|
||||
display: block;
|
||||
@@ -24,6 +28,7 @@
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
font-size: 18px;
|
||||
line-height: $titleBarHeight;
|
||||
}
|
||||
|
||||
.window-controls {
|
||||
@@ -52,6 +57,7 @@
|
||||
|
||||
/* 窗体内容 */
|
||||
.window-content {
|
||||
padding: 15px;
|
||||
width: 100%;
|
||||
height: calc(100% - #{$titleBarHeight});
|
||||
background-color: #e0e0e0;
|
||||
}
|
||||
@@ -53,7 +53,7 @@ export default class WindowFormImpl implements IWindowForm {
|
||||
handle: header,
|
||||
snapAnimation: true,
|
||||
snapThreshold: 20,
|
||||
boundary: document.body,
|
||||
boundaryElement: document.body,
|
||||
taskbarElementId: '#taskbar',
|
||||
onWindowStateChange: (state) => {
|
||||
if (state === 'maximized') {
|
||||
|
||||
Reference in New Issue
Block a user