pull/113/head
Leopoldthecoder 2016-09-21 15:10:27 +08:00
parent 3c3bfebe41
commit 947cd99df4
4 changed files with 14 additions and 3 deletions

View File

@ -97,6 +97,7 @@
created() {
window.addEventListener('hashchange', () => {
document.body.scrollTop = 0;
document.documentElement.scrollTop = 0;
});
}
};

View File

@ -51,10 +51,12 @@
.footer-nav-left {
float: left;
margin-left: -4px;
}
.footer-nav-right {
float: right;
margin-right: -4px;
}
</style>

View File

@ -170,7 +170,7 @@
v-model="value3"
type="datetimerange"
placeholder="选择时间范围"
style="width:260px">
style="width:350px">
</el-date-picker>
</div>
<div class="block">
@ -180,7 +180,8 @@
type="datetimerange"
:picker-options="pickerOptions2"
placeholder="选择时间范围"
style="width:260px">
align="right"
style="width:350px">
</el-date-picker>
</div>
</template>

View File

@ -63,8 +63,15 @@
if (node.level === -1) {
return resolve([{ name: 'Root1' }, { name: 'Root2' }]);
}
var hasChild = Math.random() > 0.5;
if (node.level > 4) return resolve([]);
var hasChild;
if (node.data.name === 'Root1') {
hasChild = true;
} else if (node.data.name === 'Root2') {
hasChild = false;
} else {
hasChild = Math.random() > 0.5;
}
setTimeout(function() {
var data;