From 9b2cdeae839e77866dc60189bb3a42be0857a04c Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Wed, 22 May 2019 16:49:45 +0300 Subject: [PATCH] Doc refactor for MultiSelect and Dropdown --- src/components/multiselect/MultiSelect.vue | 6 +- src/views/dropdown/DropdownDoc.vue | 2 +- src/views/multiselect/MultiSelectDoc.vue | 273 ++++++++++----------- 3 files changed, 139 insertions(+), 142 deletions(-) diff --git a/src/components/multiselect/MultiSelect.vue b/src/components/multiselect/MultiSelect.vue index 4c9005543..e1be1b52b 100644 --- a/src/components/multiselect/MultiSelect.vue +++ b/src/components/multiselect/MultiSelect.vue @@ -60,7 +60,9 @@ export default { props: { value: null, options: Array, - optionLabel: null, + optionLabel: null, + optionValue: null, + optionDisabled: null, scrollHeight: { type: String, default: '200px' @@ -70,8 +72,6 @@ export default { filter: Boolean, tabindex: String, dataKey: null, - optionValue: null, - optionDisabled: null, filterPlaceholder: String }, data() { diff --git a/src/views/dropdown/DropdownDoc.vue b/src/views/dropdown/DropdownDoc.vue index 10372c1cb..ff93acfe1 100644 --- a/src/views/dropdown/DropdownDoc.vue +++ b/src/views/dropdown/DropdownDoc.vue @@ -39,7 +39,7 @@ data() {

Custom Content

-

Label of an option is used as the display text of an item by default, for custom content support define an item template that gets the option instance as a parameter and returns the content.

+

Label of an option is used as the display text of an item by default, for custom content support define an option template that gets the option instance as a parameter.