<template>
  <div id="app">
    <ul class="navs clearfix">
      <li><m-btn class="hover" :href="{name:'Base'}">基础样式</m-btn></li>
      <li><m-btn :href="{name:'Buttons'}">按钮样式</m-btn></li>
      <li><m-btn :href="{name:'Form'}">表单样式</m-btn></li>
      <li><m-btn :href="{name:'Pop'}">POP样式</m-btn></li>
      <li><m-btn :href="{name:'Tree'}">Tree样式</m-btn></li>
    </ul>
    <router-view></router-view>
    <br>
    <br>
    <m-tip way="hover" hasArrow>
      <span slot="label">THIS IS MPopper</span>
      <div slot="popper" class="popper-body">this is mpopper popper</div>
    </m-tip>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
  </div>
</template>

<script>
export default {
  name: 'app',
  data: () => ({
    inputvalue: '',
    select_move: {label: 'label2', value: '2'},
    selectData: [],
    tipa: {
      content: 'v-tip-content'
    }
  }),
  methods: {},
  mounted () {
//    const timeout = setTimeout( _ => {
//      this.selectData = [
//        {label: 'label1', value: '1', active: true},
//        {label: 'label2', value: '2'},
//        {label: 'label3', value: '3'}
//      ]
//      this.select_move = {label: 'label3', value: '3'}
//      clearTimeout(timeout)
//    }, 1000)
    this.$toast('你好中国', 'lt')
//    this.$confirm({
//      title: 'TITLE',
//      content: 'HELLO CHINA'
//    })
  }
}
</script>

<style lang="scss">
  body {
    line-height: 1.5;
    background-color: #f0f0f0;
    font-family: Arial, "Microsoft YaHei UI", sans-serif;
  }
  #app {
    padding: 24px;
  }
  .navs {
    li {
      float: left;
      margin-right: 10px;
    }

    a {
      background: #e0e0e0;
      display: inline-block;
      padding: 8px 10px;
      border-radius: 5px;
    }

    a:hover{
      background: #bdbdbd;
    }

    .router-link-exact-active,
    .router-link-exact-active:hover{
      background: #333;
      color: #fff;
    }
  }

  .base{
    padding: 10px;
  }

  .example{
    border: 1px solid #dddddd;
    border-radius: 5px;
    padding: 10px 20px;
  }

</style>
