1.0.2 • Published 4 years ago
ele-ui-vue v1.0.2
Ele UI
UI components based on Element UI
Usage
Install
npm intall ele-ui-vue
Import
// 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!
Config
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
Global
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
)
Components
- Button
- Select
- Form
- Table
TODO
- I18n
- Table - virtual scroll
- Mobile adaptation
- Logo
- Component i18n request
- Unit test
- Promise collector in Form
- Publish
- API document