Skip to content

Commit 6b38663

Browse files
author
bootstrap-vue-bot
committed
ESLint
1 parent c737268 commit 6b38663

File tree

4 files changed

+387
-387
lines changed

4 files changed

+387
-387
lines changed

components/button.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
default: 'primary'
6868
},
6969
to: {
70-
type: [String, Object],
70+
type: [String, Object]
7171
},
7272
href: {
7373
type: String
@@ -77,7 +77,7 @@
7777
default: false
7878
},
7979
target: {
80-
type: String,
80+
type: String
8181
}
8282
},
8383
methods: {

components/form-input.vue

Lines changed: 72 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -29,88 +29,88 @@
2929
</template>
3030

3131
<script>
32-
export default {
33-
computed: {
34-
inputState() {
35-
const state = this.state || this.$parent.state;
36-
return state ? `form-control-${state}` : '';
37-
},
38-
inputSize() {
39-
return this.size ? `form-control-${this.size}` : '';
40-
}
32+
export default {
33+
computed: {
34+
inputState() {
35+
const state = this.state || this.$parent.state;
36+
return state ? `form-control-${state}` : '';
4137
},
42-
methods: {
43-
format(value) {
44-
if (this.formatter) {
45-
const formattedValue = this.formatter(value);
46-
if (formattedValue !== value) {
47-
value = formattedValue;
48-
this.$refs.input.value = formattedValue;
49-
}
50-
}
51-
return value;
52-
},
53-
onInput(value) {
54-
if (!this.lazyFormatter) {
55-
value = this.format(value);
38+
inputSize() {
39+
return this.size ? `form-control-${this.size}` : '';
40+
}
41+
},
42+
methods: {
43+
format(value) {
44+
if (this.formatter) {
45+
const formattedValue = this.formatter(value);
46+
if (formattedValue !== value) {
47+
value = formattedValue;
48+
this.$refs.input.value = formattedValue;
5649
}
57-
this.$emit('input', value);
58-
},
59-
onChange(value) {
50+
}
51+
return value;
52+
},
53+
onInput(value) {
54+
if (!this.lazyFormatter) {
6055
value = this.format(value);
61-
this.$emit('input', value);
62-
this.$emit('change', value);
63-
},
64-
onKeyUp(e) {
65-
this.$emit('keyup', e);
6656
}
57+
this.$emit('input', value);
58+
},
59+
onChange(value) {
60+
value = this.format(value);
61+
this.$emit('input', value);
62+
this.$emit('change', value);
63+
},
64+
onKeyUp(e) {
65+
this.$emit('keyup', e);
66+
}
67+
},
68+
props: {
69+
value: {
70+
type: [String, Number],
71+
default: null
72+
},
73+
type: {
74+
type: String,
75+
default: 'text'
6776
},
68-
props: {
69-
value: {
70-
type: [String, Number],
71-
default: null
72-
},
73-
type: {
74-
type: String,
75-
default: 'text'
76-
},
7777
78-
name: {
79-
type: String,
80-
default: null
81-
},
82-
placeholder: {
83-
type: String,
84-
default: null
85-
},
78+
name: {
79+
type: String,
80+
default: null
81+
},
82+
placeholder: {
83+
type: String,
84+
default: null
85+
},
8686
87-
size: {
88-
type: String,
89-
default: null
90-
},
87+
size: {
88+
type: String,
89+
default: null
90+
},
9191
92-
rows: {
93-
type: Number,
94-
default: null
95-
},
92+
rows: {
93+
type: Number,
94+
default: null
95+
},
9696
97-
textarea: {
98-
type: Boolean,
99-
default: false
100-
},
97+
textarea: {
98+
type: Boolean,
99+
default: false
100+
},
101101
102-
state: {
103-
type: String,
104-
default: null
105-
},
106-
formatter: {
107-
type: Function
108-
},
109-
lazyFormatter: {
110-
type: Boolean,
111-
default: false
112-
}
102+
state: {
103+
type: String,
104+
default: null
105+
},
106+
formatter: {
107+
type: Function
108+
},
109+
lazyFormatter: {
110+
type: Boolean,
111+
default: false
113112
}
114-
};
113+
}
114+
};
115115
116116
</script>

components/nav-item.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,17 @@
4040
default: false
4141
},
4242
to: {
43-
type: [String, Object],
43+
type: [String, Object]
4444
},
4545
href: {
46-
type: String,
46+
type: String
4747
},
4848
exact: {
4949
type: Boolean,
5050
default: false
5151
},
5252
target: {
53-
type: String,
53+
type: String
5454
}
5555
},
5656
methods: {

0 commit comments

Comments
 (0)