<q-btn-toggle v-model="searchInfo.ViewType" flat toggle-color="primary" @click="bindBaseInfo" :options="[ {label: 'In Process', value: 'InProcess', tabSelected}, {label: 'In Clarification ('+ InClarificationCount +')', value: 'InClarification'}, {label: 'Supplement Event Details ('+ SupplementEventDetailsCount +')', value: 'SupplementEventDetails'}, {label: 'Completed', value: 'Completed'}, {label: 'All', value: 'All'}, ]" /> 如何加粗('+ InClarificationCount +')里的内容
时间: 2023-09-13 08:10:47 浏览: 73
vue-toggle-btn-高度可定制,易于使用的优雅切换/切换按钮组件-Vue.js开发
可以使用 HTML 标签 <b> 或 <strong> 来加粗文本。因为该代码中使用了单引号,可以使用双引号来包含 HTML 标签,如下所示:
```
<q-btn-toggle v-model="searchInfo.ViewType" flat toggle-color="primary" @click="bindBaseInfo" :options="[ {label: 'In Process', value: 'InProcess', tabSelected}, {label: 'In Clarification (<strong>' + InClarificationCount + '</strong>)', value: 'InClarification'}, {label: 'Supplement Event Details (<strong>' + SupplementEventDetailsCount + '</strong>)', value: 'SupplementEventDetails'}, {label: 'Completed', value: 'Completed'}, {label: 'All', value: 'All'}, ]" />
```
这样可以在 InClarificationCount 和 SupplementEventDetailsCount 的值周围添加 <strong> 标签,使其加粗显示。
阅读全文