SelectButton updates
parent
a0c3e47afd
commit
636c89e750
|
@ -1,7 +1,16 @@
|
|||
<template>
|
||||
<div :class="cx('root')" role="group" :aria-labelledby="ariaLabelledby" v-bind="ptmi('root')">
|
||||
<template v-for="(option, index) of options" :key="getOptionRenderKey(option)">
|
||||
<ToggleButton :modelValue="isSelected(option)" :onLabel="getOptionLabel(option)" :offLabel="getOptionLabel(option)" :disabled="disabled" :invalid="invalid" @change="onOptionSelect($event, option, index)" :pt="ptm('button')">
|
||||
<ToggleButton
|
||||
:modelValue="isSelected(option)"
|
||||
:onLabel="getOptionLabel(option)"
|
||||
:offLabel="getOptionLabel(option)"
|
||||
:disabled="disabled"
|
||||
:invalid="invalid"
|
||||
:unstyled="unstyled"
|
||||
@change="onOptionSelect($event, option, index)"
|
||||
:pt="ptm('button')"
|
||||
>
|
||||
<template v-if="$slots.option" #default>
|
||||
<slot name="option" :option="option" :index="index">
|
||||
<span v-bind="ptm('button')['label']">{{ getOptionLabel(option) }}</span>
|
||||
|
|
|
@ -295,7 +295,6 @@ export default {
|
|||
'primevue/message': path.resolve(__dirname, './components/lib/message/Message.vue'),
|
||||
'primevue/tree': path.resolve(__dirname, './components/lib/tree/Tree.vue'),
|
||||
'primevue/badge': path.resolve(__dirname, './components/lib/badge/Badge.vue'),
|
||||
'primevue/selectbutton': path.resolve(__dirname, './components/lib/selectbutton/SelectButton.vue'),
|
||||
'primevue/togglebutton': path.resolve(__dirname, './components/lib/togglebutton/ToggleButton.vue'),
|
||||
'primevue/listbox': path.resolve(__dirname, './components/lib/listbox/Listbox.vue'),
|
||||
'primevue/confirmationeventbus': path.resolve(__dirname, './components/lib/confirmationeventbus/ConfirmationEventBus.js'),
|
||||
|
|
Loading…
Reference in New Issue