Skip to content
This repository has been archived by the owner on Jul 12, 2020. It is now read-only.

Commit

Permalink
Refactor customClass to cc
Browse files Browse the repository at this point in the history
  • Loading branch information
Chng-Zhi-Xuan committed Jul 24, 2018
1 parent 96acde6 commit a9fb731
Show file tree
Hide file tree
Showing 13 changed files with 26 additions and 26 deletions.
4 changes: 2 additions & 2 deletions src/Dropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default {
type: Boolean,
default: false
},
customClass: {
cc: {
type: String,
default: ''
}
Expand All @@ -62,7 +62,7 @@ export default {
return `btn-${this.type}`;
},
classes () {
return [{disabled: this.disabledBool}, this.class, this.isLi ? 'dropdown' : 'btn-group', this.customClass]
return [{disabled: this.disabledBool}, this.class, this.isLi ? 'dropdown' : 'btn-group', this.cc]
},
menuClasses() {
return [{show: this.showBool}, {'dropdown-menu-right': this.menuAlignRight}];
Expand Down
4 changes: 2 additions & 2 deletions src/Modal.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div role="dialog"
:class="[customClass,
:class="[cc,
{
'modal':true,
'fade':effect === 'fade',
Expand Down Expand Up @@ -72,7 +72,7 @@ export default {
id: {
type: String
},
customClass: {
cc: {
type: String,
default: ''
}
Expand Down
4 changes: 2 additions & 2 deletions src/Navbar.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<nav ref="navbar" :class="['navbar', 'navbar-expand-md', customClass,
<nav ref="navbar" :class="['navbar', 'navbar-expand-md', cc,
{
'navbar-dark':(type === 'inverse'),
'navbar-light':(type === 'default'),
Expand Down Expand Up @@ -40,7 +40,7 @@ export default {
type: String,
default: ''
},
customClass: {
cc: {
type: String,
default: ''
}
Expand Down
4 changes: 2 additions & 2 deletions src/Panel.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<span :class="['card-container', customClass]" ref="cardContainer">
<span :class="['card-container', cc]" ref="cardContainer">
<div class="morph" v-show="localMinimized">
<button :class="['morph-display-wrapper', 'btn', btnType, 'card-title']" @click="open()">
<template v-if="altContent">
Expand Down Expand Up @@ -136,7 +136,7 @@
type: Boolean,
default: false
},
customClass: {
cc: {
type: String,
default: ''
}
Expand Down
4 changes: 2 additions & 2 deletions src/Pic.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div :class="['image-wrapper', customClass]">
<div :class="['image-wrapper', cc]">
<img ref="pic" @load.once="computeWidth" :src="src" :alt="alt" :width="computedWidth" class="img-fluid rounded">
<div class="image-caption">
<slot></slot>
Expand All @@ -26,7 +26,7 @@
type: String,
default: ''
},
customClass: {
cc: {
type: String,
default: ''
}
Expand Down
4 changes: 2 additions & 2 deletions src/Popover.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<span :class="[customClass]">
<span :class="[cc]">
<span ref="trigger" v-if="hasSlot" v-on:click="false"><slot></slot></span><!--
-->
<transition :name="effect">
Expand Down Expand Up @@ -29,7 +29,7 @@ export default {
type: String,
default: 'hover'
},
customClass: {
cc: {
type: String,
default: ''
}
Expand Down
4 changes: 2 additions & 2 deletions src/Question.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div :class="['question-wrapper', customClass]">
<div :class="['question-wrapper', cc]">
<div class="body-wrapper">
<!-- Default slot is question body -->
<slot></slot>
Expand Down Expand Up @@ -43,7 +43,7 @@
type: Boolean,
default: false
},
customClass: {
cc: {
type: String,
default: ''
}
Expand Down
4 changes: 2 additions & 2 deletions src/Tab.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<transition name="fade">
<div role="tabpanel" class="tab-pane active" v-show="show"
:class="[{hide:!show}, customClass]"
:class="[{hide:!show}, cc]"
>
<slot></slot>
<hr />
Expand All @@ -22,7 +22,7 @@ export default {
type: Boolean,
default: false
},
customClass: {
cc: {
type: String,
default: ''
}
Expand Down
4 changes: 2 additions & 2 deletions src/TabGroup.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div :class="[customClass]">
<div :class="[cc]">
<slot></slot>
</div>
</template>
Expand All @@ -17,7 +17,7 @@ export default {
header: {
type: String
},
customClass: {
cc: {
type: String,
default: ''
}
Expand Down
4 changes: 2 additions & 2 deletions src/Tabset.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div :class="[customClass]">
<div :class="[cc]">
<!-- Nav tabs -->
<ul class="nav nav-tabs" :class="getNavStyleClass" role="tablist">
<template v-for="t in headers">
Expand Down Expand Up @@ -34,7 +34,7 @@ export default {
type: Number,
default: 0
},
customClass: {
cc: {
type: String,
default: ''
}
Expand Down
4 changes: 2 additions & 2 deletions src/TipBox.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="alert container" :class="[boxStyle, customClass]" :style="customStyle">
<div class="alert container" :class="[boxStyle, cc]" :style="customStyle">
<div class="icon-wrapper" v-if="!isDefault">
<span v-html="iconType"></span>
</div>
Expand Down Expand Up @@ -37,7 +37,7 @@
type: String,
default: 'none'
},
customClass: {
cc: {
type: String,
default: ''
}
Expand Down
4 changes: 2 additions & 2 deletions src/Tooltip.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<span :class="[customClass]">
<span :class="[cc]">
<span ref="trigger" v-on:click="false"><slot></slot></span><!--
-->
<transition :name="effect">
Expand Down Expand Up @@ -34,7 +34,7 @@ export default {
type: String,
default: 'top'
},
customClass: {
cc: {
type: String,
default: ''
}
Expand Down
4 changes: 2 additions & 2 deletions src/trigger.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<span ref="trigger" :class="[customClass]"><slot></slot></span>
<span ref="trigger" :class="[cc]"><slot></slot></span>
</template>

<script>
Expand All @@ -17,7 +17,7 @@
_triggerBy: {
type: Object
},
customClass: {
cc: {
type: String,
default: ''
}
Expand Down

0 comments on commit a9fb731

Please sign in to comment.