我嘗試使用VueJS測試類星體框架以與vuetify和元素ui進行比較。具有VueJS的類星體框架不起作用
我安裝了類星體框架:
npm i quasar-framework --save
的問題是,在頁面中,我不明白我在類星體網站的例子看。
what I get http://prntscr.com/gzawsg
Hello.Vue
<template>
<div>
<div class="hello">
<q-btn round color="secondary" icon="card_giftcard" /> Girft Card </q-btn>
<q-btn icon="create" @click="doSomething">New item</q-btn>
</div>
<div>
<q-input stack-label="Stack Label" />
<q-input float-label="Float Label" placeholder="Hello there" />
</div>
</div>
</template>
<script>
import { QBtn, QIcon, QInput, QToolbar, QToolbarTitle } from 'quasar-framework'
export default {
name: 'HelloWorld',
data() {
return {
value: 'Welcome to Your Vue.js App',
dadsa: 'aaa'
}
},
components: {
QBtn,
QIcon,
QInput,
QToolbar,
QToolbarTitle
},
methods: {
doSomething() {
console.log('This is a mesasge');
}
}
}
</script>
這是main.js
import Vue from 'vue'
import App from './App'
import router from './router'
import Quasar, { Ripple } from 'quasar-framework'
import 'quasar-extras/material-icons';
Vue.config.productionTip = false
Vue.use(Quasar);
/* eslint-disable no-new */
new Vue({
el: '#app',
router,
template: '<App/>',
components: { App }
})
我該怎麼辦錯了嗎?