代码太多了,应该怎么分开引入,小白求解
//index.vue
<script>
import template from './index.html'
export default {
template
}
</script>
<style scoped>
@import './index.css';
</style>
//index.html
<input type="text" class="input">
//index.css
.input {
width: 100%;
padding: 8px 10px;
border: 1px solid blue;
}
10 回答11.2k 阅读
6 回答3k 阅读
5 回答4.8k 阅读✓ 已解决
4 回答3.1k 阅读✓ 已解决
2 回答2.7k 阅读✓ 已解决
2 回答4.7k 阅读✓ 已解决
4 回答4.3k 阅读✓ 已解决
<template>
<div>This will be pre-compiled</div>
</template>
<script src="./my-component.js"></script>
<style src="./my-component.css"></style>