Browse Source

Add flex-direction to PropertyFactory

pull/1710/head
David Polak 7 years ago
parent
commit
dc687acdaa
  1. 12
      src/style_manager/model/PropertyFactory.js

12
src/style_manager/model/PropertyFactory.js

@ -72,6 +72,7 @@ module.exports = () => ({
obj.type = 'radio';
break;
case 'display':
case 'flex-direction':
case 'font-family':
case 'font-weight':
case 'border-style':
@ -166,6 +167,9 @@ module.exports = () => ({
case 'display':
obj.defaults = 'block';
break;
case 'flex-direction':
obj.defaults = 'row';
break;
case 'position':
obj.defaults = 'static';
break;
@ -411,6 +415,14 @@ module.exports = () => ({
{ value: 'none' }
];
break;
case 'flex-direction':
obj.list = [
{ value: 'row' },
{ value: 'row-reverse' },
{ value: 'column' },
{ value: 'column-reverse' }
];
break;
case 'position':
obj.list = [
{ value: 'static' },

Loading…
Cancel
Save