下拉选择框

html:

<!--<label>-->
    <!--<select class="form-control" style="width: 164px;height:34px;"    ng-model="errorType">-->
        <!--<option  ng-repeat="error in SSCtl.errors">(%error.label%)</option>-->
    <!--</select>-->
<!--</label>-->

ts或js:

errors = [
    { value: '0', label: '空调系统监控' },
    { value: '1', label: '轮胎监控' },
    { value: '2', label: 'EBS系统监控' },
    { value: '3', label: '散热(ATS)系统监控' },
    { value: '4', label: '空气悬架ECAS监控' },
    { value: '5', label: '集中润滑监控' },
];

猜你喜欢

转载自blog.csdn.net/qq_38643776/article/details/80940635