From ad2680a1b5c7b585f40a7fa502394bfb988309b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Tue, 23 May 2023 12:13:26 +0300 Subject: [PATCH] Refactor #3965 - For Dropdown --- components/lib/dropdown/BaseDropdown.vue | 324 ++++++++++++++++++ components/lib/dropdown/Dropdown.d.ts | 11 +- components/lib/dropdown/Dropdown.vue | 404 ++++++----------------- 3 files changed, 426 insertions(+), 313 deletions(-) create mode 100644 components/lib/dropdown/BaseDropdown.vue diff --git a/components/lib/dropdown/BaseDropdown.vue b/components/lib/dropdown/BaseDropdown.vue new file mode 100644 index 000000000..711ff904e --- /dev/null +++ b/components/lib/dropdown/BaseDropdown.vue @@ -0,0 +1,324 @@ + diff --git a/components/lib/dropdown/Dropdown.d.ts b/components/lib/dropdown/Dropdown.d.ts index a3647500a..0d96ef3cc 100755 --- a/components/lib/dropdown/Dropdown.d.ts +++ b/components/lib/dropdown/Dropdown.d.ts @@ -119,7 +119,7 @@ export interface DropdownPassThroughOptions { */ item?: DropdownPassThroughOptionType; /** - * Uses to pass attributes to the emptyMessage's DOM element. + * Uses to pass attributes to the empty message's DOM element. */ emptyMessage?: DropdownPassThroughOptionType; /** @@ -130,6 +130,10 @@ export interface DropdownPassThroughOptions { * Uses to pass attributes to the hidden filter result's DOM element. */ hiddenFilterResult?: DropdownPassThroughOptionType; + /** + * Uses to pass attributes to the hidden empty message's DOM element. + */ + hiddenEmptyMessage?: DropdownPassThroughOptionType; /** * Uses to pass attributes to the hidden selected message's DOM element. */ @@ -412,6 +416,11 @@ export interface DropdownProps { * @type {DropdownPassThroughOptions} */ pt?: DropdownPassThroughOptions; + /** + * When enabled, it removes component related styles in the core. + * @defaultValue false + */ + unstyled?: boolean; } /** diff --git a/components/lib/dropdown/Dropdown.vue b/components/lib/dropdown/Dropdown.vue index 0bc3ba0d6..df0293277 100755 --- a/components/lib/dropdown/Dropdown.vue +++ b/components/lib/dropdown/Dropdown.vue @@ -1,12 +1,12 @@