Skip to content

Commit

Permalink
fix: remove tabs and tab component
Browse files Browse the repository at this point in the history
  • Loading branch information
swaprenge committed Nov 5, 2020
1 parent 85424d8 commit 59edbd1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 20 deletions.
14 changes: 1 addition & 13 deletions src/components/GridItem.vue
Original file line number Diff line number Diff line change
@@ -1,24 +1,12 @@
<template>
<div ref="gridItem" class="vue-grid-item" :class="classObj" :style="style">
<div class="container">
<div class="tabs flex">
<div
v-for="(tab, tabIdx) in tabs"
:key="tabIdx"
class="tab flex"
:class="activeTab === tabIdx ? 'active' : ''"
@click="activeTab = tabIdx"
>
{{ tab.title }}
</div>
</div>
<div
v-for="(tab, tabIdx) in contentTab"
:key="tabIdx"
class="content flex"
>
<!-- {{ tab }} -->
<component :is="tab.component"></component>
<!-- content can go here -->
</div>
</div>
<span
Expand Down
2 changes: 1 addition & 1 deletion src/components/examples/Basic.stories.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Basic from './Basic.vue';
export default { title: 'Basic' };
export const asAComponentWithBasicFunctionalities = () => ({
export const asAComponentWithNoDrag = () => ({
components: { Basic },
template: `<Basic/>`,
});
6 changes: 0 additions & 6 deletions src/components/examples/Basic.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
<script>
import GridLayout from '@/components/GridLayout';
import GridItem from '@/components/GridItem';
import Tab2 from '@/components/tabs/Tab2';
import Tab4 from '@/components/tabs/Tab4';
import { defineComponent, ref } from '@vue/composition-api';
export default defineComponent({
name: 'Basic',
Expand All @@ -46,10 +44,6 @@
w: 2,
h: 2,
i: '0',
tabs: [
{ title: 'Tab2', component: Tab2 },
{ title: 'Tab4', component: Tab4 },
],
},
{ x: 2, y: 0, w: 2, h: 4, i: '1' },
{ x: 4, y: 0, w: 2, h: 5, i: '2' },
Expand Down

0 comments on commit 59edbd1

Please sign in to comment.