5858 <div
5959 v-if ="
6060 !filteredOptions.length &&
61- searchText.length &&
62- typeof createItem === 'function'
61+ searchText.length &&
62+ typeof createItem === 'function'
6363 "
6464 class =" option create active"
6565 @click =" selectActiveOption"
@@ -143,18 +143,18 @@ export default {
143143 * Set to false to disable new option creation
144144 */
145145 createItem: {
146- default : function (text ) {
146+ default : function (text ) {
147147 return Promise .resolve (text)
148148 },
149- type: [Function , Boolean ]
149+ type: [Function , Boolean ],
150150 },
151151
152152 searchFn: { default: false , type: [Boolean , Function ] },
153153
154154 /**
155155 * Selectize theme
156156 */
157- theme: { default: ' ' , type: String }
157+ theme: { default: ' ' , type: String },
158158 },
159159
160160 data : () => ({
@@ -163,7 +163,7 @@ export default {
163163 searchText: ' ' ,
164164 activeOptionKey: ' ' ,
165165 selected: [],
166- busy: false
166+ busy: false ,
167167 }),
168168
169169 mounted () {
@@ -211,7 +211,7 @@ export default {
211211 distance: 100 ,
212212 maxPatternLength: 32 ,
213213 minMatchCharLength: 1 ,
214- keys: this .keys
214+ keys: this .keys ,
215215 })
216216 const options =
217217 this .searchText .length && ! this .disableSearch
@@ -327,7 +327,7 @@ export default {
327327 : ' none'
328328 style[' width' ] = ` 100%`
329329 return style
330- }
330+ },
331331 },
332332
333333 methods: {
@@ -557,18 +557,18 @@ export default {
557557 },
558558 setNotBusy () {
559559 this .busy = false
560- }
560+ },
561561 },
562562
563563 watch: {
564564 value: {
565565 handler (value ) {
566566 this .setSelectedValue (value)
567567 },
568- deep: true
569- }
568+ deep: true ,
569+ },
570570 },
571- directives: { ClickOutside }
571+ directives: { ClickOutside },
572572}
573573 </script >
574574
0 commit comments