diff --git a/src/code/alert.js b/src/code/alert.js new file mode 100644 index 0000000..1721637 --- /dev/null +++ b/src/code/alert.js @@ -0,0 +1,74 @@ +let code = {}; + +code.import = ` +"usingComponents": { + "i-alert": "../../dist/alert/index" +} +`; +code.usage = ` + + An info prompt + + + An success prompt + + + An warning prompt + + + An error prompt + + + An info prompt + Content of prompt. Content of prompt. + + + An success prompt + Content of prompt. Content of prompt. + + + An warning prompt + Content of prompt. Content of prompt. + + + An error prompt + Content of prompt. Content of prompt. + + + An info prompt + + + An success prompt + + + An warning prompt + + + An error prompt + + + An info prompt + Content of prompt. Content of prompt. + + + An success prompt + Content of prompt. Content of prompt. + + + An warning prompt + Content of prompt. Content of prompt. + + + An error prompt + Content of prompt. Content of prompt. + + + An info prompt + + + An success prompt + Content of prompt. Content of prompt. + +`; + +export default code; \ No newline at end of file diff --git a/src/router.js b/src/router.js index 3df8b87..236b49d 100755 --- a/src/router.js +++ b/src/router.js @@ -163,6 +163,13 @@ const routers = [ }, component: (resolve) => require(['./views/components/badge.vue'], resolve) }, + { + path: '/components/alert', + meta: { + title: '警告提示 Alert' + }, + component: (resolve) => require(['./views/components/alert.vue'], resolve) + }, { path: '*', redirect: '/' diff --git a/src/views/components/alert.vue b/src/views/components/alert.vue new file mode 100644 index 0000000..f0cf87e --- /dev/null +++ b/src/views/components/alert.vue @@ -0,0 +1,119 @@ + + \ No newline at end of file