diff --git a/components/lib/autocomplete/AutoComplete.d.ts b/components/lib/autocomplete/AutoComplete.d.ts index 14e97bccd..99c1ca773 100755 --- a/components/lib/autocomplete/AutoComplete.d.ts +++ b/components/lib/autocomplete/AutoComplete.d.ts @@ -631,8 +631,14 @@ export interface AutoCompleteSlots { /** * Remove token icon function. * @param {Event} event - Browser event + * @deprecated since v3.39.0. Use 'removeCallback' property instead. */ onClick: (event: Event, index: number) => void; + /** + * Remove token icon function. + * @param {Event} event - Browser event + */ + removeCallback: (event: Event, index: number) => void; }): VNode[]; /** * Custom loading icon template. diff --git a/components/lib/autocomplete/AutoComplete.vue b/components/lib/autocomplete/AutoComplete.vue index 5b262baad..a70474dfe 100755 --- a/components/lib/autocomplete/AutoComplete.vue +++ b/components/lib/autocomplete/AutoComplete.vue @@ -55,7 +55,7 @@ {{ getOptionLabel(option) }} - + diff --git a/components/lib/chip/Chip.d.ts b/components/lib/chip/Chip.d.ts index bfa8a51f9..ef261634c 100644 --- a/components/lib/chip/Chip.d.ts +++ b/components/lib/chip/Chip.d.ts @@ -150,13 +150,25 @@ export interface ChipSlots { /** * Remove icon click event * @param {Event} event - Browser event + * @deprecated since v3.39.0. Use 'removeCallback' property instead. */ onClick: (event: Event) => void; /** * Remove icon keydown event * @param {Event} event - Browser event + * @deprecated since v3.39.0. Use 'keydownCallback' property instead. */ onKeydown: (event: Event) => void; + /** + * Remove icon click event + * @param {Event} event - Browser event + */ + removeCallback: (event: Event) => void; + /** + * Remove icon keydown event + * @param {Event} event - Browser event + */ + keydownCallback: (event: Event) => void; }): VNode[]; } diff --git a/components/lib/chip/Chip.vue b/components/lib/chip/Chip.vue index 2e16daf3f..2a6ec0a5d 100644 --- a/components/lib/chip/Chip.vue +++ b/components/lib/chip/Chip.vue @@ -6,7 +6,7 @@
{{ label }}
- + diff --git a/components/lib/chips/Chips.d.ts b/components/lib/chips/Chips.d.ts index a5f1b4167..aa3cdc4c5 100755 --- a/components/lib/chips/Chips.d.ts +++ b/components/lib/chips/Chips.d.ts @@ -238,8 +238,14 @@ export interface ChipsSlots { /** * Remove token icon function. * @param {Event} event - Browser event + * @deprecated since v3.39.0. Use 'removeCallback' property instead. */ onClick: (event: Event, index: number) => void; + /** + * Remove token icon function. + * @param {Event} event - Browser event + */ + removeCallback: (event: Event, index: number) => void; }): VNode[]; } /** diff --git a/components/lib/chips/Chips.vue b/components/lib/chips/Chips.vue index c5df6f5c0..598382cec 100755 --- a/components/lib/chips/Chips.vue +++ b/components/lib/chips/Chips.vue @@ -31,7 +31,7 @@ {{ val }} - + diff --git a/components/lib/dropdown/Dropdown.d.ts b/components/lib/dropdown/Dropdown.d.ts index f4ccc33da..1eeef6179 100755 --- a/components/lib/dropdown/Dropdown.d.ts +++ b/components/lib/dropdown/Dropdown.d.ts @@ -592,8 +592,14 @@ export interface DropdownSlots { /** * Clear icon click function. * @param {Event} event - Browser event + * @deprecated since v3.39.0. Use 'clearCallback' property instead. */ onClick: (event: Event) => void; + /** + * Clear icon click function. + * @param {Event} event - Browser event + */ + clearCallback: (event: Event) => void; }): VNode[]; /** * Custom dropdown icon template. diff --git a/components/lib/dropdown/Dropdown.vue b/components/lib/dropdown/Dropdown.vue index 94c434d60..a97f59e47 100755 --- a/components/lib/dropdown/Dropdown.vue +++ b/components/lib/dropdown/Dropdown.vue @@ -47,7 +47,7 @@ > {{ label === 'p-emptylabel' ? ' ' : label || 'empty' }} - +
diff --git a/components/lib/image/Image.d.ts b/components/lib/image/Image.d.ts index 892cb670d..379a0c5db 100644 --- a/components/lib/image/Image.d.ts +++ b/components/lib/image/Image.d.ts @@ -251,8 +251,13 @@ export interface ImageSlots { style: any; /** * Image error function. + * @deprecated since v3.39.0. Use 'errorCallback' property instead. */ onError: () => void; + /** + * Preview click function. + */ + errorCallback: () => void; }): VNode[]; /** * Custom preview template. @@ -269,8 +274,13 @@ export interface ImageSlots { style: any; /** * Preview click function. + * @deprecated since v3.39.0. Use 'previewCallback' property instead. */ onClick: () => void; + /** + * Preview click function. + */ + previewCallback: () => void; }): VNode[]; } diff --git a/components/lib/image/Image.vue b/components/lib/image/Image.vue index 5abdfa650..e63e935e7 100644 --- a/components/lib/image/Image.vue +++ b/components/lib/image/Image.vue @@ -1,6 +1,6 @@