Skip to content

Commit 49f3920

Browse files
fix lint error
1 parent 5e75578 commit 49f3920

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

components/CaGrid/CaFlex.vue

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,22 @@ export default {
2020
},
2121
computed: {
2222
bindClass() {
23-
const breakpoints = this.col.split(' ')
24-
let res = ''
25-
breakpoints.forEach(bp => {
26-
res += `ca-flex__${bp} `
27-
})
28-
const offsets = this.offset ? this.offset.split(' ') : []
29-
offsets.forEach(os => {
30-
res += `ca-flex__offset-${os} `
31-
})
32-
return res
23+
const breakpoints = this.col.split(' ');
24+
let res = '';
25+
breakpoints.forEach((bp) => {
26+
res += `ca-flex__${bp} `;
27+
});
28+
const offsets = this.offset ? this.offset.split(' ') : [];
29+
offsets.forEach((os) => {
30+
res += `ca-flex__offset-${os} `;
31+
});
32+
return res;
3333
},
3434
},
3535
};
3636
</script>
3737

38-
<style>
38+
<style src="./ca-flex.css">
3939
/* TODO: use preprocessor to refactor this code ? */
4040
@media only screen and (max-width: 600px) {
4141
.ca-flex__offset-xs1 {

0 commit comments

Comments
 (0)