Переход на Vue 3, в процессе

This commit is contained in:
Book Pauk
2021-10-28 16:55:44 +07:00
parent a1d7a73459
commit 88d75fb0d8
16 changed files with 177 additions and 141 deletions

View File

@@ -25,26 +25,23 @@
<script>
//-----------------------------------------------------------------------------
import Vue from 'vue';
import Component from 'vue-class-component';
import vueComponent from '../vueComponent.js';
const DialogProps = Vue.extend({
props: {
value: Boolean,
}
});
class Dialog {
_props = {
modelValue: Boolean,
};
export default @Component({
})
class Dialog extends DialogProps {
get active() {
return this.value;
return this.modelValue;
}
set active(value) {
this.$emit('input', value);
this.$emit('update:modelValue', value);
}
}
export default vueComponent(Dialog);
//-----------------------------------------------------------------------------
</script>