Skip to content

Instantly share code, notes, and snippets.

@mizdra
Created March 16, 2017 15:19
Show Gist options
  • Save mizdra/03cd6eb7b01b6f876a42ff1b7f7d2781 to your computer and use it in GitHub Desktop.
Save mizdra/03cd6eb7b01b6f876a42ff1b7f7d2781 to your computer and use it in GitHub Desktop.
左右にアイテムを配置可能なmu-card-actionsコンポーネント
<template>
<mu-card-actions>
<mu-row gutter>
<mu-col width="100" tablet="50" desktop="50">
<slot name="left"></slot>
</mu-col>
<mu-col class="right" width="100" tablet="50" desktop="50">
<slot name="right"></slot>
</mu-col>
</mu-row>
</mu-card-actions>
</template>
<script>
import { flexbox, flexboxItem } from 'muse-ui/src/flexbox';
import { row, col } from 'muse-ui/src/grid';
export default {
name: 'sepalatable-card-actions',
components: {
flexbox,
flexboxItem,
row,
col,
},
};
</script>
<style scoped>
.right {
display: flex;
justify-content: flex-end;
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment