diff --git a/quasar.config.js b/quasar.config.js index 755e96bd..789b9f64 100644 --- a/quasar.config.js +++ b/quasar.config.js @@ -12,6 +12,7 @@ const { configure } = require('quasar/wrappers'); const VueI18nPlugin = require('@intlify/unplugin-vue-i18n/vite'); const path = require('path'); + module.exports = configure(function (/* ctx */) { return { eslint: { @@ -29,7 +30,8 @@ module.exports = configure(function (/* ctx */) { // app boot file (/src/boot) // --> boot files are part of "main.js" // https://v2.quasar.dev/quasar-cli/boot-files - boot: ['i18n', 'axios', 'vnDate', 'validations'], + // + boot: ['i18n', 'axios', 'vnDate','quasar','quasar.defaults','setDefaults', 'validations'], // https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#css css: ['app.scss'], @@ -122,6 +124,33 @@ module.exports = configure(function (/* ctx */) { // https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#framework framework: { config: { + form:{ +mixins:[{ + data(d) { + return { + title: 'Mixins are cool', + copyright: 'All rights reserved. Product of super awesome people' + }; + }, + created: function(data) { + console.log(this) + if(this.$el){ + + console.log(this.$el + ) + this.greetings(); + } + }, + methods: { + keyup:(event)=>{ + console.log(event) + }, + greetings: function() { + console.log('Howdy my good fellow!'); + } + } + }], + }, config: { brand: { primary: 'orange', diff --git a/src/App.vue b/src/App.vue index d0d8c935..6a201045 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,5 +1,5 @@