add eslint

This commit is contained in:
Yanzhen Yu
2018-10-17 14:14:44 +08:00
parent 2eed038e6b
commit 904cc493db
6 changed files with 55 additions and 19 deletions

View File

@@ -1,4 +1,4 @@
<div class="rr-player">
<div class="rr-player" { style }>
rrplayer
</div>
@@ -9,9 +9,23 @@
</style>
<script>
import { inlineCss } from '../util.js';
export default {
data() {
return {}
}
}
</script>
return {
width: 1024,
height: 576,
};
},
computed: {
style({ width, height }) {
return inlineCss({
width: `${width}px`,
height: `${height}px`,
});
},
},
};
</script>