Refactor #4274 - For SpeedDial
parent
2c47b9447a
commit
1d67d47c43
|
@ -262,9 +262,10 @@ export interface SpeedDialSlots {
|
|||
*/
|
||||
item: MenuItem;
|
||||
/**
|
||||
* ıtem click function
|
||||
* Item click function
|
||||
* @param {Event} event - Browser event.
|
||||
*/
|
||||
onClick: void;
|
||||
onClick(): void;
|
||||
}): VNode[];
|
||||
/**
|
||||
* Custom button template.
|
||||
|
@ -272,9 +273,10 @@ export interface SpeedDialSlots {
|
|||
*/
|
||||
button(scope: {
|
||||
/**
|
||||
* Toggle metadata
|
||||
* Button click function
|
||||
* @param {Event} event - Browser event.
|
||||
*/
|
||||
toggle(): void;
|
||||
onClick(): void;
|
||||
}): VNode[];
|
||||
/**
|
||||
* Custom icon template.
|
||||
|
@ -282,7 +284,7 @@ export interface SpeedDialSlots {
|
|||
*/
|
||||
icon(scope: {
|
||||
/**
|
||||
*
|
||||
* Visible state of the item
|
||||
*/
|
||||
visible: boolean;
|
||||
}): VNode[];
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<div :ref="containerRef" :class="containerClass" :style="[style, sx('root')]" v-bind="ptm('root')" data-pc-name="speeddial">
|
||||
<slot name="button" :toggle="onClick">
|
||||
<slot name="button" :onClick="onClick">
|
||||
<SDButton
|
||||
type="button"
|
||||
:class="[cx('button'), buttonClass]"
|
||||
|
|
Loading…
Reference in New Issue