Permalink
Browse files

feat(img): Add 'block' prop to set display mode to block

  • Loading branch information...
tmorehouse committed Aug 29, 2017
1 parent 4606970 commit 6be73904302b89d65d1b00dbd7134644fe9aa9df
Showing with 7 additions and 3 deletions.
  1. +7 −3 lib/components/img.js
@@ -34,6 +34,10 @@ export const props = {
type: [Number, String],
default: null
},
block: {
type: Boolean,
default: false
},
fluid: {
type: Boolean,
default: false
@@ -45,8 +49,8 @@ export const props = {
},
rounded: {
// rounded can be:
// 'false': no rounding of corners
// 'true': slightly rounded corners
// false: no rounding of corners
// true: slightly rounded corners
// 'top': top corners rounded
// 'right': right corners rounded
// 'bottom': bottom corners rounded
@@ -90,7 +94,7 @@ export default {
let width = Boolean(parseInt(props.width,10)) ? parseInt(props.width,10) : null;
let height = Boolean(parseInt(props.height,10)) ? parseInt(props.height,10) : null;
let align = null;
let block = null;
let block = props.block;
if (props.blank) {
if (!height && Boolean(width)) {
height = width;

0 comments on commit 6be7390

Please sign in to comment.