代码太多了,应该怎么分开引入,小白求解
//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;
}
13 回答12.9k 阅读
7 回答2.1k 阅读
9 回答1.7k 阅读✓ 已解决
6 回答1k 阅读
3 回答1.3k 阅读✓ 已解决
3 回答1.4k 阅读✓ 已解决
2 回答1.3k 阅读✓ 已解决
<template>
<div>This will be pre-compiled</div>
</template>
<script src="./my-component.js"></script>
<style src="./my-component.css"></style>