mirror of
https://github.com/nuintun/command-manager.git
synced 2025-06-07 11:34:05 +08:00
update files
This commit is contained in:
parent
9771e79e10
commit
46e4cc3f44
@ -28,5 +28,6 @@
|
|||||||
:unique-projects.sync="uniqueProjects">
|
:unique-projects.sync="uniqueProjects">
|
||||||
</app-main>
|
</app-main>
|
||||||
</main>
|
</main>
|
||||||
|
<no-data :projects="configure.projects"></no-data>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -149,7 +149,9 @@ input[type=text]:focus {
|
|||||||
}
|
}
|
||||||
html,
|
html,
|
||||||
body {
|
body {
|
||||||
width: 100%; height: 100%; overflow: hidden;
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
body {
|
body {
|
||||||
border: 1px solid #ccc;
|
border: 1px solid #ccc;
|
||||||
@ -486,3 +488,11 @@ header [class*=" icon-"] {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 0 0 15px;
|
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
BIN
static/images/no-data.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.1 KiB |
@ -12,6 +12,7 @@ require('../components/app-configure');
|
|||||||
require('../components/window-control');
|
require('../components/window-control');
|
||||||
require('../components/app-nav');
|
require('../components/app-nav');
|
||||||
require('../components/app-main');
|
require('../components/app-main');
|
||||||
|
require('../components/no-data');
|
||||||
|
|
||||||
window.addEventListener('DOMContentLoaded', function (){
|
window.addEventListener('DOMContentLoaded', function (){
|
||||||
var app;
|
var app;
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
* Created by nuintun on 2015/11/20.
|
* Created by nuintun on 2015/11/20.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
var path = require('path');
|
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>
|
Loading…
x
Reference in New Issue
Block a user