From 3d3d65c2b49097d1a4924d6d31558639eeb80936 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Wed, 24 Jan 2024 12:30:47 +0000 Subject: [PATCH 1/2] Refactor #5141 --- components/lib/dropdown/BaseDropdown.vue | 2 +- components/lib/dropdown/Dropdown.d.ts | 8 ++++---- components/lib/dropdown/Dropdown.vue | 4 ++-- components/lib/dropdown/style/DropdownStyle.js | 2 +- doc/dropdown/{TickDoc.vue => CheckmarkDoc.vue} | 10 +++++----- pages/dropdown/index.vue | 8 ++++---- 6 files changed, 17 insertions(+), 17 deletions(-) rename doc/dropdown/{TickDoc.vue => CheckmarkDoc.vue} (80%) diff --git a/components/lib/dropdown/BaseDropdown.vue b/components/lib/dropdown/BaseDropdown.vue index 3d3681f39..5e2a541b0 100644 --- a/components/lib/dropdown/BaseDropdown.vue +++ b/components/lib/dropdown/BaseDropdown.vue @@ -134,7 +134,7 @@ export default { type: Boolean, default: true }, - showTick: { + checkmark: { type: Boolean, default: false }, diff --git a/components/lib/dropdown/Dropdown.d.ts b/components/lib/dropdown/Dropdown.d.ts index 19140bb16..1f1fba8cb 100755 --- a/components/lib/dropdown/Dropdown.d.ts +++ b/components/lib/dropdown/Dropdown.d.ts @@ -152,9 +152,9 @@ export interface DropdownPassThroughOptions { */ itemLabel?: DropdownPassThroughOptionType; /** - * Used to pass attributes to the tick icon's DOM element. + * Used to pass attributes to the check icon's DOM element. */ - tickIcon?: DropdownPassThroughOptionType; + checkIcon?: DropdownPassThroughOptionType; /** * Used to pass attributes to the bank icon's DOM element. */ @@ -440,10 +440,10 @@ export interface DropdownProps { */ highlightOnSelect?: boolean | undefined; /** - * Whether the selected option will be shown with a tick. + * Whether the selected option will be shown with a check mark. * @defaultValue false */ - showTick?: boolean | undefined; + checkmark?: boolean | undefined; /** * Text to be displayed in hidden accessible field when filtering returns any results. Defaults to value from PrimeVue locale configuration. * @defaultValue '{0} results are available' diff --git a/components/lib/dropdown/Dropdown.vue b/components/lib/dropdown/Dropdown.vue index 9088d1c14..719ba3679 100755 --- a/components/lib/dropdown/Dropdown.vue +++ b/components/lib/dropdown/Dropdown.vue @@ -129,8 +129,8 @@ :data-p-disabled="isOptionDisabled(option)" v-bind="getPTItemOptions(option, getItemOptions, i, 'item')" > -