我有多个选择过滤器的代码,它确实有效,但我希望能够只选择一个值。删除“多个”不起作用。
<ui-select multiple ng-model="vm.reportfilters.titles" theme="select2" ng-disabled="disabled" style="min-width: 300px;" title="Choose a person">
<ui-select-match placeholder="Select a value in the list">{{$item.value}}</ui-select-match>
<ui-select-choices repeat="title in vm.titles | filter: $select.search">
<span ng-bind-html="title.value"></span>
</ui-select-choices>
</ui-select>