Skip to content

Commit

Permalink
new component: inline-loading
Browse files Browse the repository at this point in the history
  • Loading branch information
airyland committed May 30, 2017
1 parent 714afa6 commit 10b7ee2
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/components/inline-loading/index.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<template>
<i class="weui-loading"></i>
</template>

<style lang="less">
@import '../../styles/weui/widget/weui-loading/weui-loading.less';
</style>
7 changes: 7 additions & 0 deletions src/components/inline-loading/metas.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
icon: '&#xe610;'
changes:
next:
en:
- '[feature] new component'
zh-CN:
- '[feature] 新组件'
1 change: 1 addition & 0 deletions src/components/map.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"Icon": "src/components/icon/index.vue",
"InlineCalendar": "src/components/inline-calendar/index.vue",
"InlineDesc": "src/components/inline-desc/index.vue",
"InlineLoading": "src/components/inline-loading/index.vue",
"InlineXNumber": "src/components/inline-x-number/index.vue",
"InviewDirective": "src/directives/inview/index.js",
"Loading": "src/components/loading/index.vue",
Expand Down
4 changes: 4 additions & 0 deletions src/datas/vux_component_list.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@
"name": "inline-calendar",
"icon": "&#xe62b;"
},
{
"name": "inline-loading",
"icon": "&#xe610;"
},
{
"name": "load-more",
"icon": "&#xe610;"
Expand Down
3 changes: 2 additions & 1 deletion src/demo_list.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,6 @@
"Issue1211#/issue/1211",
"XTable",
"PopupRadio",
"Flow"
"Flow",
"InlineLoading"
]
31 changes: 31 additions & 0 deletions src/demos/InlineLoading.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<template>
<div>
<br>
<p style="text-align:center;">
<inline-loading></inline-loading>
</p>
<br>
<p style="text-align:center;">
<span style="vertical-align:middle;display:inline-block;font-size:14px;">{{ $t('loading') }}&nbsp;&nbsp;</span><inline-loading></inline-loading>
</p>
<br>
<p style="text-align:center;">
<inline-loading></inline-loading><span style="vertical-align:middle;display:inline-block;font-size:14px;">&nbsp;&nbsp;{{ $t('loading') }}</span>
</p>
</div>
</template>

<i18n>
loading:
zh-CN: 加载中
</i18n>

<script>
import { InlineLoading } from 'vux'
export default {
components: {
InlineLoading
}
}
</script>

0 comments on commit 10b7ee2

Please sign in to comment.