diff --git a/src/components/kytos/inputs/Input.vue b/src/components/kytos/inputs/Input.vue index 85b653d..ccd6fc2 100644 --- a/src/components/kytos/inputs/Input.vue +++ b/src/components/kytos/inputs/Input.vue @@ -21,6 +21,9 @@ import KytosBaseWithIcon from '../base/KytosBaseWithIcon'; export default { name: 'k-input', mixins: [KytosBaseWithIcon], + compatConfig: { + MODE: 3, + }, props: { /** * The value to input button. @@ -49,6 +52,7 @@ export default { default: function(val) {return} } }, + emits: ['update:value'], methods: { updateText(){ this.$emit('update:value', this.$refs.inputValue.value) diff --git a/src/components/kytos/inputs/InputAutocomplete.vue b/src/components/kytos/inputs/InputAutocomplete.vue index ed021e6..746960f 100644 --- a/src/components/kytos/inputs/InputAutocomplete.vue +++ b/src/components/kytos/inputs/InputAutocomplete.vue @@ -96,6 +96,9 @@ import KytosBaseWithIcon from '../base/KytosBaseWithIcon'; * @example /_static/imgs/components/input/k-input-auto.png */ var CustomInput = { + compatConfig: { + MODE: 3, + }, props: { value: { type: String, @@ -130,8 +133,8 @@ var CustomInput = { type: String, default: "" } - }, - template: '' + }, + template: '' } export default { diff --git a/src/components/kytos/logging/Logging.vue b/src/components/kytos/logging/Logging.vue index e44e7fd..3ff953e 100644 --- a/src/components/kytos/logging/Logging.vue +++ b/src/components/kytos/logging/Logging.vue @@ -14,7 +14,7 @@ - + diff --git a/src/components/kytos/misc/StatusMenu.vue b/src/components/kytos/misc/StatusMenu.vue index 8962f5f..023b74a 100644 --- a/src/components/kytos/misc/StatusMenu.vue +++ b/src/components/kytos/misc/StatusMenu.vue @@ -2,7 +2,7 @@
- +

Status Menu

diff --git a/src/main.js b/src/main.js index 628b108..737096d 100644 --- a/src/main.js +++ b/src/main.js @@ -19,7 +19,7 @@ const kytos = createApp({ }, }) -Vue.use(VueHotkey) +kytos.use(VueHotkey) window.$ = window.jQuery = require('jquery'); window.d3 = window.D3 = require('d3'); @@ -125,7 +125,7 @@ kytos.component('k-notification', KytosNotification) // Preserve extra whitespaces kytos.config.compilerOptions.whitespace = 'preserve'; -kytos.config.globalProperties.$kytos = new Vue() +kytos.config.globalProperties.$kytos = kytos kytos.config.globalProperties.$kytos_server = window.kytos_server kytos.config.globalProperties.$kytos_server_api = window.kytos_server_api kytos.config.globalProperties.$kytos_version = version