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', { ...@@ -826,7 +826,7 @@ Vue.component('app-registration-form', {
<!-- Debug ---> <!-- 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> <pre>
{{ wUnitAmounts }} {{ wUnitAmounts }}
</pre> </pre>
......
...@@ -20,9 +20,6 @@ Vue.component('field-select', { ...@@ -20,9 +20,6 @@ Vue.component('field-select', {
init: { init: {
type: Object type: Object
}, },
showDropProp: {
type: Boolean
}
}, },
model: { model: {
prop: 'attrs.value', prop: 'attrs.value',
...@@ -32,7 +29,6 @@ Vue.component('field-select', { ...@@ -32,7 +29,6 @@ Vue.component('field-select', {
function () { function () {
return { return {
choices: null, choices: null,
showDrop: this.showDropProp,
} }
}, },
mounted() { mounted() {
...@@ -41,15 +37,9 @@ Vue.component('field-select', { ...@@ -41,15 +37,9 @@ Vue.component('field-select', {
computed: { computed: {
}, },
watch: { watch: {
showDropProp: function() {
this.choices.showDropdown();
},
options: 'choicesUpdate', //отслеживаем изменение объекта с опциями options: 'choicesUpdate', //отслеживаем изменение объекта с опциями
}, },
methods: { methods: {
showDrop() {
return this.showDrop;
},
choicesInit() { choicesInit() {
this.choices = new Choices(this.$refs.select, this.settings); 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