diff --git a/CHANGE.md b/CHANGE.md index ae7a4b12..d71c88cf 100644 --- a/CHANGE.md +++ b/CHANGE.md @@ -48,4 +48,6 @@ class 改为 className ### DatePicker 使用 v-model ### LoadingBar -部分 prop 移至 data \ No newline at end of file +部分 prop 移至 data +### Modal +visible 改为 value,使用 v-model,style 改为 styles,$Modal 的关闭有改动,建议后面在纯 html 模式下测试 \ No newline at end of file diff --git a/README.md b/README.md index bdf4cbda..db181d47 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ - [x] Card - [ ] Message - [ ] Notice -- [ ] Modal +- [x] Modal - [x] Progress - [x] Badge - [x] Collapse diff --git a/examples/app.vue b/examples/app.vue index 9e9afebb..aee4fbe1 100644 --- a/examples/app.vue +++ b/examples/app.vue @@ -51,6 +51,7 @@ li + li { border-left: solid 1px #bbb; padding-left: 10px; margin-left: 10px; }
  • Form
  • Table
  • LoadingBar
  • +
  • Modal
  • diff --git a/examples/main.js b/examples/main.js index 9018545b..1971bf55 100644 --- a/examples/main.js +++ b/examples/main.js @@ -168,6 +168,10 @@ const router = new VueRouter({ { path: '/loading-bar', component: require('./routers/loading-bar.vue') + }, + { + path: '/modal', + component: require('./routers/modal.vue') } ] }); diff --git a/examples/routers/modal.vue b/examples/routers/modal.vue new file mode 100644 index 00000000..caef87db --- /dev/null +++ b/examples/routers/modal.vue @@ -0,0 +1,94 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/components/loading-bar/loading-bar.vue b/src/components/loading-bar/loading-bar.vue index cb62cbf3..931e101a 100644 --- a/src/components/loading-bar/loading-bar.vue +++ b/src/components/loading-bar/loading-bar.vue @@ -6,7 +6,7 @@