UI components based on Element UI
npm intall ele-ui-vue
// main.js
import Vue from 'vue'
import 'element-ui/lib/theme-chalk/index.css'
import ElementUI from 'element-ui'
import EleUI from 'ele-ui-vue'
Vue.use(ElementUI)
Vue.use(EleUI)
Also you can import these components on demand!
Vue.prototype.$ELEMENT = { size: 'small' } // component size
Vue.prototype.$http = { get: getMethod, post: postMethod } // http request
Vue.prototype.$system = { lang: 'en', i18n: true } // auto i18n request
this.$http
: http requestthis.$http.get
: http getthis.$http.post
: http post
this.$system
: system variablethis.$system.lang
: language (String
)this.$system.i18n
: i18n (Boolean
)
- Button
- Select
- Form
- Table
- I18n
- Table - virtual scroll
- Mobile adaptation
- Logo
- Component i18n request
- Unit test
- Promise collector in Form
- Publish
- API document