main = {
let dom = html`<div style="position: relative; height:100%">
<div class='dim-select'
style='position:absolute;
z-index:2;
right: 10% ;
background: #fff;
box-shadow: 4px 7px 8px #eee;
border: 1px solid #eee;' >
${selectInput}
${isShowSelect ? search : ""}
${isShowSelect ? dimList : []}
</div>
<div class='dims-chart' style="height: 100% ;min-height:400px; width:100%"></div>
</div>`;
setTimeout(() => {
const k = getUserStorageKey();
const val = sessionStorage.getItem(k);
if (val && chooseDims[0] !== val) {
mutable chooseDims = [val];
}
}, 100);
return dom;
}