searchBox.html 1.1 KB

123456789101112131415161718192021222324
  1. <div id="search" class="search-box clearfix" ng-show="showSearch">
  2. <div class="input-group input-group-sm search-input-wrap">
  3. <input type="text"
  4. id="search-input"
  5. class="form-control search-input"
  6. ng-model="keyword"
  7. ng-keydown="handleKeyDown($event)"
  8. aria-describedby="basic-addon2"/>
  9. <span class="input-group-addon search-addon" id="basic-addon2"
  10. ng-show="showTip"
  11. ng-bind="'第 ' + curIndex + ' 条,共 ' + resultNum + ' 条'"></span>
  12. </div>
  13. <div class="btn-group btn-group-sm prev-and-next-btn" role="group">
  14. <button type="button" class="btn btn-default" ng-click="doSearch(keyword, 'prev')">
  15. <span class="glyphicon glyphicon-chevron-up"></span>
  16. </button>
  17. <button type="button" class="btn btn-default" ng-click="doSearch(keyword, 'next')">
  18. <span class="glyphicon glyphicon-chevron-down"></span>
  19. </button>
  20. </div>
  21. <div class="close-search" ng-click="exitSearch()">
  22. <span class="glyphicon glyphicon-remove"></span>
  23. </div>
  24. </div>