繁体   English   中英

为 Quasar 中的选项添加标题 select

[英]Add title for options in Quasar select

大家好,我需要为 q-select 中的选项制作一个标题。 但我没有在 Quasar 文档中找到类似的内容,如果有人使用过 Quasar,请告诉我。 谢谢。

PS 图片为例

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

暂无
暂无

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

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