classcard-ui 0.2.577 → 0.2.579

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "classcard-ui",
3
- "version": "0.2.577",
3
+ "version": "0.2.579",
4
4
  "main": "dist/classcard-ui.umd.min.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -54,8 +54,10 @@
54
54
  </a>
55
55
  </nav>
56
56
  </div>
57
+ {{activeTab}}
57
58
  <div v-for="(tab, index) in tabs" :key="index">
58
- <div v-show="tab.name == activeTab">
59
+ <!-- <div v-show="tab.name == activeTab"> -->
60
+ <div>
59
61
  <slot :name="`tab-panel-${tab.name}`"></slot>
60
62
  </div>
61
63
  </div>
@@ -92,8 +94,9 @@ export default {
92
94
  },
93
95
  methods: {
94
96
  switchTab(tabText) {
95
- let tabSelected = tabText;
96
- this.activeTab = tabSelected;
97
+ console.log(tabText);
98
+ // let tabSelected = tabText;
99
+ // this.activeTab = tabSelected;
97
100
  },
98
101
  switchTabForMobile(index) {
99
102
  var selectedOption = this.tabs[index];
@@ -16,7 +16,7 @@ export default {
16
16
  const Template = (args, { argTypes }) => ({
17
17
  props: Object.keys(argTypes),
18
18
  components: { CTabs },
19
- template: '<c-tabs v-bind="$props" />',
19
+ template: '<c-tabs v-bind="$props"><template slot="tab-panel-url">url panel</template><template slot="tab-panel-mobile-app">app panel</template><template slot="tab-panel-preferences">preferences panel</template></c-tabs>',
20
20
  });
21
21
 
22
22
  export const Default = Template.bind({});