From 9d69bab6a6af96505a2b203baba4213be3e18829 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E7=81=8F?= Date: Mon, 12 Sep 2016 11:59:15 +0800 Subject: [PATCH] add Alert component add Alert component --- components/alert/alert.vue | 101 +++++++++++++++++++++++++++ components/alert/index.js | 2 + index.js | 4 +- local/routers/radio.vue | 39 +++++++---- package.json | 2 +- styles/components/alert.less | 112 ++++++++++++++++++++++++++++++ styles/components/index.less | 3 +- styles/themes/default/custom.less | 3 + 8 files changed, 250 insertions(+), 16 deletions(-) create mode 100644 components/alert/alert.vue create mode 100644 components/alert/index.js create mode 100644 styles/components/alert.less diff --git a/components/alert/alert.vue b/components/alert/alert.vue new file mode 100644 index 00000000..bc50cbe6 --- /dev/null +++ b/components/alert/alert.vue @@ -0,0 +1,101 @@ + + \ No newline at end of file diff --git a/components/alert/index.js b/components/alert/index.js new file mode 100644 index 00000000..fa609b02 --- /dev/null +++ b/components/alert/index.js @@ -0,0 +1,2 @@ +import Alert from './alert.vue'; +export default Alert; \ No newline at end of file diff --git a/index.js b/index.js index ee326562..6b3483fc 100644 --- a/index.js +++ b/index.js @@ -17,6 +17,7 @@ import BackTop from './components/back-top'; import Spin from './components/spin'; import Steps from './components/steps'; import Breadcrumb from './components/breadcrumb'; +import Alert from './components/alert'; const iview = { Button, @@ -38,7 +39,8 @@ const iview = { BackTop, Spin, Steps, - Breadcrumb + Breadcrumb, + Alert }; module.exports = iview; \ No newline at end of file diff --git a/local/routers/radio.vue b/local/routers/radio.vue index e11d63d7..9463d178 100644 --- a/local/routers/radio.vue +++ b/local/routers/radio.vue @@ -1,27 +1,37 @@