<template>
  <div class="container">
    <div class="tabs-demo-3" data-tab-disabled="3">
      <div data-tab-name="选项卡1" data-tab-key="1">内容1</div>
      <div data-tab-name="选项卡2" data-tab-key="2">内容2</div>
      <div data-tab-name="选项卡3" data-tab-key="3">内容3</div>
      <div data-tab-name="选项卡4" data-tab-key="4">内容4</div>
    </div>
  </div>
</template>

<script>
// import { Tabs } from '../../../dist/index.js'

export default {
  mounted () {
    import('../../../dist/index.js').then(module => {
      const { Tabs } = module
      new Tabs({
        element: document.querySelector('.tabs-demo-3')
      })
    })
  }
}
</script>

<style lang="scss">
.container {
    max-width: 800px;
    margin: 30px auto;
    border-radius: 4px;
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, .3);
    padding: 16px;
}
</style>