Skip to content

Commit c615610

Browse files
committed
refactor: delete value prop in CSwitch and CInputCheckbox components
1 parent 46af241 commit c615610

File tree

6 files changed

+0
-18
lines changed

6 files changed

+0
-18
lines changed

src/components/form/CInputCheckbox.vue

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
:id="safeId"
88
:type="$options.type"
99
:class="inputClasses"
10-
:value="value"
1110
:checked="state"
1211
@change="onChange($event)"
1312
/>
@@ -60,10 +59,6 @@ export default {
6059
// addLabelClasses: [String, Array, Object],
6160
6261
// checked: [Boolean, String, Number],
63-
// value: {
64-
// type: [String, Number, Boolean],
65-
// default: undefined
66-
// },
6762
// custom: Boolean,
6863
// inline: Boolean
6964
// },

src/components/form/form-props.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,6 @@ export const selectProps = Object.assign(
7878
export const inputCheckboxProps = Object.assign(
7979
{}, formGroupAlwaysSharedProps, universalProps, {
8080
checked: Boolean,
81-
value: {
82-
type: [String, Number, Boolean],
83-
default: undefined
84-
},
8581
custom: Boolean,
8682
inline: Boolean
8783
})

src/components/form/tests/__snapshots__/CInputCheckbox.spec.js.snap

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ exports[`CInputCheckbox renders correctly basic checkbox 1`] = `
5858
class="form-check-input"
5959
id="some_id"
6060
type="checkbox"
61-
value=""
6261
/>
6362
6463
<label

src/components/index.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@ export declare class CInputRadio extends formSharedProps {
217217
addLabelClasses: [string, Array<any>, object]
218218

219219
checked: boolean
220-
value: [string, number, boolean]
221220
custom: boolean
222221
inline: boolean
223222
}
@@ -521,7 +520,6 @@ export declare class CSwitch extends Vue {
521520
size: string
522521
shape: string
523522
checked: boolean
524-
value: [string, number, boolean]
525523
labelOn: string
526524
labelOff: string
527525
type: string

src/components/switch/CSwitch.vue

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
v-bind="$attrs"
55
:type="type"
66
:checked="state"
7-
:value="value"
87
class="c-switch-input form-check-input"
98
@change="onChange"
109
>
@@ -36,10 +35,6 @@ export default {
3635
validator: value => ['','pill', 'square'].includes(value)
3736
},
3837
checked: Boolean,
39-
value: {
40-
type: [String, Number, Boolean],
41-
default: undefined
42-
},
4338
labelOn: String,
4439
labelOff: String,
4540
type: {

src/components/switch/tests/__snapshots__/CSwitch.spec.js.snap

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ exports[`CSwitch renders correctly 1`] = `
77
<input
88
class="c-switch-input form-check-input"
99
type="radio"
10-
value=""
1110
/>
1211
1312
<span

0 commit comments

Comments
 (0)