简体   繁体   English

为 Quasar 中的选项添加标题 select

[英]Add title for options in Quasar select

Hello guys, I need to make a title for options in q-select.大家好,我需要为 q-select 中的选项制作一个标题。 but I didn't find anything like that in the Quasar documentation, If anyone has experience with Quasar please let me know.但我没有在 Quasar 文档中找到类似的内容,如果有人使用过 Quasar,请告诉我。 thanks.谢谢。

PS Picture for example PS 图片为例

It's easy use before-options slot before-options很容易使用

<q-select
        filled
        v-model="model"
        :options="options"
        label="Options"
      >
        <template v-slot:before-options>
          <q-item>
            <q-item-section class="text-italic text-grey">
              No options slot
            </q-item-section>
          </q-item>
        </template>
      </q-select>

Codepen - https://codepen.io/Pratik__007/pen/jOxZqyz Codepen - https://codepen.io/Pratik__007/pen/jOxZqyz

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM