mofron-comp-header
Advanced tools
Comparing version 0.9.0 to 0.9.1
19
index.js
@@ -6,5 +6,4 @@ /** | ||
*/ | ||
let mf = require('mofron'); | ||
let Horizon = require('mofron-layout-horizon'); | ||
const mf = require('mofron'); | ||
const Horizon = require('mofron-layout-horizon'); | ||
/** | ||
@@ -19,3 +18,2 @@ * @class mofron.comp.Header | ||
this.name('Header'); | ||
this.sizeType('rem'); | ||
this.prmMap('child'); | ||
@@ -52,3 +50,3 @@ this.prmOpt(po); | ||
this.width('100%'); | ||
this.height(0.5); | ||
this.height('0.5rem'); | ||
this.bind(true); | ||
@@ -69,10 +67,9 @@ this.mainColor(new mf.Color(211,211,211)); | ||
* | ||
* @param hei : (int,string) height | ||
*/ | ||
height (prm, st) { | ||
height (prm) { | ||
try { | ||
let ret = super.height(prm, st); | ||
let ret = super.height(prm); | ||
if (undefined === ret) { | ||
this.adom().child()[1].style({ | ||
'height' : (prm + '') + this.sizeType() | ||
'height' : super.height().value() | ||
}); | ||
@@ -125,5 +122,3 @@ } | ||
} | ||
this.style({ | ||
'border-bottom-color' : prm.getStyle() | ||
}); | ||
this.style({ 'border-bottom-color' : prm.getStyle() }); | ||
} catch (e) { | ||
@@ -130,0 +125,0 @@ console.error(e.stack); |
{ | ||
"name": "mofron-comp-header", | ||
"version": "0.9.0", | ||
"version": "0.9.1", | ||
"description": "header component for mofron", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
5643
117