<template>
  <demo-section>
    <demo-block :title="$t('type')">
      <van-loading />
      <van-loading type="spinner" />
    </demo-block>

    <demo-block :title="$t('color')">
      <van-loading color="#1989fa" />
      <van-loading
        type="spinner"
        color="#1989fa"
      />
    </demo-block>

    <demo-block :title="$t('text')">
      <van-loading size="24px">
        {{ $t('loading') }}
      </van-loading>
    </demo-block>
  </demo-section>
</template>

<script>
export default {
  i18n: {
    'zh-CN': {
      type: '加载类型',
      color: '自定义颜色',
      text: '加载文案'
    },
    'en-US': {
      type: 'Type',
      color: 'Color',
      text: 'Text'
    }
  }
};
</script>

<style lang="less">
.demo-loading {
  .van-loading {
    display: inline-block;
    margin: 5px 0 5px 20px;
  }
}
</style>
