From a9fe3617e4170c854a2e305c2b79ac16beebe2e6 Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Tue, 7 Apr 2020 12:22:46 +0300 Subject: [PATCH] Fixed #252 - Separator, addOnBlur and allowDuplicate for Chips --- src/components/chips/Chips.d.ts | 3 ++ src/components/chips/Chips.vue | 87 +++++++++++++++++++++++++++------ src/views/chips/ChipsDemo.vue | 8 ++- src/views/chips/ChipsDoc.vue | 42 ++++++++++++---- 4 files changed, 113 insertions(+), 27 deletions(-) diff --git a/src/components/chips/Chips.d.ts b/src/components/chips/Chips.d.ts index bd7ee9de8..3bb966dc5 100644 --- a/src/components/chips/Chips.d.ts +++ b/src/components/chips/Chips.d.ts @@ -4,6 +4,9 @@ export declare class Chips extends Vue { value?: any[]; max?: number; ariaLabelledBy?: string; + addOnBlur?: boolean; + allowDuplicate?: boolean; + separator?: string; $emit(eventName: 'focus', event: Event): this; $emit(eventName: 'blur', event: Event): this; $emit(eventName: 'input', value: any[]): this; diff --git a/src/components/chips/Chips.vue b/src/components/chips/Chips.vue index e24dcbadd..2c4f1788f 100644 --- a/src/components/chips/Chips.vue +++ b/src/components/chips/Chips.vue @@ -8,7 +8,8 @@
  • - +
  • @@ -17,9 +18,30 @@