vue中页面引入相关写法调用
1、页面调用function函数在methods中引入写法
<el-upload :before-upload="(file) => {return handleBeforeUpload(file, index, maxFiles)}" > </el-upload> export default { methods: { handleBeforeUpload (file, index, maxFiles) { console.log('rr') } } }
2、比如index.vue中添加input不在页面中的样式,如果添加了scoped的话,可以单独在当前页面调用写法
<style lang="less" scoped> #select-box{ overflow:hidden; /deep/ .el-input__inner { background: #fff; color: #333 } } </style>
浙公网安备 33010602011771号