xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

onsen & UI & vue & mobile UI

onsen & UI

vue & mobile UI

$ npm i onsenui vue-onsenui
# OR
$ npm i -S onsenui vue-onsenui

https://onsen.io/vue/

https://onsenui.github.io/vue-onsenui-kitchensink/

https://github.com/onsenui/vue-onsenui-kitchensink

https://onsen.io/v2/api/vue/



// (2) Webpack CSS import
import 'onsenui/css/onsenui.css';
import 'onsenui/css/onsen-css-components.css';

// (2) JS import
import Vue from 'vue';
import VueOnsen from 'vue-onsenui';

// (3) And plug in the bindings
Vue.use(VueOnsen);

// That's it!
new Vue({
  el: '#app',
  template: '<v-ons-button>Click Me</v-ons-button>',
});

posted @ 2019-05-16 10:31  xgqfrms  阅读(328)  评论(0编辑  收藏  举报