quick add shoppinglist

This commit is contained in:
smilerz
2022-01-04 17:44:29 -06:00
parent 29aa52aa3d
commit b919fb4ae8
5 changed files with 62 additions and 12 deletions

View File

@@ -62,12 +62,16 @@ export default {
multiple: { type: Boolean, default: true },
allow_create: { type: Boolean, default: false },
create_placeholder: { type: String, default: "You Forgot to Add a Tag Placeholder" },
clear: { type: Number },
},
watch: {
initial_selection: function (newVal, oldVal) {
// watch it
this.selected_objects = newVal
},
clear: function (newVal, oldVal) {
this.selected_objects = []
},
},
mounted() {
this.search("")

View File

@@ -13,6 +13,7 @@
:sticky_options="sticky_options"
:allow_create="form.allow_create"
:create_placeholder="createPlaceholder"
:clear="clear"
style="flex-grow: 1; flex-shrink: 1; flex-basis: 0"
:placeholder="modelName"
@new="addNew"
@@ -44,6 +45,7 @@ export default {
},
},
show_label: { type: Boolean, default: true },
clear: { type: Number },
},
data() {
return {