PT name updates
parent
0b6013a978
commit
007ed56d06
|
@ -60,6 +60,14 @@ export interface DataViewLayoutOptionsPassThroughOptions {
|
||||||
* @see {@link SelectButtonPassThroughOptions}
|
* @see {@link SelectButtonPassThroughOptions}
|
||||||
*/
|
*/
|
||||||
root?: SelectButtonPassThroughOptions<DataViewLayoutOptionsSharedPassThroughMethodOptions>;
|
root?: SelectButtonPassThroughOptions<DataViewLayoutOptionsSharedPassThroughMethodOptions>;
|
||||||
|
/**
|
||||||
|
* Used to pass attributes to the list icon's DOM element.
|
||||||
|
*/
|
||||||
|
listIcon?: DataViewLayoutOptionsPassThroughOptionType;
|
||||||
|
/**
|
||||||
|
* Used to pass attributes to the grid icon's DOM element.
|
||||||
|
*/
|
||||||
|
gridIcon?: DataViewLayoutOptionsPassThroughOptionType;
|
||||||
/**
|
/**
|
||||||
* Used to manage all lifecycle hooks.
|
* Used to manage all lifecycle hooks.
|
||||||
* @see {@link BaseComponent.ComponentHooks}
|
* @see {@link BaseComponent.ComponentHooks}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<SelectButton :class="cx('root')" :modelValue="modelValue" :options="options" :allowEmpty="false" :unstyled="unstyled" @update:modelValue="changeLayout">
|
<SelectButton :class="cx('root')" :modelValue="modelValue" :options="options" :allowEmpty="false" :unstyled="unstyled" :pt="ptm('selectbutton')" @update:modelValue="changeLayout">
|
||||||
<template #option="{ option }">
|
<template #option="{ option }">
|
||||||
<slot v-if="option === 'list'" name="listicon">
|
<slot v-if="option === 'list'" name="listicon">
|
||||||
<BarsIcon v-bind="ptm('listIcon')" />
|
<BarsIcon v-bind="ptm('listIcon')" />
|
||||||
|
|
Loading…
Reference in New Issue