admin管理员组文章数量:1429433
I'm using q-select to display the months and the font size is quite small so I want to make the options larger. I tried changing the font-size in css but it didn't work.
My select atm
<q-select
ref="month"
input-style="zoom: 1.2; text-align: right;"
rounded outlined
clearable
class="text-h4"
v-model="oMonth"
:options="oMonths"
/>
What the output looks like months selection
I'm using q-select to display the months and the font size is quite small so I want to make the options larger. I tried changing the font-size in css but it didn't work.
My select atm
<q-select
ref="month"
input-style="zoom: 1.2; text-align: right;"
rounded outlined
clearable
class="text-h4"
v-model="oMonth"
:options="oMonths"
/>
What the output looks like months selection
Share Improve this question asked May 21, 2021 at 9:44 renaise21renaise21 2713 silver badges13 bronze badges1 Answer
Reset to default 5The <q-select>
attributes you need to affect the appearance of the popup menu and its option items are popup-content-class
and/or popup-content-style
. (You can also use the option
slot if you need more control over the content of each item.)
Something along these lines would work, for h6-sized text:
<q-select
ref="month"
input-style="zoom: 1.2; text-align: right;"
rounded outlined
clearable
class="text-h4"
popup-content-class="text-h6"
v-model="oMonth"
:options="oMonths"
/>
本文标签: javascriptMake select options larger in qselect quasarStack Overflow
版权声明:本文标题:javascript - Make select options larger in q-select quasar - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745461760a2659355.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论