From f97e5bb01ad9aa43431d73cc0a6c34afad9c95bb Mon Sep 17 00:00:00 2001 From: 梁灏 Date: Thu, 9 Mar 2017 17:29:40 +0800 Subject: [PATCH] support LoadingBar --- CHANGE.md | 3 +++ README.md | 2 +- examples/app.vue | 1 + examples/main.js | 4 ++++ examples/routers/loading-bar.vue | 29 +++++++++++++++++++++++++++++ src/components/loading-bar/loading-bar.vue | 48 ++++++++++++++++++++++++++++++------------------ src/index.js | 6 +++--- 7 files changed, 71 insertions(+), 22 deletions(-) create mode 100644 examples/routers/loading-bar.vue diff --git a/CHANGE.md b/CHANGE.md index eb4c71f..ae7a4b1 100644 --- a/CHANGE.md +++ b/CHANGE.md @@ -46,3 +46,6 @@ model 改为 value,支持 v-model ### Page class 改为 className ### DatePicker +使用 v-model +### LoadingBar +部分 prop 移至 data \ No newline at end of file diff --git a/README.md b/README.md index 614f562..bdf4cbd 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ - [x] Page - [x] Breadcrumb - [x] Steps -- [ ] LoadingBar +- [x] LoadingBar - [x] Circle - [x] Affix - [x] BackTop diff --git a/examples/app.vue b/examples/app.vue index 71fb03c..9e9afeb 100644 --- a/examples/app.vue +++ b/examples/app.vue @@ -50,6 +50,7 @@ li + li { border-left: solid 1px #bbb; padding-left: 10px; margin-left: 10px; }
  • Date
  • Form
  • Table
  • +
  • LoadingBar
  • diff --git a/examples/main.js b/examples/main.js index af7ad53..9018545 100644 --- a/examples/main.js +++ b/examples/main.js @@ -165,6 +165,10 @@ const router = new VueRouter({ path: '/table', component: require('./routers/table.vue') }, + { + path: '/loading-bar', + component: require('./routers/loading-bar.vue') + } ] }); diff --git a/examples/routers/loading-bar.vue b/examples/routers/loading-bar.vue new file mode 100644 index 0000000..9f21a87 --- /dev/null +++ b/examples/routers/loading-bar.vue @@ -0,0 +1,29 @@ + + diff --git a/src/components/loading-bar/loading-bar.vue b/src/components/loading-bar/loading-bar.vue index 23d4278..cb62cbf 100644 --- a/src/components/loading-bar/loading-bar.vue +++ b/src/components/loading-bar/loading-bar.vue @@ -1,7 +1,9 @@