Created
March 16, 2017 15:19
-
-
Save mizdra/03cd6eb7b01b6f876a42ff1b7f7d2781 to your computer and use it in GitHub Desktop.
左右にアイテムを配置可能なmu-card-actionsコンポーネント
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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