mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Refactor #5548 - For Chips
This commit is contained in:
parent
916825df76
commit
e53d18f323
2 changed files with 26 additions and 9 deletions
20
components/lib/chips/Chips.d.ts
vendored
20
components/lib/chips/Chips.d.ts
vendored
|
@ -9,6 +9,7 @@
|
|||
*/
|
||||
import { InputHTMLAttributes, VNode } from 'vue';
|
||||
import { ComponentHooks } from '../basecomponent';
|
||||
import { ChipPassThroughOptions } from '../chip';
|
||||
import { PassThroughOptions } from '../passthrough';
|
||||
import { ClassComponent, DesignToken, GlobalComponentConstructor, PassThrough } from '../ts-helpers';
|
||||
|
||||
|
@ -44,6 +45,20 @@ export interface ChipsPassThroughMethodOptions {
|
|||
global: object | undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
* Custom shared passthrough(pt) option method.
|
||||
*/
|
||||
export interface ChipsSharedPassThroughMethodOptions {
|
||||
/**
|
||||
* Defines valid properties.
|
||||
*/
|
||||
props: ChipsProps;
|
||||
/**
|
||||
* Defines current inline state.
|
||||
*/
|
||||
state: ChipsState;
|
||||
}
|
||||
|
||||
/**
|
||||
* Custom add event.
|
||||
* @see {@link ChipsEmits.add}
|
||||
|
@ -84,9 +99,10 @@ export interface ChipsPassThroughOptions {
|
|||
*/
|
||||
token?: ChipsPassThroughOptionType;
|
||||
/**
|
||||
* Used to pass attributes to the label's DOM element.
|
||||
* Used to pass attributes to the Chip component.
|
||||
* @see {@link ChipPassThroughOptions}
|
||||
*/
|
||||
label?: ChipsPassThroughOptionType;
|
||||
label?: ChipPassThroughOptions<ChipsSharedPassThroughMethodOptions>;
|
||||
/**
|
||||
* Used to pass attributes to the remove token icon's DOM element.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue