define(["template"],function(a){function b(b){"use strict";b=b||{};var c=a.utils,d=(c.$helpers,b.measureId),e=c.$each,f=b.indList,g=(b.$ind,b.$index,c.$escape),h=b.topTypeList,i=(b.$option,b.key,b.topType),j=b.recordSize,k="";return k+='<!--\r\n数据例子：\r\nvar demoData = {\r\n    measureId: \'\',\r\n    reocrdSize: \'\',\r\n    topType: \'\',\r\n    indList: [\r\n\r\n    ],\r\n    topTypeList: {\r\n        desc: bottom,\r\n        asc: top,\r\n        none: none\r\n    }\r\n};\r\n-->\r\n<div class="topn-indlist">\r\n    <div class="topn-indlist-item">\r\n        <span>指标选择：</span>\r\n        <select name="measureId">\r\n            <option value=""\r\n            ',d||(k+=' selected="selected" '),k+=">请选择</option>\r\n            ",e(f,function(a){k+="\r\n            <option value=",k+=g(a.id),k+="\r\n            ",d&&a.id===d&&(k+=' selected="selected" '),k+=">",k+=g(a.caption),k+="\r\n            </option>\r\n            "}),k+='\r\n        </select>\r\n    </div>\r\n    <div class="topn-indlist-item">\r\n        <span>排序方式：</span>\r\n        <select name="topType">\r\n            ',e(h,function(a,b){k+="\r\n            <option value=",k+=g(b),k+="\r\n            ",i&&b===i&&(k+='\r\n            selected="selected"\r\n            '),k+=">",k+=g(a),k+="\r\n            </option>\r\n            "}),k+='\r\n        </select>\r\n    </div>\r\n    <div class="topn-indlist-item">\r\n        <span>请输入条数：</span>\r\n        <input type="text" name="recordSize" value="',k+=g(j),k+='"/>\r\n    </div>\r\n</div>\r\n'}return{render:b}});