javascript - Make select options larger in q-select quasar - Stack Overflow

I'm using q-select to display the months and the font size is quite small so I want to make the op

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 badges
Add a ment  | 

1 Answer 1

Reset to default 5

The <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"
          /> 

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745461760a4628739.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信