diff --git a/packages/row/index.js b/packages/row/index.js new file mode 100644 index 000000000..679bee39b --- /dev/null +++ b/packages/row/index.js @@ -0,0 +1,39 @@ +import { use } from '../utils'; + +const [sfc, bem] = use('row'); + +export default sfc({ + props: { + type: String, + align: String, + justify: String, + tag: { + type: String, + default: 'div' + }, + gutter: { + type: [Number, String], + default: 0 + } + }, + + render(h) { + const { align, justify } = this; + const flex = this.type === 'flex'; + const margin = `-${Number(this.gutter) / 2}px`; + const style = this.gutter ? { marginLeft: margin, marginRight: margin } : {}; + + return ( + + {this.$slots.default} + + ); + } +}); diff --git a/packages/row/index.vue b/packages/row/index.vue deleted file mode 100644 index aab4ea22a..000000000 --- a/packages/row/index.vue +++ /dev/null @@ -1,48 +0,0 @@ - - -