I use Vue's single file components and wanted to try iView UI framework. Consider there is following piece of code:
<template>
<div>
<i-input class="cred"/>
</div>
</template>
Then I want to change the width of my input. Just for example, to check that changes take effect:
<style scoped>
input {
width: 10px;
}
</style>
But it has no effect. Tried i-input too.
<style scoped>
.cred {
width: 10px;
}
</style>
Works as expected.
Which CSS selector should I use?
Vue/iView allows you to use the inline
styleattribute and pass it a width, or you can change the.ivu-input-wrapperCSS class and give it thewithyou want.