Commit 671a146a authored by Babin Egor's avatar Babin Egor

up util order vue

parent 73fceb41
......@@ -826,7 +826,7 @@ Vue.component('app-registration-form', {
<!-- Debug --->
<div style="display: block; position: fixed; right: 0;top: 0%; background-color:#fff; z-index:1000; width: 300px; padding: 10px; border: 1px solid #999;">
<div style="display: none; position: fixed; right: 0;top: 0%; background-color:#fff; z-index:1000; width: 300px; padding: 10px; border: 1px solid #999;">
<pre>
{{ wUnitAmounts }}
</pre>
......
......@@ -20,9 +20,6 @@ Vue.component('field-select', {
init: {
type: Object
},
showDropProp: {
type: Boolean
}
},
model: {
prop: 'attrs.value',
......@@ -32,7 +29,6 @@ Vue.component('field-select', {
function () {
return {
choices: null,
showDrop: this.showDropProp,
}
},
mounted() {
......@@ -41,15 +37,9 @@ Vue.component('field-select', {
computed: {
},
watch: {
showDropProp: function() {
this.choices.showDropdown();
},
options: 'choicesUpdate', //отслеживаем изменение объекта с опциями
},
methods: {
showDrop() {
return this.showDrop;
},
choicesInit() {
this.choices = new Choices(this.$refs.select, this.settings);
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment