【发布时间】:2018-03-14 00:58:09
【问题描述】:
我的 ui-select 上显示了一个输入字段,但我似乎无法让它消失...
我正在使用 jhipster(最新版本)angularjs 和 sprigboot。
angular
.module('incidenteApp', [
'ngStorage',
'tmh.dynamicLocale',
'pascalprecht.translate',
'ngResource',
'ngCookies',
'ngAria',
'ngCacheBuster',
'ngFileUpload',
'ui.bootstrap',
'ui.bootstrap.datetimepicker',
'ui.router',
'infinite-scroll',
// jhipster-needle-angularjs-add-module JHipster will add new module here
'angular-loading-bar',
'lr.upload',
'ngSanitize',
'ui.select'
])
html 以防我在这里出现错误...
<ui-select ng-model="vm.biometrico.provincia" theme="bootstrap" title="Elegir Provincia">
<ui-select-match placeholder="Elegir una provincia">{{$select.selected.provincia}}</ui-select-match>
<ui-select-choices repeat="provincia in vm.provincias._embedded.provincia | filter: $select.search">
<span ng-bind-html="provincia.provincia | highlight: $select.search"></span>
</ui-select-choices>
<ui-select-no-choice>
Discula, no pudimos encontrar lo que estas buscando...
</ui-select-no-choice>
</ui-select>
【问题讨论】:
-
你插入了 ui-select css 吗?和选择引导主题 css ?
-
为选择主题添加了cdnjs.cloudflare.com/ajax/libs/selectize.js/0.8.5/css/… css,现在我可以滚动,但它仍然无缘无故地显示一个输入字段空白。生病编辑帖子