Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 951b13e

Browse filesBrowse files
committed
refactor: changes of naming in CSwitch (breaking change)
1 parent 591077f commit 951b13e
Copy full SHA for 951b13e

File tree

1 file changed

+4
-4
lines changed
Filter options

1 file changed

+4
-4
lines changed

‎src/components/Switch/CSwitch.vue

Copy file name to clipboardExpand all lines: src/components/Switch/CSwitch.vue
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export default {
4545
return 'switch-id-' + this._uid;
4646
},
4747
},
48-
color: {
48+
variant: {
4949
type: String,
5050
default: 'secondary'
5151
},
@@ -95,7 +95,7 @@ export default {
9595
uncheckedValue: {
9696
default: false
9797
},
98-
variant: {
98+
shape: {
9999
type: String,
100100
default: null,
101101
validator: value => [null, '3d', 'pill'].indexOf(value) !== -1
@@ -115,8 +115,8 @@ export default {
115115
'switch',
116116
this.label ? 'switch-label' : '',
117117
this.size ? `switch-${this.size}` : '',
118-
this.variant ? `switch-${this.variant}` : '',
119-
`switch${this.outline ? '-outline' : ''}-${this.color}${this.outline==='alt' ? '-alt' : ''}`,
118+
this.shape ? `switch-${this.shape}` : '',
119+
`switch${this.outline ? '-outline' : ''}-${this.variant}${this.outline==='alt' ? '-alt' : ''}`,
120120
'form-check-label'
121121
]
122122
},

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.