diff --git a/demo/cases/LoadingBar.vue b/demo/cases/LoadingBar.vue
new file mode 100644
index 0000000..1593ee4
--- /dev/null
+++ b/demo/cases/LoadingBar.vue
@@ -0,0 +1,112 @@
+
+
+
+ <veui-loading-bar>
+
+ 模式
+
+
+
+ {{ toggleLabel }}
+
+
+
+ Start
+
+
+
+
+
+
+
+
+
diff --git a/demo/cases/index.js b/demo/cases/index.js
index 17f75de..416c5dd 100644
--- a/demo/cases/index.js
+++ b/demo/cases/index.js
@@ -43,6 +43,7 @@ import Tree from './Tree';
import Autocomplete from './Autocomplete';
import Tag from './Tag';
import Loading from './Loading';
+import LoadingBar from './LoadingBar';
import Drawer from './Drawer';
import Collapse from './Collapse';
import Popover from './Popover';
@@ -241,6 +242,11 @@ export default [
name: 'Loading',
component: Loading
},
+ {
+ path: '/loading-bar',
+ name: 'LoadingBar',
+ component: LoadingBar
+ },
{
path: '/message',
name: 'Message',
diff --git a/src/components/LoadingBar.js b/src/components/LoadingBar.js
new file mode 100644
index 0000000..972684e
--- /dev/null
+++ b/src/components/LoadingBar.js
@@ -0,0 +1,17 @@
+import ui from 'veui/managers/ui';
+
+ui.defaults(
+ {
+ ui: {
+ size: {
+ values: ['s', 'm'],
+ inherit: true,
+ default: 'm'
+ }
+ },
+ parts: {
+ progress: 'fluid'
+ }
+ },
+ 'loadingbar'
+);
diff --git a/src/components/loading-bar.less b/src/components/loading-bar.less
new file mode 100644
index 0000000..70d3aa4
--- /dev/null
+++ b/src/components/loading-bar.less
@@ -0,0 +1,18 @@
+@import "../lib.less";
+
+.@{veui-prefix}-loading-bar {
+ &-enter,
+ &-leave-to {
+ opacity: 0;
+ }
+
+ &-enter-to,
+ &-leave {
+ opacity: 1;
+ }
+
+ &-enter-active,
+ &-leave-active {
+ .veui-transition(opacity);
+ }
+}