123456789101112131415161718192021222324252627282930313233 |
- var getStyle = function (object) {
- var styleStr = '';
- styleStr +=
- 'width:' +
- object.width +
- ';' +
- 'height:' +
- (object.height || '16px') +
- ';' +
- 'background:' +
- object.background +
- ';' +
- 'background-color:' +
- object.backgroundColor +
- ';' +
- 'margin:' +
- object.margin +
- ';' +
- 'margin-right:' +
- object.marginRight +
- ';' +
- 'margin-left:' +
- object.marginLeft +
- ';' +
- 'border-radius:' +
- object.borderRadius +
- ';';
- return styleStr;
- };
- module.exports = {
- getStyle: getStyle,
- };
|