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

@@ -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>