1.0.0 • Published 6 years ago

searchable-select-vue v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

How to Use

<searchable-select :options="arr"
                   v-model="value"
                   class="original-style"
</searchable-select>

in <script>

import SearchableSelect from 'searchable-select-vue';
// Note that it is the runtime-only build of Vue.

// if you use raw SFC, import the following one.
// import SearchableSelect from 'searchable-select-vue/SearchableSelect.vue';

Props

nametypedefaultdesc
optionsArray[](必須) 選択肢の配列. 要素はStringまたはObject
allowDirectValueBooleanfalse選択肢にない、入力された値をvalueとして受け入れるか否か
caseInsensitiveBooleantrue大文字小文字を区別するか否か
disabledBooleanfalseinputフィールドをdisabledにするか否か
optionTextString, Function'text'optionsの要素がObjectの場合の表示文字列のkey, または生成用Function
optionValueString'value'optionsの要素がObjectの場合のvalueのkey
placeholderString''inputフィールドのプレイスホルダー
stylesObject{}styleを上書きする。key=selector,value=CSSのオブジェクト(ex, {input: {width:'100%'}})。nullを渡すとデフォルトのstyleを全て削除
valueString, Number, Boolean, Datenull初期値(表示文字列に自動変換)
1.0.0

6 years ago

0.0.3-beta

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago