update files

This commit is contained in:
nuintun 2015-11-23 23:50:02 +08:00
parent 9771e79e10
commit 46e4cc3f44
7 changed files with 34 additions and 1 deletions

View File

@ -28,5 +28,6 @@
:unique-projects.sync="uniqueProjects">
</app-main>
</main>
<no-data :projects="configure.projects"></no-data>
</body>
</html>

View File

@ -149,7 +149,9 @@ input[type=text]:focus {
}
html,
body {
width: 100%; height: 100%; overflow: hidden;
width: 100%;
height: 100%;
overflow: hidden;
}
body {
border: 1px solid #ccc;
@ -486,3 +488,11 @@ header [class*=" icon-"] {
text-align: center;
padding: 0 0 15px;
}
.ui-no-data {
position: absolute;
top: 32px;
left: 0;
width: 100%;
height: calc(100% - 32px);
background: url(../images/no-data.png) center no-repeat;
}

BIN
static/images/no-data.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

View File

@ -12,6 +12,7 @@ require('../components/app-configure');
require('../components/window-control');
require('../components/app-nav');
require('../components/app-main');
require('../components/no-data');
window.addEventListener('DOMContentLoaded', function (){
var app;

View File

@ -2,6 +2,7 @@
* Created by nuintun on 2015/11/20.
*/
'use strict';
var fs = require('fs');
var path = require('path');

View File

@ -0,0 +1,19 @@
/**
* Created by nuintun on 2015/11/23.
*/
'use strict';
var fs = require('fs');
var path = require('path');
var Vue = require('../../vue/vue');
module.exports = Vue.component('no-data', {
template: fs.readFileSync(path.join(__dirname, 'no-data.html')).toString(),
props: {
projects: {
type: Array,
required: true
}
}
});

View File

@ -0,0 +1 @@
<div v-if="!projects.length" title="暂无数据" class="ui-no-data"></div>