Skip to content

Latest commit

 

History

History
48 lines (37 loc) · 1007 Bytes

README.md

File metadata and controls

48 lines (37 loc) · 1007 Bytes

vue-select-added

A Vue.js 2.0 select added component

test

Installation

NPM / Yarn

npm install vue-select-added --save

Then you need to import and register it:

import SelectAdded from "vue-select-added";
components: {
  SelectAdded;
}

Usage

<SelectAdded
  :allArr="items"
  v-model="selectValue"
/>

Props

Name Type Default Description
value Array [] Selected value
allArr Array [] Available options
multiple Boolean true Is multiple choice allowed
searchText String "请输入" Search box default
readOnly Boolean false Set input to readonly
searchResultText String "未搜索到相关内容" No search results
addItemButtonText String "添加一个新属性值" Add new option button text
addItemText String "添加一个新项" Add item input box prompt