From 73d00120d1369bb40223cb9cb83536e88032eceb Mon Sep 17 00:00:00 2001 From: harrywan Date: Fri, 7 May 2021 17:31:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dtree=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E5=A4=9A=E9=80=89=E6=97=B6=E9=80=9A=E8=BF=87selected=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E9=80=89=E4=B8=ADbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fes-core/src/views/styles/layout.scss | 5 +++++ packages/fes-ui/src/components/tree/tree.vue | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/fes-core/src/views/styles/layout.scss b/packages/fes-core/src/views/styles/layout.scss index 07196b60..ef032de3 100644 --- a/packages/fes-core/src/views/styles/layout.scss +++ b/packages/fes-core/src/views/styles/layout.scss @@ -13,6 +13,11 @@ $dark-color: rgba(255, 255, 255, 0.65); $dark-selected-bg: rgb(24, 144, 255); $dark-selected-color: #ffffff; +html, body { + width: 100%; + height: 100%; +} + .layout { position: absolute; left: 0; diff --git a/packages/fes-ui/src/components/tree/tree.vue b/packages/fes-ui/src/components/tree/tree.vue index bfe66dec..5adf7657 100644 --- a/packages/fes-ui/src/components/tree/tree.vue +++ b/packages/fes-ui/src/components/tree/tree.vue @@ -173,8 +173,8 @@ export default { } } else { // 只是子节点,选中的则默认选中 - this.$set(obj, 'checked', node.checked || false); - this.$set(obj, 'childrenCheckedStatus', node.checked ? '2' : '0'); + this.$set(obj, 'checked', node.selected || false); + this.$set(obj, 'childrenCheckedStatus', node.selected ? '2' : '0'); if (obj.selected) { this.selectedNode = obj; }