File tree Expand file tree Collapse file tree 5 files changed +17
-43
lines changed Expand file tree Collapse file tree 5 files changed +17
-43
lines changed Original file line number Diff line number Diff line change 8
8
"dev" : " node build/dev-server.js" ,
9
9
"build" : " node build/build.js" ,
10
10
"server" : " nodemon app.js" ,
11
- "start" : " node app.js"
11
+ "start" : " node app.js"
12
12
},
13
13
"dependencies" : {
14
14
"axios" : " ^0.15.3" ,
15
15
"body-parser" : " ^1.16.1" ,
16
16
"express" : " ^4.14.1" ,
17
17
"jquery" : " ^3.1.1" ,
18
18
"mongoose" : " ^4.8.2" ,
19
+ "muse-ui" : " ^2.0.0-rc.5" ,
19
20
"toastr" : " ^2.1.2" ,
20
21
"vue" : " ^2.1.10" ,
21
- "vue-material" : " ^0.7.1" ,
22
22
"vue-router" : " ^2.2.0"
23
23
},
24
24
"devDependencies" : {
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div id =" app" >
3
- <!-- <h2 class="md-dispaly-4 title">{{ title }}</h2> -->
3
+ <mu-appbar title =" Title" >
4
+ <mu-icon-button icon =' menu' slot =" left" />
5
+ <mu-icon-button icon =' expand_more' slot =" right" />
6
+ </mu-appbar >
4
7
<router-view ></router-view >
5
8
</div >
6
9
</template >
@@ -26,7 +29,6 @@ export default {
26
29
flex-direction : column ;
27
30
justify-content : center ;
28
31
align-items : center ;
29
- margin-top : 20px ;
30
32
}
31
33
.title {
32
34
letter-spacing : 1px ;
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
<template lang="html">
2
- <md-table-card >
3
- <!-- <md-toolbar>
4
- <h1 class="md-title" style="flex:1;">Movie List</h1>
5
- <md-button class="md-icon-button">
6
- <md-icon>search</md-icon>
7
- </md-button>
8
- </md-toolbar> -->
9
-
10
- <md-table-header >
11
- <md-table-row >
12
- <md-table-head >电影海报</md-table-head>
13
- <md-table-head >电影名称</md-table-head>
14
- <md-table-head >上映年份</md-table-head>
15
- <md-table-head >电影类型</md-table-head>
16
- <md-table-head >电影评分</md-table-head>
17
- <md-table-head >操作</md-table-head>
18
- </md-table-row>
19
- </md-table-header>
20
-
21
- <md-table-body >
22
- <md-table-row v-for =" movie of movies" :key =" movie.id" >
23
- <md-table-cell ><img :src =" movie.image" alt =" " ></md-table-cell>
24
- <md-table-cell>{{ movie.title }}</md-table-cell>
25
- <md-table-cell >{{ movie.genres }}</md-table-cell>
26
- <md-table-cell md-numeric >{{ movie.rating}}</md-table-cell>
27
- <md-table-cell >
28
- <md-button class =" md-primary" >编辑</md-button>
29
- <md-button class =" md-warn" >删除</md-button>
30
- </md-tanle-cell>
31
- </md-table-row>
32
- </md-table-body>
33
-
34
- </md-table-card>
2
+ <div class =" list" >
3
+ List.vue
4
+ </div>
35
5
</template >
36
6
37
7
<script >
38
8
export default {
39
- mounted (){
9
+ created (){
40
10
this .getMovies ()
41
11
},
42
12
data (){
Original file line number Diff line number Diff line change 1
1
import Vue from 'vue'
2
2
import App from './App'
3
3
import toastr from 'toastr'
4
+ import MuseUI from 'muse-ui'
4
5
import axios from 'axios'
5
- import VueMaterial from 'vue-material'
6
6
import router from './router'
7
- import 'vue-material/dist/vue-material.css'
8
- import './assets/material.font.css'
9
7
import 'toastr/build/toastr.min.css'
8
+ import 'muse-ui/dist/muse-ui.css'
9
+ import './assets/icon.css'
10
+
11
+ Vue . use ( MuseUI )
12
+ Vue . prototype . $http = axios
10
13
11
14
toastr . options = {
12
15
"closeButton" : true ,
@@ -31,8 +34,7 @@ toastr.options = {
31
34
// return prefix + url
32
35
// })
33
36
34
- Vue . use ( VueMaterial )
35
- Vue . prototype . $http = axios
37
+
36
38
/* eslint-disable no-new */
37
39
new Vue ( {
38
40
created ( ) {
You can’t perform that action at this time.
0 commit comments