【问题标题】:how to change color text of selected value (text, no background) in quasar q-selecthow to change color text of selected value (text, no background) in quasar q-select
【发布时间】:2022-12-28 04:30:32
【问题描述】:

How can I change the color of the selected value? It always stays black

It looks like this:

i have this code

<div>
  <q-select
            dense
            bg-color="red"
            standout="text-white"
            v-model="langModel"
            :options="options"
            option-label="LAN_NAME_HEB"
            @update:model-value = langSelected
            style="width: 110px;"
  />
</div>

【问题讨论】:

    标签: vuejs3 quasar


    【解决方案1】:
    .q-field__native, .q-field__prefix, .q-field__suffix, .q-field__input {
        color: red !important;
    }
    

    you can add this to your style - but it will change the color of every q-select. Hopefully that's what you're looking for

    【讨论】:

      猜你喜欢
      • 2022-12-02
      • 2022-12-26
      • 2022-12-16
      • 2022-07-28
      • 2022-12-02
      • 2022-12-26
      • 2022-12-27
      • 2022-12-01
      相关资源
      最近更新 更多