ant-design-vue/components/layout/index.js
tangjinzhou a6620cbbe5
feat: add component Vue.use method (#197)
* feat: add Vue.use feat

* feat: Vue.use method

* docs: update docs
2018-09-19 13:21:57 +08:00

15 lines
407 B
JavaScript

import Layout from './layout'
import Sider from './Sider'
Layout.Sider = Sider
/* istanbul ignore next */
Layout.install = function (Vue) {
Vue.component(Layout.name, Layout)
Vue.component(Layout.Header.name, Layout.Header)
Vue.component(Layout.Footer.name, Layout.Footer)
Vue.component(Layout.Sider.name, Layout.Sider)
Vue.component(Layout.Content.name, Layout.Content)
}
export default Layout