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

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>',
});

原文地址:https://www.cnblogs.com/xgqfrms/p/10874077.html