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; }