Let caller define placeholder and icon for autocomplete field
This commit is contained in:
parent
ce70eb2b91
commit
68a349383c
|
@ -4,6 +4,8 @@
|
|||
:name="name"
|
||||
v-show="!selected"
|
||||
v-model="autocompleteValue"
|
||||
:placeholder="placeholder"
|
||||
:icon="icon"
|
||||
:data="data"
|
||||
@typing="getAsyncData"
|
||||
@select="selectionMade"
|
||||
|
@ -29,6 +31,14 @@ export default {
|
|||
serviceUrl: String,
|
||||
value: String,
|
||||
initialLabel: String,
|
||||
placeholder: {
|
||||
type: String,
|
||||
default: null,
|
||||
},
|
||||
icon: {
|
||||
type: String,
|
||||
default: null,
|
||||
},
|
||||
},
|
||||
data() {
|
||||
let selected = null
|
||||
|
|
Loading…
Reference in a new issue