//-Created by zhuyan6 on 16/8/20.
block mod-ui-button
   include ~webComponents/widget/ui-widget.jade

- var inputWidth = parseInt(conf.width)-80+'px';
- var inputHeihgt = parseInt(conf.height)<=parseInt(conf.maxHeight)?parseInt(conf.height)-32+'px':parseInt(conf.maxHeight)-32+'px';
- var contClass
- if(parseInt(conf.type)==1){
- contClass=""
- }else if(parseInt(conf.type)==2) {
- contClass="checkImg"
- }else if(parseInt(conf.type)==3) {
- contClass="checkBox"
- }

mixin search-body()
   //-if(parseInt(conf.type)==1)
   if(0)
      //-由于没有搜索功能,先去掉,2小时后又加上搜索功能了
      .comp-predictive-search-body(style="position: absolute;clip: rect(0,0,0,0);")
         block
   else
      .comp-predictive-search-body(style="width:"+conf.width+";height:"+'32px')
         block

block comp-predictive-search
   .comp-predictive-search
         .comp-predictive-search-title
            .ui_select_title
               span #{conf.defaultTitle}
               .triangle.top
         .comp-predictive-search-content(class=contClass style="z-index:"+conf.zIndex+";width:"+conf.width+";height:"+conf.height+";max-height:"+conf.maxHeight+";display:none")
            +search-body()
               input.search-input(type='text', custom='search-predictive' ,placeholder=conf.placeHolder, style="width:"+inputWidth+";height:"+'30px')
               .search-loading
               .search-close
               .search-button
            //-.search-think(style="height:"+conf.inHeight-32+";margin-top:"+0)//由于没有搜索功能,先去掉
            .search-think(style="height:"+conf.inHeight-32)
               ul
                  li.search-li-txt #{conf.defaultTitle}
            .search-submit(style='display:none')
               +ui-widget-checkBox-default()(content='全部',width='auto',height='14px',customAttr='typeName='+conf.typeName)
               +ui-widget-button-single()(content='确定',width='68px',height='26px',groupID='comp-predictive-search-left',out='#f7f7f7',hover='#f2f2f2',outBg='#22bb9a',hoverBg='#1a856e')
               +ui-widget-button-single()(content='取消',width='68px',height='26px',groupID='comp-predictive-search-right',out='#828287',hover='#f2f2f2',outBg='#ffffff',hoverBg='#c3c3c3')


