mirror of
https://github.com/nuintun/command-manager.git
synced 2025-10-20 01:27:47 +08:00
update files
This commit is contained in:
@@ -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;
|
||||
|
@@ -2,6 +2,7 @@
|
||||
* Created by nuintun on 2015/11/20.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
var fs = require('fs');
|
||||
var path = require('path');
|
||||
|
19
static/js/components/no-data/index.js
Normal file
19
static/js/components/no-data/index.js
Normal 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
|
||||
}
|
||||
}
|
||||
});
|
1
static/js/components/no-data/no-data.html
Normal file
1
static/js/components/no-data/no-data.html
Normal file
@@ -0,0 +1 @@
|
||||
<div v-if="!projects.length" title="暂无数据" class="ui-no-data"></div>
|
Reference in New Issue
Block a user