From f24aeeca00f679a7bb8f8f4d4cee164506ac6910 Mon Sep 17 00:00:00 2001 From: Leopoldthecoder Date: Sun, 12 Nov 2017 20:56:18 +0800 Subject: [PATCH] Select: add collapse-tags --- examples/docs/en-US/select.md | 18 +++++++++++++++++- examples/docs/zh-CN/select.md | 18 +++++++++++++++++- packages/select/src/select.vue | 19 +++++++++++++++++-- packages/theme-chalk/src/select.scss | 9 +++++++++ 4 files changed, 60 insertions(+), 4 deletions(-) diff --git a/examples/docs/en-US/select.md b/examples/docs/en-US/select.md index 79e85c45b..abff1c601 100644 --- a/examples/docs/en-US/select.md +++ b/examples/docs/en-US/select.md @@ -101,6 +101,7 @@ value8: '', value9: [], value10: [], + value11: [], loading: false, states: ["Alabama", "Alaska", "Arizona", "Arkansas", "California", "Colorado", "Connecticut", "Delaware", "Florida", "Georgia", "Hawaii", "Idaho", "Illinois", "Indiana", "Iowa", "Kansas", "Kentucky", "Louisiana", "Maine", "Maryland", "Massachusetts", "Michigan", "Minnesota", "Mississippi", "Missouri", "Montana", "Nebraska", "Nevada", "New Hampshire", "New Jersey", "New Mexico", "New York", "North Carolina", "North Dakota", "Ohio", "Oklahoma", "Oregon", "Pennsylvania", "Rhode Island", "South Carolina", "South Dakota", "Tennessee", "Texas", "Utah", "Vermont", "Virginia", "Washington", "West Virginia", "Wisconsin", "Wyoming"] }; @@ -320,7 +321,7 @@ You can clear Select using a clear icon. Multiple select uses tags to display selected options. -:::demo Set `multiple` attribute for `el-select` to enable multiple mode. In this case, the value of `v-model` will be an array of selected options. +:::demo Set `multiple` attribute for `el-select` to enable multiple mode. In this case, the value of `v-model` will be an array of selected options. By default the selected options will be displayed as Tags. You can collapse them to a text by using `collapse-tags` attribute. ```html