diff --git a/docs/src/App.vue b/docs/src/App.vue index 50c76e2..bd33026 100644 --- a/docs/src/App.vue +++ b/docs/src/App.vue @@ -137,19 +137,18 @@ - Typography - - + diff --git a/docs/src/pages/ui-elements/GridSystem.vue b/docs/src/pages/ui-elements/GridSystem.vue deleted file mode 100644 index b2dce1c..0000000 --- a/docs/src/pages/ui-elements/GridSystem.vue +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/docs/src/pages/ui-elements/Layout.vue b/docs/src/pages/ui-elements/Layout.vue new file mode 100644 index 0000000..5739eb2 --- /dev/null +++ b/docs/src/pages/ui-elements/Layout.vue @@ -0,0 +1,29 @@ + + + diff --git a/docs/src/routes.js b/docs/src/routes.js index 34450f3..5024f20 100644 --- a/docs/src/routes.js +++ b/docs/src/routes.js @@ -32,7 +32,7 @@ import Whiteframe from './pages/components/Whiteframe'; /* UI Elements */ import Typography from './pages/ui-elements/Typography'; -import GridSystem from './pages/ui-elements/GridSystem'; +import Layout from './pages/ui-elements/Layout'; /* Themes */ import Configuration from './pages/themes/Configuration'; @@ -214,9 +214,9 @@ const uiElements = [ component: Typography }, { - path: '/ui-elements/grid-system', - name: 'ui-elements:grid-system', - component: GridSystem + path: '/ui-elements/layout', + name: 'ui-elements:layout', + component: Layout } ]; diff --git a/src/components/mdLayout/index.js b/src/components/mdLayout/index.js new file mode 100644 index 0000000..5f4676b --- /dev/null +++ b/src/components/mdLayout/index.js @@ -0,0 +1,5 @@ +import mdLayout from './mdLayout.vue'; + +export default function install(Vue) { + Vue.component('md-layout', Vue.extend(mdLayout)); +} diff --git a/src/components/mdLayout/mdLayout.scss b/src/components/mdLayout/mdLayout.scss new file mode 100644 index 0000000..6afd2ef --- /dev/null +++ b/src/components/mdLayout/mdLayout.scss @@ -0,0 +1,6 @@ +@import '../../core/stylesheets/variables.scss'; + +.md-layout { + display: flex; + flex: 1; +} diff --git a/src/components/mdLayout/mdLayout.vue b/src/components/mdLayout/mdLayout.vue new file mode 100644 index 0000000..4dddff2 --- /dev/null +++ b/src/components/mdLayout/mdLayout.vue @@ -0,0 +1,15 @@ + + + diff --git a/src/components/mdLayout/tag.js b/src/components/mdLayout/tag.js new file mode 100644 index 0000000..5a9ad50 --- /dev/null +++ b/src/components/mdLayout/tag.js @@ -0,0 +1,8 @@ +export default { + props: { + mdTag: { + type: String, + default: 'div' + } + } +}; diff --git a/src/index.js b/src/index.js index 2d575de..d2d377a 100644 --- a/src/index.js +++ b/src/index.js @@ -10,6 +10,7 @@ import MdDialog from './components/mdDialog'; import MdDivider from './components/mdDivider'; import MdIcon from './components/mdIcon'; import MdInputContainer from './components/mdInputContainer'; +import MdLayout from './components/mdLayout'; import MdList from './components/mdList'; import MdMenu from './components/mdMenu'; import MdRadio from './components/mdRadio'; @@ -37,6 +38,7 @@ const options = { MdDivider, MdIcon, MdInputContainer, + MdLayout, MdList, MdMenu, MdRadio,